public function actionAuthitemFields()
 {
     $result = Proc::GenerateColModel(AuthItem::model(), AuthItem::model()->AuthitemUser());
     /*  Proc::Fields_ChangeColModel($result, 'name', ['hidden' => false, 'isid' => false]); */
     /* "Checked" - Используется для выделения AuthItem's, присвоенные пользователю */
     Proc::Fields_ChangeColModel($result, 'Checked', ['hidden' => true, 'isid' => true]);
     Proc::Fields_ChangeColModel($result, 'type', ['edittype' => 'select', 'editoptions' => ['edittype' => 'select', 'value' => ':;0:Операция;1:Задача;2:Роль'], 'stype' => 'select', 'searchoptions' => ['value' => ':;0:Операция;1:Задача;2:Роль', 'defaultValue' => '', 'clearSearch' => false], 'formatter' => 'select']);
     echo json_encode($result);
 }
 public function actionIslistFields()
 {
     /* генерируем ColModel JQGrid на основе модели и ее критерия */
     $result = Proc::GenerateColModel(Islist::model(), Islist::model()->Islistcriteria());
     Proc::Fields_ChangeColModel($result, 'islist_ico', ['formatter' => 'IcoBuild']);
     Proc::Fields_ChangeColModel($result, 'islist_ico', ['search' => false]);
     Proc::Fields_ChangeColModel($result, 'islist_ico', ['align' => 'center']);
     Proc::Fields_ChangeColModel($result, 'islist_ico', ['width' => '100']);
     Proc::Fields_ChangeColModel($result, 'islist_ico', ['fixed' => true]);
     Proc::Fields_ChangeColModel($result, 'islist_text', ['classes' => 'longtextcell']);
     Proc::Fields_ChangeColModel($result, 'islist_targeturl', ['formatter' => 'URLBuild']);
     Proc::Fields_ChangeColModel($result, 'islist_x1', ['hidden' => true, 'isid' => true]);
     Proc::Fields_ChangeColModel($result, 'islist_y1', ['hidden' => true, 'isid' => true]);
     Proc::Fields_ChangeColModel($result, 'islist_w', ['hidden' => true, 'isid' => true]);
     Proc::Fields_ChangeColModel($result, 'islist_h', ['hidden' => true, 'isid' => true]);
     Proc::Fields_ChangeColModel($result, 'islist_dim_w', ['hidden' => true, 'isid' => true]);
     Proc::Fields_ChangeColModel($result, 'islist_dim_h', ['hidden' => true, 'isid' => true]);
     echo json_encode($result);
 }
示例#3
0
 public function actionEmployeeFields()
 {
     $result = Proc::GenerateColModel(Employee::model(), Employee::model()->Employeecriteria());
     Proc::Fields_ChangeColModel($result, 'employee_id', ['hidden' => false, 'isid' => false]);
     echo json_encode($result);
 }