Exemplo n.º 1
0
}
$dg = new sadaf_datagrid("PGGrid", $js_prefix_address . "../data/pay_get_lists.data.php?task=" . $task, "PGDIV");
$col = $dg->addColumn("کد مرکز ", "cost_center_title", "string", true);
$col->renderer = "function(v){ return ' '; }";
$col = $dg->addColumn("نوع لیست", "list_type", "int", true);
$col->renderer = "function(v){ return ' '; }";
$col = $dg->addColumn("نوع لیست", "list_title", "string", true);
$col->renderer = "function(v){ return ' '; }";
$col = $dg->addColumn("شماره لیست", "list_id", "int");
$col->width = 100;
$col = $dg->addColumn("تاریخ", "list_date", "string");
$col->renderer = "function(v){return MiladiToShamsi(v);}";
$col->editor = ColumnEditor::SHDateField();
$col->width = 90;
$col = $dg->addColumn("مرکز هزینه", "cost_center_id", "int");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_costCenter(), "cost_center_id", "title");
$col = $dg->addColumn("وضعیت", "doc_state", "int");
$col->editor = ColumnEditor::ComboBox(manage_domains::DRP_Doc_State(), "value", "caption");
$col->width = 90;
$col = $dg->addColumn("عملیات", "", "string");
$col->renderer = "function(v,p,r){return PGList.opRender(v,p,r);}";
$col->width = 50;
$dg->addButton = true;
$dg->addHandler = "function(){PGListObject.AddPGList();}";
$dg->pageSize = "20";
$dg->EnableSearch = false;
$dg->width = 600;
$dg->height = 630;
$dg->title = $title;
$dg->autoExpandColumn = "cost_center_id";
$dg->DefaultSortField = "list_date";