-
Notifications
You must be signed in to change notification settings - Fork 0
/
FDMSystem_Template.aspx
173 lines (155 loc) · 9.31 KB
/
FDMSystem_Template.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FDMSystem_Template.aspx.cs" Inherits="EDISON.FDMSystem" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
.NoStyle
{
background-image: none !important;
background-color: transparent !important;
border: none !important;
float: right !important;
}
</style>
<script type="text/javascript">
function GridDblClick(s, e) {
CallbackPanel1.PerformCallback();
}
function OnEndCallback(s, e) {
CallbackPanel1.PerformCallback();
}
</script>
<style type="text/css">
.style1
{
height: 25px;
width: 164px;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div runat="server" id="dv" style="border-style: solid; border-width: 1px; float:left; width:700px; height:100%;">
<table>
<tr >
<td align="left" valign="top" class="style1">
<asp:DropDownList ID="ddl_System" runat="server" Width="100px" Height="21px"
Align="Middle" BackColor="White" AutoPostBack="True">
</asp:DropDownList>
<asp:HiddenField ID="aa11" runat="server" />
</td>
<td align="left" valign="middle" >
<span id="Label3" style=" width: 300px; vertical-align: middle; font-weight: bold; font-size: 9pt; color: black; font-family: Arial;"> System Name : </span>
</td>
<td align="left" valign="middle" >
<dx:ASPxTextBox ID="tb_sys_name" runat="server" Width="100px"> </dx:ASPxTextBox>
</td>
<td align="left" valign="middle" >
<dx:ASPxButton ID="btn_add" runat="server" AutoPostBack="False" AllowFocus="False" OnClick="btn_Add_Click"
CssClass="NoStyle" EnableTheming="False" >
<ClientSideEvents Click="OnEndCallback" />
<Image Url="../img/btn_add.gif">
</Image>
<FocusRectPaddings Padding="0px" />
</dx:ASPxButton>
</td>
<td align="left" valign="middle" " >
<dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" AllowFocus="False" OnClick="btn_delete_Click"
CssClass="NoStyle" EnableTheming="False" >
<ClientSideEvents Click="OnEndCallback" />
<Image Url="../img/btn_delete.gif">
</Image>
<FocusRectPaddings Padding="0px" />
</dx:ASPxButton>
</td>
<%-- <td style=" float:right;" align="right" valign="top">
<dx:ASPxButton ID="ASPxButton2" runat="server" AutoPostBack="False" AllowFocus="False" OnClick="btn_delete_Click"
CssClass="NoStyle" EnableTheming="False" >
<ClientSideEvents Click="OnEndCallback" />
<Image Url="../img/btn_delete.gif">
</Image>
<FocusRectPaddings Padding="0px" />
</dx:ASPxButton>
</td>--%>
</tr>
</table>
</div>
<dx:ASPxCallbackPanel runat="server" ID="CallbackPanel1" ClientInstanceName="CallbackPanel1">
<PanelCollection>
<dx:PanelContent>
<div runat="server" id="taglist" style="border-style: solid; border-width: 1px; float:left; width:700px; height:100%;">
<dx:ASPxGridView ID="CauseGrid" runat="server" Width="100%"
ClientInstanceName="Detector_Grid" KeyFieldName="OBID" OnRowDeleting = "Cause_Deleting" OnRowInserting = "Cause_Inserting"
SettingsEditing-Mode="Batch" SettingsPager-PageSize="30" onbatchupdate="GridGroupDetail_BatchUpdate" >
<ClientSideEvents EndCallback="OnEndCallback" RowDblClick="GridDblClick" />
<SettingsBehavior AllowSort="false"/>
<ClientSideEvents RowDblClick="GridDblClick" />
<Columns>
<dx:GridViewDataTextColumn FieldName = "DESCRIPTION" Caption="Cause Description" VisibleIndex="0"/>
<dx:GridViewDataTextColumn FieldName = "SEQ" Caption="Seq" VisibleIndex="1"/>
<dx:GridViewCommandColumn VisibleIndex="2" ShowNewButtonInHeader="true" Width="3%" ButtonType="Image" ShowDeleteButton="True" Name="Command"/>
</Columns>
<SettingsBehavior AllowSort="false" ConfirmDelete="true" />
<SettingsText PopupEditFormCaption="Add Effect" ConfirmDelete="Delete?" />
<SettingsEditing EditFormColumnCount="2" />
<SettingsEditing Mode="Batch" BatchEditSettings-ShowConfirmOnLosingChanges="False" BatchEditSettings-StartEditAction="DblClick"></SettingsEditing>
<SettingsCommandButton>
<DeleteButton><Image Url="../img/Collapse.gif" /></DeleteButton>
<NewButton><Image Url="../img/imageExpand.gif" ToolTip="Add" /></NewButton>
<EditButton><Image Url="../img/imageExpand.gif" /></EditButton>
<UpdateButton><Image Url="../img/btn_add.gif" ToolTip="Add" /></UpdateButton>
<CancelButton><Image Url="../img/btn_cancel.gif" ToolTip="Cancle"/></CancelButton>
</SettingsCommandButton>
<Templates>
<DetailRow>
<dx:ASPxGridView ID="EffectGrid" runat="server" Width="100%" KeyFieldName="OBID" OnBeforePerformDataSelect="Detail_BeforePerformDataSelect"
onRowInserting = "Effect_Inserting" OnRowDeleting ="Effect_Deleting" onbatchupdate="Detail_BatchUpdate" >
<ClientSideEvents EndCallback="OnEndCallback" />
<Columns>
<dx:GridViewDataTextColumn FieldName = "DESCRIPTION" Caption="Effect Description" VisibleIndex="0" Width = "400px">
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn FieldName = "LOC1" Caption="Location1" VisibleIndex="1" Width = "400px">
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn FieldName = "LOC2" Caption="Location2" VisibleIndex="2" Width = "400px">
</dx:GridViewDataTextColumn>
<dx:GridViewCommandColumn VisibleIndex="2" ShowNewButtonInHeader="true" Width="3%" ButtonType="Image" ShowDeleteButton="True" Name="Command">
<CellStyle Font-Size="Smaller"></CellStyle>
</dx:GridViewCommandColumn>
</Columns>
<SettingsBehavior AllowSort="false" ConfirmDelete="true" />
<SettingsText ConfirmDelete="Delete?" />
<SettingsCommandButton>
<DeleteButton><Image Url="../img/Collapse.gif" ToolTip = "Delete" /></DeleteButton>
<NewButton><Image Url="../img/imageExpand.gif" ToolTip="Add" /></NewButton>
<EditButton><Image Url="../img/imageExpand.gif" /></EditButton>
<UpdateButton><Image Url="../img/btn_add.gif" ToolTip="Add" /></UpdateButton>
<CancelButton><Image Url="../img/btn_cancel.gif" ToolTip="Cancle"/></CancelButton>
</SettingsCommandButton>
<SettingsText Title="Effect List" />
<Styles>
<Header BackColor ="#E6E6FA"/>
<TitlePanel BackColor = "#B0C4DE" HorizontalAlign="Left" Paddings-PaddingLeft="10px" ForeColor="Black" Font-Bold="True" >
<Paddings PaddingLeft="10px"></Paddings>
</TitlePanel>
<CommandColumn Spacing="2px" Wrap="False" />
</Styles>
<SettingsDetail IsDetailGrid="True" />
<SettingsEditing Mode="Batch" BatchEditSettings-ShowConfirmOnLosingChanges="False" BatchEditSettings-StartEditAction="DblClick"></SettingsEditing>
</dx:ASPxGridView>
</DetailRow>
</Templates>
<SettingsDetail ShowDetailRow="true" />
<Styles>
<DetailCell>
<Paddings Padding="5px" />
</DetailCell>
</Styles>
</dx:ASPxGridView>
</div>
</dx:PanelContent>
</PanelCollection>
</dx:ASPxCallbackPanel>
</form>
</body>
</html>