Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                EyouSoft.BLL.AdminCenterStructure.PersonnelInfo         bllAddress         = new EyouSoft.BLL.AdminCenterStructure.PersonnelInfo();
                EyouSoft.Model.AdminCenterStructure.PersonnelSearchInfo modelAddressSearch = new EyouSoft.Model.AdminCenterStructure.PersonnelSearchInfo();
                modelAddressSearch.UserName = WorkerName;
                IList <EyouSoft.Model.AdminCenterStructure.PersonnelInfo> listAddress = bllAddress.GetList(PageSize, PageIndex, ref RecordCount, CurrentUserCompanyID, modelAddressSearch);


                if (RecordCount == 0)
                {
                    RecordCount = 1;
                }
                listAddress = bllAddress.GetList(RecordCount, 1, ref RecordCount, CurrentUserCompanyID, modelAddressSearch);



                if (listAddress != null && listAddress.Count > 0)
                {
                    this.crptPrintAddressList.DataSource = listAddress;
                    this.crptPrintAddressList.DataBind();
                }
                else
                {
                    this.crptPrintAddressList.EmptyText = "<tr><td colspan=\"8\"><div style=\"text-align:center;  margin-top:75px; margin-bottom:75px;\">没有相关的数据!</span></div></td></tr>";
                }
            }
        }
Example #2
0
        /// <summary>
        /// 绑定个人档案详细信息
        /// </summary>
        protected void BindData()
        {
            EyouSoft.BLL.AdminCenterStructure.PersonnelInfo         bllPersonnel         = new EyouSoft.BLL.AdminCenterStructure.PersonnelInfo();
            EyouSoft.Model.AdminCenterStructure.PersonnelSearchInfo modelPersonnelSearch = new EyouSoft.Model.AdminCenterStructure.PersonnelSearchInfo();
            if (FileNo != "")
            {
                modelPersonnelSearch.ArchiveNo = FileNo;
            }
            if (Name != "")
            {
                modelPersonnelSearch.UserName = Name;
            }
            if (Sex != 0)
            {
                modelPersonnelSearch.ContactSex = (EyouSoft.Model.EnumType.CompanyStructure.Sex)Sex;
            }
            modelPersonnelSearch.BirthDateFrom = BirthdayStart;
            modelPersonnelSearch.BirthDateTo   = BirthdayEnd;
            modelPersonnelSearch.WorkYearFrom  = WorkYearFrom;
            modelPersonnelSearch.WorkYearTo    = WorkYearTo;
            if (JobPostion != 0)
            {
                modelPersonnelSearch.DutyId = JobPostion;
            }
            if (WorkerType != null && WorkerType != -1)
            {
                modelPersonnelSearch.PersonalType = (EyouSoft.Model.EnumType.AdminCenterStructure.PersonalType)(WorkerType);
            }
            if (WorkerState != "null")
            {
                modelPersonnelSearch.IsLeave = Convert.ToBoolean(WorkerState);
            }
            if (MarriageState != "null")
            {
                modelPersonnelSearch.IsMarried = Convert.ToBoolean(MarriageState);
            }
            int RecordCount = 0;
            IList <EyouSoft.Model.AdminCenterStructure.PersonnelInfo> listPersonnel = bllPersonnel.GetList(10000, 1, ref RecordCount, CurrentUserCompanyID, modelPersonnelSearch);

            if (listPersonnel != null && listPersonnel.Count != 0)
            {
                this.rptDataList.DataSource = listPersonnel;
                this.rptDataList.DataBind();
            }
            else
            {
                this.rptDataList.EmptyText = "<tr><td colspan=\"12\"><div style=\"text-align:center;  margin-top:75px; margin-bottom:75px;\">没有相关的数据!</span></div></td></tr>";
            }
        }
Example #3
0
        /// <summary>
        /// 绑定列表
        /// </summary>
        private void BindList()
        {
            MWageSearchInfo queryModel = new MWageSearchInfo();

            IList <MWageInfo> ls = new EyouSoft.BLL.AdminCenterStructure.PersonnelInfo().GetWages(
                CurrentUserCompanyID,
                Utils.GetInt(Utils.GetQueryStringValue("Year"), DateTime.Now.Year),
                Utils.GetInt(Utils.GetQueryStringValue("Month"), DateTime.Now.Month),
                queryModel);

            if (ls != null && ls.Count > 0)
            {
                rpt_list.DataSource = ls;
                rpt_list.DataBind();
            }
        }
Example #4
0
        /// <summary>
        /// 绑定数据
        /// </summary>
        private void BindData()
        {
            EyouSoft.BLL.AdminCenterStructure.PersonnelInfo           bllAddress  = new EyouSoft.BLL.AdminCenterStructure.PersonnelInfo();
            IList <EyouSoft.Model.AdminCenterStructure.PersonnelInfo> listAddress = bllAddress.GetList(PageSize, PageIndex, ref RecordCount, CurrentUserCompanyID, WorkerName, Department);

            if (listAddress != null && listAddress.Count > 0)
            {
                this.crptAddressList.DataSource = listAddress;
                this.crptAddressList.DataBind();
                this.BindPage();
            }
            else
            {
                this.crptAddressList.EmptyText    = "<tr><td colspan=\"8\"><div style=\"text-align:center;  margin-top:75px; margin-bottom:75px;\">没有相关的数据!</span></div></td></tr>";
                this.ExporPageInfoSelect1.Visible = false;
            }
        }
Example #5
0
        /// <summary>
        /// 绑定数据
        /// </summary>
        protected void BindData(int?DepartmentID, string Name)
        {
            EyouSoft.BLL.AdminCenterStructure.PersonnelInfo           bllPersonnelInfo  = new EyouSoft.BLL.AdminCenterStructure.PersonnelInfo();
            IList <EyouSoft.Model.AdminCenterStructure.PersonnelInfo> listPersonnelInfo = bllPersonnelInfo.GetList(PageSize, PageIndex, ref RecordCount, CurrentUserCompanyID, Name, DepartmentID);

            if (listPersonnelInfo != null && listPersonnelInfo.Count > 0)
            {
                this.dlPersonnelList.DataSource = listPersonnelInfo;
                this.dlPersonnelList.DataBind();
                this.BindPage();
            }
            else
            {
                this.NoData.Visible          = true;
                this.ExportPageInfo1.Visible = false;
            }
        }
Example #6
0
        /// <summary>
        /// 绑定数据
        /// </summary>
        private void BindData()
        {
            EyouSoft.BLL.AdminCenterStructure.PersonnelInfo         bllPersonnel         = new EyouSoft.BLL.AdminCenterStructure.PersonnelInfo();
            EyouSoft.Model.AdminCenterStructure.PersonnelSearchInfo modelPersonnelSearch = GetPersonnelSearchInfo();

            listPersonnel = bllPersonnel.GetList(PageSize, PageIndex, ref RecordCount, CurrentUserCompanyID, modelPersonnelSearch);

            if (listPersonnel != null && listPersonnel.Count > 0)
            {
                this.rptData.DataSource = listPersonnel;
                this.rptData.DataBind();
                this.BindPage();
            }
            else
            {
                this.rptData.EmptyText            = "<tr><td colspan=\"12\"><div style=\"text-align:center;  margin-top:75px; margin-bottom:75px;\">没有相关的数据!</span></div></td></tr>";
                this.ExporPageInfoSelect1.Visible = false;
            }
        }
Example #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int personnelID = Utils.GetInt(Utils.GetQueryStringValue("personnelID"), -1);

            //绑定
            if (!IsPostBack && personnelID != -1)
            {
                EyouSoft.BLL.AdminCenterStructure.PersonnelInfo   bllPersonnel   = new EyouSoft.BLL.AdminCenterStructure.PersonnelInfo();
                EyouSoft.Model.AdminCenterStructure.PersonnelInfo modelPersonnel = bllPersonnel.GetModel(CurrentUserCompanyID, personnelID);
                this.lblPersonnelTitle.Text     = modelPersonnel.UserName;
                this.lblFileNo.Text             = modelPersonnel.ArchiveNo;
                this.lblName.Text               = modelPersonnel.UserName;
                this.lblSex.Text                = modelPersonnel.ContactSex.ToString();
                this.imgPersonnelPhoto.ImageUrl = modelPersonnel.PhotoPath;
                this.lblCardID.Text             = modelPersonnel.CardId;
                this.lblBirthday.Text           = modelPersonnel.BirthDate == null ? "" : string.Format("{0:yyyy-MM-dd}", modelPersonnel.BirthDate);
                this.lblDepartment.Text         = GetDepartmentByID(modelPersonnel.DepartmentId);  //  所属部门
                this.lblPosition.Text           = GetDutyNameByID(modelPersonnel.DutyId);
                this.lblType.Text               = modelPersonnel.PersonalType.ToString();
                this.lblState.Text              = modelPersonnel.IsLeave ? "离职" : "在职";
                this.lblEntryDate.Text          = string.Format("{0:yyyy-MM-dd}", modelPersonnel.EntryDate);
                this.lblWorkerLife.Text         = GetWorkYear(modelPersonnel.EntryDate) + "年";
                this.lblNational.Text           = modelPersonnel.National;
                Birthplace                 = GetProvinceAndCity(modelPersonnel.Birthplace);
                this.lblPolitical.Text     = modelPersonnel.Politic;
                this.lblMarriageState.Text = modelPersonnel.IsMarried ? "已婚" : "未婚";
                this.lblTel.Text           = modelPersonnel.ContactTel;
                this.lblMobile.Text        = modelPersonnel.ContactMobile;
                this.lblLeftDate.Text      = modelPersonnel.LeaveDate == null ? "" : string.Format("{0:yyyy-MM-dd}", modelPersonnel.LeaveDate);
                this.lblQQ.Text            = modelPersonnel.QQ;
                this.lblMSN.Text           = modelPersonnel.MSN;
                this.lblEmail.Text         = modelPersonnel.Email;
                this.lblAddress.Text       = modelPersonnel.ContactAddress;
                this.lblRemark.Text        = modelPersonnel.Remark;
                this.rptRecord.DataSource  = modelPersonnel.HistoryList;
                this.rptRecord.DataBind();
                this.rptEducationInfo.DataSource = modelPersonnel.SchoolList;
                this.rptEducationInfo.DataBind();
            }
        }
Example #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string method = Utils.GetQueryStringValue("Method");

            if (!IsPostBack && method == "")
            {
                WorkerName = Utils.GetQueryStringValue("WorkerName");
                Department = Utils.GetIntNull(Request.QueryString["Department"]);
                PageIndex  = Utils.GetInt(Request.QueryString["Page"], 1);
                BindData();
            }
            if (method == "GetExcel")
            {
                EyouSoft.BLL.AdminCenterStructure.PersonnelInfo         bllAddress         = new EyouSoft.BLL.AdminCenterStructure.PersonnelInfo();
                EyouSoft.Model.AdminCenterStructure.PersonnelSearchInfo modelAddressSearch = new EyouSoft.Model.AdminCenterStructure.PersonnelSearchInfo();
                modelAddressSearch.UserName = WorkerName;
                IList <EyouSoft.Model.AdminCenterStructure.PersonnelInfo> listAddress = bllAddress.GetList(PageSize, PageIndex, ref RecordCount, CurrentUserCompanyID, modelAddressSearch);

                if (RecordCount > 0)
                {
                    listAddress = bllAddress.GetList(RecordCount, 1, ref RecordCount, CurrentUserCompanyID, modelAddressSearch);
                    if (listAddress != null && listAddress.Count > 0)
                    {
                        ToExcel(listAddress);
                    }
                    else
                    {
                        ToExcel(new List <EyouSoft.Model.AdminCenterStructure.PersonnelInfo>());
                    }
                }
                else
                {
                    ToExcel(new List <EyouSoft.Model.AdminCenterStructure.PersonnelInfo>());
                }
            }
        }
Example #9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            #region  除参数
            string Method      = Utils.GetQueryStringValue("method");
            int    PersonnelID = Utils.GetInt(Utils.GetQueryStringValue("personnelID"), -1);
            PageIndex = Utils.GetInt(Request.QueryString["Page"], 1);
            #endregion

            if (!IsPostBack && Method == "" && PersonnelID == -1)
            {
                if (CheckGrant(global::Common.Enum.TravelPermission.行政中心_人事档案_修改档案))
                {
                    EditFlag = true;
                }
                if (CheckGrant(global::Common.Enum.TravelPermission.行政中心_人事档案_删除档案))
                {
                    DeleteFlag = true;
                }
                GetOnSearchValue();
                BindData();
            }
            if (Method == "deletePersonnelInfo" && PersonnelID != -1)//删除
            {
                EyouSoft.BLL.AdminCenterStructure.PersonnelInfo bllPersonnel = new EyouSoft.BLL.AdminCenterStructure.PersonnelInfo();
                if (bllPersonnel.Delete(CurrentUserCompanyID, PersonnelID))
                {
                    Response.Clear();
                    Response.Write("True");
                    Response.End();
                }
                else
                {
                    Response.Clear();
                    Response.Write("False");
                    Response.End();
                }
            }
            if (Method == "GetExcel" && PersonnelID == -1)  //  导出Excel
            {
                GetOnSearchValue();
                BindData();
                EyouSoft.BLL.AdminCenterStructure.PersonnelInfo         bllPersonnel         = new EyouSoft.BLL.AdminCenterStructure.PersonnelInfo();
                EyouSoft.Model.AdminCenterStructure.PersonnelSearchInfo modelPersonnelSearch = GetPersonnelSearchInfo();

                if (RecordCount > 0)
                {
                    listPersonnel = bllPersonnel.GetList(RecordCount, 1, ref RecordCount, CurrentUserCompanyID, modelPersonnelSearch);
                    if (listPersonnel != null && listPersonnel.Count > 0)
                    {
                        ToExcel(listPersonnel);
                    }
                    else
                    {
                        ToExcel(new List <EyouSoft.Model.AdminCenterStructure.PersonnelInfo>());
                    }
                }
                else
                {
                    ToExcel(new List <EyouSoft.Model.AdminCenterStructure.PersonnelInfo>());
                }
            }
        }
Example #10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            #region 设置公司ID初始化省份城市列表
            ucProvince1.CompanyId = CurrentUserCompanyID;
            ucProvince1.IsFav     = true;
            ucCity1.CompanyId     = CurrentUserCompanyID;
            ucCity1.IsFav         = true;
            #endregion

            this.ucDepartemnt.SetPicture = "/images/icon_select.jpg";                        //部门选择图标
            int    PersonnelID = Utils.GetInt(Utils.GetQueryStringValue("PersonnelID"), -1); //档案ID
            string Method      = Utils.GetFormValue("hiddenMethod");                         //执行方法
            file.Visible = false;
            EyouSoft.BLL.AdminCenterStructure.PersonnelInfo   bllPersonnel;
            EyouSoft.Model.AdminCenterStructure.PersonnelInfo modelPersonnel;

            if (!IsPostBack)
            {
                DutyInit();
                this.hiddenID.Value = PersonnelID.ToString();
                if (PersonnelID != -1)
                {
                    if (!CheckGrant(global::Common.Enum.TravelPermission.行政中心_人事档案_修改档案))
                    {
                        Utils.ResponseNoPermit(global::Common.Enum.TravelPermission.行政中心_人事档案_修改档案, true);
                    }

                    //绑定修改数据
                    bllPersonnel   = new EyouSoft.BLL.AdminCenterStructure.PersonnelInfo();
                    modelPersonnel = bllPersonnel.GetModel(CurrentUserCompanyID, PersonnelID);

                    #region 基本信息
                    FileNo = modelPersonnel.ArchiveNo;
                    Name   = modelPersonnel.UserName;
                    this.dpSex.SelectedIndex = (int)modelPersonnel.ContactSex;        //性别
                    CardID   = modelPersonnel.CardId;
                    Birthday = modelPersonnel.BirthDate;
                    this.ucDepartemnt.GetDepartmentName = GetDepartmentByID(modelPersonnel.DepartmentId);//所属部门
                    this.ucDepartemnt.GetDepartId       = modelPersonnel.DepartmentId;
                    if (modelPersonnel.PhotoPath != "")
                    {
                        WorkerPicture = modelPersonnel.PhotoPath != "" ? string.Format("<a href='{0}'  target='_blank'>查看图片</a>", modelPersonnel.PhotoPath) : "";                                      //照片路径
                        file.Visible  = true;
                    }
                    else
                    {
                        file.Visible = false;
                    }

                    this.hiddenPhoto.Value = modelPersonnel.PhotoPath;
                    if (modelPersonnel.DutyId != null)
                    {
                        this.ddlJobPostion.Text = modelPersonnel.DutyId.ToString();        //职务
                    }
                    this.dpWorkerState.SelectedIndex = modelPersonnel.IsLeave ? 1 : 0;     //员工状态
                    this.dpWorkerType.SelectedIndex  = (int)modelPersonnel.PersonalType;   //类型
                    EntryDate = modelPersonnel.EntryDate == null ? "" : Convert.ToDateTime(modelPersonnel.EntryDate).ToString("yyyy-MM-dd");
                    this.dpMarriageState.SelectedIndex = modelPersonnel.IsMarried ? 1 : 0; //婚姻状态
                    LeftDate = modelPersonnel.LeaveDate == null ? "" : Convert.ToDateTime(modelPersonnel.LeaveDate).ToString("yyyy-MM-dd");
                    National = modelPersonnel.National;

                    if (modelPersonnel.Birthplace != null && modelPersonnel.Birthplace.Split(',').Length >= 2)//籍贯
                    {
                        this.ucProvince1.ProvinceId = Utils.GetInt(modelPersonnel.Birthplace.Split(',')[0]);
                        this.ucCity1.CityId         = Utils.GetInt(modelPersonnel.Birthplace.Split(',')[1]);
                        this.ucCity1.ProvinceId     = this.ucProvince1.ProvinceId;
                    }

                    Political = modelPersonnel.Politic;
                    Telephone = modelPersonnel.ContactTel;
                    Mobile    = modelPersonnel.ContactMobile;
                    QQ        = modelPersonnel.QQ;
                    Email     = modelPersonnel.Email;
                    MSN       = modelPersonnel.MSN;
                    Address   = modelPersonnel.ContactAddress;
                    Remark    = modelPersonnel.Remark;
                    #endregion

                    #region 学历信息和履历信息

                    this.rpt_Record.DataSource = modelPersonnel.SchoolList;
                    this.rpt_Record.DataBind();
                    this.rpt_Resume.DataSource = modelPersonnel.HistoryList;
                    this.rpt_Resume.DataBind();
                    #endregion
                }
                else
                {
                    if (!CheckGrant(global::Common.Enum.TravelPermission.行政中心_人事档案_新增档案))
                    {
                        Utils.ResponseNoPermit(global::Common.Enum.TravelPermission.行政中心_人事档案_新增档案, true);
                    }
                }
            }

            if (Method != "")//保存和修改
            {
                GetAddOrUpdatePersonnelInfo(out bllPersonnel, out modelPersonnel);
                string msg = string.Empty;
                if (modelPersonnel.ArchiveNo == "")
                {
                    msg += "档案编号不能回空!<br/>";
                }
                if (modelPersonnel.UserName == "")
                {
                    msg += "姓名不能为空!";
                }
                if (modelPersonnel.ArchiveNo == "" || modelPersonnel.UserName == "")
                {
                    MessageBox.Show(this.Page, msg);
                    return;
                }
                if (Method == "Save" && PersonnelID == -1)//保存
                {
                    if (bllPersonnel.Add(modelPersonnel))
                    {
                        MessageBox.ShowAndRedirect(this.Page, "保存成功!", "/administrativeCenter/personnelFiles/Default.aspx");
                    }
                    else
                    {
                        MessageBox.Show(this.Page, "保存失败!");
                    }
                }
                //else if (Method == "SaveAndAdd" && PersonnelID == -1) //保存并继续添加
                //{
                //    if (bllPersonnel.Add(modelPersonnel))
                //    {
                //        MessageBox.ShowAndRedirect(this.Page, "保存成功!", this.Request.Url.ToString());
                //    }
                //    else
                //    {
                //        MessageBox.Show(this.Page, "保存失败!");
                //    }
                //}
                else if (Method == "Update" && PersonnelID != -1) //修改
                {
                    modelPersonnel.Id = PersonnelID;
                    if (bllPersonnel.Update(modelPersonnel))
                    {
                        MessageBox.ShowAndRedirect(this.Page, "修改成功!", "/administrativeCenter/personnelFiles/Default.aspx");
                    }
                    else
                    {
                        MessageBox.Show(this.Page, "修改失败!");
                    }
                }
            }
        }
Example #11
0
        /// <summary>
        /// 得到保存或者修改的对象
        /// </summary>
        private void GetAddOrUpdatePersonnelInfo(out EyouSoft.BLL.AdminCenterStructure.PersonnelInfo bllPersonnel, out EyouSoft.Model.AdminCenterStructure.PersonnelInfo modelPersonnel)
        {
            #region "基本信息"
            FileNo   = Utils.GetFormValue("txt_FileNo");                        //档案编号
            Name     = Utils.GetFormValue("txt_Name");                          //姓名
            CardID   = Utils.GetFormValue("txt_CardID");                        //身份证号码
            Birthday = Utils.GetDateTimeNullable(Request.Form["txt_Birthday"]); //生日

            EntryDate = Utils.GetFormValue("txt_EntryDate");                    //入职日期
            //dpWorkLife = Utils.GetFormValue("dpWorkLife");           //工龄
            LeftDate  = Utils.GetFormValue("txt_LeftDate");                     //离职日期
            National  = Utils.GetFormValue("txt_National");                     //民族
            Political = Utils.GetFormValue("txt_Political");                    //政治面貌
            Telephone = Utils.GetFormValue("txt_Telephone");                    //联系电话
            Mobile    = Utils.GetFormValue("txt_Mobile");                       //手机
            QQ        = Utils.GetFormValue("txt_QQ");
            MSN       = Utils.GetFormValue("txt_MSN");
            Email     = Utils.GetFormValue("txt_Email");
            Address   = Utils.GetFormValue("txt_Address");
            Remark    = Utils.GetFormValue("txt_Remark");
            #endregion

            #region "学历信息"
            string[] keysGrade       = Utils.GetFormValues("EducationGrade");      //学历
            string[] keysState       = Utils.GetFormValues("EducationState");      //状态
            string[] RecordStartDate = Utils.GetFormValues("txt_RecordStartDate"); //开始时间
            string[] RecordEndDate   = Utils.GetFormValues("txt_RecordEndDate");   //结束时间
            string[] Profession      = Utils.GetFormValues("txt_Profession");      //专业
            string[] Graduation      = Utils.GetFormValues("txt_Graduation");      //毕业院校
            string[] RecordRemark    = Utils.GetFormValues("txt_RecordRemark");    //备注
            #endregion

            #region "履历信息"
            string[] ResumeStartDate = Utils.GetFormValues("txt_ResumeStartDate"); //开始时间
            string[] ResumeEndDate   = Utils.GetFormValues("txt_ResumeEndDate");   //结束时间
            string[] WorkPlace       = Utils.GetFormValues("txt_WorkPlace");       //工作地点
            string[] WorkUnit        = Utils.GetFormValues("txt_WorkUnit");        //工作单位
            string[] Job             = Utils.GetFormValues("txt_Job");             //职业
            string[] ResumeRemark    = Utils.GetFormValues("txt_ResumeRemark");    //备注
            #endregion

            bllPersonnel   = new EyouSoft.BLL.AdminCenterStructure.PersonnelInfo();
            modelPersonnel = new EyouSoft.Model.AdminCenterStructure.PersonnelInfo();

            #region 保存修改
            modelPersonnel.CompanyId    = CurrentUserCompanyID;
            modelPersonnel.ArchiveNo    = FileNo;
            modelPersonnel.UserName     = Name;
            modelPersonnel.ContactSex   = (EyouSoft.Model.EnumType.CompanyStructure.Sex) this.dpSex.SelectedIndex;
            modelPersonnel.CardId       = CardID;
            modelPersonnel.BirthDate    = Birthday;
            modelPersonnel.DepartmentId = this.ucDepartemnt.GetDepartId;


            HttpPostedFile hpf      = this.Request.Files["FileEmployeePicture"];
            bool           Result   = false;
            string         fileName = string.Empty;
            string         oldeName = string.Empty;
            if (hpf != null && hpf.ContentLength > 0)
            {
                Result = UploadFile.FileUpLoad(hpf, "workerPhoto", out fileName, out oldeName);
                modelPersonnel.PhotoPath = fileName;                              //上转照片
            }
            else
            {
                modelPersonnel.PhotoPath = this.hiddenPhoto.Value;
            }
            modelPersonnel.DutyName = ddlJobPostion.SelectedValue;
            string m = this.ddlJobPostion.Text;
            modelPersonnel.DutyId = Utils.GetIntNull(Utils.GetFormValue(this.ddlJobPostion.UniqueID));//职务ID

            modelPersonnel.IsLeave      = this.dpWorkerState.Value == "1" ? true : false;
            modelPersonnel.PersonalType = (EyouSoft.Model.EnumType.AdminCenterStructure.PersonalType)Utils.GetInt(this.dpWorkerType.Value);
            //modelPersonnel.WorkYear = Utils.GetInt(dpWorkLife);
            modelPersonnel.EntryDate = Utils.GetDateTimeNullable(EntryDate);

            modelPersonnel.IsMarried      = this.dpMarriageState.Value == "1" ? true : false;
            modelPersonnel.LeaveDate      = Utils.GetDateTimeNullable(LeftDate);
            modelPersonnel.National       = National;
            modelPersonnel.Birthplace     = this.ucProvince1.ProvinceId + "," + this.ucCity1.CityId;
            modelPersonnel.Politic        = Political;
            modelPersonnel.ContactTel     = Telephone;
            modelPersonnel.ContactMobile  = Mobile;
            modelPersonnel.QQ             = QQ;
            modelPersonnel.Email          = Email;
            modelPersonnel.MSN            = MSN;
            modelPersonnel.ContactAddress = Address;
            modelPersonnel.Remark         = Remark;

            #region 学历信息
            IList <EyouSoft.Model.AdminCenterStructure.SchoolInfo> listSchool  = new List <EyouSoft.Model.AdminCenterStructure.SchoolInfo>();
            EyouSoft.Model.AdminCenterStructure.SchoolInfo         modelSchool = null;
            if (RecordStartDate != null && RecordStartDate.Length > 0)
            {
                for (int index = 0; index < RecordStartDate.Length; index++)
                {
                    if (!string.IsNullOrEmpty(RecordStartDate[index].Trim()) && !string.IsNullOrEmpty(RecordEndDate[index].Trim()) && (!string.IsNullOrEmpty(Utils.GetFormValue(keysGrade[index]).Trim()) || !string.IsNullOrEmpty(Profession[index].Trim()) || !string.IsNullOrEmpty(Graduation[index].Trim()) || !string.IsNullOrEmpty(Utils.GetFormValue(keysState[index]).Trim()) || !string.IsNullOrEmpty(RecordRemark[index].Trim())))
                    {
                        modelSchool              = new EyouSoft.Model.AdminCenterStructure.SchoolInfo();
                        modelSchool.StartDate    = Utils.GetDateTimeNullable(RecordStartDate[index].Trim());
                        modelSchool.EndDate      = Utils.GetDateTimeNullable(RecordEndDate[index].Trim());
                        modelSchool.Degree       = (EyouSoft.Model.EnumType.AdminCenterStructure.DegreeType)Utils.GetInt(keysGrade[index]);
                        modelSchool.Professional = Utils.InputText(Profession[index].Trim());
                        modelSchool.SchoolName   = Utils.InputText(Graduation[index].Trim());
                        modelSchool.StudyStatus  = Convert.ToBoolean(Utils.GetInt(keysState[index]));
                        modelSchool.Remark       = Utils.InputText(RecordRemark[index].Trim());
                        listSchool.Add(modelSchool);
                    }
                }
                if (listSchool.Count > 0)
                {
                    modelPersonnel.SchoolList = listSchool;
                }
            }
            #endregion

            #region 履历信息
            IList <EyouSoft.Model.AdminCenterStructure.PersonalHistory> listHistory  = new List <EyouSoft.Model.AdminCenterStructure.PersonalHistory>();
            EyouSoft.Model.AdminCenterStructure.PersonalHistory         modelHistory = null;
            if (ResumeStartDate != null && ResumeStartDate.Length > 0)
            {
                for (int index = 0; index < ResumeStartDate.Length; index++)
                {
                    if (!string.IsNullOrEmpty(ResumeStartDate[index].Trim()) && !string.IsNullOrEmpty(ResumeEndDate[index].Trim()) && (!string.IsNullOrEmpty(WorkPlace[index].Trim()) || !string.IsNullOrEmpty(WorkUnit[index].Trim()) || !string.IsNullOrEmpty(Job[index].Trim()) || !string.IsNullOrEmpty(ResumeRemark[index].Trim())))
                    {
                        modelHistory           = new EyouSoft.Model.AdminCenterStructure.PersonalHistory();
                        modelHistory.StartDate = Utils.GetDateTimeNullable(ResumeStartDate[index].Trim());
                        modelHistory.EndDate   = Utils.GetDateTimeNullable(ResumeEndDate[index].Trim());
                        modelHistory.WorkPlace = Utils.InputText(WorkPlace[index].Trim());
                        modelHistory.WorkUnit  = Utils.InputText(WorkUnit[index].Trim());
                        modelHistory.TakeUp    = Utils.InputText(Job[index].Trim());
                        modelHistory.Remark    = Utils.InputText(ResumeRemark[index].Trim());
                        listHistory.Add(modelHistory);
                    }
                }
                if (listHistory != null && listHistory.Count > 0)
                {
                    modelPersonnel.HistoryList = listHistory;
                }
            }
            #endregion

            #endregion
        }