Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         code       = Request.QueryString["procode"];
         type       = Request.QueryString["type"];
         activityid = Request.QueryString["activityid"];
         if (!WebBLL.CheckActivity(code, new Guid(activityid), type))
         {
             GoNoFound();
         }
         if (type == "1")
         {
             dt = WebBLL.GetCherry(code);
             int num = WebBLL.GetSuccessOrderInfoListByCode(code);
             sum   = int.Parse(WebBLL.GetActivityPro(code, new Guid(activityid))[0].NUM.ToString());
             count = sum - num;
             if (count < 0)
             {
                 count = 0;
             }
         }
         else if (type == "2")
         {
             dt = WebBLL.GetNormalCherry(new Guid(activityid));
         }
         else
         {
             GoNoFound();
         }
         if (dt.Count == 0)
         {
             GoNoFound();
         }
     }
     catch (Exception)
     {
         GoNoFound();
     }
 }