Ejemplo n.º 1
0
        /// <summary>
        /// 页面初始化
        /// </summary>
        private void PageInit()
        {
            Eyousoft_yhq.BLL.Order bll = new Eyousoft_yhq.BLL.Order();

            #region 查询实体
            Eyousoft_yhq.Model.MSearchOrder serchModel = new Eyousoft_yhq.Model.MSearchOrder();
            serchModel.STime      = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtStartTime"));
            serchModel.ETime      = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtEndTime") + " 23:59:59");
            serchModel.RouteName  = Utils.GetQueryStringValue("txtRouteName");
            serchModel.OrderPrice = Utils.GetDecimal(Utils.GetQueryStringValue("txtOrderPrice"));
            serchModel.MemberID   = HuiYuanInfo.UserID;
            pageIndex             = UtilsCommons.GetPagingIndex("Page");
            #endregion

            btnAppUser.Visible = EyouSoft.Common.Page.HuiyuanPage.GetUserInfo().IsAdmin == "1";

            var list = bll.GetList(pageSize, pageIndex, ref recordCount, serchModel);

            if (list != null && list.Count > 0)
            {
                this.rpOrder.DataSource = list;
                this.rpOrder.DataBind();
                BindPage();
            }
            else
            {
                Literal1.Text = "<tr align=\"center\"> <td colspan=\"11\">没有相关数据</td></tr>";
            }
        }
Ejemplo n.º 2
0
        protected void InitOrders(string Type)
        {
            Eyousoft_yhq.BLL.Order bll = new Eyousoft_yhq.BLL.Order();

            Eyousoft_yhq.Model.MSearchOrder serchModel = new Eyousoft_yhq.Model.MSearchOrder();
            serchModel.PaymentState = (Eyousoft_yhq.Model.PaymentState?)Utils.GetEnumValueNull(typeof(Eyousoft_yhq.Model.PaymentState), Utils.GetQueryStringValue("OrderType"), (int)Eyousoft_yhq.Model.PaymentState.未支付);
            serchModel.MemberID     = userInfo.UserID;
            pageIndex = Utils.GetInt(Utils.GetQueryStringValue("pageindex"));

            var list   = bll.GetList(pageSize, pageIndex, ref recordCount, serchModel);
            int isPage = 0;

            if (recordCount % pageSize != 0)
            {
                isPage = recordCount / pageSize + 1;
            }
            else
            {
                isPage = recordCount / pageSize;
            }
            if (list != null && list.Count > 0)
            {
                if (isPage >= pageIndex)
                {
                    rpt_orders.DataSource = list;
                    rpt_orders.DataBind();
                }
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 初始化列表
        /// </summary>
        protected void InitOrders()
        {
            Eyousoft_yhq.BLL.Order bll = new Eyousoft_yhq.BLL.Order();

            #region 查询实体
            Eyousoft_yhq.Model.MSearchOrder serchModel = new Eyousoft_yhq.Model.MSearchOrder();
            serchModel.MemberID      = Utils.GetQueryStringValue("userid");
            serchModel.PromotionCode = Utils.GetQueryStringValue("Code") == "" ? "未知" : Utils.GetQueryStringValue("Code");
            serchModel.PaymentState  = Eyousoft_yhq.Model.PaymentState.已支付;
            pageIndex = UtilsCommons.GetPagingIndex("Page");
            #endregion

            var list = bll.GetFYList(pageSize, pageIndex, ref recordCount, serchModel);
            if (list != null && list.Count > 0)
            {
                rpt_orders.DataSource = list;
                rpt_orders.DataBind();
                this.ExporPageInfoSelect1.PageLinkURL    = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
                this.ExporPageInfoSelect1.intPageSize    = pageSize;
                this.ExporPageInfoSelect1.CurrencyPage   = pageIndex;
                this.ExporPageInfoSelect1.intRecordCount = recordCount;
                this.ExporPageInfoSelect1.UrlParams      = Request.QueryString;


                litMsg.Visible = false;



                var Countlist = bll.GetList(serchModel);
                for (int i = 0; i < Countlist.Count; i++)
                {
                    sumPayED += Countlist[i].RebackMoney;
                    sumBacK  += Countlist[i].backMoney;
                }
                lblPayED.Text = sumPayED.ToString("C2");
                lblBacK.Text  = sumBacK.ToString("C2");
            }
            else
            {
                plaHJ.Visible      = false;
                rpt_orders.Visible = false;
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 初始化列表
        /// </summary>
        protected void InitOrders()
        {
            Eyousoft_yhq.BLL.Order bll = new Eyousoft_yhq.BLL.Order();

            #region 查询实体
            Eyousoft_yhq.Model.MSearchOrder serchModel = new Eyousoft_yhq.Model.MSearchOrder();
            serchModel.MemberID = Utils.GetQueryStringValue("userid");
            serchModel.PromotionCode = Utils.GetQueryStringValue("Code") == "" ? "未知" : Utils.GetQueryStringValue("Code");
            serchModel.PaymentState = Eyousoft_yhq.Model.PaymentState.已支付;
            pageIndex = UtilsCommons.GetPagingIndex("Page");
            #endregion

            var list = bll.GetFYList(pageSize, pageIndex, ref recordCount, serchModel);
            if (list != null && list.Count > 0)
            {
                rpt_orders.DataSource = list;
                rpt_orders.DataBind();
                this.ExporPageInfoSelect1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
                this.ExporPageInfoSelect1.intPageSize = pageSize;
                this.ExporPageInfoSelect1.CurrencyPage = pageIndex;
                this.ExporPageInfoSelect1.intRecordCount = recordCount;
                this.ExporPageInfoSelect1.UrlParams = Request.QueryString;

                litMsg.Visible = false;

                var Countlist = bll.GetList(serchModel);
                for (int i = 0; i < Countlist.Count; i++)
                {
                    sumPayED += Countlist[i].RebackMoney;
                    sumBacK += Countlist[i].backMoney;
                }
                lblPayED.Text = sumPayED.ToString("C2");
                lblBacK.Text = sumBacK.ToString("C2");

            }
            else
            {
                plaHJ.Visible = false;
                rpt_orders.Visible = false;
            }
        }
Ejemplo n.º 5
0
        protected void InitOrders(string Type)
        {
            Eyousoft_yhq.BLL.Order bll = new Eyousoft_yhq.BLL.Order();

            Eyousoft_yhq.Model.MSearchOrder serchModel = new Eyousoft_yhq.Model.MSearchOrder();
            serchModel.PaymentState = (Eyousoft_yhq.Model.PaymentState?)Utils.GetEnumValueNull(typeof(Eyousoft_yhq.Model.PaymentState), Utils.GetQueryStringValue("OrderType"), (int)Eyousoft_yhq.Model.PaymentState.未支付);
            serchModel.MemberID     = userInfo.UserID;

            var list = bll.GetList(pageSize, pageIndex, ref recordCount, serchModel);

            if (list != null && list.Count > 0)
            {
                rpt_orders.DataSource = list;
                rpt_orders.DataBind();
                litMsg.Visible = false;
            }
            else
            {
                PlaceHolder1.Visible = false;
                litMsg.Visible       = true;
            }
        }
Ejemplo n.º 6
0
        /// <summary>
        /// 初始化列表
        /// </summary>
        protected void InitOrders()
        {
            Eyousoft_yhq.BLL.Order bll = new Eyousoft_yhq.BLL.Order();

            #region 查询实体
            Eyousoft_yhq.Model.MSearchOrder serchModel = new Eyousoft_yhq.Model.MSearchOrder();
            serchModel.OrderCode    = Utils.GetQueryStringValue("orderCode");
            serchModel.ConfirmCode  = Utils.GetQueryStringValue("ConfirmCode");
            serchModel.STime        = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("StartTime"));
            serchModel.ETime        = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("EndTime"));
            serchModel.OrderState   = (Eyousoft_yhq.Model.OrderState?)Utils.GetEnumValueNull(typeof(Eyousoft_yhq.Model.OrderState), Utils.GetQueryStringValue("sleorderstatus"));
            serchModel.PaymentState = (Eyousoft_yhq.Model.PaymentState?)Utils.GetEnumValueNull(typeof(Eyousoft_yhq.Model.PaymentState), Utils.GetQueryStringValue("slepaystatus"));
            if (!string.IsNullOrEmpty(Utils.GetQueryStringValue("jiesuan")))
            {
                serchModel.jiesuan = (Eyousoft_yhq.Model.JSfangshi)Utils.GetInt(Utils.GetQueryStringValue("jiesuan"));
            }

            pageIndex = UtilsCommons.GetPagingIndex("Page");

            if (HuiYuanInfo.LeiXing == Eyousoft_yhq.Model.WebmasterLeiXing.供应商)
            {
                serchModel.ChanPinFaBuRenId = HuiYuanInfo.UserId;
                phSMDZD.Visible             = false;
            }
            #endregion

            var list = bll.GetList(pageSize, pageIndex, ref recordCount, serchModel);
            if (list != null && list.Count > 0)
            {
                rpt_orders.DataSource = list;
                rpt_orders.DataBind();
                BindPage();
                litMsg.Visible = false;
            }
            else
            {
                rpt_orders.Visible = false;
            }
        }
Ejemplo n.º 7
0
        /// <summary>
        /// 初始化列表
        /// </summary>
        protected void InitOrders()
        {
            Eyousoft_yhq.BLL.Order bll = new Eyousoft_yhq.BLL.Order();

            #region 查询实体
            Eyousoft_yhq.Model.MSearchOrder serchModel = new Eyousoft_yhq.Model.MSearchOrder();
            serchModel.OrderCode = Utils.GetQueryStringValue("orderCode");
            serchModel.ConfirmCode = Utils.GetQueryStringValue("ConfirmCode");
            serchModel.STime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("StartTime"));
            serchModel.ETime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("EndTime"));
            serchModel.OrderState = (Eyousoft_yhq.Model.OrderState?)Utils.GetEnumValueNull(typeof(Eyousoft_yhq.Model.OrderState), Utils.GetQueryStringValue("sleorderstatus"));
            serchModel.PaymentState = (Eyousoft_yhq.Model.PaymentState?)Utils.GetEnumValueNull(typeof(Eyousoft_yhq.Model.PaymentState), Utils.GetQueryStringValue("slepaystatus"));
            if (!string.IsNullOrEmpty(Utils.GetQueryStringValue("jiesuan"))) serchModel.jiesuan = (Eyousoft_yhq.Model.JSfangshi)Utils.GetInt(Utils.GetQueryStringValue("jiesuan"));

            pageIndex = UtilsCommons.GetPagingIndex("Page");

            if (HuiYuanInfo.LeiXing == Eyousoft_yhq.Model.WebmasterLeiXing.供应商)
            {
                serchModel.ChanPinFaBuRenId = HuiYuanInfo.UserId;
                phSMDZD.Visible = false;
            }
            #endregion

            var list = bll.GetList(pageSize, pageIndex, ref recordCount, serchModel);
            if (list != null && list.Count > 0)
            {
                rpt_orders.DataSource = list;
                rpt_orders.DataBind();
                BindPage();
                litMsg.Visible = false;

            }
            else
            {
                rpt_orders.Visible = false;
            }
        }
Ejemplo n.º 8
0
        protected void InitOrders(string Type)
        {
            Eyousoft_yhq.BLL.Order bll = new Eyousoft_yhq.BLL.Order();

            Eyousoft_yhq.Model.MSearchOrder serchModel = new Eyousoft_yhq.Model.MSearchOrder();
            serchModel.PaymentState = (Eyousoft_yhq.Model.PaymentState?)Utils.GetEnumValueNull(typeof(Eyousoft_yhq.Model.PaymentState), Utils.GetQueryStringValue("OrderType"), (int)Eyousoft_yhq.Model.PaymentState.未支付);
            serchModel.MemberID = userInfo.UserID;
            pageIndex = Utils.GetInt(Utils.GetQueryStringValue("pageindex"));

            var list = bll.GetList(pageSize, pageIndex, ref recordCount, serchModel);
            int isPage = 0;
            if (recordCount % pageSize != 0)
            {
                isPage = recordCount / pageSize + 1;
            }
            else
            {
                isPage = recordCount / pageSize;
            }
            if (list != null && list.Count > 0)
            {
                if (isPage >= pageIndex)
                {
                    rpt_orders.DataSource = list;
                    rpt_orders.DataBind();
                }
            }
        }
Ejemplo n.º 9
0
        protected void InitOrders(string Type)
        {
            Eyousoft_yhq.BLL.Order bll = new Eyousoft_yhq.BLL.Order();

            Eyousoft_yhq.Model.MSearchOrder serchModel = new Eyousoft_yhq.Model.MSearchOrder();
            serchModel.PaymentState = (Eyousoft_yhq.Model.PaymentState?)Utils.GetEnumValueNull(typeof(Eyousoft_yhq.Model.PaymentState), Utils.GetQueryStringValue("OrderType"), (int)Eyousoft_yhq.Model.PaymentState.未支付);
            serchModel.MemberID = userInfo.UserID;

            var list = bll.GetList(pageSize, pageIndex, ref recordCount, serchModel);
            if (list != null && list.Count > 0)
            {
                rpt_orders.DataSource = list;
                rpt_orders.DataBind();
                litMsg.Visible = false;
            }
            else
            {
                PlaceHolder1.Visible = false;
                litMsg.Visible = true;
            }
        }
Ejemplo n.º 10
0
        /// <summary>
        /// 页面初始化
        /// </summary>
        private void PageInit()
        {
            Eyousoft_yhq.BLL.Order bll = new Eyousoft_yhq.BLL.Order();

            #region 查询实体
            Eyousoft_yhq.Model.MSearchOrder serchModel = new Eyousoft_yhq.Model.MSearchOrder();
            serchModel.STime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtStartTime"));
            serchModel.ETime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtEndTime") + " 23:59:59");
            serchModel.RouteName = Utils.GetQueryStringValue("txtRouteName");
            serchModel.OrderPrice = Utils.GetDecimal(Utils.GetQueryStringValue("txtOrderPrice"));
            serchModel.MemberID = HuiYuanInfo.UserID;
            pageIndex = UtilsCommons.GetPagingIndex("Page");
            #endregion

            btnAppUser.Visible = EyouSoft.Common.Page.HuiyuanPage.GetUserInfo().IsAdmin == "1";

            var list = bll.GetList(pageSize, pageIndex, ref recordCount, serchModel);

            if (list != null && list.Count > 0)
            {
                this.rpOrder.DataSource = list;
                this.rpOrder.DataBind();
                BindPage();
            }
            else
            {
                Literal1.Text = "<tr align=\"center\"> <td colspan=\"11\">没有相关数据</td></tr>";
            }
        }