升级
This commit is contained in:
@@ -16,9 +16,11 @@
|
||||
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
|
||||
EnableCollapse="true" Width="250" Title="危险源清单" TitleToolTip="危险源清单" ShowBorder="true"
|
||||
ShowHeader="false" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
|
||||
<Items>
|
||||
<f:Tree ID="trHazardListType" Width="240px" EnableCollapse="true" ShowHeader="false"
|
||||
Title="危险源清单" OnNodeCommand="trHazardListType_NodeCommand" AutoLeafIdentification="true"
|
||||
<Items>
|
||||
|
||||
<f:Tree ID="trHazardListType" Width="240px" EnableCollapse="true" ShowHeader="false" CascadeCheck="true" OnNodeCheck="trHazardListType_NodeCheck"
|
||||
Title="危险源清单" OnNodeCommand="trHazardListType_NodeCommand" AutoLeafIdentification="true" EnableMultiSelect="true" EnableCheckBox="true"
|
||||
|
||||
runat="server" EnableTextSelection="True">
|
||||
</f:Tree>
|
||||
</Items>
|
||||
@@ -28,8 +30,8 @@
|
||||
Layout="VBox">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" Width="870px" ShowBorder="true" ShowHeader="false" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="HazardId" DataIDField="HazardId" AllowSorting="true" SortField="HazardCode" SortDirection="ASC"
|
||||
OnRowCommand="Grid1_RowCommand" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="id" DataIDField="id" AllowSorting="true" SortField="wid,HazardCode" SortDirection="ASC"
|
||||
OnRowCommand="Grid1_RowCommand" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
|
||||
PageSize="10" EnableColumnLines="true" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
|
||||
<Toolbars>
|
||||
@@ -57,6 +59,12 @@
|
||||
<Columns>
|
||||
<f:CheckBoxField ColumnID="ckbIsSelected" Width="60px" RenderAsStaticField="false"
|
||||
AutoPostBack="true" CommandName="IsSelected" HeaderText="选择" HeaderTextAlign="Center" />
|
||||
<f:TemplateField Width="130px" HeaderText="代码" HeaderTextAlign="Center" TextAlign="Left"
|
||||
SortField="HazardCode">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# BindWorkStages(Eval("wid")) %>' ToolTip='<%#BindWorkStages(Eval("wid")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:TemplateField Width="130px" HeaderText="代码" HeaderTextAlign="Center" TextAlign="Left"
|
||||
SortField="HazardCode">
|
||||
<ItemTemplate>
|
||||
@@ -159,6 +167,16 @@
|
||||
function reloadGrid() {
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
}
|
||||
|
||||
|
||||
$(function () {
|
||||
$('i').on('click',
|
||||
function () {
|
||||
debugger
|
||||
__doPostBack(null, 'trHazardListType_NodeCheck');
|
||||
}
|
||||
)
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user