예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         PubFunction.BindMemLevelSelect(this.sltMemLevelID, true);
         PubFunction.BindShopSelect(this._UserShopID, this.sltMRShop, true);
         PubFunction.BindShopSelect(this._UserShopID, this.sltSRShop, true);
         PubFunction.BindShopSelect(this._UserShopID, this.sltShop, true);
         PubFunction.BindShopSelect(this._UserShopID, this.sltShopChart, true);
         this.txtMoney.Value        = "0";
         this.txtStartTime.Value    = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("yyyy-MM-dd");
         this.txtEndTime.Value      = DateTime.Now.ToString("yyyy-MM-dd");
         this.txtMRStart.Value      = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("yyyy-MM-dd");
         this.txtMREnd.Value        = DateTime.Now.ToString("yyyy-MM-dd");
         this.txtSRStart.Value      = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("yyyy-MM-dd");
         this.txtSREnd.Value        = DateTime.Now.ToString("yyyy-MM-dd");
         this.txtMemStartTime.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("yyyy-MM-dd");
         this.txtMemEndTime.Value   = DateTime.Now.ToString("yyyy-MM-dd");
         if (PubFunction.curParameter.dataAuthority != 0)
         {
             if (this._UserShopID > 1)
             {
                 this.sltShop.Value = this._UserShopID.ToString();
                 this.sltShop.Attributes.Add("disabled", "disabled");
             }
         }
         this.BindRechargeMoney();
         PubFunction.AgainPrint(ref this.lblPrintTitle, ref this.lblPrintFoot, this._UserShopID);
         this.PointNum.Value  = PubFunction.GetPointNum("JFBDBB");
         this.Revokable.Value = PubFunction.GetControlVisit(this._UserAuthority, "gvRptMemRecharge_hyRevoke", 21).ToString();
     }
 }
예제 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         PubFunction.BindMemLevelSelect(this.sltMemLevelID, true);
         PubFunction.BindShopSelect(this._UserShopID, this.sltShop, true);
         PubFunction.BindShopSelect(this._UserShopID, this.sltShop, true);
         PubFunction.AgainPrint(ref this.lblPrintTitle, ref this.lblPrintFoot, this._UserShopID);
         this.txtPoint.Value        = "0";
         this.txtStartTime.Value    = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("yyyy-MM-dd");
         this.txtEndTime.Value      = DateTime.Now.ToString("yyyy-MM-dd");
         this.txtMemStartTime.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("yyyy-MM-dd");
         this.txtMemEndTime.Value   = DateTime.Now.ToString("yyyy-MM-dd");
         if (PubFunction.curParameter.dataAuthority != 0)
         {
             if (this._UserShopID > 1)
             {
                 this.sltShop.Value = this._UserShopID.ToString();
             }
         }
         this.BindPointChange();
         this.Get_ParameterList(this.QueryCondition());
         this.PointNum.Value = PubFunction.GetPointNum("JFBDBB");
     }
 }
예제 #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         PubFunction.BindMemLevelSelect(this.sltMemLevelID, true);
         this.sltMemLevelID.Items.Insert(1, new ListItem("散 客", "-1"));
         PubFunction.BindShopSelect(this._UserShopID, this.sltShop, true);
         this.txtTotalMoney.Value    = "0";
         this.txtDiscountMoney.Value = "0";
         PubFunction.BindShopSelect(this._UserShopID, this.sltConsumptionShop, true);
         this.txtStartTime.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString();
         this.txtEndTime.Value   = DateTime.Now.ToString();
         this.txtUser.Value      = this._UserName;
         this.txtShopid.Value    = this._UserShopID.ToString();
         PubFunction.Get_PrintTitle(ref this.lblPrintTitle, ref this.lblPrintFoot, this._UserShopID);
         if (PubFunction.curParameter.dataAuthority != 0)
         {
             if (this._UserShopID > 1)
             {
                 this.sltConsumptionShop.Value = this._UserShopID.ToString();
                 this.sltConsumptionShop.Attributes.Add("disabled", "disabled");
             }
         }
         this.BindExpenseHistory(this.QueryCondition());
         this.PointNum.Value = PubFunction.GetPointNum("XFJL");
     }
 }
예제 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         PubFunction.BindMemLevelSelect(this.sltMemLevelID, true);
         PubFunction.BindShopSelect(this._UserShopID, this.sltShop, true);
     }
 }
예제 #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         PubFunction.BindMemLevelSelect(this.sltMemLevelID, true);
         this.txtStartTime.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString();
         this.txtEndTime.Value   = DateTime.Now.ToString();
         this.GetParameterList(this.QueryCondition());
     }
 }
예제 #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         PubFunction.BindMemLevelSelect(this.sltMemLevelID, true);
         PubFunction.BindShopSelect(this._UserShopID, this.sltShop, true);
         this.txtTotalMoney.Value    = "0";
         this.txtDiscountMoney.Value = "0";
         this.Get_ParameterList(this.QueryCondition());
     }
 }
예제 #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         PubFunction.BindMemLevelSelect(this.sltMemLevelID, false);
         if (PubFunction.curParameter.RegNullPwd)
         {
             this.pw1.Attributes.Add("style", "display:none;");
             this.pw2.Attributes.Add("style", "display:none;");
             this.YesOrNoPwd.Value = "1";
         }
     }
 }
예제 #8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         PubFunction.BindMemLevelSelect(this.sltMemLevelID, true);
         this.sltMemLevelID.Items.Insert(1, new ListItem("散 客", "-1"));
         this.txtTotalMoney.Value    = "0";
         this.txtDiscountMoney.Value = "0";
         this.txtStartTime.Value     = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("yyyy-MM-dd");
         this.txtEndTime.Value       = DateTime.Now.ToString("yyyy-MM-dd");
         this.txtUser.Value          = this._UserName;
         this.txtShopid.Value        = this._UserShopID.ToString();
         this.BindExpenseHistory(this.QueryCondition());
     }
 }
예제 #9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         PubFunction.BindMemLevelSelect(this.sltMemLevelID, true);
         this.sltMemLevelID.Items.Insert(1, new ListItem("散 客", "-1"));
         this.txtStartTime.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("yyyy-MM-dd");
         this.txtEndTime.Value   = DateTime.Now.ToString("yyyy-MM-dd");
         this.txtUser.Value      = this._UserName;
         this.txtShopid.Value    = this._UserShopID.ToString();
         this.BindStatus();
         this.BindExpenseHistory(this.QueryCondition());
         this.chkSMS.Checked = (this.curParameter.bolMoneySms && this.curParameter.bolAutoSendSMSByCommodityConsumption);
     }
 }
예제 #10
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.ltCustom.Text = "<input type='text' id='text' name='text' class='border_radius'/>";
     PubFunction.BindMemLevelSelect(this.sltMemLevelID, true);
     PubFunction.BindShopSelect(this._UserShopID, this.sltShop, true);
     PubFunction.BindCustomField(this._UserShopID, this.sltCustomField, true, 1);
     PubFunction.BindUserSelect(this._UserShopID, this.sltMemUserID, true, false);
     if (PubFunction.curParameter.dataAuthority == 1 && this._UserShopID > 1)
     {
         this.sltShop.Value = this._UserShopID.ToString();
     }
     if (!base.IsPostBack)
     {
         this.Query();
     }
 }
예제 #11
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         PubFunction.BindMemLevelSelect(this.sltMemLevelID, true);
         PubFunction.BindShopSelect(this._UserShopID, this.sltShop, true);
         if (PubFunction.curParameter.dataAuthority != 0)
         {
             if (this._UserShopID > 1)
             {
                 this.sltShop.Value = this._UserShopID.ToString();
                 this.sltShop.Attributes.Add("disabled", "disabled");
             }
         }
         this.Get_ParameterList(this.QueryCondition());
     }
 }
예제 #12
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         PubFunction.BindMemLevelSelect(this.sltMemLevelID, true);
         PubFunction.BindShopSelect(this._UserShopID, this.sltShop, true);
         if (string.IsNullOrEmpty(PubFunction.curParameter.EmailAdress) || string.IsNullOrEmpty(PubFunction.curParameter.EmailPwd) || string.IsNullOrEmpty(PubFunction.curParameter.EmailSMTP) || string.IsNullOrEmpty(PubFunction.curParameter.EnterpriseEmailPort.ToString()))
         {
             this.isEmail.Value = "1";
             this.btnChoose.Attributes.Add("disabled", "disabled");
             this.txtCustomEmail.Attributes.Add("disabled", "disabled");
             this.txtTitle.Attributes.Add("disabled", "disabled");
             this.txtEmailContent.Attributes.Add("disabled", "disabled");
             this.btnSendEmail.Attributes.Add("disabled", "disabled");
             this.btnReset.Attributes.Add("disabled", "disabled");
         }
     }
 }
예제 #13
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (this.Session["userid"] != null)
     {
         if (this.Session["userid"].ToString() != "")
         {
             Chain.Model.SysUser userModel = this.userBll.GetModel(int.Parse(this.Session["userid"].ToString()));
             Chain.Model.SysShop shopModel = new Chain.BLL.SysShop().GetModel(userModel.UserShopID);
             PubFunction.BindMemLevelSelect(this.sltMemLevelID, false);
             this.sltShop.Value          = shopModel.ShopID.ToString();
             this.sltMemUserID.Value     = userModel.UserID.ToString();
             this.txtMemCreateTime.Value = DateTime.Now.ToString();
         }
     }
     else
     {
         base.Response.Redirect("login.aspx");
     }
 }
예제 #14
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         if (!string.IsNullOrEmpty(base.Request["modiles"]))
         {
             this.txtMemReceiver.Value = base.Request.QueryString["modiles"];
         }
         else
         {
             this.txtMemReceiver.Attributes.Add("display", "none");
         }
         this.chkSms.Checked = this.curParameter.bolSms;
         PubFunction.BindSmsTemplate(this.sltCustomSmsTemplate);
         PubFunction.BindSmsTemplate(this.sltMemSmsTemplate);
         PubFunction.BindMemLevelSelect(this.sltMemLevelID, true);
         PubFunction.BindShopSelect(this._UserShopID, this.sltShop, true);
     }
 }
예제 #15
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         PubFunction.BindMemLevelSelect(this.sltMemLevelID, true);
         this.txtStartTime.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("yyyy-MM-dd");
         this.txtEndTime.Value   = DateTime.Now.ToString("yyyy-MM-dd");
         PubFunction.BindShopSelect(this._UserShopID, this.sltShop, true);
         this.chkAllowPwd.Checked = PubFunction.curParameter.bolPwd;
         this.BindEmptyBillsList(this.QueryCondition());
         if (PubFunction.curParameter.dataAuthority == 1)
         {
             if (this._UserShopID > 1)
             {
                 this.sltShop.Value = this._UserShopID.ToString();
                 this.sltShop.Attributes.Add("disabled", "disabled");
             }
         }
     }
 }
예제 #16
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         PubFunction.BindMemLevelSelect(this.sltMemLevelID, true);
         PubFunction.BindShopSelect(this._UserShopID, this.sltShop, true);
         PubFunction.BindShopSelect(this._UserShopID, this.sltShopChart, true);
         if (PubFunction.curParameter.dataAuthority != 0)
         {
             if (this._UserShopID > 1)
             {
                 this.sltShop.Value = this._UserShopID.ToString();
                 this.sltShop.Attributes.Add("disabled", "disabled");
             }
         }
         this.txtMemStartTime.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("yyyy-MM-dd");
         this.txtMemEndTime.Value   = DateTime.Now.ToString("yyyy-MM-dd");
         this.BindMember();
         this.Get_ParameterList(this.QueryCondition());
     }
 }
예제 #17
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         this.Session["QuerySql"] = null;
         this.ltCustom.Text       = "<input type='text' id='text' name='text' class='border_radius'/>";
         PubFunction.BindMemLevelSelect(this.sltMemLevelID, true);
         PubFunction.BindShopSelect(this._UserShopID, this.sltShop, true);
         PubFunction.BindCustomField(this._UserShopID, this.sltCustomField, true, 1);
         PubFunction.BindUserSelect(this._UserShopID, this.sltMemUserID, true, false);
         if (PubFunction.curParameter.dataAuthority == 1)
         {
             if (this._UserShopID > 1)
             {
                 this.sltShop.Value = this._UserShopID.ToString();
             }
         }
         this.GetMemList(this.QueryCondition());
         this.SetQuickBtn();
         this.chkSms.Checked = this.curParameter.bolSms;
         PubFunction.BindCouponSelect(this.sltCoupon, false);
         this.btnAllMemPointReset.Visible = false;
     }
 }
예제 #18
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");
     }
 }