예제 #1
0
        private void Get_ParameterList()
        {
            SmsLog bllSms = new SmsLog();
            string strSql = PubFunction.GetShopAuthority(this._UserShopID, "ShopID", "1=1");

            this.lblMonthNumber.Text = bllSms.GetSmsMonthNumber(strSql).ToString();
            this.lblTotalNumber.Text = bllSms.GetSmsTotalNumber(strSql).ToString();
            try
            {
                SysParameter sds = new SysParameter();
                if (sds.GetModel(1).Sms)
                {
                    this.lblNotificationSMSBalance.Text = SMSInfo.GetBalance(false);
                }
                else
                {
                    this.TongZhiduanxin.Attributes.Add("style", "display:none");
                }
                if (sds.GetModel(1).MarketingSMS)
                {
                    this.lblMarketingSMSBalance.Text = SMSInfo.GetBalance(true);
                }
                else
                {
                    this.Yinxiaoduanxin.Attributes.Add("style", "display:none");
                }
            }
            catch
            {
            }
            int       Counts = this.NetPagerParameter.RecordCount;
            DataTable db     = bllSms.GetSmsShopReport(this.NetPagerParameter.PageSize, this.NetPagerParameter.CurrentPageIndex, out Counts, new string[]
            {
                strSql
            }).Tables[0];

            this.NetPagerParameter.RecordCount    = Counts;
            this.NetPagerParameter.CustomInfoHTML = string.Format("<div class=\"results\"><span>当前第{0}/{1}页 共{2}条记录 每页{3}条</span></div>", new object[]
            {
                this.NetPagerParameter.CurrentPageIndex,
                this.NetPagerParameter.PageCount,
                this.NetPagerParameter.RecordCount,
                this.NetPagerParameter.PageSize
            });
            this.gvSmsShopReport.DataSource = db;
            this.gvSmsShopReport.DataBind();
            PageBase.BindSerialRepeater(this.gvSmsShopReport, this.NetPagerParameter.PageSize * (this.NetPagerParameter.CurrentPageIndex - 1));
        }
예제 #2
0
        //第一次加载显示的值
        public void RealPrice()
        {
            //先获取房型房价 然后再打折扣
            int room_type_Id = Convert.ToInt32(this.RoomTypeDdl.SelectedValue);

            Model.room_type model = rtBll.GetModel(room_type_Id);
            pricetxt.Value = Convert.ToDecimal(model.room_listedmoney).ToString("0.##");
            int house_shame_id = Convert.ToInt32(this.HouseShameDdl.SelectedValue);

            Model.hourse_scheme hsmodel = hsBll.GetModel(house_shame_id);

            double room_money = (Convert.ToDouble(model.room_listedmoney));

            double discount = (Convert.ToDouble(hsmodel.hs_Discount));

            this.real_price.Value = (room_money * discount).ToString();

            //默认来店时间
            this.time_to.Value = System.DateTime.Now.Date.ToShortDateString();

            //默认入住时间
            this.real_time.Value = System.DateTime.Now.Date.AddDays(1).ToShortDateString() + " " + "18:00";
            Model.SysParamter modelsys = new Model.SysParamter();
            BLL.SysParameter  blls     = new SysParameter();
            modelsys = blls.GetModel(1);
            TimeSpan dt1 = TimeSpan.Parse(modelsys.DayOutTime.ToString());//得到系统设置的天房退房时间

            //默认离店时间
            this.time_from.Value = System.DateTime.Now.Date.AddDays(2).AddHours(dt1.Hours).ToString();
        }