< ext:Viewport runat="server" ID="Viewport1">
< Items >
< ext:Panel runat="server" Layout="Accordion" ID="pnlView">
< LayoutConfig >
< ext:AccordionLayoutConfig Animate="true" AutoWidth="true" Fill="true" />
</ LayoutConfig >
< Items >
< ext:GridPanel ID="GridPanel1" IDMode="Static" runat="server" Collapsible="true" StripeRows="true"
Title="待处理事务" AutoWidth="true" Icon="ClockRed" AutoExpandColumn="TaskTitel">
< Store >
<%--GroupField:分组的字段--%>
< ext:Store ID="Store1" ShowWarningOnFailure="false" AutoLoad="true" runat="server"
GroupField="ShopName">
< Proxy >
< ext:HttpProxy Method="POST" Url="/Ajax/Workbench.ashx" />
</ Proxy >
< Reader >
< ext:JsonReader TotalProperty="total" Root="data">
< Fields >
<%--任务ID--%>
< ext:RecordField Name="TaskId" />
<%--流程阶段--%>
< ext:RecordField Name="FSname" />
<%--门店名称--%>
< ext:RecordField Name="ShopName" />
<%--提交日期--%>
< ext:RecordField Name="TaskBeginDate" />
<%--任务名称--%>
< ext:RecordField Name="TaskTitel" />
<%--提交人--%>
< ext:RecordField Name="UserName" />
<%--审核人--%>
< ext:RecordField Name="DealUserid" />
<%--门店ID--%>
< ext:RecordField Name="ObjectId" />
<%--事件ID--%>
< ext:RecordField Name="DriverId" />
<%--阶段ID--%>
< ext:RecordField Name="PhasesId" />
<%--业务模板ID--%>
< ext:RecordField Name="PTCode">
</ ext:RecordField >
<%--文件类型ID--%>
< ext:RecordField Name="FileTypeId" />
<%--文件类型名称--%>
< ext:RecordField Name="FileTypeName" />
<%--< ext:RecordField Name="Remark" />--%>
< ext:RecordField Name="ShopType" />
< ext:RecordField Name="PNID" />
< ext:RecordField Name="PTID" />
< ext:RecordField Name="DriverPhasesid" />
< ext:RecordField Name="overtimeflag" />
</ Fields >
</ ext:JsonReader >
</ Reader >
< SortInfo Field="ShopName" Direction="ASC" />
< BaseParams >
< ext:Parameter Name="start" Value="0" Mode="Raw" />
< ext:Parameter Name="limit" Value="getPageSize1()" Mode="Raw" />
< ext:Parameter Name="type" Value="GetTaskList" Mode="Value" />
</ BaseParams >
< Listeners >
< Load Handler="#{GridPanel1}.setTitle(‘待处理事务<font style=color:green;font-weight:bolder;>(‘+#{Store1}.getTotalCount()+‘)</ font >‘); " />
</ Listeners >
</ ext:Store >
</ Store >
< ColumnModel ID="ColumnModel1" runat="server">
< Columns >
< ext:RowNumbererColumn />
< ext:Column Header="任务ID" Hidden="true" DataIndex="TaskId">
</ ext:Column >
< ext:Column ColumnID="ShopName" Header="<font style=‘color:Silver;‘>门店名称</ font >"
DataIndex="ShopName" />
< ext:Column ColumnID="TaskTitel" Header="任务名称" DataIndex="TaskTitel">
< Renderer Fn="setTitle" Args="value, metadata, record, rowIndex, colIndex, store" />
</ ext:Column >
< ext:Column ColumnID="FSname" Header="单据状态" DataIndex="FSname" />
< ext:Column Header="提交日期" DataIndex="TaskBeginDate" />
< ext:Column Header="提交人" DataIndex="UserName" />
< ext:Column Header="店铺类型" DataIndex="ShopType" />
< ext:Column Header="DriverId" Hidden="true" DataIndex="DriverId" Hideable="false" />
< ext:Column Header="ObjectId" Hidden="true" DataIndex="ObjectId" Hideable="false" />
< ext:Column Header="FileTypeId" Hidden="true" DataIndex="FileTypeId" Hideable="false" />
< ext:Column Header="FileTypeName" Hidden="true" DataIndex="FileTypeName" Hideable="false">
</ ext:Column >
< ext:ImageCommandColumn Header="操作" DataIndex="FileTypeName">
< Commands >
< ext:ImageCommand CommandName="View" Icon="TableEdit" />
</ Commands >
< PrepareCommand Fn="prepareCommand" />
</ ext:ImageCommandColumn >
< ext:ImageCommandColumn Header="审批历史">
< Commands >
< ext:ImageCommand CommandName="ExamineList" Icon="ApplicationViewList" Text="审批历史">
< ToolTip Text="审批历史" />
</ ext:ImageCommand >
</ Commands >
</ ext:ImageCommandColumn >
</ Columns >
</ ColumnModel >
< SelectionModel >
< ext:CheckboxSelectionModel ID="CheckboxSelectionModel1" runat="server">
< Listeners >
<%--< Render Fn="checkboxSelectionRenderer" />--%>
< BeforeRowSelect Fn="checkboxBeforerowselect" />
</ Listeners >
</ ext:CheckboxSelectionModel >
</ SelectionModel >
< Listeners >
< Command Handler="ExcuteCommand(command,record);" />
< GroupCommand Handler="if(command === ‘SelectGroup‘){ this.getSelectionModel().selectRecords(records, true); return;}else if(command==‘UnSelectGroup‘){this.getSelectionModel().clearSelections(); return;} else{toExcuteOperations(this.getSelectionModel().getSelections(),command);}" />
< Expand Handler="#{Store1}.reload();" />
</ Listeners >
< LoadMask ShowMask="true" />
< TopBar >
< ext:Toolbar ID="Toolbar1" runat="server" />
</ TopBar >
< BottomBar >
< ext:PagingToolbar ID="PagingToolbar1" runat="server" PageSize="50">
< Items >
< ext:Label ID="Label1" runat="server" Text="分页数:" />
< ext:ToolbarSpacer ID="ToolbarSpacer1" runat="server" Width="10" />
< ext:ComboBox ID="ComboBox1" runat="server" Width="80">
< Items >
< ext:ListItem Text="10" />
< ext:ListItem Text="20" />
< ext:ListItem Text="30" />
< ext:ListItem Text="50" />
</ Items >
< SelectedItem Value="50" />
< Listeners >
< Select Handler="#{PagingToolbar1}.pageSize = parseInt(this.getValue()); #{PagingToolbar1}.doLoad();" />
</ Listeners >
</ ext:ComboBox >
</ Items >
</ ext:PagingToolbar >
</ BottomBar >
< View >
< ext:GroupingView ID="GroupingView1" HideGroupedColumn="true" StartCollapsed="true"
runat="server" ForceFit="true" GroupTextTpl=‘{text} ({[values.rs.length]} {[values.rs.length > 1 ? "项" : "项"]})‘
GroupByText="按当前列分组" ShowGroupsText="是否分组" EnableRowBody="true" EnableGrouping="true">
</ ext:GroupingView >
</ View >
</ ext:GridPanel >
< ext:GridPanel ID="GridPanel2" IDMode="Static" runat="server" Collapsible="true"
StripeRows="true" Title="可撤销事务" Icon="ClockError" AutoWidth="true" AutoExpandColumn="TaskTitel">
< Store >
<%--GroupField:分组的字段--%>
< ext:Store ID="Store2" IDMode="Static" ShowWarningOnFailure="false" AutoLoad="true"
runat="server" GroupField="ShopName">
< Proxy >
< ext:HttpProxy Method="POST" Url="/Ajax/Workbench.ashx" />
</ Proxy >
< Reader >
< ext:JsonReader IDProperty="TaskId" TotalProperty="total" Root="data">
< Fields >
<%--任务ID--%>
< ext:RecordField Name="TaskId" />
<%--流程阶段--%>
< ext:RecordField Name="FSname" />
<%--门店名称--%>
< ext:RecordField Name="ShopName" />
<%--提交日期--%>
< ext:RecordField Name="TaskBeginDate" />
<%--任务名称--%>
< ext:RecordField Name="TaskTitel" />
<%--提交人--%>
< ext:RecordField Name="UserName" />
<%--审核人--%>
< ext:RecordField Name="DealUserid" />
<%--门店ID--%>
< ext:RecordField Name="ObjectId" />
<%--事件ID--%>
< ext:RecordField Name="DriverId" />
<%--阶段ID--%>
< ext:RecordField Name="PhasesId">
</ ext:RecordField >
<%--业务模板ID--%>
< ext:RecordField Name="PTCode">
</ ext:RecordField >
<%--文件类型ID--%>
< ext:RecordField Name="FileTypeId" />
<%--文件类型名称--%>
< ext:RecordField Name="FileTypeName" />
<%--< ext:RecordField Name="Remark" />--%>
< ext:RecordField Name="ShopType" />
< ext:RecordField Name="PNID" />
< ext:RecordField Name="PTID" />
< ext:RecordField Name="DriverPhasesid" />
< ext:RecordField Name="overtimeflag" />
</ Fields >
</ ext:JsonReader >
</ Reader >
< BaseParams >
< ext:Parameter Name="start" Value="0" Mode="Raw" />
< ext:Parameter Name="limit" Value="50" Mode="Raw" />
< ext:Parameter Name="type" Value="ReRepeal" Mode="Value" />
</ BaseParams >
< Listeners >
< Load Handler="GridPanel2.setTitle(‘可撤销事务<font style=color:green;font-weight:bolder;>(‘+Store2.getTotalCount()+‘)</ font >‘); " />
</ Listeners >
</ ext:Store >
</ Store >
< ColumnModel IDMode="Static" ID="ColumnModel2" runat="server">
< Columns >
< ext:RowNumbererColumn />
< ext:Column Header="任务ID" Hidden="true" DataIndex="TaskId">
</ ext:Column >
< ext:Column ColumnID="ShopName" Header="<font style=‘color:Silver;‘>门店名称</ font >"
DataIndex="ShopName" />
< ext:Column ColumnID="TaskTitel" Header="任务名称" DataIndex="TaskTitel" />
< ext:Column ColumnID="FSname" Header="单据状态" DataIndex="FSname" />
< ext:Column Header="提交日期" DataIndex="TaskBeginDate" />
< ext:Column Header="提交人" DataIndex="UserName" />
< ext:Column Header="店铺类型" DataIndex="ShopType" />
< ext:Column Header="DriverId" Hidden="true" DataIndex="DriverId" Hideable="false">
</ ext:Column >
< ext:Column Header="ObjectId" Hidden="true" DataIndex="ObjectId" Hideable="false">
</ ext:Column >
< ext:Column Header="FileTypeId" Hidden="true" DataIndex="FileTypeId" Hideable="false">
</ ext:Column >
< ext:Column Header="FileTypeName" Hidden="true" DataIndex="FileTypeName" Hideable="false" />
</ Columns >
</ ColumnModel >
< SelectionModel >
< ext:CheckboxSelectionModel runat="server" />
</ SelectionModel >
< Listeners >
< Command Handler="ExcuteCommand(command,record);" />
< Expand Handler="Store2.reload();" />
</ Listeners >
< LoadMask ShowMask="true" />
< BottomBar >
< ext:PagingToolbar IDMode="Static" ID="PagingToolbar2" runat="server" PageSize="50" />
</ BottomBar >
< TopBar >
< ext:Toolbar runat="server">
< Items >
< ext:Button runat="server" Icon="PageBack" Text="撤销">
< Listeners >
< Click Handler="toExcuteOperations(GridPanel2.getSelectionModel().getSelections(),‘Repeal‘);" />
</ Listeners >
</ ext:Button >
</ Items >
</ ext:Toolbar >
</ TopBar >
< View >
< ext:GroupingView ID="GroupingView2" IDMode="Static" HideGroupedColumn="true" runat="server"
ForceFit="true" GroupTextTpl=‘{text} ({[values.rs.length]} {[values.rs.length > 1 ? "项" : "项"]})‘
GroupByText="按当前列分组" ShowGroupsText="是否分组" EnableRowBody="true">
</ ext:GroupingView >
</ View >
</ ext:GridPanel >
< ext:GridPanel ID="GridPanel6" IDMode="Static" runat="server" Collapsible="true"
StripeRows="true" Title="已撤销事务" Icon="ClockStop2" AutoWidth="true" AutoExpandColumn="TaskTitel">
< Store >
<%--GroupField:分组的字段--%>
< ext:Store ID="Store6" IDMode="Static" ShowWarningOnFailure="false" AutoLoad="true"
runat="server" GroupField="ShopName">
< Proxy >
< ext:HttpProxy Method="POST" Url="/Ajax/Workbench.ashx" />
</ Proxy >
< Reader >
< ext:JsonReader IDProperty="TaskId" TotalProperty="total" Root="data">
< Fields >
<%--任务ID--%>
< ext:RecordField Name="TaskId" />
<%--流程阶段--%>
< ext:RecordField Name="FSname" />
<%--门店名称--%>
< ext:RecordField Name="ShopName" />
<%--提交日期--%>
< ext:RecordField Name="TaskBeginDate" />
<%--任务名称--%>
< ext:RecordField Name="TaskTitel" />
<%--提交人--%>
< ext:RecordField Name="UserName" />
<%--审核人--%>
< ext:RecordField Name="DealUserid" />
<%--门店ID--%>
< ext:RecordField Name="ObjectId" />
<%--事件ID--%>
< ext:RecordField Name="DriverId" />
<%--阶段ID--%>
< ext:RecordField Name="PhasesId">
</ ext:RecordField >
<%--业务模板ID--%>
< ext:RecordField Name="PTCode">
</ ext:RecordField >
<%--文件类型ID--%>
< ext:RecordField Name="FileTypeId" />
<%--文件类型名称--%>
< ext:RecordField Name="FileTypeName" />
<%--< ext:RecordField Name="Remark" />--%>
< ext:RecordField Name="ShopType" />
< ext:RecordField Name="PNID" />
< ext:RecordField Name="PTID" />
< ext:RecordField Name="DriverPhasesid" />
< ext:RecordField Name="overtimeflag" />
</ Fields >
</ ext:JsonReader >
</ Reader >
< BaseParams >
< ext:Parameter Name="start" Value="0" Mode="Raw" />
< ext:Parameter Name="limit" Value="50" Mode="Raw" />
< ext:Parameter Name="type" Value="Repeal" Mode="Value" />
</ BaseParams >
< Listeners >
< Load Handler="GridPanel6.setTitle(‘已撤销事务<font style=color:green;font-weight:bolder;>(‘+Store6.getTotalCount()+‘)</ font >‘); " />
</ Listeners >
</ ext:Store >
</ Store >
< ColumnModel IDMode="Static" ID="ColumnModel6" runat="server">
< Columns >
< ext:RowNumbererColumn />
< ext:Column Header="任务ID" Hidden="true" DataIndex="TaskId">
</ ext:Column >
< ext:Column ColumnID="ShopName" Header="<font style=‘color:Silver;‘>门店名称</ font >"
DataIndex="ShopName" />
< ext:Column ColumnID="TaskTitel" Header="任务名称" DataIndex="TaskTitel" />
< ext:Column ColumnID="FSname" Header="单据状态" DataIndex="FSname" />
< ext:Column Header="提交日期" DataIndex="TaskBeginDate" />
< ext:Column Header="提交人" DataIndex="UserName" />
< ext:Column Header="店铺类型" DataIndex="ShopType" />
< ext:Column Header="DriverId" Hidden="true" DataIndex="DriverId" Hideable="false">
</ ext:Column >
< ext:Column Header="ObjectId" Hidden="true" DataIndex="ObjectId" Hideable="false">
</ ext:Column >
< ext:Column Header="FileTypeId" Hidden="true" DataIndex="FileTypeId" Hideable="false">
</ ext:Column >
< ext:Column Header="FileTypeName" Hidden="true" DataIndex="FileTypeName" Hideable="false" />
< ext:ImageCommandColumn Header="操作" DataIndex="FileTypeName">
< Commands >
< ext:ImageCommand CommandName="View" Icon="TableEdit" />
</ Commands >
< PrepareCommand Fn="prepareCommand" />
</ ext:ImageCommandColumn >
< ext:ImageCommandColumn Header="审批历史">
< Commands >
< ext:ImageCommand CommandName="ExamineList" Icon="ApplicationViewList" Text="审批历史">
< ToolTip Text="审批历史" />
</ ext:ImageCommand >
</ Commands >
</ ext:ImageCommandColumn >
</ Columns >
</ ColumnModel >
< SelectionModel >
< ext:CheckboxSelectionModel ID="CheckboxSelectionModel6" runat="server" />
</ SelectionModel >
< Listeners >
< Command Handler="ExcuteCommand(command,record);" />
< Expand Handler="Store6.reload();" />
</ Listeners >
< LoadMask ShowMask="true" />
< BottomBar >
< ext:PagingToolbar IDMode="Static" ID="PagingToolbar6" runat="server" PageSize="50" />
</ BottomBar >
< TopBar >
< ext:Toolbar ID="tbButtons" runat="server" />
</ TopBar >
< View >
< ext:GroupingView ID="GroupingView6" IDMode="Static" HideGroupedColumn="true" runat="server"
ForceFit="true" GroupTextTpl=‘{text} ({[values.rs.length]} {[values.rs.length > 1 ? "项" : "项"]})‘
GroupByText="按当前列分组" ShowGroupsText="是否分组" EnableRowBody="true">
</ ext:GroupingView >
</ View >
</ ext:GridPanel >
< ext:GridPanel ID="GridPanel3" IDMode="Static" runat="server" Collapsible="true" StripeRows="true"
Title="待补齐资料事宜" AutoWidth="true" Icon="ClockEdit" AutoExpandColumn="TaskTitel">
< Store >
<%--GroupField:分组的字段--%>
< ext:Store ID="Store3" IDMode="Static" ShowWarningOnFailure="false" AutoLoad="true" runat="server"
GroupField="ShopName">
< Proxy >
< ext:HttpProxy Method="POST" Url="/Ajax/Workbench.ashx" />
</ Proxy >
< Reader >
< ext:JsonReader IDProperty="TaskId" TotalProperty="total" Root="data">
< Fields >
<%--任务ID--%>
< ext:RecordField Name="TaskId" />
<%--流程阶段--%>
< ext:RecordField Name="FSname" />
<%--门店名称--%>
< ext:RecordField Name="ShopName" />
<%--提交日期--%>
< ext:RecordField Name="TaskBeginDate" />
<%--任务名称--%>
< ext:RecordField Name="TaskTitel" />
<%--提交人--%>
< ext:RecordField Name="UserName" />
<%--审核人--%>
< ext:RecordField Name="DealUserid" />
<%--门店ID--%>
< ext:RecordField Name="ObjectId" />
<%--事件ID--%>
< ext:RecordField Name="DriverId" />
<%--阶段ID--%>
< ext:RecordField Name="PhasesId">
</ ext:RecordField >
<%--业务模板ID--%>
< ext:RecordField Name="PTCode">
</ ext:RecordField >
<%--文件类型ID--%>
< ext:RecordField Name="FileTypeId" />
<%--文件类型名称--%>
< ext:RecordField Name="FileTypeName" />
<%--< ext:RecordField Name="Remark" />--%>
< ext:RecordField Name="ShopType" />
< ext:RecordField Name="PNID" />
< ext:RecordField Name="PTID" />
< ext:RecordField Name="DriverPhasesid" />
< ext:RecordField Name="overtimeflag" />
</ Fields >
</ ext:JsonReader >
</ Reader >
< BaseParams >
< ext:Parameter Name="start" Value="0" Mode="Raw" />
< ext:Parameter Name="limit" Value="getPageSize3()" Mode="Raw" />
< ext:Parameter Name="type" Value="ToFillNeatMaterialMatters" Mode="Value" />
</ BaseParams >
< Listeners >
< Load Handler="GridPanel3.setTitle(‘待补齐资料事宜<font style=color:green;font-weight:bolder;>(‘+Store3.getTotalCount()+‘)</ font >‘); " />
</ Listeners >
</ ext:Store >
</ Store >
< ColumnModel ID="ColumnModel3" runat="server">
< Columns >
< ext:RowNumbererColumn />
< ext:Column Header="任务ID" Hidden="true" DataIndex="TaskId">
</ ext:Column >
< ext:Column ColumnID="ShopName" Header="<font style=‘color:Silver;‘>门店名称</ font >"
DataIndex="ShopName" />
< ext:Column ColumnID="TaskTitel" Header="任务名称" DataIndex="TaskTitel">
< Renderer Fn="setTitle" Args="value, metadata, record, rowIndex, colIndex, store" />
</ ext:Column >
< ext:Column ColumnID="FSname" Header="单据状态" DataIndex="FSname" />
< ext:Column Header="提交日期" DataIndex="TaskBeginDate" />
< ext:Column Header="提交人" DataIndex="UserName" />
< ext:Column Header="店铺类型" DataIndex="ShopType" />
< ext:Column Header="DriverId" Hidden="true" DataIndex="DriverId" Hideable="false">
</ ext:Column >
< ext:Column Header="ObjectId" Hidden="true" DataIndex="ObjectId" Hideable="false">
</ ext:Column >
< ext:Column Header="FileTypeId" Hidden="true" DataIndex="FileTypeId" Hideable="false">
</ ext:Column >
< ext:Column Header="FileTypeName" Hidden="true" DataIndex="FileTypeName" Hideable="false">
</ ext:Column >
< ext:ImageCommandColumn Header="操作">
< Commands >
< ext:ImageCommand CommandName="View" Icon="TableEdit" Text="查看">
< ToolTip Text="查看" />
</ ext:ImageCommand >
< ext:ImageCommand CommandName="ExamineList" Icon="ApplicationViewList" Text="审批历史">
< ToolTip Text="审批历史" />
</ ext:ImageCommand >
</ Commands >
</ ext:ImageCommandColumn >
<%-- < ext:Column Header="状态" DataIndex="ActionName">
< Renderer Fn="CaoZuo" Args="value, metadata, record, rowIndex, colIndex, store" />
</ ext:Column >--%>
<%-- < ext:CommandColumn Hidden="true">
< GroupCommands >
< ext:GridCommand Icon="TableRow" CommandName="SelectGroup" Text="选择当前组">
< ToolTip Title="选择" Text="选择当前组的所有行" />
</ ext:GridCommand >
< ext:GridCommand Icon="Decline" CommandName="UnSelectGroup" Text="取消选择">
< ToolTip Title="取消选择" Text="取消当前组的所有选择" />
</ ext:GridCommand >
< ext:GridCommand Icon="PageBack" CommandName="Reject" Text="退回">
< ToolTip Title="退回" Text="退回所选任务" />
</ ext:GridCommand >
< ext:GridCommand Icon="BookAdd" CommandName="Submit" Text="提交">
< ToolTip Title="提交" Text="提交所选任务" />
</ ext:GridCommand >
< ext:CommandFill />
</ GroupCommands >
</ ext:CommandColumn >--%>
</ Columns >
</ ColumnModel >
< SelectionModel >
< ext:CheckboxSelectionModel ID="CheckboxSelectionModel3" runat="server" />
</ SelectionModel >
< Listeners >
< Command Handler="ExcuteCommand(command,record);" />
< GroupCommand Handler="if(command === ‘SelectGroup‘){ this.getSelectionModel().selectRecords(records, true); return;}else if(command==‘UnSelectGroup‘){this.getSelectionModel().clearSelections(); return;} else{toExcuteOperations(this.getSelectionModel().getSelections(),command);}" />
< Expand Handler="Store3.reload();" />
</ Listeners >
< LoadMask ShowMask="true" />
< BottomBar >
< ext:PagingToolbar ID="PagingToolbar3" runat="server" PageSize="50">
< Items >
< ext:Label ID="Label3" runat="server" Text="分页数:" />
< ext:ToolbarSpacer ID="ToolbarSpacer3" runat="server" Width="10" />
< ext:ComboBox ID="ComboBox3" runat="server" Width="80">
< Items >
< ext:ListItem Text="10" />
< ext:ListItem Text="20" />
< ext:ListItem Text="30" />
< ext:ListItem Text="50" />
</ Items >
< SelectedItem Value="50" />
< Listeners >
< Select Handler="#{PagingToolbar3}.pageSize = parseInt(this.getValue()); #{PagingToolbar1}.doLoad();" />
</ Listeners >
</ ext:ComboBox >
</ Items >
</ ext:PagingToolbar >
</ BottomBar >
< View >
< ext:GroupingView ID="GroupingView3" HideGroupedColumn="true" runat="server" ForceFit="true"
GroupTextTpl=‘{text} ({[values.rs.length]} {[values.rs.length > 1 ? "项" : "项"]})‘
GroupByText="按当前列分组" ShowGroupsText="是否分组" EnableRowBody="true">
</ ext:GroupingView >
</ View >
</ ext:GridPanel >
< ext:GridPanel ID="GridPanel4" IDMode="Static" runat="server" Collapsible="true"
StripeRows="true" Title="会办跟踪" Icon="ClockPlay" AutoWidth="true" AutoExpandColumn="TaskTitel"
Hidden="true">
< Store >
<%--GroupField:分组的字段--%>
< ext:Store ID="Store4" IDMode="Static" ShowWarningOnFailure="false" AutoLoad="false"
runat="server" GroupField="ShopName">
< Proxy >
< ext:HttpProxy Method="POST" Url="/Ajax/Workbench.ashx" />
</ Proxy >
< Reader >
< ext:JsonReader IDProperty="TaskId" TotalProperty="total" Root="data">
< Fields >
<%--任务ID--%>
< ext:RecordField Name="TaskId" />
<%--流程阶段--%>
< ext:RecordField Name="FSname" />
<%--门店名称--%>
< ext:RecordField Name="ShopName" />
<%--提交日期--%>
< ext:RecordField Name="TaskBeginDate" />
<%--任务名称--%>
< ext:RecordField Name="TaskTitel" />
<%--提交人--%>
< ext:RecordField Name="UserName" />
<%--审核人--%>
< ext:RecordField Name="DealUserid" />
<%--门店ID--%>
< ext:RecordField Name="ObjectId" />
<%--事件ID--%>
< ext:RecordField Name="DriverId" />
<%--阶段ID--%>
< ext:RecordField Name="PhasesId">
</ ext:RecordField >
<%--业务模板ID--%>
< ext:RecordField Name="PTCode">
</ ext:RecordField >
<%--文件类型ID--%>
< ext:RecordField Name="FileTypeId" />
<%--文件类型名称--%>
< ext:RecordField Name="FileTypeName" />
<%--< ext:RecordField Name="Remark" />--%>
< ext:RecordField Name="ShopType" />
< ext:RecordField Name="PNID" />
< ext:RecordField Name="PTID" />
< ext:RecordField Name="DriverPhasesid" />
< ext:RecordField Name="overtimeflag" />
</ Fields >
</ ext:JsonReader >
</ Reader >
< BaseParams >
< ext:Parameter Name="start" Value="0" Mode="Raw" />
< ext:Parameter Name="limit" Value="getPageSize4()" Mode="Raw" />
< ext:Parameter Name="type" Value="WillDoTracking" Mode="Value" />
</ BaseParams >
< Listeners >
< Load Handler="GridPanel4.setTitle(‘会办跟踪<font style=color:green;font-weight:bolder;>(‘+Store4.getTotalCount()+‘)</ font >‘); " />
</ Listeners >
</ ext:Store >
</ Store >
< ColumnModel IDMode="Static" ID="ColumnModel4" runat="server">
< Columns >
< ext:RowNumbererColumn />
< ext:Column Header="任务ID" Hidden="true" DataIndex="TaskId">
</ ext:Column >
< ext:Column ColumnID="ShopName" Header="<font style=‘color:Silver;‘>门店名称</ font >"
DataIndex="ShopName" />
< ext:Column ColumnID="TaskTitel" Header="任务名称" DataIndex="TaskTitel" />
< ext:Column ColumnID="FSname" Header="单据状态" DataIndex="FSname" />
< ext:Column Header="提交日期" DataIndex="TaskBeginDate" />
< ext:Column Header="会办人" DataIndex="UserName" />
< ext:Column Header="店铺类型" DataIndex="ShopType" />
< ext:Column Header="DriverId" Hidden="true" DataIndex="DriverId" Hideable="false">
</ ext:Column >
< ext:Column Header="ObjectId" Hidden="true" DataIndex="ObjectId" Hideable="false">
</ ext:Column >
< ext:Column Header="FileTypeId" Hidden="true" DataIndex="FileTypeId" Hideable="false">
</ ext:Column >
< ext:Column Header="FileTypeName" Hidden="true" DataIndex="FileTypeName" Hideable="false">
</ ext:Column >
</ Columns >
</ ColumnModel >
< SelectionModel >
< ext:RowSelectionModel IDMode="Static" ID="RowSelectionModel4" runat="server" />
</ SelectionModel >
< Listeners >
< Command Handler="ExcuteCommand(command,record);" />
< GroupCommand Handler="if(command === ‘SelectGroup‘){ this.getSelectionModel().selectRecords(records, true); return;}else if(command==‘UnSelectGroup‘){this.getSelectionModel().clearSelections(); return;} else{toExcuteOperations(this.getSelectionModel().getSelections(),command);}" />
< Expand Handler="Store4.reload();" />
</ Listeners >
< LoadMask ShowMask="true" />
< BottomBar >
< ext:PagingToolbar IDMode="Static" ID="PagingToolbar4" runat="server" PageSize="50">
< Items >
< ext:Label ID="Label4" runat="server" Text="分页数:" />
< ext:ToolbarSpacer ID="ToolbarSpacer4" IDMode="Static" runat="server" Width="10" />
< ext:ComboBox ID="ComboBox4" IDMode="Static" runat="server" Width="80">
< Items >
< ext:ListItem Text="10" />
< ext:ListItem Text="20" />
< ext:ListItem Text="30" />
< ext:ListItem Text="50" />
</ Items >
< SelectedItem Value="50" />
< Listeners >
< Select Handler="PagingToolbar4.pageSize = parseInt(this.getValue()); PagingToolbar4.doLoad();" />
</ Listeners >
</ ext:ComboBox >
</ Items >
</ ext:PagingToolbar >
</ BottomBar >
< View >
< ext:GroupingView ID="GroupingView4" IDMode="Static" HideGroupedColumn="true" runat="server"
ForceFit="true" GroupTextTpl=‘{text} ({[values.rs.length]} {[values.rs.length > 1 ? "项" : "项"]})‘
GroupByText="按当前列分组" ShowGroupsText="是否分组" EnableRowBody="true">
</ ext:GroupingView >
</ View >
</ ext:GridPanel >
< ext:GridPanel ID="GridPanel5" IDMode="Static" runat="server" Collapsible="true" StripeRows="true"
Title="已办事务" Icon="ClockPause" AutoWidth="true" AutoExpandColumn="TaskTitel">
< Store >
<%--GroupField:分组的字段--%>
< ext:Store ID="Store5" IDMode="Static" ShowWarningOnFailure="false" AutoLoad="false" runat="server"
GroupField="ShopName">
< Proxy >
< ext:HttpProxy Method="POST" Url="/Ajax/Workbench.ashx" />
</ Proxy >
< Reader >
< ext:JsonReader TotalProperty="total" Root="data">
< Fields >
<%--店铺名称--%>
< ext:RecordField Name="ShopName" />
<%--状态名称--%>
< ext:RecordField Name="FSname" />
<%--所属阶段--%>
< ext:RecordField Name="PhasesName" />
<%--任务创建日期--%>
< ext:RecordField Name="TaskBeginDate" Type="Date" />
<%--提交时间--%>
< ext:RecordField Name="BeginDate" Type="Date" />
<%--任务名称--%>
< ext:RecordField Name="TaskTitel" />
<%--提交人--%>
< ext:RecordField Name="UserName" />
< ext:RecordField Name="TaskEndDate" Type="Date" />
<%--主持老师--%>
< ext:RecordField Name="ShopkeeperName" />
<%--处理时长--%>
< ext:RecordField Name="DealHours" />
<%--任务时长--%>
< ext:RecordField Name="TaskHours" />
<%--处理日期--%>
< ext:RecordField Name="DealDate" Type="Date" />
<%--批注--%>
< ext:RecordField Name="Remark" />
<%--处理动作ID--%>
< ext:RecordField Name="DealFAID" />
<%--动作名称--%>
< ext:RecordField Name="FAName" />
<%--处理状态--%>
< ext:RecordField Name="DealFSID" />
</ Fields >
</ ext:JsonReader >
</ Reader >
< BaseParams >
< ext:Parameter Name="start" Value="0" Mode="Raw" />
< ext:Parameter Name="limit" Value="getPageSize5()" Mode="Raw" />
< ext:Parameter Name="type" Value="AlreadyDoTask" Mode="Value" />
</ BaseParams >
< Listeners >
< Load Handler="GridPanel5.setTitle(‘已办事项<font style=color:green;font-weight:bolder;>(‘+Store5.getTotalCount()+‘)</ font >‘); " />
</ Listeners >
</ ext:Store >
</ Store >
< ColumnModel ID="ColumnModel5" runat="server">
< Columns >
< ext:RowNumbererColumn />
< ext:Column DataIndex="ShopName" Header="店铺名称" />
< ext:Column Header="任务名称" DataIndex="TaskTitel" />
< ext:Column Header="操作名称" DataIndex="FAName" />
< ext:Column Header="状态名称" DataIndex="FSname" />
< ext:Column Header="批注" DataIndex="Remark" />
< ext:DateColumn Header="处理开始时间" DataIndex="BeginDate" Width="109" Format="yy-MM-dd hh:mm:ss" />
< ext:DateColumn Header="处理结束时间" DataIndex="DealDate" Width="109" Format="yy-MM-dd hh:mm:ss" />
< ext:Column Header="处理时长(天)" DataIndex="DealHours" />
< ext:Column Header="提交人" DataIndex="UserName" />
< ext:DateColumn Header="任务创建时间" DataIndex="TaskBeginDate" Width="109" Format="yy-MM-dd hh:mm:ss" />
< ext:DateColumn Header="任务结束时间" DataIndex="TaskEndDate" Width="109" Format="yy-MM-dd hh:mm:ss" />
< ext:Column Header="任务时长(天)" DataIndex="TaskHours" />
</ Columns >
</ ColumnModel >
< SelectionModel >
< ext:RowSelectionModel ID="RowSelectionModel5" runat="server" />
</ SelectionModel >
< Listeners >
< Command Handler="ExcuteCommand(command,record);" />
< Expand Handler="Store5.reload();" />
</ Listeners >
< LoadMask ShowMask="true" />
< BottomBar >
< ext:PagingToolbar ID="PagingToolbar5" IDMode="Static" runat="server" PageSize="50">
< Items >
< ext:Label ID="Label5" runat="server" Text="分页数:" />
< ext:ToolbarSpacer ID="ToolbarSpacer5" runat="server" Width="10" />
< ext:ComboBox ID="ComboBox5" runat="server" Width="80">
< Items >
< ext:ListItem Text="10" />
< ext:ListItem Text="20" />
< ext:ListItem Text="30" />
< ext:ListItem Text="50" />
</ Items >
< SelectedItem Value="50" />
< Listeners >
< Select Handler="PagingToolbar5.pageSize = parseInt(this.getValue()); PagingToolbar5.doLoad();" />
</ Listeners >
</ ext:ComboBox >
</ Items >
</ ext:PagingToolbar >
</ BottomBar >
< View >
< ext:GroupingView ID="GroupingView5" StartCollapsed="true" HideGroupedColumn="true"
runat="server" ForceFit="true" GroupTextTpl=‘{text} ({[values.rs.length]} {[values.rs.length > 1 ? "项" : "项"]})‘
GroupByText="按当前列分组" ShowGroupsText="是否分组" EnableRowBody="true">
</ ext:GroupingView >
</ View >
</ ext:GridPanel >
</ Items >
</ ext:Panel >
</ Items >
< Listeners >
< AfterLayout Handler="var vHeight= #{Viewport1}.getHeight();
#{pnlView}.setHeight(vHeight);
vHeight=vHeight-60;
GridPanel1.setHeight(vHeight);
GridPanel3.setHeight(vHeight);
GridPanel4.setHeight(vHeight);
GridPanel2.setHeight(vHeight);
GridPanel6.setHeight(vHeight);
GridPanel5.setHeight(vHeight);
" />
</ Listeners >
</ ext:Viewport >
|