示例#1
0
        protected void InitBindAuthor()
        {
            EyouSoft.Model.CompanyStructure.ContactPersonInfo Model_ContactPersonInfo = new EyouSoft.Model.CompanyStructure.ContactPersonInfo();
            EyouSoft.BLL.CompanyStructure.CompanyUser         Bll_CompanyUser         = new EyouSoft.BLL.CompanyStructure.CompanyUser(SiteUserInfo);

            int UserID = EyouSoft.Common.Utils.GetInt(Request.QueryString["ID"]);

            if (!string.IsNullOrEmpty(ID.ToString()) && UserID > 0)
            {
                Model_ContactPersonInfo = Bll_CompanyUser.GetUserBasicInfo(UserID);
                if (Model_ContactPersonInfo != null)
                {
                    //联系人
                    this.Lab_Contact.Text = Model_ContactPersonInfo.ContactName.ToString();
                    //联系电话
                    this.Lab_Mobile.Text = Model_ContactPersonInfo.ContactTel.ToString();
                    //传真
                    this.Lab_Fox.Text = Model_ContactPersonInfo.ContactFax.ToString();
                    //手机
                    this.Lab_Phone.Text = Model_ContactPersonInfo.ContactMobile.ToString();
                    //QQ
                    this.Lab_QQ.Text = Model_ContactPersonInfo.QQ.ToString();
                    //MsN
                    this.Lab_Msn.Text = Model_ContactPersonInfo.MSN.ToString();
                    //Email
                    this.Lab_Email.Text = Model_ContactPersonInfo.ContactEmail.ToString();
                }
            }
            Model_ContactPersonInfo = null;
            Bll_CompanyUser         = null;
        }
示例#2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            csModel = new EyouSoft.Model.CompanyStructure.ContactPersonInfo();
            EyouSoft.BLL.CompanyStructure.CompanyUser csBLL = new EyouSoft.BLL.CompanyStructure.CompanyUser();
            int OperatorID = Utils.GetInt(Utils.GetQueryStringValue("OperatorID"));

            csModel = csBLL.GetUserBasicInfo(OperatorID);
        }
示例#3
0
        /// <summary>
        /// 团队计划出团任务书
        /// </summary>
        /// <param name="model"></param>
        private void Bind(EyouSoft.Model.TourStructure.TourTeamInfo model)
        {
            //发团时间
            xcTime = model.LDate;
            //出发交通
            lblGoTraffic.Text = model.LTraffic;
            //返回交通
            lblEndTraffic.Text = model.RTraffic;
            //出团时间
            lblLDate.Text = model.LDate.ToShortDateString();
            //联系人
            EyouSoft.BLL.CompanyStructure.CompanyUser csBLL = new EyouSoft.BLL.CompanyStructure.CompanyUser();
            string SentPeoples = "";

            //判断是否有联系人
            if (model.SentPeoples.Count >= 0)
            {
                for (int i = 0; i < model.SentPeoples.Count; i++)
                {
                    //联系人数据
                    SentPeoples = "";
                    string tel = csBLL.GetUserBasicInfo(model.SentPeoples[i].OperatorId).ContactTel;
                    SentPeoples += "联系人:" + model.SentPeoples[i].OperatorName + "" + tel;
                }
            }
            else
            {
                SentPeoples = "暂无联系人";
            }
            //联系人
            lblSentPeoples.Text = SentPeoples;
            //集合时间
            lblGatheringTime.Text = model.GatheringTime;
            //集合地点
            lblGatheringPlace.Text = model.GatheringPlace;
            //集合标志
            lblGatheringSign.Text = model.GatheringSign;
            //返航时间
            lblRTraffic.Text = model.RTraffic;
            //线路名称
            lblRouteName.Text = model.RouteName;
            //地接安排
            if (model.LocalAgencys != null)
            {
                rptlist.DataSource = model.LocalAgencys;
                rptlist.DataBind();
            }
            //标准发布
            if (model.ReleaseType == EyouSoft.Model.EnumType.TourStructure.ReleaseType.Normal)
            {
                //标准发布数据不为空
                if (model.TourNormalInfo != null)
                {
                    //行程信息
                    xc_list.DataSource = model.TourNormalInfo.Plans;
                    xc_list.DataBind();
                    //不包含项目
                    lblBuHanXiangMu.Text = model.TourNormalInfo.BuHanXiangMu;
                    //自费项目
                    lblZiFeiXIangMu.Text = model.TourNormalInfo.ZiFeiXIangMu;
                    //儿童安排
                    lblErTongAnPai.Text = model.TourNormalInfo.ErTongAnPai;
                    //购物安排
                    lblGouWuAnPai.Text = model.TourNormalInfo.GouWuAnPai;
                    //购物安排
                    lblGouWuAnPai.Text = model.TourNormalInfo.GouWuAnPai;
                    //注意事项
                    lblZhuYiShiXiang.Text = model.TourNormalInfo.ZhuYiShiXiang;

                    //包含项目数据绑定
                    rpt_sList.DataSource = model.Services;
                    rpt_sList.DataBind();
                    //显示标准
                    pnlProject.Visible = true;
                    //隐藏快速
                    xcquick.Visible = false;
                }


                //lt_desc.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourNormalInfo.WenXinTiXing);
            }
            else//快速发布
            {
                //隐藏标准
                pnlProject.Visible = false;
                //显示快速
                xcquick.Visible = true;
                if (model.TourQuickInfo != null)
                {
                    lblQuickPlan.Text = model.TourQuickInfo.QuickPlan;
                    lblKs.Text        = EyouSoft.Common.Function.StringValidate.TextToHtml(model.TourQuickInfo.Remark);
                }
            }
        }