Диплом: Автоматизация контроля качества работы персонала в ИП Мельникова

Внимание! Если размещение файла нарушает Ваши авторские права, то обязательно сообщите нам
97
return $this->hasOne(Position::className(), ['id' => 'position_id']);
}
/**
* Gets query for [[LogEfficiencies]].
*
* @return \yii\db\ActiveQuery
*/
public function getLogEfficiencies()
{
return $this->hasMany(LogEfficiency::className(), ['employee_id' => 'id']);
}
/**
* Gets query for [[PaySlips]].
*
* @return \yii\db\ActiveQuery
*/
public function getPaySlips()
{
return $this->hasMany(PaySlip::className(), ['employee_id' => 'id']);
}
/**
* Gets query for [[ScheduleWorks]].
98
*
* @return \yii\db\ActiveQuery
*/
public function getScheduleWorks()
{
return $this->hasMany(ScheduleWork::className(), ['leader_id' => 'id']);
}
/**
* Gets query for [[SettlementAccounts]].
*
* @return \yii\db\ActiveQuery
*/
public function getSettlementAccounts()
{
return $this->hasMany(SettlementAccount::className(), ['employee_id' => 'id']);
}
/**
* Gets query for [[Shifts]].
*
* @return \yii\db\ActiveQuery
99
*/
public function getShifts()
{
return $this->hasMany(Shift::className(), ['employee_id' => 'id']);
}
}
<?php
namespace backend\models;
use Yii;
/**
* This is the model class for table "{{%card_efficiency}}".
*
* @property int $id
* @property int $employee_id
* @property int $leader_id
* @property int $job_evaluation
* @property int $assessment_personality
* @property int $collectivity_assessment
* @property int $head_assessment
100
*
* @property Employee $employee
* @property Employee $leader
* @property LogEfficiency[] $logEfficiencies
* @property PaySlip[] $paySlips
*/
class CardEfficiency extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return '{{%card_efficiency}}';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
101
[['employee_id', 'leader_id', 'job_evaluation', 'assessment_personality',
'collectivity_assessment', 'head_assessment'], 'required'],
[['employee_id', 'leader_id', 'job_evaluation', 'assessment_personality',
'collectivity_assessment', 'head_assessment'], 'integer'],
[['employee_id'], 'exist', 'skipOnError' => true, 'targetClass' =>
Employee::className(), 'targetAttribute' => ['employee_id' => 'id']],
[['leader_id'], 'exist', 'skipOnError' => true, 'targetClass' =>
Employee::className(), 'targetAttribute' => ['leader_id' => 'id']],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'employee_id' => 'Employee ID',
'leader_id' => 'Leader ID',
'job_evaluation' => 'Job Evaluation',
'assessment_personality' => 'Assessment Personality',
'collectivity_assessment' => 'Collectivity Assessment',
102
'head_assessment' => 'Head Assessment',
];
}
/**
* Gets query for [[Employee]].
*
* @return \yii\db\ActiveQuery
*/
public function getEmployee()
{
return $this->hasOne(Employee::className(), ['id' => 'employee_id']);
}
/**
* Gets query for [[Leader]].
*
* @return \yii\db\ActiveQuery
*/
public function getLeader()
{
return $this->hasOne(Employee::className(), ['id' => 'leader_id']);
103
}
/**
* Gets query for [[LogEfficiencies]].
*
* @return \yii\db\ActiveQuery
*/
public function getLogEfficiencies()
{
return $this->hasMany(LogEfficiency::className(), ['card_efficiency_id' => 'id']);
}
/**
* Gets query for [[PaySlips]].
*
* @return \yii\db\ActiveQuery
*/
public function getPaySlips()
{
return $this->hasMany(PaySlip::className(), ['card_efficiency_id' => 'id']);
}
}
104
<?php
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
require __DIR__ . '/../../vendor/autoload.php';
require __DIR__ . '/../../vendor/yiisoft/yii2/Yii.php';
require __DIR__ . '/../../common/config/bootstrap.php';
require __DIR__ . '/../config/bootstrap.php';
$config = yii\helpers\ArrayHelper::merge(
require __DIR__ . '/../../common/config/main.php',
require __DIR__ . '/../../common/config/main-local.php',
require __DIR__ . '/../config/main.php',
require __DIR__ . '/../config/main-local.php'
);
(new yii\web\Application($config))->run();
<?php
namespace backend\controllers;
use yii\filters\AccessControl;
105
use yii\web\Controller;
class GeneralController extends Controller
{
public function behaviors()
{
return [
'access' => [
'class' => AccessControl::className(),
'rules' => [
[
'controllers' => ['site'],
'actions' => ['login', 'error'],
'allow' => true,
],
[
'controllers' => ['site'],
'actions' => ['logout', 'index'],
'allow' => true,
'roles' => ['@'],
],
],
106
],
<?php
namespace backend\controllers;
use Yii;
use backend\models\PaySlip;
use backend\models\PaySlipSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* PaySlipController implements the CRUD actions for PaySlip model.
*/
class PaySlipController extends GeneralController
{
/**
* {@inheritdoc}
*/
public function behaviors()
{

Смотрите также:

"Автоматизация обработки заявок ООО "Проектно-Строительная Компания"
"Автоматизация процесса аттестации персонала для ООО "Нэт Бай Нэт Холдинг"
"Анализ интернет-активности конкурентов ( на примере конкурентов "Газпром нефть")
"Бухгалтерский учёт и аудит расчётов с подотчётними лицами в организации на примере ООО "ЛОЦ 10""
«Психологическое сопровождение персонала в организации на примере ООО «Крокус»
«Управление ресурсами проекта» (на примере организации ООО «ЛАКОСТЭ»)
Agile-методология в управлении проектами на примере ООО «Ресурсный центр «Академия КлассИнфо»
Aвтoмaтизaция пpoцecca вeдeния инфopмaциoннoй бaзы o дoлжнocтяx и вaкaнcияx c укaзaниeм тpeбoвaний к уpoвню знaний и нaвыкoв кaндидaтoв для гpуппы кaдpoв вoйcкoвoй чacти 3474»
Cовершенствование деловой оценки персонала в организации (на примере ООО "Даймонд кейтеринг развитие")
Cовершенствование управления рентабельности предприятия (на примере гуипп «бендерская типография «полиграфист»)