示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         if (base.Request.QueryString["MemCard"] != null)
         {
             this.MemCard.Value = base.Request.QueryString["MemCard"];
         }
         this.chkAllowPwd.Checked = this.curParameter.bolPwd;
         PubFunction.Get_PrintTitle(ref this.lblPrintTitle, ref this.lblPrintFoot, this._UserShopID);
         this.lblOrderUSer.InnerText   = this._UserName;
         this.spOrderAccount.InnerText = this.curParameter.strMemCountPrefix + DateTime.Now.ToString("yyMMddHHmmssffff");
         this.txtOrderTime.Value       = DateTime.Now.ToString("yyyy-MM-dd");
         this.ShopID.Value             = this._UserShopID.ToString();
         this.chkSMS.Checked           = (this.curParameter.bolMoneySms && this.curParameter.bolAutoSendSMSByMemRedTimes);
         this.lblIsSms.Style.Add("display", (this.curParameter.bolMoneySms && this.curParameter.bolAutoSendSMSByMemRedTimes) ? "\"\"" : "none");
         this.lblIsPrint.Visible              = this.curParameter.bolAutoPrint;
         this.chkPrint.Checked                = this.curParameter.bolAutoPrint;
         this.ucMemberSearch.BolSenseICCard   = this.curParameter.bolSenseiccard;
         this.ucMemberSearch.BolContactICCard = this.curParameter.bolContacticcard;
         this.PointNum.Value = PubFunction.GetPointNum("HYCC");
         PubFunction.BindStaff(this._UserShopID, this.sltStaff, true);
         this.chkStaff.Checked   = this.curParameter.bolStaff;
         this.txtStaffType.Value = this.curParameter.bolStaffType.ToString();
     }
 }
示例#2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         this.spOrderAccount.InnerText = this.curParameter.strGoodsExpensePrefix + DateTime.Now.ToString("yyMMddHHmmssffff");
         if (base.Request.QueryString["MemCard"] != null)
         {
             this.MemCard.Value = base.Request.QueryString["MemCard"];
         }
         this.ucMemberSearch.BolSenseICCard   = this.curParameter.bolSenseiccard;
         this.ucMemberSearch.BolContactICCard = this.curParameter.bolContacticcard;
         if (base.Request.QueryString["OID"] != null)
         {
             this.txtOrderID.Value = base.Request.QueryString["OID"];
             Chain.Model.OrderLog modelOrder = new Chain.BLL.OrderLog().GetModel(int.Parse(base.Request.QueryString["OID"]));
             this.txtOrderID.Value         = modelOrder.OrderID.ToString();
             this.spOrderAccount.InnerText = modelOrder.OrderAccount;
         }
         this.chkSMS.Checked           = (this.curParameter.bolMoneySms && this.curParameter.bolAutoSendSMSByCommodityConsumption);
         this.chkPrint.Checked         = this.curParameter.bolAutoPrint;
         this.lblExpenseUSer.InnerText = this._UserName;
         this.ShopID.Value             = this._UserShopID.ToString();
         this.txtExpenseTime.Value     = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
         this.chkAllowPwd.Checked      = this.curParameter.bolPwd;
         this.chkStaff.Checked         = this.curParameter.bolStaff;
         this.txtStaffType.Value       = this.curParameter.bolStaffType.ToString();
         PubFunction.Get_PrintTitle(ref this.lblPrintTitle, ref this.lblPrintFoot, this._UserShopID);
         PubFunction.BindStaff(this._UserShopID, this.sltStaff, true);
         this.PointNum.Value = PubFunction.GetPointNum("SPXF");
     }
 }
示例#3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         PubFunction.BindShopSelect(this._UserShopID, this.sltShop, false);
         PubFunction.BindMemLevelSelect(this.sltMemLevelID, false);
         PubFunction.BindUserSelect(this._UserShopID, this.sltMemUserID, false, false);
         PubFunction.BindStaff(this._UserShopID, this.sltStaff, true);
         this.chkSMS.Checked   = (this.curParameter.bolMoneySms && PubFunction.curParameter.bolAutoSendSMSByMemRegister);
         this.chkIsSMS.Checked = this.curParameter.bolSms;
         this.sltShop.Value    = this._UserShopID.ToString();
         this.sltShop.Attributes.Add("disabled", "disabled");
         this.chkMMS.Checked = (this.curParameter.bolMMS && PubFunction.curParameter.bolAutoSendMMSByMemRegister);
         if (PubFunction.curParameter.RegNullPwd)
         {
             this.sppwd1.Attributes.Add("style", "display:none;");
             this.sppwd2.Attributes.Add("style", "display:none;");
         }
         this.RegNullPwd.Checked        = PubFunction.curParameter.RegNullPwd;
         this.txtMemPassword.Value      = "";
         this.txtMemPasswordCheck.Value = "";
         this.chkIsIsPast.Checked       = PubFunction.curParameter.bolPastTime;
         this.chkRegisterStaff.Checked  = PubFunction.curParameter.bolIsMemRegisterStaff;
         if (!PubFunction.curParameter.bolIsMemRegisterStaff)
         {
             this.tdStaff.Visible  = false;
             this.tddStaff.Visible = false;
         }
         if (!PubFunction.curParameter.bolMoneyAndPoint)
         {
             this.txtMemPoint.Attributes.Add("readonly", "true");
             this.txtMemPoint.Style.Add("background-color", "#eee");
             this.txtMemMoney.Attributes.Add("readonly", "true");
             this.txtMemMoney.Style.Add("background-color", "#eee");
         }
         if (base.Request.QueryString["MemID"] != null)
         {
             this.GetMemToEdit(int.Parse(base.Request.QueryString["MemID"]));
             this.trMemPassword.Visible = false;
             this.ucSysArea.NeedBind    = false;
             this.btnQRCode.Attributes.Add("style", "display:none");
             this.btnSendSenseICCard.Style.Add("display", "none");
             this.btnContactICCard.Style.Add("display", "none");
         }
         else
         {
             PubFunction.BindAddCustomFields(this.tbCustomField, "Mem");
             this.txtMemPoint.Value      = "0";
             this.txtMemMoney.Value      = "0";
             this.txtMemCreateTime.Value = DateTime.Now.ToString("yyyy-MM-dd");
             this.sltMemUserID.Value     = this._UserID.ToString();
             this.btnQRCode.Style.Add("display", (this.curParameter.bolMMS && this.curParameter.bolAutoSendMMSByMemRegister) ? "\"\"" : "none");
             if (!this.curParameter.bolSenseiccard)
             {
                 this.btnSendSenseICCard.Style.Add("display", "none");
             }
             if (!this.curParameter.bolContacticcard)
             {
                 this.btnContactICCard.Style.Add("display", "none");
             }
         }
         this.isSendRWM.Style.Add("display", (this.curParameter.bolMMS && this.curParameter.bolAutoSendMMSByMemRegister) ? "\"\"" : "none");
     }
 }