本文整理汇总了C#中Display.DisplayDaysTabel方法的典型用法代码示例。如果您正苦于以下问题:C# Display.DisplayDaysTabel方法的具体用法?C# Display.DisplayDaysTabel怎么用?C# Display.DisplayDaysTabel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Display
的用法示例。
在下文中一共展示了Display.DisplayDaysTabel方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
if (Session["User"] == null) Response.Redirect("Default.aspx");
Display disp = new Display();
Date dt = new Date();
SAPDB db = new SAPDB();
SQLDB sql = new SQLDB();
PeriodDB perdb = new PeriodDB();
Person user = (Person)Session["User"];
//List<Role> rol = user.Roles;
//foreach (Role r in rol)
// Response.Write(r.RoleID + " = " + r.RoleName);
if (!IsPostBack)
{
fillMonths();
if (Request.QueryString["data"] == null)
period.SelectedValue = dt.getMonthToday();
}
year = period.SelectedItem.Text.Substring(period.SelectedItem.Text.Length - 4);
month = period.SelectedItem.Value;
string fio = "";
string tab_number = "";
string post = "";
check = false;
closed = false;
count_days = dt.getCountDays(Convert.ToInt32(month), Convert.ToInt32(year));
if (Request.QueryString["type"] != null) role = Request.QueryString["type"].ToString();
Period per = perdb.getPeriod(Convert.ToInt32(month), Convert.ToInt32(year));
if (per.IsClosed == 1)
{
lbStatus.Text = "������";
Traffic.Text = "<img alt='' src='App_Resources/red.bmp' style='position:relative; top:4px;' />";
closed = true;
}
else Traffic.Text = "<img alt='' src='App_Resources/green.bmp' style='position:relative; top:4px;' />";
if (Request.QueryString["data"] != null)
{
EncryptedQueryString QueryString = new EncryptedQueryString(Request.QueryString["data"]);
if (QueryString["fio"] != null) fio = QueryString["fio"];
if (QueryString["tab"] != null) tab_number = QueryString["tab"];
if (QueryString["post"] != null) post = QueryString["post"];
if (QueryString["role"] != null) role = QueryString["role"];
if (QueryString["check"] != null) check = true;
if (!QueryString["month"].Equals(period.SelectedItem.Value))
{
fio = "";
tab_number = "";
post = "";
check = false;
}
}
//Response.Write(month);
//Response.Write("fio=" + fio + "tab=" + tab_number + " - " + month + "<br>");
//Response.Write(post + "<br>");
string start_date = dt.getSAPStartPeriodDate(month, year);
string end_date = dt.getSAPEndPeriodDate(month, year);
StartDateOfPeriod = start_date;
EndDateOfPeriod = end_date;
//Response.Write(start_date + end_date);
Label lb = new Label();
lb.Text = disp.DisplayDaysTabel(count_days, 18);
days.Controls.Add(lb);
//Response.Write(start_date + end_date);
//Period period_time = perdb.getPeriod(Convert.ToInt32(month), Convert.ToInt32(year));
setButtons(role);
//Response.Write(start_date + "-" + end_date + "<br>");
this.employees = null;/// db.getEmployeeList(start_date, end_date, user.TabNum, this.role);
EmployeeList emp_list = new EmployeeList();
List<Post> post_list = null;/// pl.getPosts(db.getPostList(start_date, end_date, user.TabNum, this.role));
if (post_list != null)
{
fillPosts(post_list);
}
else
{
ListItem li = new ListItem("�������� ���������");
ddl_post.Items.Add(li);
}
/*if (post != "")
//.........这里部分代码省略.........