protected void Page_Load(object sender, EventArgs e) { shopid = MyCommFun.RequestInt("shopid"); if (!IsPostBack) { //成功订单数 //今日 dingdantoday = memberbll.dingdantoday(shopid); //昨日 dingdanzuotian = memberbll.dingdanzuotian(shopid); //本月 dingdanbenyue = memberbll.dingdanbenyue(shopid); //上月 dingdanshangyue = memberbll.dingdanshangyue(shopid); dingdanzj = dingdantoday + dingdanzuotian + dingdanbenyue + dingdanshangyue; //营业额 //今日 yyetoday = memberbll.yyetoday(shopid); //昨日 yyezuotian = memberbll.yyezuotian(shopid); //本月 yyebenyue = memberbll.yyebenyue(shopid); //上月 yyeshangyue = memberbll.yyeshangyue(shopid); yyezj = yyetoday + yyezuotian + yyebenyue + yyeshangyue; //新增顾客 //今日 khtoday = memberbll.khtoday(shopid); //昨日 khzuotian = memberbll.khzuotian(shopid); //本月 khbenyue = memberbll.khbenyue(shopid); //上月 khshangyue = memberbll.khshangyue(shopid); //总计 khzj = khtoday + khzuotian + khbenyue + khshangyue; RptBind(shopid); } }