/// <summary> /// 根据团队编号获取订单列表(散拼订单查看多个订单、组团查询单个组团订单) /// </summary> /// <param name="tourId">团队编号</param> ///<param name="orderSum">订单统计实体</param> /// <returns></returns> public IList <MTourOrder> GetTourOrderListById(string tourId, ref MOrderSum orderSum) { if (string.IsNullOrEmpty(tourId)) { return(null); } var items = dal.GetTourOrderListById(tourId, ref orderSum); if (items != null && items.Count > 0) { var bllDengJi = new EyouSoft.BLL.ComStructure.BComLev(); var bllBiaoZhun = new EyouSoft.BLL.ComStructure.BComStand(); foreach (var item in items) { if (item.LevId > 0) { item.KeHuLevName = bllDengJi.GetName(item.LevId, item.CompanyId); } if (item.PriceStandId > 0) { item.BaoJiaBiaoZhunName = bllBiaoZhun.GetName(item.PriceStandId, item.CompanyId); } } } return(items); }
protected void PageInit() { IList <EyouSoft.Model.ComStructure.MComLev> list = new EyouSoft.BLL.ComStructure.BComLev().GetList(SiteUserInfo.CompanyId); if (list != null) { i = list.Count; this.CustomRepeater2.DataSource = list; this.CustomRepeater2.DataBind(); } }
/// <summary> /// 绑定客户等级 /// </summary> /// <returns></returns> protected void BindCrmLevId() { EyouSoft.BLL.ComStructure.BComLev levBll = new EyouSoft.BLL.ComStructure.BComLev(); IList <EyouSoft.Model.ComStructure.MComLev> list = levBll.GetList(base.SiteUserInfo.CompanyId); ddlLevId.DataSource = list; ddlLevId.DataValueField = "Id"; ddlLevId.DataTextField = "Name"; ddlLevId.DataBind(); ddlLevId.Items.Insert(0, new ListItem("--未选择--", "0")); if (string.IsNullOrEmpty(Utils.GetQueryStringValue("crmId"))) { ddlLevId.SelectedValue = "0"; } }
/// <summary> /// 绑定客户等级 /// </summary> /// <returns></returns> protected string BindCrmLevId() { EyouSoft.BLL.ComStructure.BComLev levBll = new EyouSoft.BLL.ComStructure.BComLev(); System.Text.StringBuilder sb = new System.Text.StringBuilder(); IList <EyouSoft.Model.ComStructure.MComLev> list = levBll.GetList(base.SiteUserInfo.CompanyId); sb.Append("<option value=\"0\">--未选择--</option>"); for (int i = 0; i < list.Count; i++) { if (Utils.GetQueryStringValue("ddlLevId") == list[i].Id.ToString()) { sb.AppendFormat("<option value=\"{0}\" selected=\"true\">{1}</option>", list[i].Id, list[i].Name); } } return(sb.ToString()); }
/// <summary> /// 页面初始化 /// </summary> /// <param name="tourId"></param> private void DataInit(string tourId) { EyouSoft.BLL.TourStructure.BTour bll = new EyouSoft.BLL.TourStructure.BTour(); EyouSoft.Model.TourStructure.MSupplierPublishPrice model = bll.GetSupplyPrice(tourId); if (model != null) { this.hideAdultPrice.Value = Utils.FilterEndOfTheZeroDecimal(model.SettleAdultPrice); this.hideChildPrice.Value = Utils.FilterEndOfTheZeroDecimal(model.SettleChildPrice); IList <EyouSoft.Model.ComStructure.MComLev> sysComLev = new EyouSoft.BLL.ComStructure.BComLev().GetList(SiteUserInfo.CompanyId); if (sysComLev != null) { EyouSoft.Model.ComStructure.MComLev lev = sysComLev.FirstOrDefault(p => p.LevType == EyouSoft.Model.EnumType.ComStructure.LevType.内部结算价); if (lev != null) { this.hidePriceLevelId.Value = lev.Id.ToString(); } } } }
/// <summary> /// 绑定客户等级 /// </summary> /// <returns></returns> void InitKeHuDengJi() { var items = new EyouSoft.BLL.ComStructure.BComLev().GetList(base.SiteUserInfo.CompanyId); ddlLevId.Items.Insert(0, new ListItem("--未选择--", "0")); if (items == null || items.Count == 0) { return; } foreach (var item in items) { if (item.LevType == EyouSoft.Model.EnumType.ComStructure.LevType.内部结算价) { continue; } ddlLevId.Items.Add(new ListItem(item.Name, item.Id.ToString())); } }
/// <summary> /// 绑定客户等级 /// </summary> /// <returns></returns> protected string BindCrmLevId() { System.Text.StringBuilder s = new System.Text.StringBuilder(); var items = new EyouSoft.BLL.ComStructure.BComLev().GetList(CurrentUserCompanyID); s.Append("<option value=\"\">--未选择--</option>"); if (items != null && items.Count > 0) { foreach (var item in items) { if (item.LevType == EyouSoft.Model.EnumType.ComStructure.LevType.内部结算价) { continue; } s.AppendFormat("<option value=\"{0}\">{1}</option>", item.Id, item.Name); } } return(s.ToString()); }
/// <summary> /// 同业分销_订单中心列表 /// </summary> /// <param name="searchOrderCenter">查询类</param> /// <param name="pageSize">每页显示的条数</param> /// <param name="pageIndex">当前页</param> /// <param name="recordCount">总条数</param> /// <param name="heJi">合计信息 [0:成人数合计:int][1:儿童数合计:int][2:金额合计:decimal]</param> /// <returns></returns> public IList <MTradeOrder> GetTourOrderList(MSearchOrderCenter searchOrderCenter, int pageSize, int pageIndex, ref int recordCount, out object[] heJi) { heJi = new object[] { 0, 0, 0M }; if (searchOrderCenter == null || string.IsNullOrEmpty(searchOrderCenter.CompanyId)) { throw new System.Exception("bll error:查询实体为null或string.IsNullOrEmpty(查询实体.CompanyId)==true。"); } string LoginUserId = this.LoginUserId; bool _isOnlySelf; int[] deptIds = this.GetDataPrivs(EyouSoft.Model.EnumType.PrivsStructure.Menu2.业分销_订单中心, out _isOnlySelf); var items = dal.GetTourOrderList(searchOrderCenter, pageSize, pageIndex, ref recordCount, LoginUserId, deptIds, _isOnlySelf, out heJi); if (items != null && items.Count > 0) { var bllDengJi = new EyouSoft.BLL.ComStructure.BComLev(); var bllBiaoZhun = new EyouSoft.BLL.ComStructure.BComStand(); foreach (var item in items) { if (item.KeHuLevId > 0) { item.KeHuLevName = bllDengJi.GetName(item.KeHuLevId, searchOrderCenter.CompanyId); } if (item.BaoJiaBiaoZhunId > 0) { item.BaoJiaBiaoZhunName = bllBiaoZhun.GetName(item.BaoJiaBiaoZhunId, searchOrderCenter.CompanyId); } } } return(items); }
protected void Page_Load(object sender, EventArgs e) { #region 控件设置 this.SellsSelect1.SetTitle = "销售员"; this.SellsSelect1.CallBackFun = "OrderInfoPage.CallBackFun"; this.SellsSelect1.ClientDeptID = this.hideDeptID.ClientID; this.SellsSelect1.ClientDeptName = this.hideDeptName.ClientID; this.PriceStand1.CompanyID = SiteUserInfo.CompanyId; this.PriceStand1.InitMode = false; this.PriceStand1.ShowModel = true; this.CustomerUnitSelect1.CallBack = "OrderInfoPage.CustomerUnitCallBack"; this.CustomerUnitSelect1.IsApply = true; #endregion #region 处理AJAX请求 //获取ajax请求 string doType = Utils.GetQueryStringValue("dotype"); switch (doType) { case "save": Utils.RCWE(PageSave()); break; case "getAmount": Utils.RCWE(GetAmount()); break; case "yanzhengzerenxiaoshou": YanZhengZeRenXiaoShou(); break; default: break; } #endregion if (!IsPostBack) { string tourID = Utils.GetQueryStringValue("tourID"); string orderID = Utils.GetQueryStringValue("orderID"); #region 获得结算价等级 EyouSoft.BLL.ComStructure.BComLev comLevBll = new EyouSoft.BLL.ComStructure.BComLev(); IList <EyouSoft.Model.ComStructure.MComLev> sysComLev = comLevBll.GetList(SiteUserInfo.CompanyId); if (sysComLev != null && sysComLev.Count > 0) { EyouSoft.Model.ComStructure.MComLev peerLevModel = sysComLev.FirstOrDefault(p => p.LevType == EyouSoft.Model.EnumType.ComStructure.LevType.内部结算价); if (peerLevModel != null) { this.hideSettLevelID.Value = peerLevModel.Id.ToString(); } } comLevBll = null; sysComLev = null; #endregion #region 获得留位时间 GetMaxDateTime(); this.txtSaveSeatDate.Attributes.Add("onfocus", "WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',maxDate:'" + this.MaxDateTime + "',minDate:'" + DateTime.Now.AddMinutes(5).ToString("yyyy-MM-dd HH:mm") + "'})"); #endregion //根据ID初始化页面 if (tourID != "") { PageInitForTour(tourID); } if (orderID != "") { PageInitForOrder(orderID); } if (tourID == "" && orderID == "") { Utils.ResponseGoBack(); } /* * 报名途径 * 系统后台报名:确认成交(已成交)、留位(留位) * 分销商平台报名:提交订单(未处理) * 分销商平台订单列表可取消未处理状态的订单 * 派团计划保存后订单就是已成交 * * 订单类型 * 未处理:确认成交,同意留位,取消订单 * 已留位:确认成交、继续留位、取消订单 * 留位过期:确认成交,继续留位,取消订单 * 已成交:修改(派团给计调前)或变更(派团后计调后)、取消订单 * 不受理:无操作 */ } }