protected void Getmodelorder() { modelMTourOrder = new MTourOrder(); if (!string.IsNullOrEmpty(orderId)) { modelMTourOrder = EyouSoft.BLL.NewTourStructure.BTourOrder.CreateInstance().GetModel(orderId); if (modelMTourOrder != null) { GetBindPowder(modelMTourOrder.OrderStatus); GetBindPayment(modelMTourOrder.PaymentStatus); GetCustomList(modelMTourOrder.Customers); } } }
/// <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 } }