/
ConditionalSearch.aspx
155 lines (151 loc) · 6.86 KB
/
ConditionalSearch.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
<%@ Page Language="_CodebehindLanguage_" MasterPageFile="~/Aspx/Common/Master/testBlankScreen.master"
AutoEventWireup="true" CodeFile="_TableName_ConditionalSearch.aspx._ClassTemplateFileExtension_"
Inherits="_TableName_ConditionalSearch" Title="_TableName_ConditionalSearch" %>
<%@ Register Assembly="OpenTouryo.CustomControl" Namespace="Touryo.Infrastructure.CustomControl"
TagPrefix="cc1" %>
<asp:Content ID="cphHeaderScripts" ContentPlaceHolderID="cphHeaderScripts" Runat="Server">
<!-- Head 部の ContentPlaceHolder -->
</asp:Content>
<asp:Content ID="ContentPlaceHolder_A" ContentPlaceHolderID="ContentPlaceHolder_A" Runat="Server">
<table style="width:100%;">
<tr>
<td>
AND = 条件<br />
<table>
<!-- ControlComment:LoopStart-PKColumn -->
<tr>
<td>
_ColumnName_
</td>
<td>
<cc1:WebCustomTextBox ID="txt_ColumnName__And" runat="server">
</cc1:WebCustomTextBox>
</td>
</tr>
<!-- ControlComment:LoopEnd-PKColumn -->
<!-- ControlComment:LoopStart-ElseColumn -->
<tr>
<td>
_ColumnName_
</td>
<td>
<cc1:WebCustomTextBox ID="txt_ColumnName__And" runat="server">
</cc1:WebCustomTextBox>
</td>
</tr>
<!-- ControlComment:LoopEnd-ElseColumn -->
</table>
<br />
AND Like 条件<br />
<table>
<!-- ControlComment:LoopStart-PKColumn -->
<tr>
<td>
_ColumnName_
</td>
<td>
<cc1:WebCustomTextBox ID="txt_ColumnName__And_Like" runat="server">
</cc1:WebCustomTextBox>
</td>
</tr>
<!-- ControlComment:LoopEnd-PKColumn -->
<!-- ControlComment:LoopStart-ElseColumn -->
<tr>
<td>
_ColumnName_
</td>
<td>
<cc1:WebCustomTextBox ID="txt_ColumnName__And_Like" runat="server">
</cc1:WebCustomTextBox>
</td>
</tr>
<!-- ControlComment:LoopEnd-ElseColumn -->
</table>
</td>
<td>
OR = 条件<br />
<table>
<!-- ControlComment:LoopStart-PKColumn -->
<tr>
<td>
_ColumnName_
</td>
<td>
<cc1:WebCustomTextBox ID="txt_ColumnName__OR" runat="server">
</cc1:WebCustomTextBox>
</td>
</tr>
<!-- ControlComment:LoopEnd-PKColumn -->
<!-- ControlComment:LoopStart-ElseColumn -->
<tr>
<td>
_ColumnName_
</td>
<td>
<cc1:WebCustomTextBox ID="txt_ColumnName__OR" runat="server">
</cc1:WebCustomTextBox>
</td>
</tr>
<!-- ControlComment:LoopEnd-ElseColumn -->
</table>
<br />
OR Like 条件<br />
<table>
<!-- ControlComment:LoopStart-PKColumn -->
<tr>
<td>
_ColumnName_
</td>
<td>
<cc1:WebCustomTextBox ID="txt_ColumnName__OR_Like" runat="server">
</cc1:WebCustomTextBox>
</td>
</tr>
<!-- ControlComment:LoopEnd-PKColumn -->
<!-- ControlComment:LoopStart-ElseColumn -->
<tr>
<td>
_ColumnName_
</td>
<td>
<cc1:WebCustomTextBox ID="txt_ColumnName__OR_Like" runat="server">
</cc1:WebCustomTextBox>
</td>
</tr>
<!-- ControlComment:LoopEnd-ElseColumn -->
</table>
</td>
</tr>
</table>
<asp:Button ID="btnSearch" runat="server" Text="上記の条件で検索" />
<asp:Button ID="btnInsert" runat="server" Text="レコードを追加する。" />
<asp:GridView ID="gvwGridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="_PKColumnList_"
AllowPaging="True" AllowSorting="True" PageSize="30" Width="100%" BorderWidth="1px">
<HeaderStyle BackColor="darkturquoise" />
<EditRowStyle BackColor="LightYellow" />
<Columns>
<asp:CommandField ShowSelectButton="true" ButtonType="Button" SelectText="選択" />
<!-- ControlComment:LoopStart-PKColumn -->
<asp:TemplateField SortExpression="_ColumnName_">
<ItemTemplate>
<cc1:WebCustomTextBox ReadOnly="true" BackColor="lightgray" ID="txt_ColumnName_" runat="server"
Text='<%# Bind("_ColumnName_") %>'></cc1:WebCustomTextBox>
</ItemTemplate>
</asp:TemplateField>
<!-- ControlComment:LoopEnd-PKColumn -->
<!-- ControlComment:LoopStart-ElseColumn -->
<asp:TemplateField SortExpression="_ColumnName_">
<ItemTemplate>
<cc1:WebCustomTextBox ReadOnly="true" ID="txt_ColumnName_" runat="server" Text='<%# Bind("_ColumnName_") %>'></cc1:WebCustomTextBox>
</ItemTemplate>
</asp:TemplateField>
<!-- ControlComment:LoopEnd-ElseColumn -->
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" EnablePaging="True" TypeName="_TableName_TableAdapter"
SelectCountMethod="SelectCountMethod" SelectMethod="SelectMethod" MaximumRowsParameterName="maximumRows"
StartRowIndexParameterName="startRowIndex"></asp:ObjectDataSource>
</asp:Content>
<asp:Content ID="cphFooterScripts" ContentPlaceHolderID="cphFooterScripts" Runat="Server">
<!-- Footer 部の ContentPlaceHolder -->
</asp:Content>