-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWebForm1.aspx
207 lines (190 loc) · 11.8 KB
/
WebForm1.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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="BreakfastCards1.WebForm1" Async="true" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Breakfast Manager System</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/echarts.min.js"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
<h1>Breakfast Cards Manage System</h1>
</div>
<div>
<h2>早餐卡管理系统</h2>
</div>
<hr />
<div>
Add:增加:<br />
Year:<asp:DropDownList ID="DropDownList_Add_Year" runat="server" AutoPostBack="false"></asp:DropDownList>
Month:<asp:DropDownList ID="DropDownList_Add_Month" runat="server" AutoPostBack="false"></asp:DropDownList>
Group Name:<asp:DropDownList ID="DropDownList_Add_GroupName" runat="server" AutoPostBack="false"></asp:DropDownList>
Quantity:<asp:TextBox ID="TextBox_Add_Quantity" runat="server"></asp:TextBox>
<asp:Button ID="Button_Add_Comfirm" runat="server" Text="Add" OnClick="Button_Add_Comfirm_Click" />
</div>
<div>
Delete:删除:<br />
Year:<asp:DropDownList ID="DropDownList_Delete_Year" runat="server" AutoPostBack="false"></asp:DropDownList>
Month:<asp:DropDownList ID="DropDownList_Delete_Month" runat="server" AutoPostBack="false"></asp:DropDownList>
Group Name:<asp:DropDownList ID="DropDownList_Delete_GroupName" runat="server" AutoPostBack="false"></asp:DropDownList>
<asp:Button ID="Button_Delete" runat="server" Text="Delete" OnClick="Button_Delete_Click" />
</div>
<div>
Revise:修改:<br />
Year:<asp:DropDownList ID="DropDownList_Revise_Year" runat="server" AutoPostBack="false"></asp:DropDownList>
Month:<asp:DropDownList ID="DropDownList_Revise_Month" runat="server" AutoPostBack="false"></asp:DropDownList>
Group Name:<asp:DropDownList ID="DropDownList_Revise_GroupName" runat="server" AutoPostBack="false"></asp:DropDownList>
Quantity:<asp:TextBox ID="TextBox_Revise_Quantity" runat="server"></asp:TextBox>
<asp:Button ID="Button_Revise" runat="server" Text="Revise" OnClick="Button_Revise_Click" />
</div>
<div>
Inquiry:查询<br />
Year:<asp:DropDownList ID="DropDownList_Inquiry_Year" runat="server" AutoPostBack="false"></asp:DropDownList>
Month:<asp:DropDownList ID="DropDownList_Inquiry_Month" runat="server" AutoPostBack="false"></asp:DropDownList>
Group Name:<asp:DropDownList ID="DropDownList_Inquiry_GroupName" runat="server" AutoPostBack="false"></asp:DropDownList>
<asp:Button ID="Button_Inquiry" runat="server" Text="Inquiry" OnClick="Button_Inquiry_Click" />
<br />
<asp:Label ID="Label_Inquiry" runat="server"></asp:Label>
<br />
<asp:GridView ID="GridView_Inquiry" runat="server"></asp:GridView>
</div>
<hr />
<div>
Actual Breakfast:实际早餐
</div>
<br />
<div>
Add in Actual Breakfast:增加早餐卡数量<br />
Year:<asp:DropDownList ID="DropDownList_ActualBreakfast_AddYear" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList_ActualBreakfast_AddYear_SelectedIndexChanged"></asp:DropDownList>
Month:<asp:DropDownList ID="DropDownList_ActualBreakfast_AddMonth" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList_ActualBreakfast_AddMonth_SelectedIndexChanged"></asp:DropDownList>
Group Name:<asp:DropDownList ID="DropDownList_ActualBreakfast_AddGroupName" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList_ActualBreakfast_AddGroupName_SelectedIndexChanged"></asp:DropDownList>
The <asp:DropDownList ID="DropDownList_ActualBreakfast_AddCards" runat="server"></asp:DropDownList> card
<asp:Button ID="Button_FullAttendance" runat="server" OnClick="Button_FullAttendance_Click" Text="Full Attendance" />
<asp:Button ID="Button_LostCard" runat="server" OnClick="Button_LostCard_Click" Text="Lost Card" />
<br />
<asp:CheckBoxList ID="CheckBoxList_ActualBreakfast_Add" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
</asp:CheckBoxList>
<asp:Button ID="Button_Actual_Breakfast_Add" runat="server" Text="Add" OnClick="Button_Actual_Breakfast_CheckBoxList_Add"></asp:Button>
<br />
</div>
<br />
<div>
Inquiry in Actual Breakfast:查询实际早餐<br />
Year:<asp:DropDownList ID="DropDownList_ActualBreakfast_InquiryYear" runat="server" AutoPostBack="false"></asp:DropDownList>
Month:<asp:DropDownList ID="DropDownList_ActualBreakfast_InquiryMonth" runat="server" AutoPostBack="false"></asp:DropDownList>
Group Name:<asp:DropDownList ID="DropDownList_ActualBreakfast_InquiryGroupName" runat="server" AutoPostBack="false"></asp:DropDownList>
<asp:Button ID="Button_Actual_Breakfast_Inquiry" runat="server" Text="Inquiry" OnClick="Button_Actual_Breakfast_Inquiry_Click"></asp:Button>
<div id="main" style="width:1000px;height:400px;"></div>
<script type="text/javascript">
var chartDom = document.getElementById('main');
var myChart = echarts.init(chartDom);
var option;
option = {
xAxis: {
type: 'category',
data: ['Intune_First', 'Intune_Second', 'Intune_Third', 'Intune_Fourth', 'Office_First', 'Office_Second', 'Workdays']
},
yAxis: {
type: 'value'
},
series: [
{
data: [13, 21, 22, 21, 7, 23, 23],
type: 'bar'
}
]
};
myChart.setOption(option);
</script>
<div class="row">
<div class="column2">
<asp:GridView ID="GridView_Inquiry_ActualQuantity" runat="server">
</asp:GridView>
</div>
<div class="column2">
<asp:GridView ID="GridView_Inquiry_BreakfastBoolean" runat="server">
</asp:GridView>
</div>
</div>
</div>
<hr />
<div>
查询月份的工作日天数
</div>
<br />
<div>
Year:<asp:DropDownList ID="DropDownList_Json_Year" runat="server" AutoPostBack="false"></asp:DropDownList>
Month:<asp:DropDownList ID="DropDownList_Json_Month" runat="server" AutoPostBack="false"></asp:DropDownList>
<asp:Button ID="Button_Json" runat="server" Text="Workdays" OnClick="Button_Json_Click" />
<br />
<asp:Label ID="Label_Json" runat="server"></asp:Label>
<br />
<br />
</div>
<hr />
<hr />
<style>
/* 创建三个相等的列 */
.column3 {
float: left;
width: 33.33%;
}
.column2{
float:left;
width:50%
}
/* 列后清除浮动 */
.row:after {
content: "";
display: table;
clear: both;
}
</style>
<div class="row">
<div class="column3">
<asp:GridView ID="GridView_FourName" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="SqlDataSource1">
<Columns>
<asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True" SortExpression="ID" />
<asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" />
<asp:BoundField DataField="GroupName" HeaderText="GroupName" SortExpression="GroupName" />
<asp:BoundField DataField="Quantity" HeaderText="Quantity" SortExpression="Quantity" />
<asp:BoundField DataField="Manager" HeaderText="Manager" SortExpression="Manager"></asp:BoundField>
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=BreakfastCards;Integrated Security=True;MultipleActiveResultSets=True;Application Name=EntityFramework" ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [Table_FourName]"></asp:SqlDataSource>
</div>
<div class="column3">
<asp:GridView ID="GridView_ActualQuantity" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="SqlDataSource2">
<Columns>
<asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True" SortExpression="ID" />
<asp:BoundField DataField="Year" HeaderText="Year" SortExpression="Year" />
<asp:BoundField DataField="Month" HeaderText="Month" SortExpression="Month" />
<asp:BoundField DataField="GroupName" HeaderText="GroupName" SortExpression="GroupName" />
<asp:BoundField DataField="Cards" HeaderText="Cards" SortExpression="Cards" />
<asp:BoundField DataField="ActualQuantity" HeaderText="ActualQuantity" SortExpression="ActualQuantity" />
<asp:BoundField DataField="LostCard_Boolean" HeaderText="LostCard_Boolean" SortExpression="LostCard_Boolean" />
<asp:BoundField DataField="Workdays" HeaderText="Workdays" SortExpression="Workdays" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=BreakfastCards;Integrated Security=True;MultipleActiveResultSets=True;Application Name=EntityFramework" ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [Table_ActualQuantity]"></asp:SqlDataSource>
</div>
<div class="column3">
<asp:GridView ID="GridView_BreakfastBoolean" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="SqlDataSource3">
<Columns>
<asp:BoundField DataField="ID" HeaderText="ID" ReadOnly="True" SortExpression="ID" />
<asp:BoundField DataField="Year" HeaderText="Year" SortExpression="Year" />
<asp:BoundField DataField="Month" HeaderText="Month" SortExpression="Month" />
<asp:BoundField DataField="GroupName" HeaderText="GroupName" SortExpression="GroupName" />
<asp:BoundField DataField="Cards" HeaderText="Cards" SortExpression="Cards" />
<asp:BoundField DataField="Data" HeaderText="Data" SortExpression="Data" />
<asp:BoundField DataField="Breakfast_Boolean" HeaderText="Breakfast_Boolean" SortExpression="Breakfast_Boolean" />
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=BreakfastCards;Integrated Security=True;MultipleActiveResultSets=True;Application Name=EntityFramework" ProviderName="System.Data.SqlClient" SelectCommand="SELECT * FROM [Table_BreakfastBoolean]"></asp:SqlDataSource>
</div>
</div>
</form>
</body>
</html>