예제 #1
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");
     }
 }
예제 #2
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();
     }
 }
예제 #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.BindUserSelect(this._UserShopID, this.sltUserID, true, false);
         PubFunction.BindShopSelect(this._UserShopID, this.sltShop, this._UserShopID, this._UserShopID != 1);
         this.BingChangeType();
         this.Get_ParameterList(this.QueryCondition());
         this.txtUser.Value = this._UserName;
         PubFunction.Get_PrintTitle(ref this.lblPrintTitle, ref this.lblPrintFoot, this._UserShopID);
     }
     this.PointNum.Value = PubFunction.GetPointNum("CKRKML");
 }
예제 #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         this.chkSMS.Checked               = (this.curParameter.bolMoneySms && this.curParameter.bolAutoSendSMSByMemPointChange);
         this.chkPrint.Checked             = this.curParameter.bolAutoPrint;
         this.lblPointChange.InnerText     = this.curParameter.strMemPointChangePrefix + DateTime.Now.ToString("yyMMddHHmmssffff");
         this.lblPointChangeTime.InnerText = DateTime.Now.ToString();
         this.lblPointChangeUser.InnerText = this._UserName;
         PubFunction.Get_PrintTitle(ref this.lblPrintTitle, ref this.lblPrintFoot, this._UserShopID);
         this.PointNum.Value = PubFunction.GetPointNum("JFBD");
     }
 }
예제 #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         if (base.Request.QueryString["PID"] != null)
         {
             int pid = int.Parse(base.Request.QueryString["PID"]);
             if (pid == 147)
             {
                 this.txtDrawType.Value = "2";
             }
             else if (pid == 148)
             {
                 this.txtDrawType.Value = "3";
                 this.ltlTitle.Text     = "主页  >  商家管理  >  商家积分申请提现";
             }
         }
         this.chkSMS.Checked           = (this.curParameter.bolMoneySms && this.curParameter.bolAutoSendSMSByMemPointChange);
         this.chkPrint.Checked         = this.curParameter.bolAutoPrint;
         this.lblDrawAccount.InnerText = this.curParameter.strMemPointChangePrefix + DateTime.Now.ToString("yyMMddHHmmssffff");
         this.lblDrawTime.InnerText    = DateTime.Now.ToString();
         this.lblDrawUser.InnerText    = this._UserName;
         this.txtDrawUserID.Value      = this._UserID.ToString();
         PubFunction.Get_PrintTitle(ref this.lblPrintTitle, ref this.lblPrintFoot, this._UserShopID);
         SysShop             shop         = new SysShop();
         Chain.BLL.PointDraw bllPointDraw = new Chain.BLL.PointDraw();
         if (this._UserShopID == 1)
         {
             this.txtTotalPoint.Value = "0";
         }
         else
         {
             int point     = shop.GetShopPointByShopid(this._UserShopID, int.Parse(this.txtDrawType.Value));
             int drawPoint = bllPointDraw.GetShopPointDraw(this._UserShopID);
             if (drawPoint >= point)
             {
                 this.txtTotalPoint.Value = "0";
             }
             else
             {
                 this.txtTotalPoint.Value = (point - drawPoint).ToString();
             }
         }
         this.txtShopID.Value = this._UserShopID.ToString();
         this.lbl_PointDrawPercent.InnerText = PubFunction.curParameter.PointDrawPercent.ToString();
         this.PointNum.Value = PubFunction.GetPointNum("JFBD");
     }
 }
예제 #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         this.lblOrderAccount.InnerText    = this.curParameter.StorageTimingPrefix + DateTime.Now.ToString("yyMMddHHmmssffff");
         this.lblOrderCreateTime.InnerText = DateTime.Now.ToString();
         this.lblOrderUSer.InnerText       = this._UserName;
         PubFunction.Get_PrintTitle(ref this.lblPrintTitle, ref this.lblPrintFoot, this._UserShopID);
         this.lblIsSMS.Style.Add("display", (this.curParameter.bolMoneySms && this.curParameter.bolAutoSendSMSByTimingConsumption) ? "\"\"" : "none");
         this.chkIsSMS.Checked                = this.curParameter.bolSms;
         this.chkPrint.Checked                = this.curParameter.bolAutoPrint;
         this.chkAllowPwd.Checked             = this.curParameter.bolPwd;
         this.chkSMS.Checked                  = (this.curParameter.bolMoneySms && this.curParameter.IsAutoSendSMSByStorageTiming);
         this.ucMemberSearch.BolSenseICCard   = this.curParameter.bolSenseiccard;
         this.ucMemberSearch.BolContactICCard = this.curParameter.bolContacticcard;
         this.PointNum.Value                  = PubFunction.GetPointNum("HYCS");
     }
 }
예제 #8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         PubFunction.BindShopSelect(this._UserShopID, this.sltShop, this._UserShopID, this._UserShopID != 1);
         this.chkPrint.Checked          = this.curParameter.bolAutoPrint;
         this.sltShop.Value             = this._UserShopID.ToString();
         this.lblUSer.InnerText         = this._UserName;
         this.spGoodsAccounte.InnerText = this.curParameter.strGoodsInPrefix + DateTime.Now.ToString("yyMMddHHmmssffff");
         this.txtCreteTime.Value        = DateTime.Now.ToString("yyyy-MM-dd");
         PubFunction.Get_PrintTitle(ref this.lblPrintTitle, ref this.lblPrintFoot, this._UserShopID);
         if (this._UserShopID != 1)
         {
             this.sltShop.Attributes.Add("disabled", "disabled");
         }
         this.PointNum.Value = PubFunction.GetPointNum("SPRK");
     }
 }
예제 #9
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.lblAccount.InnerText      = "zz" + DateTime.Now.ToString("yyMMddHHmmssffff");
         this.lblTransferTime.InnerText = DateTime.Now.ToString();
         this.lblTransferUSer.InnerText = PubFunction.UserIDTOName(this._UserID);
         PubFunction.Get_PrintTitle(ref this.lblPrintTitle, ref this.lblPrintFoot, this._UserShopID);
         this.chkSMS.Checked = (PubFunction.curParameter.bolMoneySms && this.curParameter.bolAutoSendSMSByMemRecharge);
         this.lblIsSMS.Style.Add("display", (this.curParameter.bolMoneySms && this.curParameter.bolAutoSendSMSByMemRecharge) ? "\"\"" : "none");
         this.chkIsSMS.Checked = PubFunction.curParameter.bolSms;
         this.ucMemberSearch.BolSenseICCard   = this.curParameter.bolSenseiccard;
         this.ucMemberSearch.BolContactICCard = this.curParameter.bolContacticcard;
     }
 }
예제 #10
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (base.Request.QueryString["MemCard"] != null)
     {
         this.MemCard.Value = base.Request.QueryString["MemCard"];
     }
     this.lblMemDrawMoney.InnerText  = this.curParameter.strMemDrawMoneyPrefix + DateTime.Now.ToString("yyMMddHHmmssffff");
     this.lblDrawMoneyTime.InnerText = DateTime.Now.ToString();
     this.chkIsSMS.Checked           = PubFunction.curParameter.bolSms;
     this.chkSMS.Checked             = (PubFunction.curParameter.bolMoneySms && this.curParameter.bolAutoSendSMSByMemWithdraw);
     this.lblIsSMS.Style.Add("display", (PubFunction.curParameter.bolMoneySms && this.curParameter.bolAutoSendSMSByMemWithdraw) ? "\"\"" : "none");
     this.spanDrawPercent.InnerHtml       = PubFunction.curParameter.DrawMoneyPercent.ToString() + " (注:0.5表示10元账户余额可以折现为5元,1表示余额可全额折现)";
     this.txtDrawPercent.Value            = PubFunction.curParameter.DrawMoneyPercent.ToString();
     this.ucMemberSearch.BolSenseICCard   = this.curParameter.bolSenseiccard;
     this.ucMemberSearch.BolContactICCard = this.curParameter.bolContacticcard;
     this.lblOrderUSers.Value             = PubFunction.UserIDTOName(this._UserID);
     this.PointNum.Value = PubFunction.GetPointNum("ZHTX");
     PubFunction.Get_PrintTitle(ref this.lblPrintTitle, ref this.lblPrintFoot, this._UserShopID);
 }
예제 #11
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         Chain.BLL.OrderTime   bllTime = new Chain.BLL.OrderTime();
         Chain.Model.OrderTime model   = new Chain.Model.OrderTime();
         this.txtEndTime.Value = DateTime.Now.ToString();
         if (base.Request.QueryString["OrderCode"] != null)
         {
             DataTable dt = bllTime.GetList(" OrderTimeCode='" + base.Request.QueryString["OrderCode"].ToString() + "'").Tables[0];
             model = bllTime.GetModel(int.Parse(dt.Rows[0]["OrderTimeID"].ToString()));
             TimeSpan ts = DateTime.Now.Subtract(Convert.ToDateTime(model.OrderMarchTime));
             this.txtProject.Value = model.OrderProjectID.ToString();
             int allminute = 0;
             try
             {
                 Chain.Model.Timingrules mdTimingrules = new Chain.BLL.Timingrules().GetModel(Convert.ToInt32(dt.Rows[0]["OrderRulesID"]));
                 int minute = ts.Minutes + (ts.Hours + ts.Days * 24) * 60;
                 allminute = minute;
                 int micount  = minute / mdTimingrules.RulesInterval;
                 int passtime = minute % mdTimingrules.RulesInterval;
                 if (micount > 0)
                 {
                     if (passtime > mdTimingrules.RulesExceedTime)
                     {
                         micount++;
                     }
                 }
                 else
                 {
                     micount = 1;
                 }
                 this.txtExpMoney.Value                       = (mdTimingrules.RulesUnitPrice * micount).ToString("F2");
                 this.txtDiscountMoney.Value                  = this.txtExpMoney.Value;
                 this.JSXF.Value                              = "1";
                 this.txtExpMoney.Attributes["readonly"]      = "readonly";
                 this.txtDiscountMoney.Attributes["readonly"] = "readonly";
                 this.txtExpPoint.Attributes["readonly"]      = "readonly";
             }
             catch
             {
             }
             if (bool.Parse(base.Request.QueryString["IsMem"]))
             {
                 if (base.Request.QueryString["MemCard"] != null)
                 {
                     this.MemCard.Value = base.Request.QueryString["MemCard"];
                 }
             }
             else
             {
                 this.MemCard.Value = "0";
             }
             this.lblOrderAccount.InnerText = base.Request.QueryString["OrderCode"];
             this.txtExpPoint.Value         = "0";
             this.spTimeInfo.InnerHtml      = string.Concat(new object[]
             {
                 "开始时间:",
                 model.OrderMarchTime,
                 "  结束时间:",
                 DateTime.Now.ToString(),
                 "<br>消费时长:",
                 ts.Hours + ts.Days * 24,
                 "小时 ",
                 ts.Minutes,
                 "分钟 ",
                 ts.Seconds,
                 "秒<br>总共:",
                 allminute,
                 "分钟"
             });
             this.txtIsTimeExpense.Value = "1";
             this.chkSMS.Checked         = (this.curParameter.bolMoneySms && this.curParameter.bolAutoSendSMSByTimingConsumption);
             this.lblIsSMS.Style.Add("display", (this.curParameter.bolMoneySms && this.curParameter.bolAutoSendSMSByTimingConsumption) ? "\"\"" : "none");
         }
         else
         {
             this.trTimeExpense.Attributes.Add("style", "display:none;");
             if (base.Request.QueryString["MemCard"] != null)
             {
                 this.MemCard.Value = base.Request.QueryString["MemCard"];
             }
             this.txtIsTimeExpense.Value    = "0";
             this.lblOrderAccount.InnerText = this.curParameter.strExpensePrefix + DateTime.Now.ToString("yyMMddHHmmssffff");
             this.chkSMS.Checked            = (this.curParameter.bolMoneySms && this.curParameter.bolAutoSendSMSByFastConsumption);
             this.lblIsSMS.Style.Add("display", (this.curParameter.bolMoneySms && this.curParameter.bolAutoSendSMSByFastConsumption) ? "\"\"" : "none");
             this.ucMemberSearch.BolSenseICCard   = this.curParameter.bolSenseiccard;
             this.ucMemberSearch.BolContactICCard = this.curParameter.bolContacticcard;
         }
         this.lblOrderCreateTime.InnerText = DateTime.Now.ToString();
         this.lblOrderUSer.InnerText       = PubFunction.UserIDTOName(this._UserID);
         PubFunction.Get_PrintTitle(ref this.lblPrintTitle, ref this.lblPrintFoot, this._UserShopID);
         this.chkIsSMS.Checked    = this.curParameter.bolSms;
         this.chkPrint.Checked    = this.curParameter.bolAutoPrint;
         this.chkAllowPwd.Checked = this.curParameter.bolPwd;
         this.PointNum.Value      = PubFunction.GetPointNum("KSXF");
     }
 }