/// <summary> /// 获取其它计调项实体 /// </summary> /// <param name="planID">计调项id</param> protected void GetOtherPlan() { string planId = Utils.GetQueryStringValue("planId"); if (!string.IsNullOrEmpty(planId)) { EyouSoft.Model.PlanStructure.MPlanBaseInfo baseModel = new EyouSoft.BLL.PlanStructure.BPlan().GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.其它, planId); if (baseModel != null) { this.supplierControl1.HideID = baseModel.SourceId; this.supplierControl1.Name = baseModel.SourceName; if (!string.IsNullOrEmpty(baseModel.SueId.Trim())) { this.supplierControl1.HideID_zyyk = baseModel.SueId; this.supplierControl1.isyukong = "1"; SueID = baseModel.SueId; var sueHotel = new EyouSoft.BLL.SourceStructure.BSourceControl().GetModelByOtherId(baseModel.SueId, this.SiteUserInfo.CompanyId); if (sueHotel != null) { this.hidUserNum.Value = (sueHotel.ControlNum - sueHotel.AlreadyNum + baseModel.Num).ToString(); } } else { this.supplierControl1.isyukong = "0"; } this.txtContactFax.Text = baseModel.ContactFax; this.txtContactName.Text = baseModel.ContactName; this.txtContactPhone.Text = baseModel.ContactPhone; this.txtOutProject.Text = baseModel.CostDetail; this.txtTotalPrices.Text = Utils.FilterEndOfTheZeroDecimal(baseModel.Confirmation); this.txtNums.Text = baseModel.Num.ToString(); this.txtGuisNotes.Text = baseModel.GuideNotes; this.txtOtherMark.Text = baseModel.Remarks; panyMent = ((int)baseModel.PaymentType).ToString(); status = ((int)baseModel.Status).ToString(); } } }
/// <summary> /// 根据供应商商id获取所有的酒店房型 /// </summary> /// <param name="sourceID"></param> /// <returns></returns> protected string GetRoomType(string sourceID, string roomId, string sueID) { System.Text.StringBuilder sbRoomType = new System.Text.StringBuilder(); if (!string.IsNullOrEmpty(sueID)) { EyouSoft.Model.SourceStructure.MSourceSueHotel hotelSue = new EyouSoft.BLL.SourceStructure.BSourceControl().GetModelByHotelId(sueID, this.SiteUserInfo.CompanyId); if (hotelSue != null) { sbRoomType.Append("<option value='" + hotelSue.RoomId + "," + hotelSue.RoomType + "'>" + hotelSue.RoomType + "</option>"); } } else { if (!string.IsNullOrEmpty(sourceID)) { EyouSoft.Model.SourceStructure.MSourceHotel HotelModel = new EyouSoft.BLL.SourceStructure.BSource().GetOneHotelModel(sourceID); if (HotelModel != null) { if (HotelModel.HotelRoomList != null && HotelModel.HotelRoomList.Count > 0) { for (int i = 0; i < HotelModel.HotelRoomList.Count; i++) { if (roomId == HotelModel.HotelRoomList[i].RoomId) { sbRoomType.Append("<option selected='selected' value='" + HotelModel.HotelRoomList[i].RoomId + "," + HotelModel.HotelRoomList[i].TypeName + "'>" + HotelModel.HotelRoomList[i].TypeName + "</option>"); } else { sbRoomType.Append("<option value='" + HotelModel.HotelRoomList[i].RoomId + "," + HotelModel.HotelRoomList[i].TypeName + "'>" + HotelModel.HotelRoomList[i].TypeName + "</option>"); } } } } } } return(sbRoomType.ToString()); }
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string suppId = EyouSoft.Common.Utils.GetQueryStringValue("suppId"); string type = EyouSoft.Common.Utils.GetQueryStringValue("type"); string source = EyouSoft.Common.Utils.GetQueryStringValue("source"); if (!string.IsNullOrEmpty(suppId) && !string.IsNullOrEmpty(type)) { switch (type) { case "1": //酒店房型 星级 if (!string.IsNullOrEmpty(source)) { if (source == "1") { EyouSoft.Model.SourceStructure.MSourceHotel HotelModel = new EyouSoft.BLL.SourceStructure.BSource().GetOneHotelModel(suppId); if (HotelModel != null) { if (HotelModel.Star != null) { string star = ((int)HotelModel.Star).ToString(); returnMsg(Newtonsoft.Json.JsonConvert.SerializeObject(HotelModel.HotelRoomList), star); } } } else { if (!string.IsNullOrEmpty(EyouSoft.Common.Utils.GetQueryStringValue("company"))) { //预控房型 EyouSoft.Model.SourceStructure.MSourceSueHotel hotelSue = new EyouSoft.BLL.SourceStructure.BSourceControl().GetModelByHotelId(suppId, EyouSoft.Common.Utils.GetQueryStringValue("company")); if (hotelSue != null) { string roomTypelist = string.Empty; roomTypelist = "["; roomTypelist += "{\"RoomId\":\"" + hotelSue.RoomId + "\",\"userNum\":\"" + (hotelSue.ControlNum - hotelSue.AlreadyNum) + "\",\"TypeName\":\"" + hotelSue.RoomType + "\",\"PriceSK\":\"" + EyouSoft.Common.Utils.FilterEndOfTheZeroDecimal(hotelSue.UnitPrice) + "\"},"; roomTypelist = roomTypelist.TrimEnd(','); roomTypelist += "]"; //酒店星级 EyouSoft.Model.SourceStructure.MSourceHotel HotelModel = new EyouSoft.BLL.SourceStructure.BSource().GetOneHotelModel(hotelSue.SourceId); if (HotelModel != null) { if (HotelModel.Star != null) { string star = ((int)HotelModel.Star).ToString(); returnMsg(roomTypelist, star); } } } } } } break; case "3": if (source == "1") { EyouSoft.Model.SourceStructure.MSourceSpot spotmodel = new EyouSoft.BLL.SourceStructure.BSource().GetSpotModel(suppId); if (spotmodel != null) { if (spotmodel.PriceSystemList != null && spotmodel.PriceSystemList.Count > 0) { returnMsg(Newtonsoft.Json.JsonConvert.SerializeObject(spotmodel.PriceSystemList), ""); } else { returnMsg("[]", ""); } } } else { //预控景点 var yk = new EyouSoft.BLL.SourceStructure.BSourceControl().GetModelBySightId(suppId, EyouSoft.Common.Utils.GetQueryStringValue("company")); if (yk != null) { returnMsg("[{\"Id\":\"" + yk.SpotId + "\",\"userNum\":\"" + (yk.ControlNum - yk.AlreadyNum) + "\",\"SpotName\":\"" + yk.SpotName + "\",\"PriceSK\":\"" + EyouSoft.Common.Utils.FilterEndOfTheZeroDecimal(yk.UnitPrice) + "\"}]", ""); } } break; case "13": if (source == "1") { var m = new EyouSoft.BLL.SourceStructure.BSource().GetOtherModel(suppId); if (m != null) { if (m.OtherTypeList != null && m.OtherTypeList.Count > 0) { returnMsg(Newtonsoft.Json.JsonConvert.SerializeObject(m.OtherTypeList), ""); } else { returnMsg("[]", ""); } } } else { //预控其他 var yk = new EyouSoft.BLL.SourceStructure.BSourceControl().GetModelByOtherId(suppId, EyouSoft.Common.Utils.GetQueryStringValue("company")); if (yk != null) { returnMsg("[{\"OtherId\":\"" + yk.TypeId + "\",\"userNum\":\"" + (yk.ControlNum - yk.AlreadyNum) + "\",\"Name\":\"" + yk.TypeName + "\",\"Price\":\"" + EyouSoft.Common.Utils.FilterEndOfTheZeroDecimal(yk.UnitPrice) + "\"}]", ""); } } break; case "14": if (source == "1") { EyouSoft.Model.SourceStructure.MSourceShip shipModel = new EyouSoft.BLL.SourceStructure.BSource().GetShipModel(suppId); if (shipModel != null) { string shipNamelist = string.Empty; shipNamelist = "["; if (shipModel.SubShipList != null && shipModel.SubShipList.Count > 0) { for (int i = 0; i < shipModel.SubShipList.Count; i++) { shipNamelist += "{\"id\":\"" + shipModel.SubShipList[i].SubId + "\",\"text\":\"" + shipModel.SubShipList[i].ShipName + "\"},"; } shipNamelist = shipNamelist.TrimEnd(','); } shipNamelist += "]"; returnMsg(shipNamelist, ""); } } else { string companyID = EyouSoft.Common.Utils.GetQueryStringValue("company"); if (!string.IsNullOrEmpty(companyID)) { string shipNamelist = string.Empty; shipNamelist += "["; EyouSoft.Model.SourceStructure.MSourceSueShip shipName = new EyouSoft.BLL.SourceStructure.BSourceControl().GetModelByShipId(suppId, companyID); if (shipName != null) { shipNamelist += "{\"id\":\"" + shipName.SubId + "\",\"text\":\"" + shipName.ShipName + "\"},"; shipNamelist = shipNamelist.TrimEnd(','); } shipNamelist += "]"; returnMsg(shipNamelist, ""); } } break; case "4": if (source == "1") { EyouSoft.Model.SourceStructure.MSourceShip shipModel = new EyouSoft.BLL.SourceStructure.BSource().GetShipModel(suppId); if (shipModel != null) { string shipNamelist = string.Empty; shipNamelist = "["; if (shipModel.SubShipList != null && shipModel.SubShipList.Count > 0) { for (int i = 0; i < shipModel.SubShipList.Count; i++) { shipNamelist += "{\"id\":\"" + shipModel.SubShipList[i].SubId + "\",\"text\":\"" + shipModel.SubShipList[i].ShipName + "\"},"; } shipNamelist = shipNamelist.TrimEnd(','); } shipNamelist += "]"; returnMsg(shipNamelist, ""); } } else { string companyID = EyouSoft.Common.Utils.GetQueryStringValue("company"); if (!string.IsNullOrEmpty(companyID)) { string shipNamelist = string.Empty; shipNamelist += "["; EyouSoft.Model.SourceStructure.MSourceSueShip shipName = new EyouSoft.BLL.SourceStructure.BSourceControl().GetModelByShipId(suppId, companyID); if (shipName != null) { shipNamelist += "{\"id\":\"" + shipName.SubId + "\",\"text\":\"" + shipName.ShipName + "\"},"; shipNamelist = shipNamelist.TrimEnd(','); } shipNamelist += "]"; returnMsg(shipNamelist, ""); } } break; case "2": if (source == "1") { EyouSoft.Model.SourceStructure.MSourceMotorcade carModel = new EyouSoft.BLL.SourceStructure.BSource().GetMotorcadeModel(suppId); if (carModel != null) { string CarModelList = string.Empty; CarModelList += "["; if (carModel.CarList != null && carModel.CarList.Count > 0) { for (int i = 0; i < carModel.CarList.Count; i++) { CarModelList += "{\"id\":\"" + carModel.CarList[i].CarId + "\",\"text\":\"" + carModel.CarList[i].TypeName + "\",\"CarCode\":\"" + carModel.CarList[i].CarNumber + "\",\"driver\":\"" + carModel.CarList[i].Driver + "\",\"driverTel\":\"" + carModel.CarList[i].DriverTel + "\"},"; } CarModelList = CarModelList.TrimEnd(','); } CarModelList += "]"; returnMsg(CarModelList, ""); } } else { string companyID = EyouSoft.Common.Utils.GetQueryStringValue("company"); if (!string.IsNullOrEmpty(companyID)) { string CarModelList = string.Empty; CarModelList += "["; EyouSoft.Model.SourceStructure.MSourceSueCar CarModel = new EyouSoft.BLL.SourceStructure.BSourceControl().GetModelByCarId(suppId, companyID); EyouSoft.Model.SourceStructure.MSourceMotorcade carModel = new EyouSoft.BLL.SourceStructure.BSource().GetMotorcadeModel(CarModel.SourceId); if (CarModelList != null && carModel != null) { if (carModel.CarList != null && carModel.CarList.Count > 0) { CarModelList += "{\"id\":\"" + CarModel.CarId + "\",\"text\":\"" + CarModel.TypeName + "\",\"CarCode\":\"" + carModel.CarList.First().CarNumber + "\",\"driver\":\"" + carModel.CarList.First().Driver + "\",\"driverTel\":\"" + carModel.CarList.First().DriverTel + "\"},"; } else { CarModelList += "{\"id\":\"" + CarModel.CarId + "\",\"text\":\"" + CarModel.TypeName + "\"},"; } } else { CarModelList += "{\"id\":\"" + CarModel.CarId + "\",\"text\":\"" + CarModel.TypeName + "\"},"; } CarModelList = CarModelList.TrimEnd(','); CarModelList += "]"; returnMsg(CarModelList, ""); } } break; default: break; } } }
/// <summary> /// 获取国内游轮实体 /// </summary> /// <param name="planID">游轮id</param> protected void GetShipModelC() { string planId = Utils.GetQueryStringValue("planId"); if (!string.IsNullOrEmpty(planId)) { EyouSoft.Model.PlanStructure.MPlanBaseInfo baseinfo = new EyouSoft.BLL.PlanStructure.BPlan().GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.国内游轮, planId); if (baseinfo != null) { this.SupplierControl2.HideID = baseinfo.SourceId; this.SupplierControl2.Name = baseinfo.SourceName; if (!string.IsNullOrEmpty(baseinfo.SueId.Trim())) { this.SupplierControl2.HideID_zyyk = baseinfo.SueId; this.SupplierControl2.isyukong = "1"; } else { this.SupplierControl2.isyukong = "0"; } this.txtContectFaxC.Text = baseinfo.ContactFax; this.txtContectNameC.Text = baseinfo.ContactName; this.txtContectPhoneC.Text = baseinfo.ContactPhone; if (baseinfo.PlanShip != null) { if (!string.IsNullOrEmpty(baseinfo.SueId.Trim())) //预控 { ShipNameListC.Append("<option value='" + baseinfo.PlanShip.SubId + "," + baseinfo.PlanShip.ShipName + "'>" + baseinfo.PlanShip.ShipName + "</option>"); EyouSoft.Model.SourceStructure.MSourceSueShip shipmodel = new EyouSoft.BLL.SourceStructure.BSourceControl().GetModelByShipId(baseinfo.SueId, this.SiteUserInfo.CompanyId); if (shipmodel != null) { this.hidSurpluNumC.Value = (shipmodel.ControlNum - shipmodel.AlreadyNum).ToString(); } } else //供应商 { EyouSoft.Model.SourceStructure.MSourceShip shipModel = new EyouSoft.BLL.SourceStructure.BSource().GetShipModel(baseinfo.SourceId); if (shipModel != null) { if (shipModel.SubShipList != null && shipModel.SubShipList.Count > 0) { for (int i = 0; i < shipModel.SubShipList.Count; i++) { if (shipModel.SubShipList[i].SubId == baseinfo.PlanShip.SubId) { ShipNameListC.Append("<option selected='selected' value='" + shipModel.SubShipList[i].SubId + "," + shipModel.SubShipList[i].ShipName + "'>" + shipModel.SubShipList[i].ShipName + "</option>"); } else { ShipNameListC.Append("<option value='" + shipModel.SubShipList[i].SubId + "," + shipModel.SubShipList[i].ShipName + "'>" + shipModel.SubShipList[i].ShipName + "</option>"); } } } } } this.txtRouteC.Text = baseinfo.PlanShip.Line; this.txtBoardWhilfC.Text = baseinfo.PlanShip.LoadDock; this.txtStopAttrC.Text = baseinfo.PlanShip.Sight; if (baseinfo.PlanShip.PlanShipPriceList != null && baseinfo.PlanShip.PlanShipPriceList.Count > 0) { this.tabView.Visible = false; this.repPriceListC.DataSource = baseinfo.PlanShip.PlanShipPriceList; this.repPriceListC.DataBind(); //if (baseinfo.PlanShip.PlanShipOwnCostList != null && baseinfo.PlanShip.PlanShipOwnCostList.Count > 0) //{ // EyouSoft.Model.PlanStructure.MPlanShipOwnCost ownCostC = baseinfo.PlanShip.PlanShipOwnCostList.SingleOrDefault(p => p.IsFloor == false); // if (ownCostC != null) // { // this.txtOwnCostC.Text = ownCostC.OwnItem; // this.txtOwnCostNumsC.Text = ownCostC.PeopleNum.ToString(); // this.txtOwnUnitPricesC.Text = Utils.FilterEndOfTheZeroDecimal(ownCostC.Price); // } //} } else { this.tabView.Visible = true; } } this.txtBoardDateC.Text = UtilsCommons.GetDateString(baseinfo.StartDate, ProviderToDate); this.txtBoardTimeC.Text = baseinfo.StartTime; this.txttotalPricesC.Text = Utils.FilterEndOfTheZeroDecimal(baseinfo.Confirmation); this.txtCostDetailC.Text = baseinfo.CostDetail; this.txtGuidNotesC.Text = baseinfo.GuideNotes; this.txtOtherMarkC.Text = baseinfo.Remarks; PanyMentC = ((int)baseinfo.PaymentType).ToString(); StatusC = ((int)baseinfo.Status).ToString(); this.ddlprofit2.Items.FindByValue(baseinfo.IsRebate == true ? "0" : "1").Selected = true; } } }
/// <summary> /// 获取安排的游轮实体 涉外 /// </summary> /// <param name="planID">游轮id</param> protected void GetShipModelForeign() { string planID = Utils.GetQueryStringValue("planId"); if (!string.IsNullOrEmpty(planID)) { EyouSoft.Model.PlanStructure.MPlanBaseInfo baseinfo = new EyouSoft.BLL.PlanStructure.BPlan().GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.涉外游轮, planID); if (baseinfo != null) { this.SupplierControl1.HideID = baseinfo.SourceId; this.SupplierControl1.Name = baseinfo.SourceName; if (!string.IsNullOrEmpty(baseinfo.SueId.Trim())) { this.SupplierControl1.HideID_zyyk = baseinfo.SueId; this.SupplierControl1.isyukong = "1"; } else { this.SupplierControl1.isyukong = "0"; } this.txtContectFax.Text = baseinfo.ContactFax; this.txtContectName.Text = baseinfo.ContactName; this.txtContectPhone.Text = baseinfo.ContactPhone; if (baseinfo.PlanShip != null) { if (!string.IsNullOrEmpty(baseinfo.SueId.Trim())) //预控 { ShipNameListF.Append("<option value='" + baseinfo.PlanShip.SubId + "," + baseinfo.PlanShip.ShipName + "'>" + baseinfo.PlanShip.ShipName + "</option>"); EyouSoft.Model.SourceStructure.MSourceSueShip shipmodel = new EyouSoft.BLL.SourceStructure.BSourceControl().GetModelByShipId(baseinfo.SueId, this.SiteUserInfo.CompanyId); if (shipmodel != null) { this.hidSurpluNum.Value = (shipmodel.ControlNum - shipmodel.AlreadyNum).ToString(); } } else //供应商 { EyouSoft.Model.SourceStructure.MSourceShip shipModel = new EyouSoft.BLL.SourceStructure.BSource().GetShipModel(baseinfo.SourceId); if (shipModel != null) { if (shipModel.SubShipList != null && shipModel.SubShipList.Count > 0) { for (int i = 0; i < shipModel.SubShipList.Count; i++) { if (shipModel.SubShipList[i].SubId == baseinfo.PlanShip.SubId) { ShipNameListF.Append("<option selected='selected' value='" + shipModel.SubShipList[i].SubId + "," + shipModel.SubShipList[i].ShipName + "'>" + shipModel.SubShipList[i].ShipName + "</option>"); } else { ShipNameListF.Append("<option value='" + shipModel.SubShipList[i].SubId + "," + shipModel.SubShipList[i].ShipName + "'>" + shipModel.SubShipList[i].ShipName + "</option>"); } } } } } this.txtShipPhone.Text = baseinfo.PlanShip.ShipCalls; this.txtBoardWharif.Text = baseinfo.PlanShip.LoadDock; this.txtBoardCode.Text = baseinfo.PlanShip.LoadCode; this.txtRoute.Text = baseinfo.PlanShip.Line; this.txtStopAttr.Text = baseinfo.PlanShip.Sight; if (baseinfo.PlanShip.PlanShipPriceList != null && baseinfo.PlanShip.PlanShipPriceList.Count > 0) { this.tabViewPrices.Visible = false; this.repPricesList.DataSource = baseinfo.PlanShip.PlanShipPriceList; this.repPricesList.DataBind(); } else { this.tabViewPrices.Visible = true; } } this.txtBoardDate.Text = UtilsCommons.GetDateString(baseinfo.StartDate, ProviderToDate); this.txtBoardTime.Text = baseinfo.StartTime; this.txtTotalPrices.Text = Utils.FilterEndOfTheZeroDecimal(baseinfo.Confirmation); if (!string.IsNullOrEmpty(baseinfo.CustomerInfo)) { this.txtCustomerInfo.Text = baseinfo.CustomerInfo; } else { this.txtCustomerInfo.Text = GetCustomerList(); } this.txtCostDetail.Text = baseinfo.CostDetail; this.txtGuidNOtes.Text = baseinfo.GuideNotes; this.txtOtherRemarks.Text = baseinfo.Remarks; this.ddlprofit1.Items.FindByValue(baseinfo.IsRebate == true ? "0" : "1").Selected = true; PanyMent = ((int)baseinfo.PaymentType).ToString(); Status = ((int)baseinfo.Status).ToString(); } } }
/// <summary> /// 获取酒店实体 /// </summary> protected void GetHotelModel() { string planId = Utils.GetQueryStringValue("planId"); if (!string.IsNullOrEmpty(planId)) { EyouSoft.Model.PlanStructure.MPlanBaseInfo baseInfo = new EyouSoft.BLL.PlanStructure.BPlan().GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.酒店, planId); if (baseInfo != null) { SourceID = baseInfo.SourceId; this.supplierControl1.HideID = baseInfo.SourceId; this.supplierControl1.Name = baseInfo.SourceName; if (!string.IsNullOrEmpty(baseInfo.SueId.Trim())) { this.supplierControl1.HideID_zyyk = baseInfo.SueId; this.supplierControl1.isyukong = "1"; SueID = baseInfo.SueId; EyouSoft.Model.SourceStructure.MSourceSueHotel sueHotel = new EyouSoft.BLL.SourceStructure.BSourceControl().GetModelByHotelId(baseInfo.SueId, this.SiteUserInfo.CompanyId); if (sueHotel != null) { this.hidUserNum.Value = (sueHotel.ControlNum - sueHotel.AlreadyNum + baseInfo.Num).ToString(); } } else { this.supplierControl1.isyukong = "0"; } if (!string.IsNullOrEmpty(baseInfo.SourceId)) { EyouSoft.Model.SourceStructure.MSourceHotel HotelModel = new EyouSoft.BLL.SourceStructure.BSource().GetOneHotelModel(baseInfo.SourceId); if (HotelModel != null) { if (HotelModel.HotelRoomList != null && HotelModel.HotelRoomList.Count > 0) { for (int i = 0; i < HotelModel.HotelRoomList.Count; i++) { this.hidroomTypePrices.Value += "" + HotelModel.HotelRoomList[i].RoomId + "," + EyouSoft.Common.Utils.FilterEndOfTheZeroDecimal(HotelModel.HotelRoomList[i].PricePJ) + "|"; } } } } if (baseInfo.PlanHotel != null) { this.ddlHotelStart.Items.FindByValue(((int)baseInfo.PlanHotel.Star).ToString()).Selected = true; this.txtroomDays.Text = baseInfo.PlanHotel.Days.ToString(); if (baseInfo.PlanHotel.PlanHotelRoomList != null && baseInfo.PlanHotel.PlanHotelRoomList.Count > 0) { this.holderView.Visible = false; IList <EyouSoft.Model.PlanStructure.MPlanHotelRoom> hotelRoom = baseInfo.PlanHotel.PlanHotelRoomList; if (hotelRoom != null && hotelRoom.Count > 0) { this.reproomtypelist.DataSource = hotelRoom; this.reproomtypelist.DataBind(); } } else { this.holderView.Visible = true; } this.txtFreRoomNumber.Text = baseInfo.PlanHotel.FreeNumber.ToString(); this.txtunitPricesEarly.Text = Utils.FilterEndOfTheZeroDecimal(baseInfo.PlanHotel.MealPrice); this.txtPeopleNumEarly.Text = baseInfo.PlanHotel.MealNumber.ToString(); this.txtsequenceNumEarly.Text = baseInfo.PlanHotel.MealFrequency.ToString(); this.ddlContainsEarly.Items.FindByValue(((int)baseInfo.PlanHotel.IsMeal).ToString()).Selected = true; txtQianTaiTelephone.Text = baseInfo.PlanHotel.QianTaiTelephone; } this.txtContectName.Text = baseInfo.ContactName; this.txtContectPhone.Text = baseInfo.ContactPhone; this.txtContectFax.Text = baseInfo.ContactFax; this.txtStartTime.Text = UtilsCommons.GetDateString(baseInfo.StartDate, ProviderToDate); this.txtEndTime.Text = UtilsCommons.GetDateString(baseInfo.EndDate, ProviderToDate); this.txtPayRoomNumbers.Text = baseInfo.Num.ToString(); this.txtTotalPrices.Text = Utils.FilterEndOfTheZeroDecimal(baseInfo.Confirmation); PanyMent = ((int)baseInfo.PaymentType).ToString(); this.txtCostParticu.Text = baseInfo.CostDetail; this.txtGuidNotes.Text = baseInfo.GuideNotes; this.txtOtherRemark.Text = baseInfo.Remarks; this.Selprofit1.Items.FindByValue(baseInfo.IsRebate == true ? "0" : "1").Selected = true; Status = ((int)baseInfo.Status).ToString(); } } }
/// <summary> /// 获取实体 /// </summary> protected void GetModelSpot() { string planId = Utils.GetQueryStringValue("PlanId"); //初始化修改信息 if (!string.IsNullOrEmpty(planId)) { EyouSoft.Model.PlanStructure.MPlanBaseInfo spotModel = new EyouSoft.BLL.PlanStructure.BPlan().GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.景点, planId); if (spotModel != null) { this.supplierControl1.HideID = spotModel.SourceId; this.supplierControl1.Name = spotModel.SourceName; SourceID = spotModel.SourceId; if (!string.IsNullOrEmpty(spotModel.SueId.Trim())) { this.supplierControl1.HideID_zyyk = spotModel.SueId; this.supplierControl1.isyukong = "1"; SueID = spotModel.SueId; var sue = new EyouSoft.BLL.SourceStructure.BSourceControl().GetModelBySightId(spotModel.SueId, this.SiteUserInfo.CompanyId); if (sue != null) { this.hidUserNum.Value = (sue.ControlNum - sue.AlreadyNum + spotModel.Num).ToString(); } } else { this.supplierControl1.isyukong = "0"; } this.txtContectName.Text = spotModel.ContactName; this.txtContectPhone.Text = spotModel.ContactPhone; this.txtContectFax.Text = spotModel.ContactFax; if (spotModel.PlanAttractions != null) { this.txtAdultNums.Text = spotModel.PlanAttractions.AdultNumber.ToString(); this.txtChildrenNums.Text = spotModel.PlanAttractions.ChildNumber.ToString(); //景点名称 if (spotModel.SourceId != "") { EyouSoft.Model.SourceStructure.MSourceSpot model = new EyouSoft.BLL.SourceStructure.BSource().GetSpotModel(spotModel.SourceId); if (model != null) { if (model.PriceSystemList != null && model.PriceSystemList.Count > 0) { if (!string.IsNullOrEmpty(SueID)) { model.PriceSystemList = model.PriceSystemList.Where(m => m.Id == spotModel.PlanAttractions.AttractionsId).ToList(); } for (int i = 0; i < model.PriceSystemList.Count; i++) { if (spotModel.PlanAttractions.AttractionsId == model.PriceSystemList[i].Id) { SpotNameList.Append("<option selected=\"selected\" value='" + model.PriceSystemList[i].Id + "," + model.PriceSystemList[i].SpotName + "'>" + model.PriceSystemList[i].SpotName + "</option>"); } else { SpotNameList.Append("<option value='" + model.PriceSystemList[i].Id + "," + model.PriceSystemList[i].SpotName + "'>" + model.PriceSystemList[i].SpotName + "</option>"); } } } } } } this.txtLookAbout1.Text = UtilsCommons.GetDateString(spotModel.StartDate, ProviderToDate); this.txtLookAbout2.Text = UtilsCommons.GetDateString(spotModel.EndDate, ProviderToDate); this.txtScanTime1.Text = spotModel.StartTime; this.txtScanTime2.Text = spotModel.EndTime; this.txtCostParticu.Text = spotModel.CostDetail; this.txttotalMoney.Text = Utils.FilterEndOfTheZeroDecimal(spotModel.Confirmation); panyMent = ((int)spotModel.PaymentType).ToString(); this.txtGuidNotes.Text = spotModel.GuideNotes; this.txtOtherRemarks.Text = spotModel.Remarks; this.ddlProfit1.Items.FindByValue(spotModel.IsRebate == true ? "0" : "1").Selected = true; Status = ((int)spotModel.Status).ToString(); } } }
/// <summary> /// 获取车辆实体 /// </summary> protected void GetCarModel() { string planId = Utils.GetQueryStringValue("PlanId"); if (!string.IsNullOrEmpty(planId)) { EyouSoft.Model.PlanStructure.MPlanBaseInfo baseinfo = new EyouSoft.BLL.PlanStructure.BPlan().GetModel(EyouSoft.Model.EnumType.PlanStructure.PlanProject.用车, planId); if (baseinfo != null) { this.hidSueID.Value = baseinfo.SueId; this.hidSueNum.Value = baseinfo.Num.ToString(); this.SupplierControl1.HideID = baseinfo.SourceId; this.SupplierControl1.Name = baseinfo.SourceName; if (!string.IsNullOrEmpty(baseinfo.SueId.Trim())) { this.SupplierControl1.HideID_zyyk = baseinfo.SueId; this.SupplierControl1.isyukong = "1"; } else { this.SupplierControl1.isyukong = "0"; } this.txtContectName.Text = baseinfo.ContactName; this.txtContectPhone.Text = baseinfo.ContactPhone; this.txtContectFax.Text = baseinfo.ContactFax; this.txtUseCarTime.Text = UtilsCommons.GetDateString(baseinfo.StartDate, ProviderToDate); this.txtUseCarTime2.Text = UtilsCommons.GetDateString(baseinfo.EndDate, ProviderToDate); this.txttime1.Text = baseinfo.StartTime; this.txttime2.Text = baseinfo.EndTime; if (baseinfo.PlanCar != null) { this.ddlUserCarType.Items.FindByValue(((int)baseinfo.PlanCar.VehicleType).ToString()).Selected = true; this.txtCarNumber.Text = baseinfo.PlanCar.CarNumber; this.txtDirverName.Text = baseinfo.PlanCar.Driver; this.txDirverPhone.Text = baseinfo.PlanCar.DriverPhone; if (!string.IsNullOrEmpty(baseinfo.SueId.Trim())) { CarModelList.Append("<option value='" + baseinfo.PlanCar.CarId + "," + baseinfo.PlanCar.Models + "'>" + baseinfo.PlanCar.Models + "</option>"); EyouSoft.Model.SourceStructure.MSourceSueCar carSueModel = new EyouSoft.BLL.SourceStructure.BSourceControl().GetModelByCarId(baseinfo.SueId, this.SiteUserInfo.CompanyId); if (carSueModel != null) { int nums = carSueModel.ControlNum - carSueModel.AlreadyNum; this.hidCarNum.Value = (nums + baseinfo.Num).ToString(); } } else { EyouSoft.Model.SourceStructure.MSourceMotorcade carModel = new EyouSoft.BLL.SourceStructure.BSource().GetMotorcadeModel(baseinfo.SourceId); if (carModel != null) { if (carModel.CarList != null && carModel.CarList.Count > 0) { for (int i = 0; i < carModel.CarList.Count; i++) { if (carModel.CarList[i].CarId == baseinfo.PlanCar.CarId) { CarModelList.Append("<option selected='selected' value='" + carModel.CarList[i].CarId + "," + carModel.CarList[i].TypeName + "'>" + carModel.CarList[i].TypeName + "</option>"); } else { CarModelList.Append("<option value='" + carModel.CarList[i].CarId + "," + carModel.CarList[i].TypeName + "'>" + carModel.CarList[i].TypeName + "</option>"); } this.hiddriverInfo.Value += carModel.CarList[i].CarId + "," + carModel.CarList[i].CarNumber + "," + carModel.CarList[i].Driver + "," + carModel.CarList[i].DriverTel + "|"; } } } } } this.txtCostParticu.Text = baseinfo.CostDetail; this.txtUseCarNums.Text = baseinfo.Num.ToString(); this.txttotalMoney.Text = Utils.FilterEndOfTheZeroDecimal(baseinfo.Confirmation); this.txtTravel.Text = baseinfo.ReceiveJourney; this.txtGuidNotes.Text = baseinfo.GuideNotes; this.txtOtherRemark.Text = baseinfo.Remarks; this.ddlProfit.Items.FindByValue(baseinfo.IsRebate == true ? "0" : "1").Selected = true; panyMent = ((int)baseinfo.PaymentType).ToString(); status = ((int)baseinfo.Status).ToString(); } } }