$col->editor = ColumnEditor::SHDateField(); $col->align = "center"; $col = $dg->addColumn("مبلغ پرداخت", "PayAmount", GridColumn::ColumnType_money); $col->editor = ColumnEditor::CurrencyField(); $col->width = 120; $col->align = "center"; if (isset($_SESSION["USER"]["framework"])) { $col = $dg->addColumn("شماره سند حسابداری", "LocalNo"); $col->align = "center"; $col->renderer = "function(v,p,r){return PartPayment.DocRender(v,p,r);}"; $col->width = 120; } if ($editable && $accessObj->AddFlag) { $dg->enableRowEdit = true; $dg->rowEditOkHandler = "function(store,record){return PartPaymentObject.SavePartPayment(record);}"; $dg->addButton("AddBtn", "ایجاد ردیف پرداخت", "add", "function(){PartPaymentObject.AddPay();}"); if ($accessObj->RemoveFlag) { $col = $dg->addColumn("حذف", ""); $col->sortable = false; $col->renderer = "function(v,p,r){return PartPayment.DeleteRender(v,p,r);}"; $col->width = 35; } } $dg->emptyTextOfHiddenColumns = true; $dg->height = 270; $dg->width = 410; $dg->EnableSearch = false; $dg->EnablePaging = false; $dg->DefaultSortField = "PayDate"; $dg->DefaultSortDir = "ASC"; $grid = $dg->makeGrid_returnObjects();
$col = $dg->addColumn("تاریخ مورد نظر", "FromDate"); $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">
$editable = true; $dg = new sadaf_datagrid("dg", $js_prefix_address . "letter.data.php?task=GetLetterNotes&LetterID=" . $LetterID, "grid_div"); $dg->addColumn("", "NoteID", "", true); $dg->addColumn("", "LetterID", "", true); $col = $dg->addColumn("عنوان یادداشت", "NoteTitle"); $col->editor = ColumnEditor::TextField(); $col->width = 200; $col = $dg->addColumn("شرح", "NoteDesc"); $col->editor = ColumnEditor::TextField(); $col = $dg->addColumn("یادآوری", "ReminderDate", GridColumn::ColumnType_date); $col->editor = ColumnEditor::SHDateField(true); $col->width = 110; if ($editable) { $dg->enableRowEdit = true; $dg->rowEditOkHandler = "function(store,record){return LetterNoteObject.SaveLetterNote(record);}"; $dg->addButton("AddBtn", "ایجاد یادداشت جدید", "add", "function(){LetterNoteObject.Add();}"); $col = $dg->addColumn("حذف", ""); $col->sortable = false; $col->renderer = "function(v,p,r){return LetterNote.DeleteRender(v,p,r);}"; $col->width = 35; } $dg->autoExpandColumn = "NoteDesc"; $dg->emptyTextOfHiddenColumns = true; $dg->height = 410; $dg->width = 750; $dg->EnableSearch = false; $dg->EnablePaging = false; $dg->DefaultSortField = "NoteDesc"; $dg->DefaultSortDir = "ASC"; $grid = $dg->makeGrid_returnObjects(); ?>
$dg->addColumn("", "ObjectID", "", true); $dg->addColumn("", "IsConfirm", "", true); $col = $dg->addColumn("مدرک", "DocType", ""); $col->editor = ColumnEditor::ComboBox(PdoDataAccess::runquery("select * from BaseInfo where typeID=8"), "InfoID", "InfoDesc"); $col->width = 140; $col = $dg->addColumn("توضیح", "DocDesc", ""); $col->editor = ColumnEditor::TextField(true); $col = $dg->addColumn("فایل", "FileType", ""); $col->renderer = "function(v,p,r){return PersonalInfo.FileRender(v,p,r)}"; $col->editor = "this.FileCmp"; $col->align = "center"; $col->width = 100; $col = $dg->addColumn("عملیات", "", ""); $col->renderer = "function(v,p,r){return PersonalInfo.OperationRender(v,p,r)}"; $col->width = 60; $dg->addButton("", "اضافه مدرک", "add", "function(){PersonalInfoObject.AddDocument();}"); $dg->enableRowEdit = true; $dg->rowEditOkHandler = "function(){return PersonalInfoObject.SaveDocument();}"; $dg->emptyTextOfHiddenColumns = true; $dg->height = 330; $dg->width = 690; $dg->EnableSearch = false; $dg->EnablePaging = false; $dg->DefaultSortField = "DocTypeDesc"; $dg->autoExpandColumn = "DocDesc"; $grid = $dg->makeGrid_returnObjects(); require_once 'PersonInfo.js.php'; ?> <br> <center> <div id="mainForm"><div>
$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->editor = "AccDocsObject.ChequeStatusCombo"; $col->renderer = "function(v,p,r){return r.data.StatusTitle}"; $col->width = 80; if ($accessObj->RemoveFlag) { $col = $dgh->addColumn("حذف", "", "string"); $col->renderer = "AccDocsObject.check_deleteRender"; $col->width = 50; $col->align = "center"; } if ($accessObj->AddFlag) { $dgh->addButton = true; $dgh->addHandler = "function(v,p,r){ return AccDocsObject.check_Add(v,p,r);}"; } $dgh->enableRowEdit = true; $dgh->rowEditOkHandler = "function(v,p,r){ return AccDocsObject.check_Save(v,p,r);}"; $dgh->addButton("", "چاپ چک", "print", "function(){ return AccDocsObject.printCheck();}"); $dgh->addColumn("", "CheckStatus", "", true); $dgh->addColumn("", "PrintPage1", "", true); $dgh->addColumn("", "PrintPage2", "", true); $dgh->width = 780; $dgh->DefaultSortField = "DocChequeID"; $dgh->autoExpandColumn = "description"; $dgh->emptyTextOfHiddenColumns = true; $dgh->DefaultSortDir = "ASC"; $dgh->height = 315; $dgh->EnableSearch = false; $dgh->EnablePaging = false; $checksgrid = $dgh->makeGrid_returnObjects(); //----------------------------------------- $whereParam = array(":cid" => $_SESSION["accounting"]["CycleID"], ":b" => $_SESSION["accounting"]["BranchID"]); $dt = PdoDataAccess::runquery("select ifnull(count(*),0) from ACC_docs where CycleID=:cid AND BranchID=:b", $whereParam);
$dg->width = 400; $dg->height = 500; $dg->pageSize = 10; $dg->autoExpandColumn = "UserID"; $dg->title = "لیست کاربران سیستم"; $gridUsers = $dg->makeGrid_returnObjects(); //------------------------------------------------------------------------------ $dg2 = new sadaf_datagrid("dg2", $js_prefix_address . "../data/access.data.php?task=selectCostCenters", "div_grid2", "form_costCenterAccess"); $dg2->addColumn("", "cost_center_id", "", true); $dg2->addColumn("مرکز هزینه", "title"); $col = $dg2->addColumn('<input type="checkbox" onclick="CostCenterAccessObject.checkAll(this);">انتخاب', "access"); $col->renderer = "CostCenterAccess.accessRender"; $col->width = 60; $col->sortable = false; $col->align = "center"; $dg2->addButton("", "ذخیره دسترسی های مراکز هزینه", "save", "function(){CostCenterAccessObject.SaveAccess();}"); $dg2->notRender = true; $dg2->width = 350; $dg2->height = 500; $dg2->title = "لیست مراکز هزینه"; $dg2->autoExpandColumn = "title"; $dg2->EnableSearch = false; $dg2->EnablePaging = false; $gridCostCenters = $dg2->makeGrid_returnObjects(); ?> <script> CostCenterAccess.prototype.afterLoad = function() { this.UsersGrid = <?php echo $gridUsers; ?>
$dgh->addColumn("", "MessageID", "", true); $dgh->addColumn("", "DoneDesc", "", true); $dgh->addColumn("", "DoneDate", "", true); $dgh->addColumn("", "RequestID", "", true); $col = $dgh->addColumn("شرح", "details"); $col->renderer = "function(v,p,r){ return LoanMessagesObj.DescRender(v,p,r);}"; $col->editor = ColumnEditor::TextField(); $col = $dgh->addColumn("زمان ایجاد", "CreateDate", GridColumn::ColumnType_datetime); $col->width = 120; $col = $dgh->addColumn("وضعیت", "MsgStatus"); $col->renderer = "function(v,p,r){ return LoanMessagesObj.StatusRender(v,p,r);}"; $col->width = 90; $col = $dgh->addColumn("زمان اقدام", "DoneDate", GridColumn::ColumnType_datetime); $col->width = 120; if (isset($_SESSION["USER"]["portal"]) && $accessObj->AddFlag) { $dgh->addButton("", "ایجاد پیام جدید", "add", "function(){LoanMessagesObj.AddMessage();}"); $dgh->enableRowEdit = true; $dgh->rowEditOkHandler = "function(store,record){return LoanMessagesObj.SaveMessage(record);}"; $col = $dgh->addColumn("عملیات", ""); $col->renderer = "function(v,p,r){ return LoanMessagesObj.OperationRender(v,p,r);}"; $col->width = 60; } if (isset($_SESSION["USER"]["framework"])) { $col = $dgh->addColumn("", ""); $col->renderer = "function(v,p,r){ return LoanMessagesObj.ActionRender(v,p,r);}"; $col->width = 30; } $dgh->width = 700; $dgh->DefaultSortField = "CreateDate"; $dgh->autoExpandColumn = "details"; $dgh->DefaultSortDir = "DESC";
$col = $dg->addColumn("عنوان کامل واحد سازمانی", "full_unit_title"); $col = $dg->addColumn("رسته", "jobCategory"); $dg->addColumn("", "parent_path", "", true); //..................................................... $dg->addButton = true; $dg->addHandler = "AddPost"; $col = $dg->addColumn("ویرایش", ""); $col->renderer = "GridEdit"; $col->width = 30; $col = $dg->addColumn("حذف", ""); $col->renderer = "GridRemove"; $col->width = 30; $col = $dg->addColumn("زیر پست ها", ""); $col->renderer = "subPostRender"; $col->width = 30; $dg->addButton("back", "برگشت", "undo", "back"); $dg->title = "پست های سازمانی"; $dg->DefaultSortField = "post_id"; $dg->primaryKey = "post_id"; $dg->width = 900; $dg->height = 500; $dg->makeGrid(); ?> <body dir="rtl"> <form id="mainForm"> <input type="hidden" id="CurrentPost" name="CurrentPost"> </form> <table align="center" width="750px"> <tr> <td valign="top" style="padding-right: 5px" align="center"> <!-- -------------------------------------------- -->
$col = $dg->addColumn("صاحب چک", "fullname", ""); $col = $dg->addColumn("حساب", "CostDesc"); $col->width = 100; $col = $dg->addColumn("شماره چک", "ChequeNo"); $col->renderer = "IncomeCheque.ChequeNoRender"; $col->width = 70; $col = $dg->addColumn("تاریخ چک", "ChequeDate", GridColumn::ColumnType_date); $col->width = 80; $col = $dg->addColumn("مبلغ چک", "ChequeAmount", GridColumn::ColumnType_money); $col->width = 80; $col = $dg->addColumn("وضعیت چک", "ChequeStatusDesc", ""); $col->width = 80; $col = $dg->addColumn("اسناد", "docs", ""); $col->width = 80; if ($accessObj->EditFlag) { $dg->addButton("", "اضافه چک", "add", "function(){IncomeChequeObject.AddCheque();}"); $dg->addButton("", "اضافه چکهای اقساط", "add", "function(){IncomeChequeObject.AddLoanCheque();}"); $dg->addButton("", "تغییر وضعیت چک", "refresh", "function(){IncomeChequeObject.beforeChangeStatus();}"); $dg->addButton("", "برگشت عملیات", "undo", "function(){IncomeChequeObject.ReturnLatestOperation();}"); } if ($accessObj->RemoveFlag) { $col = $dg->addColumn('حذف', '', 'string'); $col->renderer = "IncomeCheque.DeleteRender"; $col->width = 40; $col->align = "center"; } $col = $dg->addColumn("", "", ""); $col->renderer = "IncomeCheque.HistoryRender"; $col->width = 40; $dg->emptyTextOfHiddenColumns = true; $dg->height = 400;
$dg->addColumn("", "BankDesc", "", true); $dg->addColumn("", "ChequeBranch", "", true); $col = $dg->addColumn("سررسید", "InstallmentDate", GridColumn::ColumnType_date); $col->editor = ColumnEditor::SHDateField(); $col->width = 80; $col = $dg->addColumn("مبلغ قسط", "InstallmentAmount", GridColumn::ColumnType_money); $col->editor = ColumnEditor::CurrencyField(); $col = $dg->addColumn("مبلغ جریمه", "ForfeitAmount", GridColumn::ColumnType_money); $col->width = 80; $col = $dg->addColumn("مانده", "TotalRemainder", GridColumn::ColumnType_money); $col->width = 120; $col = $dg->addColumn("وضعیت تمدید", "IsDelayed"); $col->renderer = "function(v,p,r){ return v == 'YES' ? 'تمدید شده' : '';}"; $col->width = 120; if ($editable && $accessObj->EditFlag) { $dg->addButton("cmp_computeInstallment", "محاسبه اقساط", "list", "function(){InstallmentObject.ComputeInstallments();}"); $dg->enableRowEdit = true; $dg->rowEditOkHandler = "function(store,record){return InstallmentObject.SaveInstallment(store,record);}"; $dg->addButton("", "تمدید اقساط", "delay", "function(){InstallmentObject.DelayInstallments();}"); } $dg->addButton("cmp_report", "گزارش پرداخت", "report", "function(){InstallmentObject.PayReport();}"); $dg->height = 377; $dg->width = 755; $dg->emptyTextOfHiddenColumns = true; $dg->EnableSearch = false; $dg->HeaderMenu = false; $dg->EnablePaging = false; $dg->DefaultSortField = "InstallmentDate"; $dg->DefaultSortDir = "ASC"; $dg->title = "جدول اقساط"; $dg->autoExpandColumn = "InstallmentAmount";
$col->width = 120; $col = $dg->addColumn("درخواست", "ReqType", ""); $col->width = 100; $col->renderer = "TrafficReq.ReqTypeRender"; $col = $dg->addColumn("تاریخ مورد نظر", "FromDate"); $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"; $dg->addColumn("توضیحات", "details", ""); if ($accessObj->AddFlag) { $dg->addButton("", "ایجاد درخواست جدید", "add", "function(){TrafficReqObject.BeforeAddRequest('new');}"); } $dg->height = 500; $dg->width = 750; $dg->EnablePaging = false; $dg->DefaultSortField = "ReqDate"; $dg->autoExpandColumn = "details"; $dg->emptyTextOfHiddenColumns = true; $col = $dg->addColumn("عملیات", ""); $col->sortable = false; $col->renderer = "function(v,p,r){return TrafficReq.OperationRender(v,p,r);}"; $col->width = 50; $grid = $dg->makeGrid_returnObjects(); ?> <center> <form id="mainForm">
require_once '../header.inc.php'; require_once inc_dataGrid; //................ GET ACCESS ..................... $accessObj = FRW_access::GetAccess($_POST["MenuID"]); //................................................... $dg = new sadaf_datagrid("dg", $js_prefix_address . "templates.data.php?task=SelectTemplates", "div_dg"); $dg->addColumn("شماره الگو", "TemplateID"); $dg->addColumn("عنوان", "TemplateTitle"); if ($accessObj->RemoveFlag) { $col = $dg->addColumn("حذف", "TemplateID"); $col->sortable = false; $col->renderer = "function(v,p,r){return Templates.OperationRender(v,p,r);}"; $col->width = 40; } if ($accessObj->AddFlag) { $dg->addButton("", "ایجاد الگوی جدید", "add", "function(){TemplatesObject.ShowNewTemplateForm();}"); $dg->addButton("", "کپی الگو", "copy", "function(){TemplatesObject.copyTemplate();}"); } $dg->title = "لیست الگوهای قرارداد"; $dg->DefaultSortField = "TemplateID"; $dg->emptyTextOfHiddenColumns = true; $dg->DefaultSortDir = "desc"; $dg->autoExpandColumn = "TemplateTitle"; $dg->width = 780; $dg->height = 400; $dg->pageSize = 15; $grid = $dg->makeGrid_returnObjects(); ?> <script> Templates.prototype = {
$col = $dg->addColumn('نوع فرم', "FormName", "string"); $col = $dg->addColumn('تاریخ ایجاد', "regDate", "string"); $col->renderer = "function(v){return MiladiToShamsi(v);}"; $col->width = 50; $dg->addColumn('', "reference", "string", true); $col = $dg->addColumn('آیتم وابسته', "referenceID", "string"); $col->renderer = "referenceRender"; $col = $dg->addColumn('وضعیت', "StepTitle", "string"); $dg->addColumn('', "StepID", "string", true); //--------------------------- $col = $dg->addColumn("عملیات", "", ""); $col->renderer = "operationRender"; $col->sortable = false; $col->width = 30; //--------------------------- $dg->addButton("Add", "ایجاد", "add", "AddingAction"); $dg->height = 400; $dg->title = "فرم های ایجاد شده"; $dg->width = 700; $dg->DefaultSortField = "regDate"; $dg->DefaultSortDir = "asc"; $dg->makeGrid(); //..................................................... $drp_forms = FormGenerator::Drp_AllForms("FormsList", "---", "changeForm"); //..................................................... ?> <script type="text/javascript"> var forms_EXTData = <?php echo common_component::PHPArray_to_JSArray(dataAccess::RUNQUERY("select * from fm_forms order by FormName"), "FormName", "FormID", "reference"); ?> ;
$dg->DefaultSortDir = "ASC"; $grid = $dg->makeGrid_returnObjects(); //.............................................................................. $dg = new sadaf_datagrid("dg", $js_prefix_address . "saving.data.php?task=GetRulePeriods", "grid_div"); $dg->addColumn("", "RuleID", "", true); $dg->addColumn("", "RowID", "", true); $col = $dg->addColumn("تعداد ماه دوره", "months"); $col->editor = ColumnEditor::NumberField(); $col->align = "center"; $col = $dg->addColumn("تعداد اقساط", "InstallmentCount"); $col->editor = ColumnEditor::NumberField(); $col->align = "center"; if ($accessObj->AddFlag) { $dg->enableRowEdit = true; $dg->rowEditOkHandler = "function(store,record){return SavingRuleObject.SavePeriod(record);}"; $dg->addButton("AddBtn", "ایجاد", "add", "function(){SavingRuleObject.AddPeriod();}"); } if ($accessObj->RemoveFlag) { $col = $dg->addColumn("حذف", ""); $col->sortable = false; $col->renderer = "SavingRule.PeriodDeleteRender"; $col->width = 35; } $dg->emptyTextOfHiddenColumns = true; $dg->height = 300; $dg->width = 300; $dg->EnableSearch = false; $dg->EnablePaging = false; $dg->DefaultSortField = "months"; $dg->DefaultSortDir = "ASC"; $grid2 = $dg->makeGrid_returnObjects();
$col->width = 80; $col->editor = ColumnEditor::TextField(); $CHK_status = array(array('val' => 'YES', 'name' => ' فعال'), array('val' => 'NO', 'name' => 'غیر فعال')); $col = $ChequeBook_Grid->addColumn('وضعیت', 'IsActive', GridColumn::ColumnType_string); $col->editor = ColumnEditor::ComboBox($CHK_status, 'val', 'name'); $col->width = 80; if ($accessObj->AddFlag) { $ChequeBook_Grid->addButton = true; $ChequeBook_Grid->addHandler = "function(){return AccountObj.NewRowCheque();}"; } $ChequeBook_Grid->enableRowEdit = true; $ChequeBook_Grid->rowEditOkHandler = "function(){return AccountObj.SaveChequeData();}"; $col = $ChequeBook_Grid->addColumn('عملیات', '', 'string'); $col->renderer = "Account.RemoveCheque"; $col->width = 50; $ChequeBook_Grid->addButton("", "تنظیم چاپ چک", "print", "function(){return AccountObj.SetChequePrint();}"); $ChequeBook_Grid->title = "تعریف دسته چک"; $ChequeBook_Grid->EnableRowNumber = true; $ChequeBook_Grid->width = 600; $ChequeBook_Grid->height = 450; $ChequeBook_Grid->autoExpandColumn = 'SerialNo'; $ChequeBook_Grid->pageSize = 20; $ChequeBook_Grid->disableChangePageSize = true; $ChequeBook_Grid->EnableSearch = false; $GCheque = $ChequeBook_Grid->makeGrid_returnObjects(); ?> <script type="text/javascript"> AccountObj.grid=<?php echo $GBank; ?>
require_once '../header.inc.php'; require_once 'config.inc.php'; require_once inc_dataGrid; require_once 'operations.js.php'; $dg = new sadaf_datagrid("dg", $js_prefix_address . "operation.data.php?task=SelectOperations", "grid_div"); $dg->addColumn("", "OperationID", "", true); $col = $dg->addColumn("تاریخ عملیات", "OperationDate", GridColumn::ColumnType_datetime); $col->width = 120; $col = $dg->addColumn("شرح", "title"); $col = $dg->addColumn("نوع ارسال", "SendType", ""); $col->width = 80; $col = $dg->addColumn('لیست افراد', '', 'string'); $col->renderer = "NTC_Operation.OperationRender"; $col->width = 70; $col->align = "center"; $dg->addButton("", "ایجاد", "add", "function(){NTC_OperationObject.AddNew();}"); $dg->emptyTextOfHiddenColumns = true; $dg->EnableSearch = false; $dg->height = 500; $dg->pageSize = 15; $dg->width = 800; $dg->title = "ارتباط با ذینفعان"; $dg->DefaultSortField = "OperationDate"; $dg->autoExpandColumn = "title"; $grid = $dg->makeGrid_returnObjects(); //------------------------------------------------------------------- $dg = new sadaf_datagrid("dg", $js_prefix_address . "operation.data.php?task=SelectPersons", "grid_div"); $col = $dg->addColumn("", "RowID", "", true); $col = $dg->addColumn("", "IsSuccess", "", true); $col = $dg->addColumn("PID", "PersonID"); $col->width = 70;
$dg->addColumn("", "CostCodeDesc", "", true); $col = $dg->addColumn("شرح هزینه", "CostDesc"); $col->editor = ColumnEditor::TextField(); $col = $dg->addColumn("کد حساب", "CostCodeID"); $col->renderer = "function(v,p,r){ return '[ ' + r.data.CostCode + ' ] ' + r.data.CostCodeDesc;}"; $col->editor = "this.CostCodeCombo"; $col->width = 150; $col = $dg->addColumn("مبلغ", "CostAmount", GridColumn::ColumnType_money); $col->editor = ColumnEditor::CurrencyField(); $col->width = 100; $col = $dg->addColumn("ماهیت", "CostType"); $col->editor = ColumnEditor::ComboBox(array(array("id" => 'DEBTOR', "title" => 'بدهکار'), array("id" => "CREDITOR", 'title' => "بستانکار")), "id", "title"); $col->width = 100; $dg->enableRowEdit = true; $dg->rowEditOkHandler = "function(store,record){return WarrentyCostObject.SaveCost(record);}"; $dg->addButton("AddBtn", "ایجاد ردیف هزینه", "add", "function(){WarrentyCostObject.AddCost();}"); $col = $dg->addColumn("حذف", ""); $col->sortable = false; $col->renderer = "function(v,p,r){return WarrentyCost.DeleteRender(v,p,r);}"; $col->width = 35; $dg->height = 336; $dg->width = 585; $dg->emptyTextOfHiddenColumns = true; $dg->EnableSearch = false; $dg->HeaderMenu = false; $dg->EnablePaging = false; $dg->DefaultSortField = "CostID"; $dg->DefaultSortDir = "ASC"; $dg->autoExpandColumn = "CostDesc"; $grid = $dg->makeGrid_returnObjects(); ?>
$dg->addColumn("شرح سند", "description", ""); $col = $dg->addColumn("شرح ردیف", "details", ""); $col->width = 200; $col = $dg->addColumn("تاریخ سند", "DocDate", GridColumn::ColumnType_date); $col = $dg->addColumn("برداشت", "DebtorAmount", GridColumn::ColumnType_money); $col->width = 110; $col->summaryType = GridColumn::SummeryType_sum; $col->summaryRenderer = "function(v){return Ext.util.Format.Money(v);}"; $col->align = "center"; $col = $dg->addColumn("واریز", "CreditorAmount", GridColumn::ColumnType_money); $col->width = 110; $col->summaryType = GridColumn::SummeryType_sum; $col->summaryRenderer = "function(v){return Ext.util.Format.Money(v);}"; $col->align = "center"; if ($accessObj->AddFlag) { $dg->addButton("", "واریز وجه", "arrow_down", "function(){InOutAccountObject.BeforeOperation(1);}"); $dg->addButton("", "برداشت وجه", "arrow_up", "function(){InOutAccountObject.BeforeOperation(-1);}"); } $dg->EnableSummaryRow = true; $dg->emptyTextOfHiddenColumns = true; $dg->height = 280; $dg->width = 780; $dg->EnableSearch = false; $dg->EnablePaging = false; $dg->DefaultSortField = "DocDate"; $dg->DefaultSortDir = "ASC"; $dg->autoExpandColumn = "description"; $grid = $dg->makeGrid_returnObjects(); ?> <script type="text/javascript">
// Date : 95.01 //----------------------------- require_once '../header.inc.php'; require_once "ReportGenerator.class.php"; require_once '../request/request.data.php'; require_once inc_dataGrid; $dg = new sadaf_datagrid("dg", $js_prefix_address . "../request/request.data.php?task=GetEndedRequests", "grid_div"); $dg->addColumn("", "PartID", "", true); $col = $dg->addColumn("کد وام", "RequestID", ""); $col->width = 50; $col = $dg->addColumn("وام گیرنده", "LoanPersonName"); $col = $dg->addColumn("تاریخ درخواست", "ReqDate", GridColumn::ColumnType_date); $col->width = 120; $col = $dg->addColumn("مانده", "TotalRemainder", GridColumn::ColumnType_money); $col->width = 100; $dg->addButton("", "گزارش پرداخت", "report", "function(){LoanReport_EndedRequestsObj.PayReport();}"); $dg->height = 377; $dg->width = 850; $dg->emptyTextOfHiddenColumns = true; $dg->EnableSearch = false; $dg->HeaderMenu = false; $dg->DefaultSortField = "ReqDate"; $dg->DefaultSortDir = "ASC"; $dg->title = "وام های پرداخت شده"; $dg->autoExpandColumn = "LoanPersonName"; $grid = $dg->makeGrid_returnObjects(); ?> <script> LoanReport_EndedRequests.prototype = { TabID : '<?php echo $_REQUEST["ExtTabID"];
$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; ?> ;
die; } $dg = new sadaf_datagrid("dg", $js_prefix_address . "../request/request.data.php?task=GetDelayedInstallments", "grid_div"); $dg->addColumn("", "PartID", "", true); $col = $dg->addColumn("کد وام", "RequestID", ""); $col->width = 50; $col = $dg->addColumn("وام گیرنده", "LoanPersonName"); $col = $dg->addColumn("سررسید", "InstallmentDate", GridColumn::ColumnType_date); $col->width = 80; $col = $dg->addColumn("تاخیر", "ForfeitDays", GridColumn::ColumnType_date); $col->width = 80; $col = $dg->addColumn("مبلغ قسط", "InstallmentAmount", GridColumn::ColumnType_money); $col->width = 150; $col = $dg->addColumn("قابل پرداخت", "remainder", GridColumn::ColumnType_money); $col->width = 100; $dg->addButton("", "گزارش پرداخت", "report", "function(){LoanReport_DelayedInstallmentsObj.PayReport();}"); $dg->height = 377; $dg->width = 850; $dg->emptyTextOfHiddenColumns = true; $dg->addButton("", "چاپ", "print", "LoanReport_DelayedInstallments.print"); $dg->addButton("", "خروجی excel جهت ارتباط با ذینفعان", "excel", "LoanReport_DelayedInstallments.excel"); $dg->HeaderMenu = false; $dg->DefaultSortField = "InstallmentDate"; $dg->DefaultSortDir = "DESC"; $dg->title = "اقساط معوق"; $dg->autoExpandColumn = "LoanPersonName"; $grid = $dg->makeGrid_returnObjects(); ?> <script> LoanReport_DelayedInstallments.prototype = { TabID : '<?php
$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; $dgh->pageSize = 15;
$col = $dg->addColumn("الگو", "TemplateTitle"); $col->width = 150; $dg->addColumn("", "RegPersonID", "", true); $col = $dg->addColumn("تاریخ شروع", "StartDate", GridColumn::ColumnType_date); $col->width = 80; $col = $dg->addColumn("تاریخ پایان", "EndDate", GridColumn::ColumnType_date); $col->width = 80; $col = $dg->addColumn("طرف قرارداد", "PersonFullname"); $col->ellipsis = 60; $col = $dg->addColumn("وضعیت تایید", "StepDesc"); $col = $dg->addColumn("وضعیت", "StatusDesc"); $col = $dg->addColumn("", "TemplateID"); $col->renderer = "ManageContractsObj.OperationRender"; $col->width = 30; if ($accessObj->AddFlag) { $dg->addButton("", "ایجاد قرارداد", "add", "function(){ManageContractsObj.AddContract();}"); } $dg->title = "لیست قراردادها"; $dg->DefaultSortField = "ContractID"; $dg->DefaultSortDir = "desc"; $dg->autoExpandColumn = "PersonFullname"; $dg->width = 780; $dg->height = 500; $dg->pageSize = 10; $grid = $dg->makeGrid_returnObjects(); ?> <script> ManageContractsObj = new ManageContracts(); ManageContractsObj.grid = <?php echo $grid; ?>
$col->renderer = "function(v,p,r){return r.data.PostName}"; $col->editor = "FGR_FormObject.PostCombo"; $col->width = 150; $col = $dg->addColumn('مهلت (روز)', "BreakDuration", "string"); $col->editor = ColumnEditor::NumberField(); $col->width = 70; //--------------------------- $col = $dg->addColumn('بالا', "", "string"); $col->renderer = "FGR_Form.UPRender"; $col->sortable = false; $col->width = 30; $col = $dg->addColumn('پایین', "", "string"); $col->renderer = "FGR_Form.DOWNRender"; $col->sortable = false; $col->width = 30; $dg->addButton("", "ایجاد مرحله", "add", "function(){FGR_FormObject.AddStep()}"); $dg->addButton("", "بازگشت", "undo", "function(){FGR_FormObject.Return('stepsWin')}"); $col = $dg->addColumn("حذف", "", ""); $col->renderer = "FGR_Form.DeleteStepRender"; $col->sortable = false; $col->width = 40; $dg->enableRowEdit = true; $dg->rowEditOkHandler = "function(store,record){return FGR_FormObject.SaveStep(store,record);}"; $dg->height = 300; $dg->width = 750; $dg->DefaultSortField = "ordering"; $dg->emptyTextOfHiddenColumns = true; $dg->DefaultSortDir = "ASC"; $dg->autoExpandColumn = "StepTitle"; $dg->EnablePaging = false; $dg->EnableSearch = false;
$dg->addColumn("", "EventTypeDesc", "", true); $col = $dg->addColumn("شرح رویداد", "EventTitle"); $col->editor = ColumnEditor::TextField(); $col = $dg->addColumn("تاریخ رویداد", "EventDate", GridColumn::ColumnType_date); $col->editor = ColumnEditor::SHDateField(); $col->width = 100; $col = $dg->addColumn("ثبت کننده", "RegFullname"); $col->width = 120; $col = $dg->addColumn("شماره نامه", "LetterID"); $col->renderer = "LoanEvent.LetterRender"; $col->editor = ColumnEditor::NumberField(true); $col->width = 100; if ($accessObj->AddFlag) { $dg->enableRowEdit = true; $dg->rowEditOkHandler = "function(store,record){return LoanEventObject.SaveEvent(record);}"; $dg->addButton("AddBtn", "ایجاد رویداد", "add", "function(){LoanEventObject.AddEvent();}"); } if ($accessObj->RemoveFlag) { $col = $dg->addColumn("حذف", ""); $col->sortable = false; $col->renderer = "function(v,p,r){return LoanEvent.DeleteRender(v,p,r);}"; $col->width = 35; } $dg->height = 336; $dg->width = 585; $dg->emptyTextOfHiddenColumns = true; $dg->EnableSearch = false; $dg->HeaderMenu = false; $dg->EnablePaging = false; $dg->DefaultSortField = "EventDate"; $dg->DefaultSortDir = "ASC";
$dg->addColumn("", "WageReturn", "", true); $dg->addColumn("", "DelayReturn", "", true); $dg->addColumn("", "imp_VamCode", "", true); $dg->addColumn("", "PayCompute", "", true); $dg->addColumn("", "MaxFundWage", "", true); $dg->addColumn("", "ReqPersonID", "", true); $dg->addColumn("", "AgentReturn", "", true); $dg->addColumn("", "AgentDelayReturn", "", true); $dg->addColumn("", "IsDocRegister", "", true); $dg->addColumn("", "DelayPercent", "", true); $dg->addColumn("", "IsHistory", "", true); $col = $dg->addColumn("عنوان شرایط", "PartDesc", ""); $col->sortable = false; if (!$ReadOnly) { if ($User == "Staff" && $accessObj->EditFlag) { $dg->addButton("addPart", "ایجاد شرایط", "add", "function(){RequestInfoObject.PartInfo(false);}"); } $col = $dg->addColumn("", "PartID"); $col->renderer = "RequestInfo.OperationRender"; $col->width = 50; } $dg->HeaderMenu = false; $dg->hideHeaders = true; $dg->emptyTextOfHiddenColumns = true; $dg->height = 180; $dg->width = 120; $dg->EnableSearch = false; $dg->EnablePaging = false; $dg->DefaultSortField = "MaxAmount"; $dg->disableFooter = true; $grid = $dg->makeGrid_returnObjects();
$col->width = 150; $col->ellipsis = 50; $col = $dg->addColumn("حوزه", "ScopeDesc"); $col->width = 70; $col = $dg->addColumn("مهلت", "EndDate", GridColumn::ColumnType_date); $col->width = 80; $col = $dg->addColumn("تاریخ دریافت", "DoneDate", GridColumn::ColumnType_date); $col->width = 80; $col = $dg->addColumn("توضیحات دریافتی", "DoneDesc"); $col->width = 150; $col->ellipsis = 50; $col = $dg->addColumn("وضعیت", "StatusDesc", ""); $col->width = 90; $col->renderer = "PlanExpert.StatusRender"; $col->align = "center"; $dg->addButton("", "ارسال به کارشناس", "send", "function(){PlanExpertObject.PlanExpertInfo('new');}"); $dg->height = 535; $dg->EnablePaging = false; $dg->autoExpandColumn = "fullname"; $dg->DefaultSortField = "PlanExpertDesc"; $dg->EnableSearch = false; $dg->EnablePaging = false; $dg->emptyTextOfHiddenColumns = true; $col = $dg->addColumn("حذف", ""); $col->sortable = false; $col->renderer = "function(v,p,r){return PlanExpert.DeleteRender(v,p,r);}"; $col->width = 50; $grid = $dg->makeGrid_returnObjects(); ?> <center> <form id="mainForm">
$col->width = 50; $dg->DefaultSortField = "plname"; $dg->width = 400; $dg->height = 500; $dg->title = "لیست کاربران سیستم"; $gridUsers = $dg->makeGrid_returnObjects(); //------------------------------------------------------------------------------ $dg2 = new sadaf_datagrid("dg2", $js_prefix_address . "../data/access.data.php?task=selectPersonTypes", "div_grid2", "form_personTypeAccess"); $dg2->addColumn("", "InfoID", "", true); $dg2->addColumn("نوع فرد", "Title"); $col = $dg2->addColumn('<input type="checkbox" onclick="PersonTypeAccessObject.checkAll(this);">انتخاب', "access"); $col->renderer = "PersonTypeAccess.accessRender"; $col->width = 60; $col->sortable = false; $col->align = "center"; $dg2->addButton("", "ذخیره دسترسی های انواع افراد", "save", "function(){PersonTypeAccessObject.SaveAccess();}"); $dg2->notRender = true; $dg2->width = 350; $dg2->height = 500; $dg2->title = "لیست انواع افراد سازمان"; $dg2->EnableSearch = false; $dg2->EnablePaging = false; $gridPersonTypes = $dg2->makeGrid_returnObjects(); ?> <script> PersonTypeAccess.prototype.afterLoad = function() { this.UsersGrid = <?php echo $gridUsers; ?> ;
$dg = new sadaf_datagrid("dg", $js_prefix_address . "contract.data.php?task=GetSigns&ContractID=" . $ContractID, "grid_div"); $dg->addColumn("", "SignID", "", true); $dg->addColumn("", "ContractID", "", true); $dg->addColumn("", "fullname", "", true); $col = $dg->addColumn("امضاء کننده داخلی", "PersonID"); $col->renderer = "function(v,p,r){return r.data.fullname;}"; $col->editor = "this.SignerCombo"; $col = $dg->addColumn("امضاء کننده خارجی", "SignerName"); $col->editor = ColumnEditor::TextField(true); $col->width = 150; $col = $dg->addColumn("پست", "SignerPost"); $col->editor = ColumnEditor::TextField(true); $col->width = 150; $dg->enableRowEdit = true; $dg->rowEditOkHandler = "function(store,record){return ContractSignObject.SaveSign(record);}"; $dg->addButton("AddBtn", "ایجاد ردیف", "add", "function(){ContractSignObject.AddSign();}"); $col = $dg->addColumn("حذف", ""); $col->sortable = false; $col->renderer = "function(v,p,r){return ContractSign.DeleteRender(v,p,r);}"; $col->width = 35; $dg->height = 336; $dg->width = 585; $dg->emptyTextOfHiddenColumns = true; $dg->EnableSearch = false; $dg->HeaderMenu = false; $dg->EnablePaging = false; $dg->DefaultSortField = "SignID"; $dg->DefaultSortDir = "ASC"; $dg->autoExpandColumn = "PersonID"; $grid = $dg->makeGrid_returnObjects(); ?>