$col->renderer = "function(v,p,r){return MiladiToShamsi(v) + ' - ' + MiladiToShamsi(r.data.ToDate); }"; $col->width = 140; $col = $dg->addColumn("ساعت", "StartTime"); $col->width = 60; $col->align = "center"; $col = $dg->addColumn("تا ساعت", "EndTime", ""); $col->width = 60; $col->align = "center"; $col = $dg->addColumn("توضیحات", "details", ""); $col->ellipsis = 40; $col = $dg->addColumn("عملیات", ""); $col->sortable = false; $col->renderer = "function(v,p,r){return SurveyRequests.OperationRender(v,p,r);}"; $col->width = 60; $dg->addButton("", "بایگانی درخواست", "archive", "function(){return SurveyRequestsObject.ArchiveRequest();}"); $dg->addObject('this.AllReqsObj'); $dg->height = 500; $dg->width = 750; $dg->autoExpandColumn = "details"; $dg->DefaultSortField = "ReqDate"; $dg->emptyTextOfHiddenColumns = true; $grid = $dg->makeGrid_returnObjects(); ?> <style> .infoTbl td{ padding : 4px; } </style> <center> <form id="mainForm"> <div id="newDiv"></div> <br>
$col->width = 80; $col = $dg->addColumn("ترتیب", "ordering", "string"); $col->editor = ColumnEditor::NumberField(); $col->sortable = false; $col->width = 60; $col->align = "center"; $col = $dg->addColumn("وضعیت", "IsActive", "string"); $col->editor = ColumnEditor::ComboBox(array(array("id" => "YES", "title" => 'فعال'), array("id" => 'NO', "title" => 'غیرفعال')), "id", "title"); $col->sortable = false; $col->width = 60; $col->align = "center"; $dg->addObject(' {text : "عنوان منوی اصلی : "}, {xtype: "textfield",itemId: "GroupDesc",width: 120, enableKeyEvents: true}, {xtype: "displayfield",text : "ترتیب : "}, {xtype: "textfield",itemId: "GroupOrder",width: 100, enableKeyEvents: true}, {xtype: "displayfield",text : "آیکون : "}, {xtype: "textfield",itemId: "GroupIcon",width: 100, enableKeyEvents: true}, {xtype: "hidden",itemId: "GroupID", enableKeyEvents: true}, {text : "", handler : function(){ MenuObject.EditMenu(null,null);}, iconCls: "clear"}, {text : "ذخیره منوی اصلی", handler : function(){ MenuObject.SaveGroup();}, iconCls: "save"}'); $col = $dg->addColumn("حذف", ""); $col->sortable = false; $col->renderer = "Menu.deleteRender"; $col->width = 55; $dg->enableRowEdit = true; $dg->rowEditOkHandler = "function(store,record,option){ MenuObject.SaveMenu(store,record,option);}"; $dg->height = 500; $dg->width = 750; $dg->emptyTextOfHiddenColumns = true; $dg->EnableSearch = false; $dg->EnablePaging = false;
$col = $dg->addColumn("شماره", "LetterID", ""); $col->width = 60; $col->align = "center"; $col = $dg->addColumn("موضوع نامه", "LetterTitle", ""); $col->renderer = "MyLetter.TitleRender"; if ($mode == "receive") { $col = $dg->addColumn("فرستنده", "FromPersonName", ""); } else { $col = $dg->addColumn("گیرنده", "ToPersonName", ""); } $col->width = 150; $col = $dg->addColumn("عملیات", ""); $col->renderer = "function(v,p,r){return MyLetter.OperationRender(v,p,r);}"; $col->width = 80; if ($mode == "receive") { $dg->addObject("this.deletedBtnObj"); } $dg->EnableGrouping = true; $dg->DefaultGroupField = "_SendDate"; if ($mode == "send") { $dg->groupHeaderTpl = "تاریخ ارسال : {[MiladiToShamsi(values.rows[0].data._SendDate)]}"; } else { $dg->groupHeaderTpl = "تاریخ دریافت : {[MiladiToShamsi(values.rows[0].data._SendDate)]}"; } $dg->emptyTextOfHiddenColumns = true; $dg->height = 490; $dg->width = 640; $dg->title = $mode == "send" ? "نامه های ارسالی" : "نامه های دریافتی"; $dg->DefaultSortField = "_SendDate"; $dg->autoExpandColumn = "LetterTitle"; $grid = $dg->makeGrid_returnObjects();
$col->width = 140; $col = $dgh->addColumn("ایجاد کننده", "RegPersonName"); $col->width = 110; $col = $dgh->addColumn("عنوان", "title"); $col->renderer = "function(v,p,r){ return TaskRequestObj.DescRender(v,p,r);}"; $col = $dgh->addColumn("زمان ایجاد", "CreateDate", GridColumn::ColumnType_datetime); $col->width = 120; $col = $dgh->addColumn("وضعیت", "TaskStatus"); $col->renderer = "function(v,p,r){ return TaskRequestObj.StatusRender(v,p,r);}"; $col->width = 90; $col = $dgh->addColumn("زمان اقدام", "DoneDate", GridColumn::ColumnType_datetime); $col->width = 120; $col = $dgh->addColumn("عملیات", ""); $col->renderer = "function(v,p,r){ return TaskRequestObj.OperationRender(v,p,r);}"; $col->width = 60; $dgh->addObject('this.FilterObj'); $dgh->addButton("", "ایجاد درخواست جدید", "add", "function(){TaskRequestObj.AddTask();}"); if ($_SESSION["USER"]["UserName"] == "admin") { $col = $dgh->addColumn("", ""); $col->renderer = "function(v,p,r){ return TaskRequestObj.ActionRender(v,p,r);}"; $col->width = 30; $dgh->addButton("", "اقدام کار", "send", "function(){TaskRequestObj.ActionTask();}"); } $dgh->title = "لیست درخواستهای ارسالی برای پشتیبان سیستم"; $dgh->width = 850; $dgh->DefaultSortField = "CreateDate"; $dgh->autoExpandColumn = "title"; $dgh->DefaultSortDir = "DESC"; $dgh->height = 450; $dgh->emptyTextOfHiddenColumns = true; $dgh->EnableSearch = false;
$col = $dg->addColumn("تاریخ شروع", "StartDate", GridColumn::ColumnType_date); $col->width = 70; $col = $dg->addColumn("تاریخ پایان", "EndDate", GridColumn::ColumnType_date); $col->width = 70; $col = $dg->addColumn("کارمزد", "wage"); $col->width = 40; $col->align = "center"; $col = $dg->addColumn("وضعیت", "StepDesc", ""); $col->width = 80; $col = $dg->addColumn("سند", "LocalNo", ""); $col->width = 40; $col = $dg->addColumn('عملیات', '', 'string'); $col->renderer = "WarrentyRequest.OperationRender"; $col->width = 50; $col->align = "center"; $dg->addObject("WarrentyRequestObject.FilterObj"); if ($accessObj->AddFlag) { $dg->addButton("", "ایجاد ضمانتنامه جدید", "add", "function(){WarrentyRequestObject.AddNew();}"); } $dg->emptyTextOfHiddenColumns = true; $dg->height = 500; $dg->pageSize = 15; $dg->width = 800; $dg->title = "ضمانت نامه ها"; $dg->DefaultSortField = "RequestID"; $dg->autoExpandColumn = "fullname"; $grid = $dg->makeGrid_returnObjects(); ?> <script> WarrentyRequestObject.grid = <?php echo $grid;
$col->width = 50; $col = $dg->addColumn("شعبه", "BranchName", ""); $col->width = 100; $col = $dg->addColumn("تاریخ", "ReqDate", GridColumn::ColumnType_date); $col->width = 80; $col = $dg->addColumn("مبلغ درخواست", "ReqAmount", GridColumn::ColumnType_money); $col->width = 100; $col = $dg->addColumn("معرفی کننده", "ReqFullname"); $col->width = 100; $col = $dg->addColumn("وضعیت", "StatusDesc", ""); $col->width = 100; $col = $dg->addColumn('عملیات', '', 'string'); $col->renderer = "ManageRequest.OperationRender"; $col->width = 50; $col->align = "center"; $dg->addObject("ManageRequestObject.FilterObj"); if ($accessObj->EditFlag) { $dg->addButton("", "تایید", "tick", "function(){ManageRequestObject.Confirm();}"); } $dg->emptyTextOfHiddenColumns = true; $dg->height = 500; $dg->pageSize = 15; $dg->width = 800; $dg->title = "درخواست های وام"; $dg->DefaultSortField = "ReqDate"; $dg->autoExpandColumn = "LoanFullname"; $grid = $dg->makeGrid_returnObjects(); ?> <script> ManageRequestObject.grid = <?php echo $grid;
require_once 'ManagePlans.js.php'; $portal = isset($_SESSION["USER"]["portal"]) ? true : false; $expert = isset($_REQUEST["expert"]) ? true : false; $dg = new sadaf_datagrid("dg", $js_prefix_address . "plan.data.php?task=SelectAllPlans" . ($expert ? "&expert=true" : ""), "grid_div"); $dg->addColumn("", "StepID", "", true); $col = $dg->addColumn("شماره", "PlanID", ""); $col->width = 50; $col = $dg->addColumn("عنوان طرح", "PlanDesc", ""); $col = $dg->addColumn("تاریخ درخواست", "RegDate", GridColumn::ColumnType_date); $col->width = 110; $col = $dg->addColumn("درخواست کننده", "ReqFullname"); $col->width = 150; $col = $dg->addColumn("وضعیت", "StepDesc", ""); $col->width = 100; if (!$portal && !$expert) { $dg->addObject('ManagePlanObject.AllPlansObj'); if ($accessObj->RemoveFlag) { $col = $dg->addColumn('حذف', '', 'string'); $col->renderer = "ManagePlan.DeleteRender"; $col->width = 40; $col->align = "center"; } } else { if ($portal) { $col = $dg->addColumn('طرح', '', 'string'); $col->renderer = "ManagePlan.PlanInfoRender"; $col->width = 40; $col->align = "center"; } } $col = $dg->addColumn('سابقه', '', 'string');
require_once inc_dataReader; //................ GET ACCESS ..................... $accessObj = FRW_access::GetAccess($_POST["MenuID"]); //................................................... $dg = new sadaf_datagrid("dg", $js_prefix_address . "deposite.data.php?task=selectDeposites", "grid_div", "mainForm"); $dg->addColumn("", "CostID", "", true); $col = $dg->addColumn('<input type=checkbox onclick=Deposite.CheckAll(this)>', "TafsiliID", ""); $col->renderer = "Deposite.SelectRender"; $col->sortable = false; $col = $dg->addColumn("حساب", "CostDesc"); $col->width = 200; $col = $dg->addColumn("تفصیلی", "TafsiliDesc"); $col = $dg->addColumn("مبلغ", "amount", GridColumn::ColumnType_money); $col->width = 100; if ($accessObj->EditFlag) { $dg->addObject("this.OperationObj"); } $dg->emptyTextOfHiddenColumns = true; $dg->height = 400; $dg->width = 800; $dg->title = "سپرده های کوتاه مدت و بلند مدت"; $dg->DefaultSortField = "amount"; $dg->DefaultSortDir = "Desc"; $dg->autoExpandColumn = "TafsiliDesc"; $grid = $dg->makeGrid_returnObjects(); ?> <script> Deposite.prototype = { TabID : '<?php echo $_REQUEST["ExtTabID"];
$dg->addColumn("", "_MsgDate", "", true); $dg->addColumn("", "MsgDate", "", true); $col = $dg->addColumn("عنوان پیغام", "MsgTitle", ""); //$col->renderer = "MyMessage.TitleRender"; $col->width = 150; $col = $dg->addColumn("متن پیغام", "MsgDesc", ""); $col->ellipsis = 200; $col = $dg->addColumn("فرستنده", "FromPersonName", ""); $col->renderer = "MyMessage.SenderRender"; $col->width = 150; $col = $dg->addColumn("گیرنده", "ToPersonName", ""); $col->width = 150; $col = $dg->addColumn("عملیات", ""); $col->renderer = "function(v,p,r){return MyMessage.OperationRender(v,p,r);}"; $col->width = 80; $dg->addObject("this.FilterObj"); $dg->addObject("this.DeletedObj"); $dg->addButton("", "ارسال پیام", "add", "function(){MyMessageObject.NewMessage();}"); $dg->EnableGrouping = true; $dg->DefaultGroupField = "_MsgDate"; $dg->groupHeaderTpl = "تاریخ پیغام : {[MiladiToShamsi(values.rows[0].data.MsgDate)]}"; $dg->EnableSearch = false; $dg->emptyTextOfHiddenColumns = true; $dg->height = 490; $dg->width = 780; $dg->title = "پیام های دریافتی"; $dg->DefaultSortField = "MsgDate"; $dg->autoExpandColumn = "MsgDesc"; $grid = $dg->makeGrid_returnObjects(); ?> <script>
$col->renderer = "function(v){return (v=='YES') ? '٭' : '';}"; $col->align = "center"; $col->width = 35; $col = $dg->addColumn("<font style=font-size:10px>سرمایه گذار</font>", "IsAgent", "string"); $col->renderer = "function(v){return (v=='YES') ? '٭' : '';}"; $col->align = "center"; $col->width = 35; $col = $dg->addColumn("<font style=font-size:10px>حامی</font>", "IsSupporter", "string"); $col->renderer = "function(v){return (v=='YES') ? '٭' : '';}"; $col->align = "center"; $col->width = 35; $col = $dg->addColumn("<font style=font-size:10px>کارشناس</font>", "IsExpert", "string"); $col->renderer = "function(v){return (v=='YES') ? '٭' : '';}"; $col->align = "center"; $col->width = 35; $dg->addObject("PersonObject.FilterObj"); if ($accessObj->AddFlag) { $dg->addButton = true; $dg->addHandler = "function(){PersonObject.Adding();}"; } if ($accessObj->EditFlag) { $dg->addButton("", "تایید", "tick", "function(){PersonObject.Confirm();}"); $col = $dg->addColumn("", "", ""); $col->renderer = "Person.editRender"; $col->sortable = false; $col->width = 40; } if ($accessObj->RemoveFlag) { $col = $dg->addColumn("حذف", "personID", ""); $col->renderer = "Person.deleteRender"; $col->sortable = false;