当前位置: 首页>>代码示例>>PHP>>正文


PHP sadaf_datagrid::addObject方法代码示例

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


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

示例1: MiladiToShamsi

$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>
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:SurveyRequests.php

示例2: array

$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;
开发者ID:jafarkhani,项目名称:rtfund,代码行数:32,代码来源:menus.php

示例3:

$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();
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:MyLetter.php

示例4:

$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;
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:ManageRequests.php

示例5:

$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;
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:ManageRequests.php

示例6: isset

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');
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:ManagePlans.php

示例7:

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"];
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:deposites.php

示例8:

$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>
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:MyMessages.php

示例9:

$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;
开发者ID:jafarkhani,项目名称:rtfund,代码行数:31,代码来源:persons.php


注:本文中的sadaf_datagrid::addObject方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。