コード例 #1
0
 /// <summary>
 /// 获取公司信息
 /// </summary>
 /// <returns></returns>
 private EyouSoft.Model.CompanyStructure.CompanyInfo GetCompanyInfo(string CompanyID)
 {
     EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll  = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
     EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(CompanyID);
     ICompanyInfobll = null;
     return(companyInfoModel);
 }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (this.IsLogin)
         {
             if (!string.IsNullOrEmpty(Utils.GetQueryStringValue("TourCompanyID")))
             {
                 CompanyID = Utils.GetQueryStringValue("TourCompanyID");
                 EyouSoft.IBLL.CompanyStructure.ICompanyInfo       Ibll  = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
                 EyouSoft.Model.CompanyStructure.CompanyDetailInfo model = new EyouSoft.Model.CompanyStructure.CompanyDetailInfo();
                 model              = Ibll.GetModel(CompanyID);
                 ManName            = model.ContactInfo.ContactName;
                 ConnectTel         = model.ContactInfo.Tel;
                 ConnectFax         = model.ContactInfo.Fax;
                 ConnectMobilePhone = model.ContactInfo.Mobile;
                 model              = null;
                 Ibll = null;
             }
         }
         else
         {
         }
     }
 }
コード例 #3
0
 /// <summary>
 /// 初始化基础信息
 /// </summary>
 private void InitBasicInfo()
 {
     EyouSoft.IBLL.CompanyStructure.ICompanyInfo       bll   = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
     EyouSoft.Model.CompanyStructure.CompanyDetailInfo model = bll.GetModel(CompanyID);
     if (model != null)
     {
         this.lblCompanyName.Text = model.CompanyName;
         this.lblLicense.Text     = model.License;
         this.lblAddress.Text     = model.CompanyAddress;
         if (model.ContactInfo != null)
         {
             this.lblContactFax.Text = model.ContactInfo.Fax;
             this.lblContactTel.Text = model.ContactInfo.Tel;
         }
     }
     model = null;
     bll   = null;
 }
コード例 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         #region 获取所属公司信息
         EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll  = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
         EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(Utils.GetQueryStringValue("CompanyID"));
         ContactName      = companyInfoModel.ContactInfo.ContactName;
         MQ               = companyInfoModel.ContactInfo.MQ;
         QQ               = companyInfoModel.ContactInfo.QQ;
         Phone            = companyInfoModel.ContactInfo.Mobile;
         Fax              = companyInfoModel.ContactInfo.Fax;
         Tel              = companyInfoModel.ContactInfo.Tel;
         ICompanyInfobll  = null;
         companyInfoModel = null;
         #endregion
     }
 }
コード例 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //if (SiteUserInfo.CompanyRole.RoleItems.Where(i => i == EyouSoft.Model.CompanyStructure.CompanyType.全部 || i == EyouSoft.Model.CompanyStructure.CompanyType.专线 || i == EyouSoft.Model.CompanyStructure.CompanyType.组团 || i == EyouSoft.Model.CompanyStructure.CompanyType.地接 || i==EyouSoft.Model.CompanyStructure.CompanyType.其他采购商).Count() < 1)
                //{
                //    Response.Clear();
                //    Response.Write("<script type='text/javascript'>alert('对不起,你不是旅行社用户!');</script>");
                //    Response.End();
                //    return;
                //}
                this.GoogleMapKey = EyouSoft.Common.ConfigModel.ConfigClass.GetConfigString("appSettings", "GoogleMapsAPIKEY");
                this.initData();
            }
            if (IsCompanyCheck)
            {
                isCompanyCheck = true;
            }

            //if (!CheckGrant(TravelPermission.系统设置_单位信息))
            //{
            //    haveUpdate = false;
            //}
            companyBll   = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
            companyModel = companyBll.GetModel(SiteUserInfo.CompanyID);//获取公司信息
            string method = Utils.GetFormValue("method");

            if (method == "save")
            {
                if (!haveUpdate)
                {
                    Utils.ResponseMeg(false, "对不起,你没有该权限!");
                    return;
                }
                UpdateCompanyInfo();//更新单位信息
                return;
            }
            else
            {
                LoadCompanyInfo();//初始化单位信息
            }
        }
コード例 #6
0
        private void InitPage()
        {
            EyouSoft.IBLL.TourStructure.ITour     Ibll  = EyouSoft.BLL.TourStructure.Tour.CreateInstance();
            EyouSoft.Model.TourStructure.TourInfo model = Ibll.GetTourInfo(TourID);
            if (model != null)
            {
                TemplateTourID = model.ParentTourID;
                #region 获取所属公司信息
                if (this.IsLogin)
                {
                    TourContactTel = this.SiteUserInfo.ContactInfo.Tel;
                    TourContact    = this.SiteUserInfo.ContactInfo.ContactName;
                    EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll  = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
                    EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(this.SiteUserInfo.CompanyID);
                    CompanyName      = companyInfoModel.CompanyName;
                    CompanyAddress   = companyInfoModel.CompanyAddress;
                    License          = companyInfoModel.License;
                    ICompanyInfobll  = null;
                    companyInfoModel = null;
                }
                else
                {
                    tbl_Header.Visible = false;
                    //EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
                    //EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(model.CompanyID);
                    //CompanyName = companyInfoModel.CompanyName;
                    //CompanyAddress = companyInfoModel.CompanyAddress;
                    //License = companyInfoModel.License;
                    //TourContactTel = companyInfoModel.ContactInfo.Tel;
                    //TourContact = companyInfoModel.ContactInfo.ContactName;
                    //ICompanyInfobll = null;
                    //companyInfoModel = null;
                }
                #endregion

                #region 获取地接社信息
                if (model.LocalTravelAgency != null && model.LocalTravelAgency.Count > 0)
                {
                    rptTourLocalityInfo.DataSource = model.LocalTravelAgency;
                    rptTourLocalityInfo.DataBind();
                }
                else
                {
                    HasLocalCompanyInfo = false;
                }

                #endregion

                #region 价格等级信息
                IList <EyouSoft.Model.TourStructure.TourPriceDetail> PriceLists = EyouSoft.BLL.TourStructure.Tour.CreateInstance().GetTourPriceDetail(TemplateTourID);
                List <UserBackCenter.RouteAgency.CompanyPriceDetail> newLists   = new List <UserBackCenter.RouteAgency.CompanyPriceDetail>();
                UserBackCenter.RouteAgency.CompanyPriceDetail        cpModel    = null;
                if (PriceLists != null && PriceLists.Count > 0)
                {
                    ((List <EyouSoft.Model.TourStructure.TourPriceDetail>)PriceLists).ForEach(item =>
                    {
                        cpModel = new UserBackCenter.RouteAgency.CompanyPriceDetail();
                        cpModel.PriceStandName = item.PriceStandName;
                        ((List <EyouSoft.Model.TourStructure.TourPriceCustomerLeaveDetail>)item.PriceDetail).ForEach(childItem =>
                        {
                            switch (childItem.CustomerLevelType)
                            {
                            case EyouSoft.Model.CompanyStructure.CustomerLevelType.行:
                                cpModel.AdultPrice1    = childItem.AdultPrice;
                                cpModel.ChildrenPrice1 = childItem.ChildrenPrice;
                                break;

                            case EyouSoft.Model.CompanyStructure.CustomerLevelType.门市:
                                cpModel.AdultPrice2    = childItem.AdultPrice;
                                cpModel.ChildrenPrice2 = childItem.ChildrenPrice;
                                break;

                            case EyouSoft.Model.CompanyStructure.CustomerLevelType.单房差:
                                cpModel.SingleRoom1 = childItem.AdultPrice;
                                cpModel.SingleRoom2 = childItem.ChildrenPrice;
                                break;
                            }
                        });
                        newLists.Add(cpModel);
                        cpModel = null;
                    });
                    this.rptTourPriceDetail.DataSource = newLists;
                    this.rptTourPriceDetail.DataBind();
                    newLists = null;
                }
                PriceLists = null;
                #endregion

                #region 团队相关信息
                RouteName = model.RouteName;
                LeaveDate = model.LeaveDate;
                BackDate  = model.ComeBackDate;
                TourDays  = model.TourDays;
                TourCode  = model.TourNo;
                if (model.ReleaseType == EyouSoft.Model.TourStructure.ReleaseType.Standard)//标准发布
                {
                    Traffic           = EyouSoft.Common.Function.StringValidate.TextToHtml(model.LeaveTraffic.Trim());
                    MeetTourContect   = EyouSoft.Common.Function.StringValidate.TextToHtml(model.MeetTourContect.Trim());
                    CollectionContect = EyouSoft.Common.Function.StringValidate.TextToHtml(model.CollectionContect.Trim());
                    //行程信息及相关
                    rptStandardPlan.DataSource = model.StandardPlan;
                    rptStandardPlan.DataBind();
                    //服务标准及说明
                    List <EyouSoft.Model.TourStructure.ServiceStandard> serviceList = new List <EyouSoft.Model.TourStructure.ServiceStandard>();
                    if (model.ServiceStandard != null)
                    {
                        serviceList.Add(model.ServiceStandard);
                        NotContainService = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.NotContainService);
                        SpeciallyNotice   = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.SpeciallyNotice);
                        this.rptServiceStandard.DataSource = serviceList;
                        this.rptServiceStandard.DataBind();
                    }
                }
                else//快速发布
                {
                    isStadardType        = false;
                    pnlQuickPlan.Visible = true;
                    QuickPlanContent     = model.QuickPlan;
                }
                #endregion
            }
            Ibll  = null;
            model = null;
        }
コード例 #7
0
        private void InitPage()
        {
            EyouSoft.IBLL.TourStructure.ITour     Ibll  = EyouSoft.BLL.TourStructure.Tour.CreateInstance();
            EyouSoft.Model.TourStructure.TourInfo model = Ibll.GetTourInfo(TourID);
            if (model != null)
            {
                TemplateTourID = model.ParentTourID;
                #region 获取所属公司信息
                EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll  = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
                EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(model.CompanyID);
                CompanyName      = companyInfoModel.CompanyName;
                CompanyAddress   = companyInfoModel.CompanyAddress;
                License          = companyInfoModel.License;
                TourContactFax   = companyInfoModel.ContactInfo.Fax;
                ICompanyInfobll  = null;
                companyInfoModel = null;
                #endregion

                #region 获取地接社信息
                if (model.LocalTravelAgency != null && model.LocalTravelAgency.Count > 0)
                {
                    //EyouSoft.Model.TourStructure.TourLocalityInfo localMode = ((List<EyouSoft.Model.TourStructure.TourLocalityInfo>)model.LocalTravelAgency).First(LocalAgency =>
                    //{
                    //    return LocalAgency.TourId == TourID;
                    //});
                    //if (localMode != null)
                    //{
                    ltrLocalCompanyName.Text = model.LocalTravelAgency[0].LocalCompanyName;
                    ltrLicenseNumber.Text    = model.LocalTravelAgency[0].LicenseNumber;
                    //}
                }
                #endregion

                #region 价格等级信息
                IList <EyouSoft.Model.TourStructure.TourPriceDetail> PriceLists = EyouSoft.BLL.TourStructure.Tour.CreateInstance().GetTourPriceDetail(TemplateTourID);
                List <UserBackCenter.RouteAgency.CompanyPriceDetail> newLists   = new List <UserBackCenter.RouteAgency.CompanyPriceDetail>();
                UserBackCenter.RouteAgency.CompanyPriceDetail        cpModel    = null;
                if (PriceLists != null && PriceLists.Count > 0)
                {
                    ((List <EyouSoft.Model.TourStructure.TourPriceDetail>)PriceLists).ForEach(item =>
                    {
                        cpModel = new UserBackCenter.RouteAgency.CompanyPriceDetail();
                        cpModel.PriceStandName = item.PriceStandName;
                        ((List <EyouSoft.Model.TourStructure.TourPriceCustomerLeaveDetail>)item.PriceDetail).ForEach(childItem =>
                        {
                            switch (childItem.CustomerLevelType)
                            {
                            case EyouSoft.Model.CompanyStructure.CustomerLevelType.行:
                                cpModel.AdultPrice1    = childItem.AdultPrice;
                                cpModel.ChildrenPrice1 = childItem.ChildrenPrice;
                                break;

                            case EyouSoft.Model.CompanyStructure.CustomerLevelType.门市:
                                cpModel.AdultPrice2    = childItem.AdultPrice;
                                cpModel.ChildrenPrice2 = childItem.ChildrenPrice;
                                break;

                            case EyouSoft.Model.CompanyStructure.CustomerLevelType.单房差:
                                cpModel.SingleRoom1 = childItem.AdultPrice;
                                cpModel.SingleRoom2 = childItem.ChildrenPrice;
                                break;
                            }
                        });
                        newLists.Add(cpModel);
                        cpModel = null;
                    });
                    this.rptTourPriceDetail.DataSource = newLists;
                    this.rptTourPriceDetail.DataBind();
                    newLists = null;
                }
                PriceLists = null;
                #endregion

                #region 团队相关信息
                RouteName = model.RouteName;
                LeaveDate = model.LeaveDate;
                BackDate  = model.ComeBackDate;
                TourDays  = model.TourDays;
                TourCode  = model.TourNo;
                if (((int)model.ReleaseType) == 0)//标注发布
                {
                    ltrTraffic.Text           = model.LeaveTraffic;
                    ltrMeetTourContect.Text   = model.MeetTourContect;
                    ltrCollectionContect.Text = model.CollectionContect;
                    //行程信息及相关
                    rptStandardPlan.DataSource = model.StandardPlan;
                    rptStandardPlan.DataBind();
                    //服务标准及说明
                    List <EyouSoft.Model.TourStructure.ServiceStandard> serviceList = new List <EyouSoft.Model.TourStructure.ServiceStandard>();
                    if (model.ServiceStandard != null)
                    {
                        serviceList.Add(model.ServiceStandard);
                        this.rptServiceStandard.DataSource = serviceList;
                        this.rptServiceStandard.DataBind();
                    }
                }
                else//快速发布
                {
                    pnlServiceStandard.Visible   = false;
                    Tr_CollectionContect.Visible = false;

                    Tr_Traffic.Visible = false;
                    QuickPlanContent   = model.QuickPlan;
                }
                #endregion
            }
            Ibll  = null;
            model = null;
        }
コード例 #8
0
        /// <summary>
        /// 更新公司信息
        /// </summary>
        /// <param name="requestInfo"></param>
        /// <returns></returns>
        private EyouSoft.OpenRelation.Model.MResponseInfo UpdateCompanyInfo(EyouSoft.OpenRelation.Model.MRequestInfo requestInfo)
        {
            EyouSoft.OpenRelation.Model.MResponseInfo responseInfo = new EyouSoft.OpenRelation.Model.MResponseInfo()
            {
                IsSuccess = true
            };
            if (requestInfo == null)
            {
                responseInfo.IsSuccess = false;
                responseInfo.Desc      = "http request post info对象为空!";

                return(responseInfo);
            }

            EyouSoft.OpenRelation.Model.MCompanyInfo MiddComp = EyouSoft.OpenRelation.Utils.InvertJSON <EyouSoft.OpenRelation.Model.MCompanyInfo>(requestInfo.InstructionCode);
            if (MiddComp == null)
            {
                responseInfo.IsSuccess = false;
                responseInfo.Desc      = "Josn对象转为中间平台对象时发生错误!";

                return(responseInfo);
            }
            EyouSoft.IBLL.CompanyStructure.ICompanyInfo        ComBll      = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
            EyouSoft.Model.CompanyStructure.CompanyArchiveInfo CompanyInfo = ComBll.GetModel(MiddComp.PlatformCompanyId);
            if (CompanyInfo == null || CompanyInfo.ContactInfo == null)
            {
                responseInfo.IsSuccess = false;
                responseInfo.Desc      = "在平台中未找到对应的公司或者公司对应的联系人信息!";

                return(responseInfo);
            }

            //大平台邮箱不能为空 赋值空格
            if (string.IsNullOrEmpty(MiddComp.ContactEmail))
            {
                MiddComp.ContactEmail = " ";
            }

            //公司
            if (!string.IsNullOrEmpty(MiddComp.CompanyName))
            {
                CompanyInfo.CompanyName = MiddComp.CompanyName;
            }
            if (!string.IsNullOrEmpty(MiddComp.Address))
            {
                CompanyInfo.CompanyAddress = MiddComp.Address;
            }
            if (!string.IsNullOrEmpty(MiddComp.Domain))
            {
                CompanyInfo.WebSite = MiddComp.Domain;
            }
            //联系人
            if (!string.IsNullOrEmpty(MiddComp.ContactName))
            {
                CompanyInfo.ContactInfo.ContactName = MiddComp.ContactName;
            }
            if (!string.IsNullOrEmpty(MiddComp.ContactTelephone))
            {
                CompanyInfo.ContactInfo.Tel = MiddComp.ContactTelephone;
            }
            if (!string.IsNullOrEmpty(MiddComp.ContactMobile))
            {
                CompanyInfo.ContactInfo.Mobile = MiddComp.ContactMobile;
            }
            if (!string.IsNullOrEmpty(MiddComp.ContactFax))
            {
                CompanyInfo.ContactInfo.Fax = MiddComp.ContactFax;
            }
            CompanyInfo.ContactInfo.Email      = MiddComp.ContactEmail;
            CompanyInfo.ContactInfo.MSN        = MiddComp.ContactMSN;
            CompanyInfo.ContactInfo.QQ         = MiddComp.ContactQQ;
            CompanyInfo.ContactInfo.ContactSex = GetGender(MiddComp.ContactGender);

            try
            {
                responseInfo.IsSuccess = ComBll.UpdateSelf(CompanyInfo);
                responseInfo.Desc      = "修改公司信息完成!";
            }
            catch (Exception e)
            {
                responseInfo.IsSuccess = false;
                responseInfo.Desc      = "修改公司信息操作执行异常!";
                responseInfo.ErrorCode = e.Message + e.StackTrace;
            }

            return(responseInfo);
        }
コード例 #9
0
        private void InitPage()
        {
            EyouSoft.IBLL.TourStructure.ITour     Ibll  = EyouSoft.BLL.TourStructure.Tour.CreateInstance();
            EyouSoft.Model.TourStructure.TourInfo model = Ibll.GetTourInfo(TourID);
            if (model != null)
            {
                TemplateTourID = model.ParentTourID;
                #region 新增浏览记录
                string currentCompanyId = string.Empty;
                if (this.IsLogin)
                {
                    currentCompanyId = SiteUserInfo.CompanyID;
                }
                if (model.CompanyID != currentCompanyId && !string.IsNullOrEmpty(currentCompanyId))
                {
                    EyouSoft.Model.TourStructure.TourVisitInfo TourModel = new EyouSoft.Model.TourStructure.TourVisitInfo();
                    TourModel.TourId             = TourID;
                    TourModel.VisitedCompanyId   = model.CompanyID;
                    TourModel.VisitedCompanyName = model.CompanyName;
                    TourModel.VisitedTime        = DateTime.Today;
                    TourModel.VisitTourCode      = model.TourNo;
                    TourModel.VisitTourRouteName = model.RouteName;
                    if (IsLogin)
                    {
                        TourModel.ClientCompanyId            = SiteUserInfo.CompanyID;
                        TourModel.ClientCompanyName          = SiteUserInfo.CompanyName;
                        TourModel.ClientUserContactMobile    = SiteUserInfo.ContactInfo.Mobile;
                        TourModel.ClientUserContactName      = SiteUserInfo.ContactInfo.ContactName;
                        TourModel.ClientUserContactTelephone = SiteUserInfo.ContactInfo.Tel;
                        TourModel.ClientUserId        = SiteUserInfo.ID;
                        TourModel.ClinetUserContactQQ = SiteUserInfo.ContactInfo.QQ;
                    }
                    else
                    {
                        TourModel.ClientCompanyId = "";
                    }
                    EyouSoft.BLL.TourStructure.Tour.CreateInstance().InsertTourVisitedInfo(TourModel);
                    TourModel = null;
                }
                else if (!IsLogin)
                {
                    EyouSoft.BLL.TourStructure.Tour.CreateInstance().IncreaseClicks(TourID);
                }
                #endregion

                #region 获取所属公司信息
                if (this.IsLogin)
                {
                    TourContactTel = this.SiteUserInfo.ContactInfo.Tel;
                    TourContact    = this.SiteUserInfo.ContactInfo.ContactName;
                    EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll  = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
                    EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(this.SiteUserInfo.CompanyID);
                    CompanyName      = companyInfoModel.CompanyName;
                    CompanyAddress   = companyInfoModel.CompanyAddress;
                    License          = companyInfoModel.License;
                    ICompanyInfobll  = null;
                    companyInfoModel = null;
                }
                else
                {
                    tbl_Header.Visible = false;
                    //EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
                    //EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(model.CompanyID);
                    //CompanyName = companyInfoModel.CompanyName;
                    //CompanyAddress = companyInfoModel.CompanyAddress;
                    //License = companyInfoModel.License;
                    //TourContactTel = companyInfoModel.ContactInfo.Tel;
                    //TourContact = companyInfoModel.ContactInfo.ContactName;
                    //ICompanyInfobll = null;
                    //companyInfoModel = null;
                }
                #endregion

                #region 获取地接社信息
                rptTourLocalityInfo.DataSource = model.LocalTravelAgency;
                rptTourLocalityInfo.DataBind();
                if (rptTourLocalityInfo.Items.Count < 1)
                {
                    isNotLocalCompany = false;
                }
                #endregion

                #region 价格等级信息
                IList <EyouSoft.Model.TourStructure.TourPriceDetail> PriceLists = EyouSoft.BLL.TourStructure.Tour.CreateInstance().GetTourPriceDetail(TemplateTourID);
                List <UserBackCenter.RouteAgency.CompanyPriceDetail> newLists   = new List <UserBackCenter.RouteAgency.CompanyPriceDetail>();
                UserBackCenter.RouteAgency.CompanyPriceDetail        cpModel    = null;
                if (PriceLists != null && PriceLists.Count > 0)
                {
                    ((List <EyouSoft.Model.TourStructure.TourPriceDetail>)PriceLists).ForEach(item =>
                    {
                        cpModel = new UserBackCenter.RouteAgency.CompanyPriceDetail();
                        cpModel.PriceStandName = item.PriceStandName;
                        ((List <EyouSoft.Model.TourStructure.TourPriceCustomerLeaveDetail>)item.PriceDetail).ForEach(childItem =>
                        {
                            switch (childItem.CustomerLevelType)
                            {
                            case EyouSoft.Model.CompanyStructure.CustomerLevelType.行:
                                cpModel.AdultPrice1    = childItem.AdultPrice;
                                cpModel.ChildrenPrice1 = childItem.ChildrenPrice;
                                break;

                            case EyouSoft.Model.CompanyStructure.CustomerLevelType.门市:
                                cpModel.AdultPrice2    = childItem.AdultPrice;
                                cpModel.ChildrenPrice2 = childItem.ChildrenPrice;
                                break;

                            case EyouSoft.Model.CompanyStructure.CustomerLevelType.单房差:
                                cpModel.SingleRoom1 = childItem.AdultPrice;
                                cpModel.SingleRoom2 = childItem.ChildrenPrice;
                                break;
                            }
                        });
                        newLists.Add(cpModel);
                        cpModel = null;
                    });
                    this.rptTourPriceDetail.DataSource = newLists;
                    this.rptTourPriceDetail.DataBind();
                    newLists = null;
                }
                PriceLists = null;
                #endregion

                #region 团队相关信息
                RouteName = model.RouteName;
                LeaveDate = model.LeaveDate;
                BackDate  = model.ComeBackDate;
                TourDays  = model.TourDays;
                TourCode  = model.TourNo;
                if (model.ReleaseType == EyouSoft.Model.TourStructure.ReleaseType.Standard)//标准发布
                {
                    if (!string.IsNullOrEmpty(model.LeaveTraffic))
                    {
                        ltrTraffic.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.LeaveTraffic);
                    }
                    else
                    {
                        Tr_Traffic.Visible = false;
                    }
                    if (!string.IsNullOrEmpty(model.MeetTourContect))
                    {
                        ltrMeetTourContect.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.MeetTourContect);
                    }
                    else
                    {
                        Tr_MeetTourContect.Visible = false;
                    }
                    if (!string.IsNullOrEmpty(model.CollectionContect))
                    {
                        ltrCollectionContect.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.CollectionContect);
                    }
                    else
                    {
                        Tr_CollectionContect.Visible = false;
                    }

                    //行程信息及相关
                    rptStandardPlan.DataSource = model.StandardPlan;
                    rptStandardPlan.DataBind();
                    //服务标准及说明
                    if (model.ServiceStandard != null)
                    {
                        ResideContent       = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.ResideContent);       //住宿
                        DinnerContent       = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.DinnerContent);       //用餐
                        SightContent        = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.SightContent);        //景点
                        CarContent          = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.CarContent);          //用车
                        GuideContent        = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.GuideContent);        //导游
                        TrafficContent      = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.TrafficContent);      //往返交通
                        IncludeOtherContent = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.IncludeOtherContent); //其它
                        if (!string.IsNullOrEmpty(model.ServiceStandard.NotContainService))
                        {
                            NotContainService = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.NotContainService);
                        }
                        else
                        {
                            Tr_NotContainService.Visible = false;
                        }
                        if (!string.IsNullOrEmpty(model.ServiceStandard.SpeciallyNotice))
                        {
                            SpeciallyNotice = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.SpeciallyNotice);
                        }
                        else
                        {
                            Tr_SpeciallyNotice.Visible = false;
                        }
                    }
                }
                else//快速发布
                {
                    pnlServiceStandard.Visible   = false;
                    Tr_CollectionContect.Visible = false;
                    Tr_MeetTourContect.Visible   = false;
                    Tr_Traffic.Visible           = false;
                    QuickPlanContent             = model.QuickPlan;
                }
                #endregion
            }
            Ibll  = null;
            model = null;
        }
コード例 #10
0
        /// <summary>
        /// 初始化基础信息
        /// </summary>
        private void InitBasicInfo()
        {
            if (UserInfoModel != null)
            {
                this.ltrCompanyName.Text = UserInfoModel.CompanyName;
            }
            EyouSoft.IBLL.CompanyStructure.ICompanyInfo       CompanyInfo      = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
            EyouSoft.Model.CompanyStructure.CompanyDetailInfo CompanyInfoModel = CompanyInfo.GetModel(UserInfoModel.CompanyID);
            if (CompanyInfoModel != null)
            {
                if (!String.IsNullOrEmpty(CompanyInfoModel.AttachInfo.CompanyLogo.ImagePath))
                {
                    this.imgLogo.Src = Domain.FileSystem + CompanyInfoModel.AttachInfo.CompanyLogo.ImagePath;
                }
                else
                {
                    this.imgLogo.Src = ImageServerPath + "/images/logo.gif";
                }
            }

            EyouSoft.IBLL.CompanyStructure.ICompanySetting CSetBll   = EyouSoft.BLL.CompanyStructure.CompanySetting.CreateInstance();
            EyouSoft.Model.CompanyStructure.CompanySetting CSetModel = CSetBll.GetModel(UserInfoModel.CompanyID);
            if (CSetModel != null)
            {
                switch (CSetModel.FirstMenu)
                {
                case EyouSoft.Model.CompanyStructure.MenuSection.专线服务:
                    FirstMenu = "0";
                    break;

                case EyouSoft.Model.CompanyStructure.MenuSection.组团服务:
                    FirstMenu = "1";
                    break;

                case EyouSoft.Model.CompanyStructure.MenuSection.地接服务:
                    FirstMenu = "2";
                    break;

                case EyouSoft.Model.CompanyStructure.MenuSection.景区服务:
                    FirstMenu = "3";
                    break;

                default:
                    FirstMenu = "1";
                    break;
                }
            }

            #region 专线和组团显示控制
            EyouSoft.Model.CompanyStructure.CompanyRole   RoleModel = UserInfoModel.CompanyRole;
            EyouSoft.Model.CompanyStructure.CompanyType[] enumType  = RoleModel.RoleItems;

            if (enumType.Length > 0)
            {
                foreach (EyouSoft.Model.CompanyStructure.CompanyType type in enumType)
                {
                    if (type == EyouSoft.Model.CompanyStructure.CompanyType.专线)
                    {
                        IsRouteAgency = true;
                    }
                    else if (type == EyouSoft.Model.CompanyStructure.CompanyType.组团 ||
                             type == EyouSoft.Model.CompanyStructure.CompanyType.其他采购商)
                    {
                        IsTourAgency = true;
                    }
                    else if (type == EyouSoft.Model.CompanyStructure.CompanyType.地接)
                    {
                        IsLocalAgency = true;
                    }
                    else if (type == EyouSoft.Model.CompanyStructure.CompanyType.景区)
                    {
                        IsSightAgency = true;
                    }
                    else
                    {
                        IsOther = true;
                    }
                }
                if (IsRouteAgency)   // 仅为专线
                {
                    this.div_RouteAgency.Visible = true;
                    //景区门票后台搜索页
                    divSceniceList.Visible = true;
                }
                if (IsTourAgency)     // 仅为组团
                {
                    this.div_TourAgency.Visible = true;
                    //景区门票后台搜索页
                    divSceniceList.Visible = true;
                }
                if (IsLocalAgency)
                {   // 地接
                    this.div_LocalAgency.Visible = true;
                    //景区门票后台搜索页
                    divSceniceList.Visible = true;
                }
                if (!IsRouteAgency && !IsTourAgency && IsLocalAgency)
                {
                    //景区门票后台搜索页
                    divSceniceList.Visible = true;
                }
                if (IsSightAgency)
                {
                    div_SightAgency.Visible = true;
                    divHotelCenter.Visible  = false;
                    //景区门票后台搜索页
                    divSceniceList.Visible = true;
                    //我的网店链接地址
                    hrefSightShop.HRef = IsOpenHighShop
                                             ? "/EShop/SightShop/SightShopDefault.aspx"
                                             : "/GeneralShop/SightShop/Default.aspx";
                }

                #region ZhouWenChao 2011-03-07  注释,原因是酒店用户进入不了后台

                //if (IsOther)
                //{
                //    Utils.ShowError("对不起,您不是旅行社账户!", "");
                //    return;
                //}

                #endregion
            }
            #endregion
        }
コード例 #11
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void InitPage()
        {
            EyouSoft.IBLL.TourStructure.ITour     Ibll  = EyouSoft.BLL.TourStructure.Tour.CreateInstance();
            EyouSoft.Model.TourStructure.TourInfo model = Ibll.GetTourInfo(TourID);
            if (model != null)
            {
                #region 获取所属公司信息
                if (this.IsLogin)
                {
                    CompanyID      = this.SiteUserInfo.CompanyID;
                    TourContactTel = this.SiteUserInfo.ContactInfo.Tel;
                    TourContact    = this.SiteUserInfo.ContactInfo.ContactName;
                    EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll  = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
                    EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(this.SiteUserInfo.CompanyID);
                    CompanyName      = companyInfoModel.CompanyName;
                    CompanyAddress   = companyInfoModel.CompanyAddress;
                    License          = companyInfoModel.License;
                    ICompanyInfobll  = null;
                    companyInfoModel = null;
                }
                else
                {
                    EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll  = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
                    EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(model.CompanyID);
                    CompanyName      = companyInfoModel.CompanyName;
                    CompanyAddress   = companyInfoModel.CompanyAddress;
                    License          = companyInfoModel.License;
                    TourContactTel   = companyInfoModel.ContactInfo.Tel;
                    TourContact      = companyInfoModel.ContactInfo.ContactName;
                    ICompanyInfobll  = null;
                    companyInfoModel = null;
                }
                #endregion

                #region 获取地接社信息
                if (model.LocalTravelAgency != null && model.LocalTravelAgency.Count > 0)
                {
                    rptTourLocalityInfo.DataSource = model.LocalTravelAgency;
                    rptTourLocalityInfo.DataBind();
                }
                else
                {
                    localInfo.Visible = false;
                }
                #endregion

                #region 团队相关信息
                TourDays  = model.TourDays;
                RouteName = model.RouteName;
                if (model.ReleaseType == EyouSoft.Model.TourStructure.ReleaseType.Standard)//标准发布
                {
                    if (!string.IsNullOrEmpty(model.LeaveTraffic))
                    {
                        ltrTraffic.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.LeaveTraffic);
                    }
                    else
                    {
                        Tr_Traffic.Visible = false;
                    }
                    if (!string.IsNullOrEmpty(model.CollectionContect))
                    {
                        ltrCollectionContect.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.CollectionContect);
                    }
                    else
                    {
                        CollectionContect.Visible = false;
                    }
                    if (!string.IsNullOrEmpty(model.MeetTourContect))
                    {
                        ltrMeetTourContect.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.MeetTourContect);
                    }
                    else
                    {
                        MeetTourContect.Visible = false;
                    }

                    ResideContent       = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.ResideContent);       //住宿
                    DinnerContent       = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.DinnerContent);       //用餐
                    SightContent        = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.SightContent);        //景点
                    CarContent          = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.CarContent);          //用车
                    GuideContent        = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.GuideContent);        //导游
                    TrafficContent      = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.TrafficContent);      //往返交通
                    IncludeOtherContent = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.IncludeOtherContent); //其它
                    NotContainService   = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.IncludeOtherContent); //其它说明
                    //备注
                    SpeciallyNotice = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ServiceStandard.SpeciallyNotice);

                    rptTeamNotice.DataSource = model.StandardPlan;
                    rptTeamNotice.DataBind();
                }
                else//快速发布
                {
                    pnlQuickPlan.Visible      = true;
                    Tr_Traffic.Visible        = false;
                    CollectionContect.Visible = false;
                    MeetTourContect.Visible   = false;
                    pnlNotQuickPlan.Visible   = false;
                    QuickPlanContent          = model.QuickPlan;
                }
                #region 盖章信息
                //if(this.SiteUserInfo.CompanyID==model.se)
                if (!string.IsNullOrEmpty(OrderID))
                {
                    string BuyCompanyID = EyouSoft.BLL.TourStructure.TourOrder.CreateInstance().GetOrderModel(OrderID).BuyCompanyID;
                    if (this.SiteUserInfo.CompanyID == BuyCompanyID)
                    {
                        string imgPath = EyouSoft.BLL.TourStructure.CompanyContractSignet.CreateInstance().GetGroupAdviceSignet(OrderID);
                        if (!string.IsNullOrEmpty(imgPath))
                        {
                            imgBuyCompany.Visible  = true;
                            imgBuyCompany.ImageUrl = Domain.FileSystem + imgPath;
                            btnCancelStamp.Visible = true;
                            btnToStamp.Visible     = false;
                        }
                    }
                    else
                    {
                        this.btnCancelStamp.Visible = false;
                        this.btnToStamp.Visible     = false;
                    }
                }
                else
                {//无订单号传入时,盖章隐藏
                    this.btnCancelStamp.Visible = false;
                    this.btnToStamp.Visible     = false;
                }
                //if (!this.CheckGrant(EyouSoft.Common.TravelPermission.系统设置_盖章) && this.SiteUserInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.组团))
                if (this.SiteUserInfo.CompanyRole.HasRole(EyouSoft.Model.CompanyStructure.CompanyType.组团))
                {
                    this.btnCancelStamp.Visible = false;
                    this.btnToStamp.Visible     = false;
                }
                #endregion
                #endregion
            }
            Ibll  = null;
            model = null;
        }
コード例 #12
0
        private void InitPage()
        {
            EyouSoft.IBLL.TourStructure.ITour     Ibll  = EyouSoft.BLL.TourStructure.Tour.CreateInstance();
            EyouSoft.Model.TourStructure.TourInfo model = Ibll.GetTourInfo(TourID);
            if (model != null)
            {
                #region 获取所属公司信息
                EyouSoft.IBLL.CompanyStructure.ICompanyInfo ICompanyInfobll  = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
                EyouSoft.Model.CompanyStructure.CompanyInfo companyInfoModel = ICompanyInfobll.GetModel(model.CompanyID);
                CompanyName      = companyInfoModel.CompanyName;
                CompanyAddress   = companyInfoModel.CompanyAddress;
                License          = companyInfoModel.License;
                ICompanyInfobll  = null;
                companyInfoModel = null;
                #endregion
                List <EyouSoft.Model.TourStructure.TourPriceDetail> priceList = new List <EyouSoft.Model.TourStructure.TourPriceDetail>();
                priceList = (List <EyouSoft.Model.TourStructure.TourPriceDetail>)model.TourPriceDetail;
                #region 团队报价等级处理
                //用于数据绑定
                List <CPriceDetail> BindPriceList = new List <CPriceDetail>();
                CPriceDetail        cModel        = null;
                //该团队的报价等级明细
                priceList.ForEach(delegate(EyouSoft.Model.TourStructure.TourPriceDetail item)
                {
                    cModel = new CPriceDetail();
                    cModel.PriceStandName = item.PriceStandName;
                    ((List <EyouSoft.Model.TourStructure.TourPriceCustomerLeaveDetail>) item.PriceDetail).ForEach(delegate(EyouSoft.Model.TourStructure.TourPriceCustomerLeaveDetail itemPriceLeave)
                    {
                        switch (itemPriceLeave.CustomerLevelType)
                        {
                        case EyouSoft.Model.CompanyStructure.CustomerLevelType.行:
                            cModel.AdultPrice    = itemPriceLeave.AdultPrice;
                            cModel.ChildrenPrice = itemPriceLeave.AdultPrice;
                            break;

                        case EyouSoft.Model.CompanyStructure.CustomerLevelType.单房差:
                            cModel.SingleRoom = itemPriceLeave.ChildrenPrice;
                            break;
                        }
                        ;
                    });
                    BindPriceList.Add(cModel);
                });
                BindPriceList = null;
                cModel        = null;
                this.rptTourPriceDetail.DataSource = BindPriceList;
                this.rptTourPriceDetail.DataBind();
                #endregion
                if (((int)model.ReleaseType) == 0)
                {
                    rptStandardPlan.DataSource = model.StandardPlan;
                    rptStandardPlan.DataBind();
                }
                else
                {
                    QuickPlanContent = model.QuickPlan;
                }
            }
            Ibll  = null;
            model = null;
        }
コード例 #13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string requestType = Request.QueryString["type"] != null ? Request.QueryString["type"].ToString().ToLower() : "";

            if (requestType == "save")
            {
                Save();
            }
            // 判断用户是否登录,如果没有登录跳转到登录页面
            if (!IsLogin)
            {
                EyouSoft.Security.Membership.UserProvider.RedirectLogin(Domain.UserBackCenter + "/TicketsCenter/Default.aspx");
                return;
            }

            //判断用户所在公司,在运营后台是否通过了审核
            if (!IsCompanyCheck)//没有通过审核
            {
                Utils.ShowError("对不起,您还没通过审核,不能进入机票供应商后台!", "ticketscenter");
                return;
            }

            //判断用户是否是机票供应商用户
            if (!IsAirTicketSupplyUser)//不是
            {
                Utils.ShowError("对不起,您不是机票供应商用户,不能进入机票供应商后台!", "ticketscenter");
                return;
            }

            //判断用户绑定的支付帐户信息 是否已经成功加入支付圈
            EyouSoft.IBLL.TicketStructure.ITicketCompanyAccount bll =
                EyouSoft.BLL.TicketStructure.TicketCompanyAccount.CreateInstance();

            //当前只能判断支付宝接口和财付通接口的帐户
            IList <EyouSoft.Model.TicketStructure.TicketCompanyAccount> accountList =
                bll.GetTicketCompanyAccountList(SiteUserInfo.CompanyID);

            if (accountList != null && accountList.Count > 0)
            {
                foreach (EyouSoft.Model.TicketStructure.TicketCompanyAccount account in accountList)
                {
                    if (account.InterfaceType == EyouSoft.Model.TicketStructure.TicketAccountType.支付宝)
                    {
                        if (account.IsSign)//已经签约
                        {
                            continue;
                        }
                        //通过 支付宝查询是否签约接口,获取该帐户是否已经签约
                        Query_Customer queryCustomer = new Query_Customer(
                            AlipayParameters.Partner,
                            AlipayParameters.Key,
                            AlipayParameters.SignType,
                            AlipayParameters.Input_Charset,
                            account.AccountNumber);
                        Query_Customer_Result queryCustomerResult = queryCustomer.GetResult();
                        if (queryCustomerResult.IsSuccess_Refund_Charge)//已经签约
                        {
                            //将成功签约的状态保存到数据库中
                            account.IsSign = true;
                            bll.SetIsSign(account.CompanyId, account.InterfaceType, true);
                        }
                    }
                    else if (account.InterfaceType == EyouSoft.Model.TicketStructure.TicketAccountType.财付通)
                    {
                        if (account.IsSign)//已经建立委托退款关系
                        {
                            continue;
                        }
                        //通过 财付通查询是否建立委托退款关系接口,获取该帐户是否已经建立委托关系
                        trustRefundQuerys querys = new trustRefundQuerys(
                            TenpayParameters.Bargainor_ID,
                            account.AccountNumber,
                            TenpayParameters.Key,
                            Context);
                        bool isTrust = querys.IsTrustRefund();
                        if (isTrust == true)//已经建立关系
                        {
                            //将成功建立关系的状态保存到数据库中
                            account.IsSign = true;
                            bll.SetIsSign(account.CompanyId, account.InterfaceType, true);
                        }
                    }
                }
            }

            //初始化订单管理列表
            diclist = EyouSoft.BLL.TicketStructure.TicketOrder.CreateInstance().GetSupplierHandelStats(SiteUserInfo.CompanyID);

            //初始化公司信息
            ltrCompanyName.Text = SiteUserInfo.CompanyName;
            EyouSoft.IBLL.CompanyStructure.ICompanyInfo       CompanyInfo      = EyouSoft.BLL.CompanyStructure.CompanyInfo.CreateInstance();
            EyouSoft.Model.CompanyStructure.CompanyDetailInfo CompanyInfoModel = CompanyInfo.GetModel(SiteUserInfo.CompanyID);
            if (CompanyInfoModel != null)
            {
                if (!String.IsNullOrEmpty(CompanyInfoModel.AttachInfo.CompanyLogo.ImagePath))
                {
                    this.imgLogo.Src = Domain.FileSystem + CompanyInfoModel.AttachInfo.CompanyLogo.ImagePath;
                }
                else
                {
                    this.imgLogo.Src = ImageServerUrl + "/images/logo.gif";
                }
            }
            ltrUserName.Text = SiteUserInfo.UserName;

            //初始化  现有运价数 ,平台用户数
            int gongYingUserCount = 0;

            EyouSoft.Model.SystemStructure.SummaryCount scount =
                EyouSoft.BLL.SystemStructure.SummaryCount.CreateInstance().GetSummary();
            if (scount != null)
            {
                gongYingUserCount = scount.TicketCompanyVirtual;
            }
            ltrGongYingCompanyCount.Text = gongYingUserCount.ToString();

            //初始化用户资料
            EyouSoft.IBLL.TicketStructure.ITicketSupplierInfo isupplierInfoBll =
                EyouSoft.BLL.TicketStructure.TicketSupplierInfo.CreateInstance();
            EyouSoft.Model.TicketStructure.TicketWholesalersAllInfo allInfo =
                isupplierInfoBll.GetSupplierInfo(SiteUserInfo.CompanyID);
            if (allInfo != null)
            {
                Default_ContactPeople.Value = allInfo.ContactName;                              //联系人
                Default_Phone.Value         = allInfo.ContactTel;                               //联系电话
                ltrUserLevel.Text           = allInfo.ProxyLev;                                 //代理级别
                ltrTicketSuccess.Text       = (allInfo.SuccessRate * 100).ToString("F1") + "%"; //出票成功率
                Default_ICP.Value           = allInfo.ICPNumber;                                //ICP备案号
                Default_Url.Value           = allInfo.WebSite;                                  //网址

                string licenceImg = allInfo.AttachInfo.BusinessCertif.LicenceImg;               //营业执照
                //判断是否有上传了营业执照
                if (!string.IsNullOrEmpty(licenceImg))                                          //有
                {
                    //显示 查看图片链接
                    ltrFile1.Text = string.Format("<a href='{0}' target='_blank'>查看</a>", Domain.FileSystem + licenceImg);
                }
                else
                {
                    ltrFile1.Text = "暂无营业执照";
                }

                string bronze = allInfo.AttachInfo.Bronze; //铜牌
                //判断是否有上传了铜牌
                if (!string.IsNullOrEmpty(bronze))         //有
                {
                    //显示 查看图片链接
                    ltrFile2.Text = string.Format("<a href='{0}' target='_blank'>查看</a>", Domain.FileSystem + bronze);
                }
                else
                {
                    ltrFile2.Text = "暂无铜牌图片";
                }

                string tradeAward = allInfo.AttachInfo.TradeAward; //行业奖项
                //判断是否有上传了行业奖项
                if (!string.IsNullOrEmpty(tradeAward))             //有
                {
                    //显示 查看图片链接
                    ltrFile3.Text = string.Format("<a href='{0}' target='_blank'>查看</a>", Domain.FileSystem + tradeAward);
                }
                else
                {
                    ltrFile3.Text = "暂无行业奖项图片";
                }

                Default_Remark.Value = allInfo.CompanyRemark;//备注
            }
        }