예제 #1
0
        /// <summary>
        /// 初始化导游信息
        /// </summary>
        /// <param name="name">导游名称</param>
        /// <param name="time">安排时间</param>
        /// <param name="tourid">团号</param>
        /// <param name="type">类型(已安排,假期,停职)</param>
        protected void DataPageInit(string name, string time, string type, string guideid)
        {
            #region 获取导游信息
            //导游姓名
            this.labinfo.Text     = "[" + name + time + "]";
            this.lbguidename.Text = name;
            this.hdplantype.Value = type;
            this.hdguideid.Value  = guideid;
            #endregion
            EyouSoft.BLL.SourceStructure.BSource bll = new EyouSoft.BLL.SourceStructure.BSource();

            IList <EyouSoft.Model.SourceStructure.MGuidePlanWork> list = bll.GetGuidePlanWorkInfo(this.SiteUserInfo.CompanyId, guideid, Utils.GetDateTime(time));
            if (list != null && list.Count > 0)
            {
                this.rptList.DataSource = list;
                this.rptList.DataBind();
            }
            else
            {
                phdFrist.Visible = false;
            }
            BindJobType(JobType);
        }