$dg = new sadaf_datagrid("includeHistory", $js_prefix_address . "../../staff/data/staff_include_history.data.php?task=selectIncludeHistory&PID=" . $personID, "includeHistoryGRID"); $dg->addColumn("", "include_history_id", "", true); $dg->addColumn("", "personid", "", true); $col = $dg->addColumn("شماره شناسایی", "staff_id", "int"); $col->width = 140; $col = $dg->addColumn("تاريخ شروع", "start_date", GridColumn::ColumnType_date); $col->editor = ColumnEditor::SHDateField(); $col->width = 120; $col = $dg->addColumn("تاريخ پايان", "end_date", GridColumn::ColumnType_date); $col->editor = ColumnEditor::SHDateField(true); $col->width = 120; $col = $dg->addColumn("بيمه تامين اجتماعي", "insure_include", GridColumn::ColumnType_string); $col->editor = ColumnEditor::ComboBox(manage_domains::DRP_Is_Valid(), "value", "caption"); $col->width = 120; $col = $dg->addColumn("ماليات", "tax_include", "string"); $col->editor = ColumnEditor::ComboBox(manage_domains::DRP_Is_Valid(), "value", "caption"); $col->width = 80; $dg->width = 630; $dg->height = 200; $dg->EnableSearch = false; $dg->EnablePaging = false; $dg->DefaultSortField = "include_history_id"; $dg->title = "سابقه مشمولیت"; $col = $dg->addColumn("حذف", "", "string"); $col->renderer = " function(v,p,r){ return PersonObject.opDelRender(v,p,r); }"; $col->width = 40; $dg->addButton = true; $dg->addHandler = "function(v,p,r){ return PersonObject.AddIncludeHistory(v,p,r);}"; $dg->enableRowEdit = true; $dg->rowEditOkHandler = "function(v,p,r){ return PersonObject.SaveHistory(v,p,r);}"; $includeHistoryGrid = $dg->makeGrid_returnObjects();