Ejemplo n.º 1
0
$col = $pdg->addColumn('عنوان پارامتر', "title", "string");
$col->editor = ColumnEditor::TextField();
$col = $pdg->addColumn("نوع شخص", "person_type_title", "int");
$col->width = 100;
$pdg->openHeaderGroup("پارامترهای مرتبط");
$col = $pdg->addColumn('پارامتر1', "dim1_id");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_SalaryParam(), "id", "value");
$col->width = 100;
$col = $pdg->addColumn('پارامتر2', "dim2_id");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_SalaryParam(), "id", "value");
$col->width = 100;
$col = $pdg->addColumn('پارامتر3', "dim3_id");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_SalaryParam(), "id", "value");
$col->width = 100;
$col = $pdg->addColumn('پارامتر4', "dim4_id");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_SalaryParam(), "id", "value");
$col->width = 100;
$pdg->closeHeaderGroup();
$pdg->addButton = true;
$pdg->addHandler = "function(v,p,r){ return SalaryParamTypeObject.AddSPT(v,p,r);}";
$col = $pdg->addColumn("عملیات", "", "string");
$col->renderer = "function(v,p,r){ return SalaryParamTypes.opRender(v,p,r);}";
$col->width = 100;
$pdg->title = "انواع پارامترهای حقوقی";
$pdg->width = 800;
$pdg->DefaultSortField = "param_type";
$pdg->DefaultSortDir = "Desc";
$pdg->EnableSearch = false;
$pdg->enableRowEdit = true;
$pdg->rowEditOkHandler = "function(v,p,r){ return SalaryParamTypeObject.editPST(v,p,r);}";
$pdg->collapsible = true;