-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGISGridTableSettings.aspx
151 lines (150 loc) · 8.36 KB
/
GISGridTableSettings.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<%@ Page Title="Oasis Admin Tools --- Data view" Language="VB" MasterPageFile="~/site.master"
AutoEventWireup="false" CodeFile="GISGridTableSettings.aspx.vb" Inherits="GISGridTableSettings" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<ext:ResourceManager ID="ResourceManager1" runat="server" Theme="Gray" />
<ext:FormPanel ID="frmUserGroup" runat="server" Split="true" Margins="0 5 5 5" Frame="true"
Title="User Groups" Icon="Group" DefaultAnchor="100%">
<Items>
<ext:ComboBox ID="cboUserGroups" runat="server" EmptyText="Select a user group..."
Editable="false" FieldLabel="User groups" Width="300" DisplayField="Name" ValueField="Id"
ForceSelection="true" DataIndex="GroupID" AllowBlank="false" MsgTarget="Under">
<Store>
<ext:Store runat="server" ID="UserGroupStore" OnRefreshData="UserGroupStore_Refresh">
<Reader>
<ext:JsonReader IDProperty="Id">
<Fields>
<ext:RecordField Name="Id" Type="String" Mapping="Id" />
<ext:RecordField Name="Name" Type="String" Mapping="Name" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
</Store>
<DirectEvents>
<Select OnEvent="cboUserGroups_Select" Before="return #{frmUserGroup}.isValid();">
<EventMask ShowMask="true" />
</Select>
</DirectEvents>
</ext:ComboBox>
</Items>
</ext:FormPanel>
<ext:GridPanel ID="gpGISGridTableSettings" runat="server" Title="Data View"
Margins="0 0 5 5" Frame="true" Height="320">
<Store>
<ext:Store ID="GISGridTableSettingsStore" runat="server" OnRefreshData="GISGridTableSettingsStore_Refresh">
<Reader>
<ext:JsonReader IDProperty="id">
<Fields>
<ext:RecordField Name="id" />
<ext:RecordField Name="name" />
<ext:RecordField Name="alias" />
<ext:RecordField Name="visible" />
<ext:RecordField Name="datasetwarning" />
<ext:RecordField Name="warninglevel" />
<ext:RecordField Name="MaxRec" />
<ext:RecordField Name="excludedFlds" />
<ext:RecordField Name="isURLLayer" />
<ext:RecordField Name="autoRunUrls" />
<ext:RecordField Name="URLLayerField" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
</Store>
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:CommandColumn Width="50" Header="Actions">
<Commands>
<ext:GridCommand Icon="Delete" CommandName="Delete">
<ToolTip Text="Delete" />
</ext:GridCommand>
</Commands>
</ext:CommandColumn>
<ext:Column ColumnID="id" Header="id" Width="100" DataIndex="id" Hidden="false" />
<ext:Column DataIndex="name" Header="Name" Width="100" />
<ext:Column DataIndex="alias" Header="Alias" Width="100" />
<ext:Column DataIndex="warninglevel" Width="100" Header="Warning Level" />
<ext:Column DataIndex="MaxRec" Width="100" Header="Max Rec" />
<ext:Column DataIndex="excludedFlds" Width="100" Header="Excluded Fields" />
<ext:Column DataIndex="URLLayerField" Width="100" Header="URL Layer Field" />
<ext:Column DataIndex="visible" Width="100" Header="Visible" />
<ext:Column DataIndex="isURLLayer" Width="100" Header="URL Layer" />
<ext:Column DataIndex="autoRunUrls" Width="100" Header="Auto Run Urls" />
<ext:Column DataIndex="datasetwarning" Width="100" Header="Dataset Warning" />
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true">
<Listeners>
<RowSelect Handler="#{frmGISGridTableSettings}.getForm().loadRecord(record);" />
</Listeners>
</ext:RowSelectionModel>
</SelectionModel>
<DirectEvents>
<Command OnEvent="RowDelete">
<EventMask ShowMask="true" />
<ExtraParams>
<ext:Parameter Name="id" Value="record.data.id" Mode="Raw" />
</ExtraParams>
<Confirmation BeforeConfirm="if (command!='Delete') return false;" ConfirmRequest="true"
Message="Are you sure to delete this record" Title="Attention" />
</Command>
</DirectEvents>
<BottomBar>
<ext:PagingToolbar ID="PagingToolbar1" runat="server" PageSize="10" />
</BottomBar>
<LoadMask ShowMask="true" />
</ext:GridPanel>
<ext:FormPanel ID="frmGISGridTableSettings" runat="server" Split="true" Margins="0 5 5 5"
Frame="true" Title="Data View Detail" DefaultAnchor="100%">
<Items>
<ext:TextField ID="txtId" runat="server" FieldLabel="Id" DataIndex="id" AllowBlank="false"
MsgTarget="Under" Disabled="true" />
<ext:TextField ID="txtName" runat="server" FieldLabel="Name" DataIndex="name" AllowBlank="false"
MsgTarget="Under" />
<ext:TextField ID="txtAlias" runat="server" FieldLabel="Alias" DataIndex="alias"
AllowBlank="false" MsgTarget="Under" />
<ext:NumberField ID="nbfWarninglevel" runat="server" FieldLabel="Warning Level" DataIndex="warninglevel"
AllowBlank="true" MsgTarget="Under" />
<ext:NumberField ID="nbfMaxRec" runat="server" FieldLabel="Max Rec" DataIndex="MaxRec"
AllowBlank="true" MsgTarget="Under" />
<ext:TextArea ID="txtaExcludedFlds" runat="server" FieldLabel="Excluded Fields" DataIndex="excludedFlds"
AllowBlank="true" MsgTarget="Under" />
<ext:TextArea ID="txtaURLLayerField" runat="server" FieldLabel="URL Layer Field"
DataIndex="URLLayerField" AllowBlank="true" MsgTarget="Under" />
<ext:Checkbox ID="chkVisible" runat="server" FieldLabel="Visible" DataIndex="visible">
</ext:Checkbox>
<ext:Checkbox ID="chkIsURLLayer" runat="server" FieldLabel="Is URL Layer" DataIndex="isURLLayer">
</ext:Checkbox>
<ext:Checkbox ID="chkautoRunUrls" runat="server" FieldLabel="Auto Run Urls" DataIndex="autoRunUrls">
</ext:Checkbox>
<ext:Checkbox ID="chkDatasetwarning" runat="server" FieldLabel="Dataset Warning"
DataIndex="datasetwarning">
</ext:Checkbox>
</Items>
<Buttons>
<ext:Button ID="btnInsert" runat="server" Text="Insert">
<DirectEvents>
<Click OnEvent="btnInsert_Click" Before="return #{frmGISGridTableSettings}.isValid();">
<EventMask ShowMask="true" Msg="Inserting..." />
</Click>
</DirectEvents>
</ext:Button>
<ext:Button ID="btnUpdate" runat="server" Text="Update">
<DirectEvents>
<Click OnEvent="btnUpdate_Click" Before="return #{frmGISGridTableSettings}.isValid();">
<EventMask ShowMask="true" Msg="Updating..." />
</Click>
</DirectEvents>
</ext:Button>
<ext:Button ID="btnResetFields" runat="server" Text="Reset Fields">
<Listeners>
<Click Handler="#{frmGISGridTableSettings}.getForm().reset();" />
</Listeners>
</ext:Button>
</Buttons>
</ext:FormPanel>
</asp:Content>