コード例 #1
0
ファイル: dependencies.php プロジェクト: jafarkhani/rtfund
$dg->addButton = true;
$dg->addHandler = "function(){ return PersonDependencyObject.AddDep();}";
$dg->EnablePaging = false;
$gridDep = $dg->makeGrid_returnObjects();
//______________________________________________________________________________
$dgh = new sadaf_datagrid("deph", $js_prefix_address . "../data/dependent.data.php?task=selectDepSupport", "dephistoryGRID");
$dgh->addColumn("شماره پرسنلی", "PersonID", "int", true);
$dgh->addColumn("", "master_row_no", "int", true);
$col = $dgh->addColumn("ردیف", "row_no", "string");
$col->width = 100;
$col = $dgh->addColumn("دلیل کفالت", "support_cause", GridColumn::ColumnType_string);
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_SupporCause(), "InfoID", "InfoDesc");
$col->width = 120;
$dgh->addColumn("", "support_cause", "", true);
$col = $dgh->addColumn("نوع بیمه", "insure_type", "string");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_InsureType(), "InfoID", "InfoDesc");
$dgh->addColumn("", "insure_type", "", true);
$col = $dgh->addColumn("از تاریخ", "from_date", GridColumn::ColumnType_date);
$col->editor = ColumnEditor::SHDateField();
$col->width = 100;
$col = $dgh->addColumn("تا تاریخ", "to_date", GridColumn::ColumnType_date);
$col->editor = ColumnEditor::SHDateField(true);
$col->width = 100;
$col = $dgh->addColumn("وضعیت", "status_title", "string");
$col->width = 100;
$col = $dgh->addColumn("حذف", "", "string");
$col->renderer = "PersonDependency.opDelRender";
$col->width = 100;
$dgh->addButton = true;
$dgh->addHandler = "function(v,p,r){ return PersonDependencyObject.AddDepSupport(v,p,r);}";
$dgh->title = "سوابق کفالت بستگان";