Example #1
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.AppUser = Utils.GetQueryStringValue("AppUser");
            serchModel.ConSumState = Eyousoft_yhq.Model.ConSumState.已消费;

            pageIndex = UtilsCommons.GetPagingIndex("Page");

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

            var list = bll.GetScanList(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;
            }
        }
Example #2
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.XSTime      = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtXStartTime"));
            serchModel.XETime      = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtXEndTime") + " 23:59:59");
            serchModel.OrderCode   = Utils.GetQueryStringValue("txtOrderCode");
            serchModel.AppUserId   = HuiYuanInfo.UserID;
            serchModel.ConSumState = Eyousoft_yhq.Model.ConSumState.已消费;
            pageIndex = UtilsCommons.GetPagingIndex("Page");
            #endregion

            var list = bll.GetScanList(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>";
            }
        }
Example #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.OrderCode   = Utils.GetQueryStringValue("orderCode");
            serchModel.ConfirmCode = Utils.GetQueryStringValue("ConfirmCode");
            serchModel.STime       = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("StartTime"));
            serchModel.ETime       = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("EndTime"));
            serchModel.AppUser     = Utils.GetQueryStringValue("AppUser");
            serchModel.ConSumState = Eyousoft_yhq.Model.ConSumState.已消费;

            pageIndex = UtilsCommons.GetPagingIndex("Page");

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

            var list = bll.GetScanList(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;
            }
        }
Example #4
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.XSTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtXStartTime"));
            serchModel.XETime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtXEndTime") + " 23:59:59");
            serchModel.OrderCode = Utils.GetQueryStringValue("txtOrderCode");
            serchModel.AppUserId = HuiYuanInfo.UserID;
            serchModel.ConSumState = Eyousoft_yhq.Model.ConSumState.已消费;
            pageIndex = UtilsCommons.GetPagingIndex("Page");
            #endregion

            var list = bll.GetScanList(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>";
            }
        }