Exemplo n.º 1
0
        /// <summary>
        /// 绑定线路区域
        /// </summary>
        private void BindAreaList(int selectIndex)
        {
            StringBuilder sb = new StringBuilder();
            IList <EyouSoft.Model.ComStructure.MComArea> list = new EyouSoft.BLL.ComStructure.BComArea().GetAreaByCID(SiteUserInfo.CompanyId);

            sb.Append("<option value=\"0\">-请选择-</option>");
            if (list != null && list.Count > 0)
            {
                string type = string.Empty;
                for (int i = 0; i < list.Count; i++)
                {
                    switch (list[i].Type)
                    {
                    case EyouSoft.Model.EnumType.ComStructure.AreaType.国内线: type = "0";
                        break;

                    case EyouSoft.Model.EnumType.ComStructure.AreaType.省内线: type = "1";
                        break;

                    case EyouSoft.Model.EnumType.ComStructure.AreaType.出境线: type = "2";
                        break;
                    }
                    if (list[i].AreaId != selectIndex)
                    {
                        sb.Append("<option data-type='" + type + "' value=\"" + list[i].AreaId + "\">" + list[i].AreaName + "</option>");
                    }
                    else
                    {
                        sb.Append("<option data-type='" + type + "' value=\"" + list[i].AreaId + "\" selected=\"selected\">" + list[i].AreaName + "</option>");
                    }
                }
            }
            this.litArea.Text = sb.ToString();
            EyouSoft.Model.ComStructure.MComSetting comSettingModel = new EyouSoft.BLL.ComStructure.BComSetting().GetModel(SiteUserInfo.CompanyId);
            if (comSettingModel != null)
            {
                this.hideSysStopCount.Value = "" + comSettingModel.CountryArea.ToString() + "," + comSettingModel.ProvinceArea.ToString() + "," + comSettingModel.ExitArea.ToString() + "";
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 初始化团队实体数据
        /// </summary>
        /// <param name="tourId">团队编号</param>
        private void TourModelInit(string tourId)
        {
            MTourBaseInfo model = new BTour().GetTourInfo(tourId);

            if (model != null)
            {
                //团号
                lbl_TourCode.Text = model.TourCode;
                //线路区域
                EyouSoft.Model.ComStructure.MComArea AreaModel = new EyouSoft.BLL.ComStructure.BComArea().GetModel(model.AreaId, SiteUserInfo.CompanyId);
                if (AreaModel != null)
                {
                    this.lbl_AreaName.Text = AreaModel.AreaName;
                }
                AreaModel = null;

                //线路名称
                lbl_RouteName.Text = model.RouteName;
                //天数
                lbl_TourDays.Text = model.TourDays.ToString();
                //出发时间
                lbl_LDate.Text = UtilsCommons.GetDateString(model.LDate, ProviderToDate);
                //返回时间
                lbl_RDate.Text = UtilsCommons.GetDateString(model.RDate, ProviderToDate);
                //导游
                lbl_TourGride.Text = UtilsCommons.PingGuide(model.GuideList);
                //出发交通
                lbl_LTraffic.Text = model.LTraffic;
                //销售员
                this.hideSaleId.Value = model.SaleInfo.SellerId;
                lbl_SaleInfo.Text     = model.SaleInfo.Name;
                //返回交通
                lbl_RTraffic.Text = model.RTraffic;
                //计调
                lbl_TourPlaner.Text = UtilsCommons.PingPlaner(model.TourPlaner);
                //集合方式
                lbl_Gather.Text = model.Gather;
            }
        }