예제 #1
0
 public void LoadData(SMT.SaaS.FrameworkUI.FormTypes type, string resumeID)
 {
     formType = type;
     if (formType == FormTypes.Browse)
     {
         this.IsEnabled = false;
     }
     if (formType == SMT.SaaS.FrameworkUI.FormTypes.New)
     {
         if (Resume == null)
         {
             Resume              = new T_HR_RESUME();
             Resume.RESUMEID     = Guid.NewGuid().ToString();
             Resume.CREATEDATE   = DateTime.Now;
             Resume.CREATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
         }
     }
     else
     {
         if (Resume == null)
         {
             client.GetResumeByidAsync(resumeID);
         }
     }
 }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="type"></param>
        /// <param name="strID"></param>
        /// <param name="PostID">当前岗位ID</param>
        public RelationPostForm(SMT.SaaS.FrameworkUI.FormTypes type, string strID, T_HR_POST post)
        {
            InitializeComponent();
            FormType = type;
            Post     = post;
            InitParas(strID);

            if (Post != null)
            {
                txtPostCode.Text = Post.T_HR_POSTDICTIONARY.POSTCODE;
                txtPostName.Text = Post.T_HR_POSTDICTIONARY.POSTNAME;
            }
        }