Пример #1
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void DataInit()
        {
            //获取分页参数并强转
            pageIndex = Utils.GetInt(Utils.GetQueryStringValue("page"), 1);
            #region 搜索条件
            //团号
            string teamNum = Utils.GetQueryStringValue("txtTourCode");
            //订单号
            string OrderCode = Utils.GetQueryStringValue("txtOrderCode");
            //线路名称
            string lineName = Utils.GetQueryStringValue("txtRouteName");
            //销售员
            string salesMan = Utils.GetQueryStringValue(this.SellsSelect1.SellsNameClient);
            this.SellsSelect1.SellsName = salesMan;
            //出团时间
            DateTime?leaveTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtLeaveBeginTime"));
            //回团时间
            DateTime?backTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtLeaveEndTime"));

            //下单开始时间
            DateTime?OrderIssueBeginTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtOrderIssueBeginTime"));
            //下单结束时间
            DateTime?OrderIssueEndTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtOrderIssueEndTime"));
            //订单类型
            int intOrderType = Utils.GetInt(Utils.GetQueryStringValue("OrderTypeBySearch"), 0);

            EyouSoft.Model.TourStructure.MSearchOrderCenter searchModel = new EyouSoft.Model.TourStructure.MSearchOrderCenter();
            searchModel.OrderCode           = OrderCode;
            searchModel.OrderIssueBeginTime = backTime;
            searchModel.OrderIssueEndTime   = leaveTime;
            searchModel.LeaveBeginTime      = backTime;
            searchModel.LeaveEndTime        = leaveTime;
            searchModel.TourCode            = teamNum;
            searchModel.RouteName           = lineName;
            searchModel.SellerName          = salesMan;
            searchModel.CompanyId           = SiteUserInfo.CompanyId;
            searchModel.OrderTypeBySearch   = (OrderTypeBySearch)intOrderType;
            #endregion
            //声明list对象保存收客列表数据

            /*object[] heJi;
             * IList<MTradeOrder> list = new EyouSoft.BLL.TourStructure.BTourOrder().GetTourOrderList(searchModel, pageSize, pageIndex, ref recordCount, out heJi);
             * if (list != null && list.Count > 0)
             * {
             *  this.rptList.DataSource = list;
             *  this.rptList.DataBind();
             *  //绑定分页
             *  BindPage();
             * }
             * else
             * {
             *  this.lblMsg.Text = "没有相关数据!";
             *  this.ExporPageInfoSelect1.Visible = false;
             *  this.ExporPageInfoSelect2.Visible = false;
             * }*/
        }
Пример #2
0
        /// <summary>
        /// get chaxun info
        /// </summary>
        /// <returns></returns>
        EyouSoft.Model.TourStructure.MSearchOrderCenter GetChaXunInfo()
        {
            var info = new EyouSoft.Model.TourStructure.MSearchOrderCenter();

            info.TourCode            = Utils.GetQueryStringValue("txtTourCode");
            info.OrderCode           = Utils.GetQueryStringValue("txtOrderCode");
            info.RouteName           = Utils.GetQueryStringValue("txtRouteName");
            info.SellerId            = SellsSelect1.SellsID = Utils.GetQueryStringValue(this.SellsSelect1.SellsIDClient);
            info.SellerName          = SellsSelect1.SellsName = Utils.GetQueryStringValue(this.SellsSelect1.SellsNameClient);
            info.LeaveBeginTime      = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtLeaveBeginTime"));
            info.LeaveEndTime        = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtLeaveEndTime"));
            info.OrderIssueBeginTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtOrderIssueBeginTime"));
            info.OrderIssueEndTime   = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtOrderIssueEndTime"));
            info.OrderTypeBySearch   = Utils.GetEnumValue <OrderTypeBySearch>(Utils.GetQueryStringValue("OrderTypeBySearch"), OrderTypeBySearch.我操作的订单);
            info.CompanyId           = CurrentUserCompanyID;
            info.XiaDanRenId         = txtXiaDanRen.SellsID = Utils.GetQueryStringValue(txtXiaDanRen.SellsIDClient);
            info.XiaDanRenName       = txtXiaDanRen.SellsName = Utils.GetQueryStringValue(txtXiaDanRen.SellsNameClient);

            string status = Utils.GetQueryStringValue(txtOrderStatus.ZTIdClientID);

            if (!string.IsNullOrEmpty(status))
            {
                string[] items = status.Split(',');
                if (items != null && items.Length > 0)
                {
                    info.OrderStatus = new EyouSoft.Model.EnumType.TourStructure.OrderStatus[items.Length];
                    for (int i = 0; i < items.Length; i++)
                    {
                        info.OrderStatus[i] = Utils.GetEnumValue <EyouSoft.Model.EnumType.TourStructure.OrderStatus>(items[i], EyouSoft.Model.EnumType.TourStructure.OrderStatus.已成交);
                    }
                }
            }

            info.CrmId   = Utils.GetQueryStringValue(txtKeHuDanWei.ClientNameKHBH);
            info.CrmName = Utils.GetQueryStringValue(txtKeHuDanWei.ClientNameKHMC);

            string xiaoShouYuanDepts = txtXiaoShouYuanDept.SectionID = Utils.GetQueryStringValue(txtXiaoShouYuanDept.SelectIDClient);

            txtXiaoShouYuanDept.SectionName = Utils.GetQueryStringValue(txtXiaoShouYuanDept.SelectNameClient);

            if (!string.IsNullOrEmpty(xiaoShouYuanDepts))
            {
                string[] items = xiaoShouYuanDepts.Split(',');
                if (items != null && items.Length > 0)
                {
                    info.XiaoShouYuanDeptIds = new int[items.Length];
                    for (int i = 0; i < items.Length; i++)
                    {
                        info.XiaoShouYuanDeptIds[i] = Utils.GetInt(items[i]);
                    }
                }
            }

            return(info);
        }