• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP sadaf_datagrid类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中sadaf_datagrid的典型用法代码示例。如果您正苦于以下问题:PHP sadaf_datagrid类的具体用法?PHP sadaf_datagrid怎么用?PHP sadaf_datagrid使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了sadaf_datagrid类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: sadaf_datagrid

<?php

//---------------------------
// programmer:	Mahdipour
// create Date:	94.11
//---------------------------
require_once '../../../header.inc.php';
require_once inc_dataReader;
require_once inc_dataGrid;
require_once inc_PDODataAccess;
//require_once '../../../organization/org_units/unit.class.php';
//____________  GET ACCESS  _____________
$accessObj = FRW_access::GetAccess($_POST["MenuID"]);
//--------------------------------------
require_once '../js/search_person.js.php';
$dg = new sadaf_datagrid("searchPrsonGrid", $js_prefix_address . "../data/person.data.php?task=gridSelect", "personResultDIV", "form_SearchPerson");
$col = $dg->addColumn("شماره پرسنلی", "PersonID", "int", "true");
$col = $dg->addColumn("شماره شناسایی", "staff_id", "int");
$col->width = 120;
$col = $dg->addColumn("نام", "pfname", "string");
$col->width = 100;
$col = $dg->addColumn("نام خانوادگی", "plname", "string");
$col->width = 120;
$col = $dg->addColumn("نام پدر", "father_name", "string");
$col->width = 100;
$col = $dg->addColumn("ش ش", "idcard_no", "int");
$col->width = 100;
$dg->addColumn("عنوان کامل واحد محل خدمت", "org_unit_title", "string");
$col = $dg->addColumn("عملیات", "", "string");
$col->renderer = "SearchPerson.opRender";
$col->width = 60;
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:search_person.php


示例2: sadaf_datagrid

<?php

//-----------------------------
//	Date		: 1395.06
//-----------------------------
require_once '../header.inc.php';
require_once inc_dataGrid;
$LetterID = $_REQUEST["LetterID"];
if (empty($LetterID)) {
    die;
}
$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;
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:LetterNotes.php


示例3: sadaf_datagrid

<?php

//---------------------------
// programmer:	Mahdipour
// create Date:	91.05.03
//---------------------------
require_once '../../header.inc.php';
require_once inc_dataGrid;
require_once inc_dataReader;
require_once '../js/subtract_info.js.php';
$dg = new sadaf_datagrid("SubInfoGrid", $js_prefix_address . "../data/subtract_info.data.php?task=searchSubItem", "SubInfoDIV");
$dg->addColumn("کد قلم", "SalaryItemTypeID", "", true);
$dg->addColumn("نوع فرد ", "PersonType", "", true);
$col = $dg->addColumn("قلم کسری", "full_title");
$col->editor = "SubInfoObject.subItemCombo";
$col->width = 200;
$col = $dg->addColumn("ذی نفع", "BeneficiaryID", "string");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_beneficiary(), "BeneficiaryID", "title");
$col->width = 80;
$col = $dg->addColumn("شرح", "description", "string");
$col->editor = ColumnEditor::TextField(true);
$col = $dg->addColumn("ترتیب", "arrangement");
$col->editor = ColumnEditor::NumberField();
$col->width = 60;
$col = $dg->addColumn("نوع فرد", "person_type_title", "string");
$col->width = 60;
$col = $dg->addColumn("از تاریخ", "FromDate", GridColumn::ColumnType_date);
$col->editor = ColumnEditor::SHDateField();
$col->width = 80;
$col = $dg->addColumn(" تا تاریخ", "ToDate", GridColumn::ColumnType_date);
$col->editor = ColumnEditor::SHDateField(true);
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:subtract_info.php


示例4: array

if (!empty($personID)) {
    $obj = manage_person::SearchPerson($personID);
    $SummeryInfo = manage_person::GetAllPersons("p.personid = :PID  ", array(":PID" => $personID));
    $staffInfo = new manage_staff("", "", $SummeryInfo[0]["staff_id"]);
} else {
    $SummeryInfo[0]['FacCode'] = NULL;
    $SummeryInfo[0]['EduGrpCode'] = NULL;
    $SummeryInfo[0]['ProCode'] = NULL;
    $obj = new manage_person();
    $staffInfo = new manage_staff();
}
//--------------------------------------------------------------------
$drp_issue_countries = manage_domains::DRP_Countries("country_id", "", $obj->country_id, "", "70");
$drp_nationality = manage_domains::DRP_Countries("nationality", "", $obj->nationality, "", "157");
$drp_banks = manage_domains::DRP_banks("bank_id", $staffInfo->bank_id, "width:150 px", "-");
$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");
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:new_person.php


示例5: sadaf_datagrid

$colu->width = 100;
$colu = $dg->addColumn("عملیات", "", "string");
$colu->renderer = "PersonDependency.opRender";
$colu->width = 80;
$dg->height = 400;
$dg->width = 780;
$dg->DefaultSortField = "row_no";
$dg->autoExpandColumn = "lname";
$dg->EnableSearch = false;
$dg->DefaultSortDir = "ASC";
$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);
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:dependencies.php


示例6: sadaf_datagrid

<?php

//---------------------------
// programmer:	Mahdipour
// create Date:	94.12
//---------------------------
require_once '../../../header.inc.php';
require_once inc_dataGrid;
require_once '../js/writ_type.js.php';
$dg = new sadaf_datagrid("WGrid", $js_prefix_address . "../data/writ_type.data.php?task=SelectWritTypes", "ItemResDIV");
$col = $dg->addColumn(" ", "writ_subtype_id", "int", true);
$col = $dg->addColumn("کد ", "writ_type_id", "int");
$col->width = 50;
$col = $dg->addColumn("نیروی انسانی", "PTitle", "string");
$col->width = 100;
$col = $dg->addColumn("عنوان اصلی حکم", "writTitle", "string");
$col->width = 150;
$col = $dg->addColumn("عنوان فرعی حکم", "writSubTitle", "string");
$col = $dg->addColumn("عملیات", "", "string");
$col->renderer = "function(v,p,r){return SalaryItemType.opRender(v,p,r);}";
$col->width = 50;
$dg->addButton = true;
$dg->addHandler = "function(){SalaryItemTypeObject.AddWrt();}";
$dg->pageSize = "15";
$dg->width = 650;
$dg->title = "انواع احکام";
$dg->EnableRowNumber = true;
$dg->autoExpandColumn = "writSubTitle";
$dg->DefaultSortField = "PTitle";
$grid = $dg->makeGrid_returnObjects();
?>
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:writ_type.php


示例7: sadaf_datagrid

<?php

//---------------------------
// programmer:	B.Mahdipour
// create Date:	90.08
//---------------------------
require_once '../../../header.inc.php';
require_once inc_dataReader;
require_once inc_dataGrid;
require_once inc_PDODataAccess;
require_once '../js/person_dependents_transfer.js.php';
$dg = new sadaf_datagrid("dg", $js_prefix_address . "../data/dependent.data.php?task=SelectPersonDependents", "personResultDIV", "form_SearchPersonDep");
$col = $dg->addColumn("<input type=checkbox onclick=\"SearchDepPersonObject.selectAll(this);\">", "");
$col->renderer = "DepTransfer.CheckRender";
$col->width = 80;
$col->sortable = false;
$dg->addColumn('', "PersonID", "int", true);
$col = $dg->addColumn("شماره شناسایی", "staff_id");
$col->width = 100;
$col = $dg->addColumn("نام شخص", "full_name");
$col->width = 200;
$col = $dg->addColumn("مرکز هزینه", "title");
$dg->width = 780;
$dg->EnableSearch = false;
$dg->EnablePaging = false;
$dg->autoExpandColumn = "title";
$dg->notRender = true;
$grid = $dg->makeGrid_returnObjects();
?>

<script>
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:person_dependents_transfer.php


示例8: sadaf_datagrid

<?php

//-------------------------
// programmer:	Jafarkhani
// Create Date:	95.01
//-------------------------
include '../header.inc.php';
include_once inc_dataGrid;
//................  GET ACCESS  .....................
$accessObj = FRW_access::GetAccess($_POST["MenuID"]);
//...................................................
$dg = new sadaf_datagrid("dg", $js_prefix_address . "shift.data.php?task=GetAllHolidays", "grid_div");
$dg->addColumn("", "HolidayID", "", true);
$col = $dg->addColumn("تاریخ", "TheDate", GridColumn::ColumnType_date);
$col->editor = ColumnEditor::SHDateField();
$col->width = 120;
$col = $dg->addColumn("توضیحات", "details");
$col->editor = ColumnEditor::TextField(true);
if ($accessObj->AddFlag) {
    $dg->addButton = true;
    $dg->addHandler = "function(){HolidayObject.AddHoliday();}";
    $dg->enableRowEdit = true;
    $dg->rowEditOkHandler = "function(){return HolidayObject.SaveHoliday();}";
}
if ($accessObj->RemoveFlag) {
    $col = $dg->addColumn("حذف", "");
    $col->sortable = false;
    $col->renderer = "function(v,p,r){return Holiday.DeleteRender(v,p,r);}";
    $col->width = 40;
}
$dg->title = "تعطیلات رسمی";
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:holidays.php


示例9: sadaf_datagrid

<?php

//---------------------------
// programmer:	Mahdipour
// create Date:	92.03
//---------------------------
require_once '../../header.inc.php';
require_once inc_dataGrid;
require_once inc_dataReader;
require_once '../js/plan_item_report.js.php';
$dg = new sadaf_datagrid("PIGrid", $js_prefix_address . "../data/plan_item_report.data.php?task=searchPITR", "PIDIV");
$dg->addColumn("کد قلم", "PlanItemID", "", true);
$col = $dg->addColumn("عنوان قلم", "PlanItemTitle", "string");
$col->editor = ColumnEditor::TextField(true);
$col = $dg->addColumn("قلم مرتبط", "RelatedItem", "integer");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_PlanItem("-"), "InfoID", "Title", "", "", true);
$col->width = 180;
$col = $dg->addColumn("نوع فرد", "PersonType", "integer");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_PersonType("-"), "InfoID", "Title", "", "", true);
$col->width = 60;
$col = $dg->addColumn("مرکز هزینه", "CostCenterID", "integer");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_plancostCenter("-"), "CostCenterID", "Title", "", "", true);
$col->width = 120;
$col = $dg->addColumn("سال", "PayYear", "integer");
$col->editor = ColumnEditor::NumberField();
$col->width = 60;
$col = $dg->addColumn("ماه", "PayMonth", "integer");
$col->editor = ColumnEditor::NumberField();
$col->width = 60;
$col = $dg->addColumn("مبلغ", "PayValue", "integer");
$col->editor = ColumnEditor::NumberField();
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:plan_item_report.php


示例10: sadaf_datagrid

<?php

//-----------------------------
//	Programmer	: SH.Jafarkhani
//	Date		: 1394.07
//-----------------------------
require_once '../header.inc.php';
require_once inc_dataGrid;
//................  GET ACCESS  .....................
$accessObj = FRW_access::GetAccess($_POST["MenuID"]);
//...................................................
require_once 'ManageForms.js.php';
$dg = new sadaf_datagrid("dg", $js_prefix_address . "wfm.data.php?task=SelectAllForms", "grid_div");
$dg->addColumn("", "FlowID", "", true);
$dg->addColumn("", "RowID", "", true);
$dg->addColumn("", "StepID", "", true);
$dg->addColumn("", "ObjectID", "", true);
$dg->addColumn("", "PersonID", "", true);
$dg->addColumn("", "ActionType", "", true);
$dg->addColumn("", "ActionComment", "", true);
$dg->addColumn("", "url", "", true);
$dg->addColumn("", "parameter", "", true);
$col = $dg->addColumn("نوع فرم", "ObjectTypeDesc", "");
$col->width = 130;
$col = $dg->addColumn("اطلاعات فرم", "ObjectDesc", "");
$col = $dg->addColumn("وضعیت", "StepDesc", "");
$col->width = 130;
$col = $dg->addColumn('عملیات', '', 'string');
$col->renderer = "ManageForm.OperationRender";
$col->width = 50;
$col->align = "center";
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:ManageForms.php


示例11: sadaf_datagrid

<?php

//-----------------------------
//	Programmer	: SH.Jafarkhani
//	Date		: 1394.07
//-----------------------------
require_once '../header.inc.php';
require_once 'config.inc.php';
require_once inc_dataGrid;
//................  GET ACCESS  .....................
$accessObj = FRW_access::GetAccess($_POST["MenuID"]);
//...................................................
require_once 'ManageRequests.js.php';
$dg = new sadaf_datagrid("dg", $js_prefix_address . "request.data.php?task=SelectAllWarrentyRequests", "grid_div");
$dg->addColumn("", "StatusID", "", true);
$dg->addColumn("", "PersonID", "", true);
$dg->addColumn("", "TypeID", "", true);
$dg->addColumn("", "IsEnded", "", true);
$dg->addColumn("", "LetterNo", "", true);
$dg->addColumn("", "LetterDate", "", true);
$dg->addColumn("", "DocID", "", true);
$dg->addColumn("", "DocStatus", "", true);
$dg->addColumn("", "IsBlock", "", true);
$dg->addColumn("", "BranchID", "", true);
$dg->addColumn("", "BranchName", "", true);
$dg->addColumn("", "RegisterAmount", "", true);
$col = $dg->addColumn("نوع", "TypeDesc");
$col->renderer = "function(v,p,r){p.tdAttr = \"data-qtip='\"+r.data.BranchName+\"'\"; return v;}";
$col->width = 80;
$col = $dg->addColumn("ضمانت خواه", "fullname");
$col = $dg->addColumn("شماره", "RequestID", "");
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:ManageRequests.php


示例12: removeTask

    } else {
        $obj->RegPersonID = $_SESSION["USER"]["PersonID"];
        $obj->CreateDate = PDONOW;
        $result = $obj->AddTask();
    }
    Response::createObjectiveResponse($result, "");
    die;
}
function removeTask()
{
    $result = FRW_tasks::DeleteTask($_POST["TaskID"]);
    Response::createObjectiveResponse($result, "");
    die;
}
//-----------------------------------------------------------------
$dgh = new sadaf_datagrid("dg", $js_prefix_address . "ManageRequests.php?task=SelectAll", "div_dg");
$dgh->addColumn("", "TaskID", "", true);
$dgh->addColumn("", "details", "", true);
$dgh->addColumn("", "DoneDesc", "", true);
$dgh->addColumn("", "DoneDate", "", true);
$dgh->addColumn("", "SystemID", "", true);
$col = $dgh->addColumn("سیستم", "SysName");
$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);}";
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:ManageRequests.php


示例13: sadaf_datagrid

//	Programmer	: SH.Jafarkhani
//	Date		: 1394.06
//-----------------------------
require_once '../header.inc.php';
require_once inc_dataGrid;
if (isset($_SESSION["USER"]["portal"])) {
    $portal = true;
    $PersonID = $_SESSION["USER"]["PersonID"];
} else {
    $portal = false;
    $PersonID = $_POST["PersonID"];
}
if (empty($PersonID)) {
    die;
}
$dg = new sadaf_datagrid("dg", $js_prefix_address . "../../office/dms/dms.data.php?task=SelectAll&ObjectType=Person&ObjectID=" . $PersonID, "grid_div");
$dg->addColumn("", "DocumentID", "", true);
$dg->addColumn("", "ObjectType", "", true);
$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("عملیات", "", "");
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:PersonInfo.php


示例14: array

$Essence = array(array('val' => 'DEBTOR', 'name' => 'بدهکار'),
    array('val' => 'CREDITOR', 'name' => 'بستانکار'),
    array('val' => 'NONE', 'name' => 'هیچکدام'));

$temp = array(
	array("LevelID" => 0, "LevelTitle" => "گروه حساب", "HasEssence" => false, "HasGroup" => false),
	array("LevelID" => 1, "LevelTitle" => "حساب کل", "HasEssence" => true, "HasGroup" => true),
	array("LevelID" => 2, "LevelTitle" => "حساب معین", "HasEssence" => false, "HasGroup" => false),
	array("LevelID" => 3, "LevelTitle" => "حساب جزء معین", "HasEssence" => false, "HasGroup" => false)
);
for ($i = 0; $i < count($temp); $i++) {
    $levelID = $temp[$i]['LevelID'];
    $levelTitle = $temp[$i]['LevelTitle'];

    $BlockGrid = new sadaf_datagrid('BlockGrid', $js_prefix_address . 'baseinfo.data.php?' .
		'task=SelectBlocks&level=' . $levelID, 'BlockGrid_Box');

    $BlockGrid->addColumn('', "BlockID", "", true);
    $BlockGrid->addColumn('', "LevelID", "", true);
    $BlockGrid->addColumn('', "IsActive", "", true);

    $col = $BlockGrid->addColumn('کد', "BlockCode");
    $col->width = 80;
    $col->editor = ColumnEditor::TextField();

    $col = $BlockGrid->addColumn('شرح', "BlockDesc");
    $col->editor = ColumnEditor::TextField();
	
	if ($temp[$i]["HasGroup"]) {
        $col = $BlockGrid->addColumn('گروه حساب', "GroupID");
        $col->width = 150;
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:blocks.php


示例15: sadaf_datagrid

<?php

//---------------------------
// programmer:	Mahdipour
// create Date:	90.02
//---------------------------
require_once '../../../header.inc.php';
require_once inc_dataGrid;
require_once '../js/salary_param_type.js.php';
$pdg = new sadaf_datagrid("pdg", $js_prefix_address . "../data/salary_param_type.data.php?task=selectAll", "pdgDiv");
$pdg->addColumn('', "param_type", "int", true);
$col = $pdg->addColumn('عنوان پارامتر', "title", "string");
$col->editor = ColumnEditor::TextField();
$col = $pdg->addColumn("نوع شخص", "person_type_title", "int");
$col->width = 100;
$pdg->openHeaderGroup("پارامترهای مرتبط");
$col = $pdg->addColumn('پارامتر1', "dim1_id");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_SalaryParam(), "id", "value");
$col->width = 100;
$col = $pdg->addColumn('پارامتر2', "dim2_id");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_SalaryParam(), "id", "value");
$col->width = 100;
$col = $pdg->addColumn('پارامتر3', "dim3_id");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_SalaryParam(), "id", "value");
$col->width = 100;
$col = $pdg->addColumn('پارامتر4', "dim4_id");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_SalaryParam(), "id", "value");
$col->width = 100;
$pdg->closeHeaderGroup();
$pdg->addButton = true;
$pdg->addHandler = "function(v,p,r){ return SalaryParamTypeObject.AddSPT(v,p,r);}";
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:salary_param_type.php


示例16: sadaf_datagrid

<?php

//-------------------------
// programmer:	Jafarkhani
// Create Date:	94.06
//-------------------------
include '../header.inc.php';
include_once inc_dataGrid;
require_once 'menus.js.php';
$dg = new sadaf_datagrid("dg", $js_prefix_address . "framework.data.php?task=GellMenus", "grid_div", "mainForm");
$dg->addColumn("", "GroupDesc", "", true);
$dg->addColumn("", "MenuID", "", true);
$dg->addColumn("", "SystemID", "", true);
$dg->addColumn("", "GroupSystemID", "", true);
$dg->addColumn("", "GroupOrder", "", true);
$dg->addColumn("", "GroupIcon", "", true);
$dg->EnableGrouping = true;
$dg->DefaultGroupField = "GroupID";
$dg->groupHeaderTpl = " <table class=infoTbl width=100% >" . "<tr><td width=20px> " . "<div title=ایجاد onclick=MenuObject.AddMenu(event,{[values.rows[0].data.GroupID]},{[values.rows[0].data.GroupSystemID]}); class=add " . "style=background-repeat:no-repeat;background-position:center;cursor:pointer;width:100%;height:16></div></td>" . "<td width=20px><div title=ویرایش onclick=MenuObject.EditMenu(event,{[values.rows[0].data.GroupID]}); class=edit " . "style=background-repeat:no-repeat;background-position:center;cursor:pointer;width:100%;height:16></div></td>" . "<td>منوی اصلی : <span class=blueText>{[values.rows[0].data.GroupDesc]} [ ترتیب : {[values.rows[0].data.GroupOrder]} ] " . "[ icon : {[values.rows[0].data.GroupIcon]} ]</span>" . "</td><td  width=20px>" . "<div title=حذف onclick=MenuObject.DeleteMenu({[values.rows[0].data.GroupID]},event); class=remove " . "style=background-repeat:no-repeat;background-position:center;cursor:pointer;width:100%;height:16></div>" . "</td></tr>" . "</table>";
$col = $dg->addColumn("گروه", "GroupID", "string");
$col->renderer = "function(v,p,r){return r.data.GroupDesc}";
$col->editor = "MenuObject.GroupCombo";
$col->sortable = false;
$col = $dg->addColumn("عنوان", "MenuDesc", "string");
$col->editor = ColumnEditor::TextField();
$col->sortable = false;
$col = $dg->addColumn("مسیر", "MenuPath", "string");
$col->editor = "MenuObject.PathField";
$col->sortable = false;
$col->align = "left";
$col->renderer = "function(v){return '<div style=direction:ltr>' + v + '</div>'; }";
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:menus.php


示例17: sadaf_datagrid

<?php

//---------------------------
// programmer:	Mahdipour
// create Date:	91.05.10
//---------------------------
require_once '../../header.inc.php';
require_once inc_dataGrid;
require_once inc_dataReader;
require_once '../js/salary_item_report.js.php';
$dg = new sadaf_datagrid("SIGrid", $js_prefix_address . "../data/salary_item_report.data.php?task=searchSITR", "SIDIV");
$dg->addColumn("کد قلم", "SalaryItemReportID", "", true);
$dg->addColumn("وضعیت", "state", "", true);
$col = $dg->addColumn("عنوان قلم", "SalaryItemTitle", "string");
$col->editor = ColumnEditor::TextField(true);
$col->width = 150;
$col = $dg->addColumn("شرح", "description", "string");
$col->editor = ColumnEditor::TextField(true);
$col = $dg->addColumn("ذی نفع", "BeneficiaryID", "integer");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_beneficiary(), "BeneficiaryID", "title");
$col->width = 80;
$col = $dg->addColumn("نوع قلم", "ItemType", "integer");
$col->editor = ColumnEditor::ComboBox(array(array("ItemType" => "1", "title" => "متفرقه"), array("ItemType" => "2", "title" => "خزانه")), "ItemType", "title");
$col->width = 80;
$col = $dg->addColumn("نوع فرد", "PersonType", "integer");
$col->editor = ColumnEditor::ComboBox(manage_domains::GETALL_PersonType(), "InfoID", "Title");
$col->width = 80;
$col = $dg->addColumn("سال", "PayYear", "integer");
$col->editor = ColumnEditor::NumberField(true);
$col->width = 70;
$col = $dg->addColumn("ماه", "PayMonth", "integer");
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:salary_item_report.php


示例18: ReceivedSummary

require_once inc_component;
$mode = $_REQUEST["mode"];
$task = "";
if ($mode == "receive") {
    require_once 'letter.data.php';
    $summary = ReceivedSummary();
    $task = "SelectReceivedLetters";
}
if ($mode == "send") {
    $summary = array();
    $task = "SelectSendedLetters";
}
if ($task == "") {
    die;
}
$dg = new sadaf_datagrid("dg", $js_prefix_address . "letter.data.php?task=" . $task, "grid_div");
$dg->addColumn("", "LetterID", "", true);
$dg->addColumn("", "IsSeen", "", true);
$dg->addColumn("", "IsDeleted", "", true);
$dg->addColumn("", "SendID", "", true);
$dg->addColumn("", "_SendDate", "", true);
$dg->addColumn("", "ResponseTimeout", "", true);
$dg->addColumn("", "SendComment", "", true);
$col = $dg->addColumn("<img src=/office/icons/LetterType.gif>", "LetterType", "");
$col->renderer = "MyLetter.LetterTypeRender";
$col->width = 30;
$col = $dg->addColumn("<img src=/office/icons/attach.gif>", "hasAttach", "");
$col->renderer = "function(v,p,r){if(v == 'YES') return '<img src=/office/icons/attach.gif>';}";
$col->width = 30;
$col = $dg->addColumn("شماره", "LetterID", "");
$col->width = 60;
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:MyLetter.php


示例19: sadaf_datagrid

<?php

//-------------------------
// programmer:	Jafarkhani
// Create Date:	95.03
//-------------------------
include '../header.inc.php';
include_once inc_dataGrid;
$dg = new sadaf_datagrid("dg", $js_prefix_address . "traffic.data.php?task=GetAllRequests", "grid_div");
$dg->addColumn("", "RequestID", "", true);
$dg->addColumn("", "ToDate", "", true);
$dg->addColumn("", "ReqStatus", "", true);
$dg->addColumn("", "MissionPlace", "", true);
$dg->addColumn("", "MissionSubject", "", true);
$dg->addColumn("", "MissionStay", "", true);
$dg->addColumn("", "GoMean", "", true);
$dg->addColumn("", "ReturnMean", "", true);
$dg->addColumn("", "GoMeanDesc", "", true);
$dg->addColumn("", "ReturnMeanDesc", "", true);
$dg->addColumn("", "OffType", "", true);
$dg->addColumn("", "OffPersonID", "", true);
$dg->addColumn("", "OffTypeDesc", "", true);
$dg->addColumn("", "OffFullname", "", true);
$dg->addColumn("", "SurveyFullname", "", true);
$dg->addColumn("", "SurveyDate", "", true);
$dg->addColumn("", "SurveyDesc", "", true);
$dg->addColumn("", "IsArchive", "", true);
$col = $dg->addColumn("درخواست کننده", "fullname");
$col->renderer = "SurveyRequests.ReqRender";
$col->width = 120;
$col = $dg->addColumn("تاریخ درخواست", "ReqDate", GridColumn::ColumnType_datetime);
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:SurveyRequests.php


示例20: ModuleAccess

<?php

//---------------------------
// programmer:	Mahdipour
// create Date:	88.07.07
//---------------------------
require_once '../../../header.inc.php';
require_once "../data/person.data.php";
require_once inc_dataGrid;
//________________  GET ACCESS  _________________
$accessObj = new ModuleAccess($_POST["FacilID"], SubModule_person_employment);
//-----------------------------------------------
require_once '../js/employment.js.php';
$dg = new sadaf_datagrid("emp", $js_prefix_address . "../data/employment.data.php?task=selectEmp&Q0=" . $_POST['Q0'], "EmpGRID");
$col = $dg->addColumn("شماره پرسنلی", "PersonID", "int", true);
$col = $dg->addColumn("نوع سازمان", "org_type", "int", true);
$col = $dg->addColumn("نوع خدمت", "person_type", "int", true);
$col = $dg->addColumn("وضعیت استخدامی", "emp_state", "int", true);
$col = $dg->addColumn("حالت استخدامی", "emp_mode", "int", true);
$col = $dg->addColumn("دلیل خاتمه", "unemp_cause", "int", true);
$col = $dg->addColumn("مدت خدمت سال", "duration_year", "int", true);
$col = $dg->addColumn("مدت خدمت ماه", "duration_month", "int", true);
$col = $dg->addColumn("مدت خدمت روز", "duration_day", "int", true);
$col = $dg->addColumn("مدت قابل قبول بازنشستگی سال", "retired_duration_year", "int", true);
$col = $dg->addColumn("مدت قابل قبول بازنشستگی ماه", "retired_duration_month", "int", true);
$col = $dg->addColumn("مدت قابل قبول بازنشستگی روز", "retired_duration_day", "int", true);
$col = $dg->addColumn("مدت قابل قبول اعطای گروه سال", "group_duration_year", "int", true);
$col = $dg->addColumn("مدت قابل قبول اعطای گروه ماه", "group_duration_month", "int", true);
$col = 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP sapp_Global类代码示例发布时间:2022-05-23
下一篇:
PHP sDB类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap