protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { int QuoteID = Utils.GetInt(Utils.GetQueryStringValue("QuoteID")); if (!string.IsNullOrEmpty(QuoteID.ToString()) && QuoteID > 0) { EyouSoft.Model.RouteStructure.QuoteTeamInfo ModelRouteTeaminfo = new EyouSoft.Model.RouteStructure.QuoteTeamInfo(); EyouSoft.BLL.RouteStructure.Quote BllQuote = new EyouSoft.BLL.RouteStructure.Quote(); ModelRouteTeaminfo = BllQuote.GetQuoteInfo(QuoteID); if (ModelRouteTeaminfo != null) { //询价单位 this.Txt_Inquiry.Text = ModelRouteTeaminfo.QuoteUnitsName; //联系人 this.Txt_Contact.Text = ModelRouteTeaminfo.ContactName; //联系电话 this.Txt_TelPhone.Text = ModelRouteTeaminfo.ContactTel; //预计出团时间 this.Txt_GroupStarTime.Text = ModelRouteTeaminfo.TmpLeaveDate.ToString("yyyy-MM-dd"); //人数 this.Txt_Numbers.Text = ModelRouteTeaminfo.PeopleNum.ToString(); //客人要求 IList <EyouSoft.Model.TourStructure.TourServiceInfo> TourServiceInfoList = ModelRouteTeaminfo.Requirements; if (TourServiceInfoList != null && TourServiceInfoList.Count > 0) { this.rptList.DataSource = TourServiceInfoList; this.rptList.DataBind(); } //价格组成 IList <EyouSoft.Model.TourStructure.TourTeamServiceInfo> TourTeamServiceInfolist = ModelRouteTeaminfo.Services; if (TourTeamServiceInfolist.Count > 0 && TourTeamServiceInfolist != null) { this.repPrices.DataSource = TourTeamServiceInfolist; this.repPrices.DataBind(); } //备注信息 this.Txt_RemarksBottom.Text = ModelRouteTeaminfo.Remark; TourTeamServiceInfolist = null; TourServiceInfoList = null; } } } }
protected void Page_Load(object sender, EventArgs e) { #region 除报价信息 string action = Utils.GetQueryStringValue("action"); if (action == "delete") { string QuoteID = Utils.GetQueryStringValue("Majorid"); if (!string.IsNullOrEmpty(QuoteID) && Utils.GetInt(QuoteID) > 0) { this.DelQouteList(Utils.GetInt(QuoteID)); } } #endregion #region 初始化报价信息 if (action == "update") { this.InitBindQuoteList(); this.hideType.Value = "update"; string QuoteID = Utils.GetQueryStringValue("QuoteID"); if (!string.IsNullOrEmpty(QuoteID) && Utils.GetInt(QuoteID) > 0) { BllQuote = new EyouSoft.BLL.RouteStructure.Quote(); ModelRouteTeaminfo = new EyouSoft.Model.RouteStructure.QuoteTeamInfo(); ModelRouteTeaminfo = BllQuote.GetQuoteInfo(Utils.GetInt(QuoteID)); if (ModelRouteTeaminfo != null) { //询价单位编号 this.hidCustId.Value = ModelRouteTeaminfo.QuoteUnitsId.ToString(); //询价单位 this.Txt_Inquiry.Value = ModelRouteTeaminfo.QuoteUnitsName; //联系人 this.Txt_Contact.Value = ModelRouteTeaminfo.ContactName; //联系电话 this.Txt_TelPhone.Value = ModelRouteTeaminfo.ContactTel; //预计出团时间 this.Txt_GroupStarTime.Value = ModelRouteTeaminfo.TmpLeaveDate.ToString("yyyy-MM-dd"); //人数 this.Txt_Numbers.Value = ModelRouteTeaminfo.PeopleNum.ToString(); //客人要求 this.ProjectControl.SetList = ModelRouteTeaminfo.Requirements; this.ProjectControl.SetDataList(); //价格组成 this.PriceControl1.SetList = ModelRouteTeaminfo.Services; this.PriceControl1.TotalAmount = ModelRouteTeaminfo.SelfQuoteSum; //备注 this.Txt_RemarksBottom.Value = ModelRouteTeaminfo.Remark; } } ModelRouteTeaminfo = null; BllQuote = null; } if (!this.Page.IsPostBack) { this.InitBindQuoteList(); #region 计调员 int areaid = Utils.GetInt(Utils.GetQueryStringValue("areaid")); if (areaid > 0) { EyouSoft.BLL.CompanyStructure.Area area = new EyouSoft.BLL.CompanyStructure.Area(); EyouSoft.Model.CompanyStructure.Area marea = area.GetModel(areaid); if (marea != null) { ddl_Oprator.DataSource = marea.AreaUserList; ddl_Oprator.DataTextField = "ContactName"; ddl_Oprator.DataValueField = "userid"; ddl_Oprator.DataBind(); } } #endregion } #endregion }