-
Notifications
You must be signed in to change notification settings - Fork 0
/
Demo.aspx.cs
86 lines (64 loc) · 2.07 KB
/
Demo.aspx.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZhongLuan.ERP.Entity;
using ZhongLuan.ERP.Common;
using ZhongLuan.ERP.DAL;
using Telerik.Web.UI;
public partial class Demo : System.Web.UI.Page
{
private DataHandler dh = new DataHandler();
private ZKDataHandler zkdh = new ZKDataHandler();
private AccountVO newAccount = new AccountVO();
private StaffVO newStaff = new StaffVO();
private AccountVO account = null;
protected void Page_Load(object sender, EventArgs e)
{
AccountVO account = WebHelper.GetSessionAccount();
if (!IsPostBack)
{
NameTB.Text = account.Staff.Name.ToString().Trim();
GetDay();
AreaCb();
}
}
private void GetDay()
{
AccountVO account = WebHelper.GetSessionAccount();
int companyID = account.Company_ID;
DaysCB.Items.Clear();
DaysCB.DataSource = dh.GetCompanyArea(companyID);
DaysCB.DataBind();
}
private void AreaCb()
{
}
public void Button1_Click(object sender, EventArgs e)
{
RadWindowManager.RadAlert("Demo", 300, 300, "演示", null);
Server.Transfer("index.aspx");
}
protected void DaysCB_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
{
AccountVO account = WebHelper.GetSessionAccount();
int companyID = account.Company_ID;
AreaCB.Items.Clear();
AreaCB.DataSource = dh.GetCompanyArea(companyID);
AreaCB.DataBind();
}
protected void DataGrid_DeleteCommand(object sender,GridCommandEventArgs e)
{
}
protected void DataGrid_CancelCommand(object sender, GridCommandEventArgs e)
{
}
protected void DataGrid_NeedDataSource(object sender,GridNeedDataSourceEventArgs e)
{
}
protected void DataGrid_DataBound(object sender, EventArgs e)
{
}
}