Ejemplo n.º 1
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitPage()
        {
            //分页参数
            int pageSize    = 15,
                pageCurrent = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1),
                recordCount = 0;

            MPowderSearch queryModel = new MPowderSearch();

            #region 查询参数
            //关键字
            queryModel.TourKey = Utils.GetQueryStringValue("keyWord");
            txt_keyWord.Value  = queryModel.TourKey;
            //专线商
            queryModel.Publishers      = Utils.GetQueryStringValue("publishers");
            ddl_iCollect.SelectedValue = queryModel.Publishers;
            //出发地Id
            queryModel.StartCityId   = Utils.GetInt(Utils.GetQueryStringValue("goCityId"));
            ddl_goCity.SelectedValue = Utils.GetQueryStringValue("goCityId");
            //出团时间
            queryModel.LeaveDate = Utils.GetDateTime(Utils.GetQueryStringValue("goTimeS"));
            txt_goTimeS.Value    = Utils.GetQueryStringValue("goTimeS");
            //回团时间
            queryModel.EndLeaveDate = Utils.GetDateTime(Utils.GetQueryStringValue("goTimeE"));
            txt_goTimeE.Value       = Utils.GetQueryStringValue("goTimeE");
            #endregion
            IList <MPowderList> list = BPowderList.CreateInstance().GetCollectionPowder(
                pageSize,
                pageCurrent,
                ref recordCount,
                SiteUserInfo.CompanyID,
                queryModel);
            if (list != null && list.Count > 0)
            {
                rpt_list.DataSource = list;
                rpt_list.DataBind();
                ExportPageInfo1.Visible             = true;
                this.ExportPageInfo1.intPageSize    = pageSize;
                this.ExportPageInfo1.intRecordCount = recordCount;
                this.ExportPageInfo1.CurrencyPage   = pageCurrent;
                this.ExportPageInfo1.PageLinkURL    = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
                //this.ExportPageInfo1.UrlParams = Request.QueryString;


                this.ExportPageInfo1.UrlParams.Add("goCityId", Utils.GetQueryStringValue("goCityId"));
                this.ExportPageInfo1.UrlParams.Add("publishers", Utils.GetQueryStringValue("publishers"));
                this.ExportPageInfo1.UrlParams.Add("goTimeS", Utils.GetQueryStringValue("goTimeS"));
                this.ExportPageInfo1.UrlParams.Add("goTimeE", Utils.GetQueryStringValue("goTimeE"));
                this.ExportPageInfo1.UrlParams.Add("keyWord", queryModel.TourKey);
            }
            else
            {
                //不存在列表数据
                pnlNodata.Visible       = true;
                ExportPageInfo1.Visible = false;
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 页面加载
        /// </summary>
        protected void InitPage()
        {
            //根据订单编号获取相应的实体
            var IBLL = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();

            TOModel = EyouSoft.BLL.NewTourStructure.BTourOrder.CreateInstance().GetModel(OrderId);
            if (TOModel != null)
            {
                #region 根据专线商编号获取专线商公司实体信息
                CompanyDetailInfo DetailInfoModelZX = IBLL.GetModel(TOModel.Publishers);
                if (DetailInfoModelZX != null)
                {
                    //专线商公司信息
                    this.Zhuanxian.Text  = DetailInfoModelZX.CompanyName;
                    this.Zhuanxian1.Text = DetailInfoModelZX.CompanyName;
                    //专线商联系信息
                    this.ZhuanxianContact.Text = DetailInfoModelZX.ContactInfo.ContactName + " 手机 " + DetailInfoModelZX.ContactInfo.Mobile + " 传真号 " + DetailInfoModelZX.ContactInfo.Fax;
                    this.zxBankInfo.Text       = GetBankList(DetailInfoModelZX.BankAccounts);
                }
                #endregion

                #region 根据组团社编号获取组团社公司实体信息
                CompanyDetailInfo DetailInfoModelZT = IBLL.GetModel(TOModel.Travel);
                if (DetailInfoModelZT != null)
                {
                    //组团社
                    this.TravelName.Text = DetailInfoModelZT.CompanyName;
                    //组团联系人
                    this.ZutuanContact.Text = DetailInfoModelZT.ContactInfo.ContactName + " 手机 " + DetailInfoModelZT.ContactInfo.Mobile + " 传真号 " + DetailInfoModelZT.ContactInfo.Fax;
                    this.ztBankInfo.Text    = GetBankList(DetailInfoModelZT.BankAccounts);
                }
                #endregion

                #region 绑定游客信息
                if (TOModel.Customers != null && TOModel.Customers.Count > 0)
                {
                    this.TouristInfomation.DataSource = TOModel.Customers;
                    this.TouristInfomation.DataBind();
                }
                #endregion

                #region 根据团队编号获取散拼信息实体
                PowderListModel = BPowderList.CreateInstance().GetModel(TOModel.TourId);
                if (PowderListModel != null)
                {
                    //绑定日程
                    if (PowderListModel.StandardPlans != null && PowderListModel.StandardPlans.Count > 0)
                    {
                        isStandard = true;
                        BindStandardPlan(PowderListModel.StandardPlans);
                    }
                    else
                    {
                        this.FastStandard.Text = PowderListModel.StandardStroke;
                    }
                    if (PowderListModel.FitQuotation != null && PowderListModel.FitQuotation != "")
                    {
                        this.Containes.Text = PowderListModel.FitQuotation;
                    }
                    //报价包含
                    if (PowderListModel.ServiceStandard != null)
                    {
                        if (PowderListModel.FitQuotation == null || PowderListModel.FitQuotation == "")
                        {
                            this.Containes.Text = Utils.TextToHtml(GetContainers(PowderListModel.ServiceStandard));
                        }
                        //报价不含
                        this.NoContaines.Text = Utils.TextToHtml(PowderListModel.ServiceStandard.NotContainService);
                    }
                }
                #endregion

                #region 普通信息
                //团号
                this.TeamId.Text = TOModel.TourNo;
                //线路名称
                this.RouteName.Text = TOModel.RouteName;
                //出团时间
                this.LeaveDate.Text = TOModel.LeaveDate.ToString("yyyy-MM-dd");
                //人数
                this.PersonNum.Text = (TOModel.AdultNum + TOModel.ChildrenNum).ToString();
                //备注
                this.Remark.Text = Utils.TextToHtml(TOModel.TourNotes);
                //结算价合计
                this.SumSettlement.Value = Utils.FilterEndOfTheZeroDecimal(TOModel.TotalSettlementPrice);
                #endregion
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 设置团队类型
 /// </summary>
 private void SetPowderTourStatus()
 {
     Response.Clear();
     Response.Write(BPowderList.CreateInstance().UpdateStatus((PowderTourStatus)Utils.GetInt(Utils.GetQueryStringValue("SetValue")), Utils.GetQueryStringValue("ids").Split(',')).ToString());
     Response.End();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 设置推荐类型
 /// </summary>
 /// <param name="ids"></param>
 /// <returns></returns>
 private void SetRecommendType()
 {
     Response.Clear();
     Response.Write(BPowderList.CreateInstance().UpdatePowderRecommend((RecommendType)Utils.GetInt(Utils.GetQueryStringValue("SetValue")), Utils.GetQueryStringValue("ids").Split(',')).ToString());
     Response.End();
 }