1、图例
代码:
if(!IsPostBack)
{
//权限判断
if(!this.CheckRank(43))
{
Server.Transfer("NoAllow.aspx");
}
BindGrid();
UnionPayInfo();
SelectDate.Text = DateTime.Today.ToShortDateString();
//结算周
for(int i=-100;i<=0;i++)
{
DateTime d = DateTime.Today.AddDays(i);
string vf = string.Format("{0:yyyy-MM-dd}",d);
string tf = string.Format("{0:yyyy年MM月第"+(d.Day/7).ToString()+"周}",d);;
if(d.Day == 7 || d.Day == 15 || d.Day == 22 || d.Day == DateTime.DaysInMonth(d.Year,d.Month))
{
WebBalanceDate.Items.Insert(0,new ListItem(tf,vf));
}
}
}
代码:
if(!IsPostBack)
{
//权限判断
if(!this.CheckRank(43))
{
Server.Transfer("NoAllow.aspx");
}
BindGrid();
UnionPayInfo();
SelectDate.Text = DateTime.Today.ToShortDateString();
//结算周
for(int i=-100;i<=0;i++)
{
DateTime d = DateTime.Today.AddDays(i);
string vf = string.Format("{0:yyyy-MM-dd}",d);
string tf = string.Format("{0:yyyy年MM月第"+(d.Day/7).ToString()+"周}",d);;
if(d.Day == 7 || d.Day == 15 || d.Day == 22 || d.Day == DateTime.DaysInMonth(d.Year,d.Month))
{
WebBalanceDate.Items.Insert(0,new ListItem(tf,vf));
}
}
}