示例#1
0
        /// <summary>
        /// 获取列表
        /// </summary>
        private void GetList()
        {
            pageIndex = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1);
            EyouSoft.Model.TourStructure.MBZSearch Search = new EyouSoft.Model.TourStructure.MBZSearch();
            Search.TourCode  = Utils.GetQueryStringValue("txtTourCode");
            Search.RouteName = Utils.GetQueryStringValue("txtRouteName");
            Search.SLDate    = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtStarTime"));
            Search.LLDate    = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtEndTime"));
            Search.IsDealt   = false;
            IList <EyouSoft.Model.TourStructure.MBZInfo> list = new EyouSoft.BLL.TourStructure.BTour().GetGuidBZList(this.SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, Search, this.SiteUserInfo.DeptId);

            if (list != null && list.Count > 0)
            {
                this.replist.DataSource = list;
                this.replist.DataBind();
                if (recordCount > pageSize)
                {
                    //绑定分页
                    BindPage();
                }
                else
                {
                    this.ExporPageInfoSelect1.Visible = false;
                }
            }
            else
            {
                this.ExporPageInfoSelect1.Visible = false;
                this.lblMsg.Text = "未搜索到相关线路!";
            }
        }
示例#2
0
        /// <summary>
        /// 获取查询参数
        /// </summary>
        /// <returns></returns>
        EyouSoft.Model.TourStructure.MBZSearch GetSearchInfo(int tourStatus)
        {
            //导游
            string guidId   = Utils.GetQueryStringValue(txtDaoYou.GuidIDClient);
            string guidName = Utils.GetQueryStringValue(txtDaoYou.GuidNameClient);

            if (!string.IsNullOrEmpty(guidId) && !string.IsNullOrEmpty(guidName))
            {
                this.txtDaoYou.GuidID   = guidId;
                this.txtDaoYou.GuidName = guidName;
            }
            //销售员
            string selerId   = Utils.GetQueryStringValue(txtXiaoShouYuan.SellsIDClient);
            string selerName = Utils.GetQueryStringValue(txtXiaoShouYuan.SellsNameClient);

            if (!string.IsNullOrEmpty(selerId))
            {
                this.txtXiaoShouYuan.SellsID = selerId;
            }
            if (!string.IsNullOrEmpty(selerName))
            {
                this.txtXiaoShouYuan.SellsName = selerName;
            }

            var info = new EyouSoft.Model.TourStructure.MBZSearch();

            info.TourCode   = Utils.GetQueryStringValue("txtTourCode");
            info.RouteName  = Utils.GetQueryStringValue("txtRouteName");
            info.SLDate     = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtLSDate"));
            info.LLDate     = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtLEDate"));
            info.Guide      = guidName;
            info.GuideId    = guidId;
            info.SellerId   = selerId;
            info.SellerName = selerName;
            info.IsDealt    = Utils.GetInt(Utils.GetQueryStringValue("sltStatus"), 0) != 1 ? false : true;
            if (tourStatus > -1)
            {
                info.TourStatus = (EyouSoft.Model.EnumType.TourStructure.TourStatus)tourStatus;
            }

            info.FaBuRenId   = txtFaBuRen.SellsID = Utils.GetQueryStringValue(txtFaBuRen.SellsIDClient);
            info.FaBuRenName = txtFaBuRen.SellsName = Utils.GetQueryStringValue(txtFaBuRen.SellsNameClient);

            info.PlanerId = txtJiDiaoYuan.SellsID = Utils.GetQueryStringValue(txtJiDiaoYuan.SellsIDClient);
            info.Planer   = txtJiDiaoYuan.SellsName = Utils.GetQueryStringValue(txtJiDiaoYuan.SellsNameClient);

            return(info);
        }
        /// <summary>
        /// 获取查询实体
        /// </summary>
        /// <returns></returns>
        EyouSoft.Model.TourStructure.MBZSearch GetChaXunInfo()
        {
            var info = new EyouSoft.Model.TourStructure.MBZSearch();

            info.TourCode = Utils.GetQueryStringValue("txtTourCode");
            info.RouteName = Utils.GetQueryStringValue("txtRouteName");
            info.SLDate = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtStatTime"));
            info.LLDate = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtTimeEnd"));
            info.Guide = guid1.GuidName = Utils.GetQueryStringValue(this.guid1.GuidNameClient);
            info.GuideId = guid1.GuidID = Utils.GetQueryStringValue(this.guid1.GuidIDClient);
            info.SellerId = sellers1.SellsID = Utils.GetQueryStringValue(this.sellers1.SellsIDClient);
            info.SellerName = sellers1.SellsName = Utils.GetQueryStringValue(this.sellers1.SellsNameClient);
            info.IsDealt = Utils.GetQueryStringValue("isDealt") == "1";
            info.TourId = Utils.GetQueryStringValue("tourid");
            info.TourStatus = (EyouSoft.Model.EnumType.TourStructure.TourStatus?)Utils.GetEnumValueNull(typeof(EyouSoft.Model.EnumType.TourStructure.TourStatus), Utils.GetQueryStringValue("tourState"));
            info.PlanerId = txtJiDiaoYuan.SellsID = Utils.GetQueryStringValue(txtJiDiaoYuan.SellsIDClient);
            info.Planer = txtJiDiaoYuan.SellsName = Utils.GetQueryStringValue(txtJiDiaoYuan.SellsNameClient);

            return info;
        }
        /// <summary>
        /// init repeater
        /// </summary>
        void InitRpt()
        {
            //获取分页参数并强转
            PageIndex = Utils.GetInt(Utils.GetQueryStringValue("page"));
            EyouSoft.Model.TourStructure.MBZSearch Search = new EyouSoft.Model.TourStructure.MBZSearch();
            //团号
            Search.TourCode = Utils.GetQueryStringValue("txtTourCode");
            //线路名称
            Search.RouteName = Utils.GetQueryStringValue("txtRouteName");
            //出团时间
            Search.SLDate = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtStartTime"));
            Search.LLDate = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtEndTime"));
            //导游
            SelectedGuid.GuidName = Search.Guide = Utils.GetQueryStringValue(this.SelectedGuid.GuidNameClient);
            SelectedGuid.GuidID   = Search.GuideId = Utils.GetQueryStringValue(this.SelectedGuid.GuidIDClient);
            //计调员
            planers.SellsName = Search.Planer = Utils.GetQueryStringValue(this.planers.SellsNameClient);
            planers.SellsID   = Search.PlanerId = Utils.GetQueryStringValue(this.planers.SellsIDClient);
            //销售员
            sellers.SellsName = Search.SellerName = Utils.GetQueryStringValue(this.sellers.SellsNameClient);
            sellers.SellsID   = Search.SellerId = Utils.GetQueryStringValue(this.sellers.SellsIDClient);
            //已审 未审
            Search.IsDealt = Utils.GetQueryStringValue("IsDealt") == "1";

            IList <EyouSoft.Model.TourStructure.MBZInfo> list = new EyouSoft.BLL.TourStructure.BTour().GetPlanEndList(this.SiteUserInfo.CompanyId, PageSize, PageIndex, ref RecordCount, Search, this.SiteUserInfo.DeptId);

            if (list != null && list.Count > 0)
            {
                this.repOpInstaceList.DataSource = list;
                this.repOpInstaceList.DataBind();
                BindPage();
            }
            else
            {
                this.lab_Text.Text = "对不起,没有相关数据!";
                this.ExporPageInfoSelect1.Visible = false;
                this.ExporPageInfoSelect2.Visible = false;
            }
        }
示例#5
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void DataInit()
        {
            //获取分页参数并强转
            pageIndex = Utils.GetInt(Utils.GetQueryStringValue("page"));
            EyouSoft.Model.TourStructure.MBZSearch Search = new EyouSoft.Model.TourStructure.MBZSearch();
            Search.TourCode   = Utils.GetQueryStringValue("txtTourCode");
            Search.RouteName  = Utils.GetQueryStringValue("txtRouteName");
            Search.SLDate     = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtStarTime"));
            Search.LLDate     = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtStarEnd"));
            Search.SellerId   = Utils.GetQueryStringValue(this.sellers1.SellsIDClient);
            Search.SellerName = Utils.GetQueryStringValue(this.sellers1.SellsNameClient);
            Search.GuideId    = Utils.GetQueryStringValue(this.guid1.GuidIDClient);
            Search.Guide      = Utils.GetQueryStringValue(this.guid1.GuidNameClient);
            Search.IsDealt    = Utils.GetQueryStringValue("isDealt") == "1";
            if (Utils.GetQueryStringValue("tourState") != "")
            {
                Search.TourStatus = (EyouSoft.Model.EnumType.TourStructure.TourStatus)Utils.GetInt(Utils.GetQueryStringValue("tourState"));
            }
            Search.PlanerId = txtJiDiaoYuan.SellsID = Utils.GetQueryStringValue(txtJiDiaoYuan.SellsIDClient);
            Search.Planer   = txtJiDiaoYuan.SellsName = Utils.GetQueryStringValue(txtJiDiaoYuan.SellsNameClient);

            IList <EyouSoft.Model.TourStructure.MBZInfo> list = new EyouSoft.BLL.TourStructure.BTour().GetGuidBZList(this.SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, Search, this.SiteUserInfo.DeptId);

            if (list != null && list.Count > 0)
            {
                this.replist.DataSource = list;
                this.replist.DataBind();

                //绑定分页
                BindPage();
            }
            else
            {
                this.lab_text.Text = "对不起,没有相关数据!";
                this.ExporPageInfoSelect1.Visible = false;
                this.ExporPageInfoSelect2.Visible = false;
            }
        }