protected void Page_Load(object sender, EventArgs e)
 {
     B_User.CheckIsLogged(Request.RawUrl);
     if (!IsPostBack)
     {
         M_UserInfo  mu       = buser.GetLogin();
         M_OrderList orderMod = orderBll.SelModelByOrderNo(OrderNo);
         M_Order_IDC idcMod   = idcBll.SelModelByOrderNo(orderMod.OrderNo);
         if (orderMod == null)
         {
             function.WriteErrMsg("订单不存在");
         }
         if (orderMod.Userid != mu.UserID)
         {
             function.WriteErrMsg("你无权对该订单续费");
         }
         if (idcMod == null)
         {
             function.WriteErrMsg("idc订单不存在");
         }
         M_Product proMod = proBll.GetproductByid(idcMod.ProID);
         if (proMod == null)
         {
             function.WriteErrMsg("需要续费的商品不存在");
         }
         OrderNo_L.Text = orderMod.OrderNo;
         Domain_L.Text  = idcMod.Domain;
         Proname_L.Text = proMod.Proname;
         ETime_L.Text   = idcMod.ETime.ToString("yyyy/MM/dd");
         DataTable timedt = idcBll.P_GetValid(proMod.IDCPrice);
         IDCTime_DP.DataSource = timedt;
         IDCTime_DP.DataBind();
     }
 }
Exemple #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         M_OrderList orderMod = orderBll.SelModelByOrderNo(OrderNo);
         M_Order_IDC idcMod   = idcBll.SelModelByOrderNo(orderMod.OrderNo);
         if (orderMod == null || idcMod == null)
         {
             function.WriteErrMsg("订单不存在或并非IDC订单");
         }
         M_Product proMod = probll.GetproductByid(idcMod.ProID);
         OrderNo_L.Text        = orderMod.OrderNo;
         ProName_L.Text        = proMod.Proname;
         IDCTime_DP.DataSource = idcBll.P_GetValid(proMod.IDCPrice);
         IDCTime_DP.DataBind();
         STime_L.Text = idcMod.STime.ToString("yyyy-MM-dd");
         ETime_L.Text = idcMod.ETime.ToString("yyyy-MM-dd");
         ETime_T.Text = idcMod.ETime.ToString("yyyy-MM-dd");
         Call.HideBread(Master);
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     B_User.CheckIsLogged(Request.RawUrl);
     if (!IsPostBack)
     {
         M_Product proMod = proBll.GetproductByid(ProID);
         if (proMod == null)
         {
             function.WriteErrMsg("你尚未选定需要购买的商品");
         }
         DataTable idcDT = idcBll.P_GetValid(proMod.IDCPrice);
         if (idcDT == null || idcDT.Rows.Count < 1)
         {
             function.WriteErrMsg("未设置IDC商品价格");
         }
         IDCTime_DP.DataSource = idcDT;
         IDCTime_DP.DataBind();
         Proname_L.Text    = proMod.Proname;
         ProContent_L.Text = proMod.Procontent;
         Pwd_T.Attributes.Add("value", "123456");
         CPwd_T.Attributes.Add("value", "123456");
     }
 }