public AjaxMessage GetEmpJobById(int JobId) { AjaxMessage ajax = new AjaxMessage(); ajax.IsSuccess = false; Sys_EmployeeJob empJob = _empJobService.GetByID(JobId); if (empJob != null) { ajax.IsSuccess = true; ajax.Value = empJob.Jobname; ajax.Id = empJob.JobID; } return(ajax); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { int jobId = Request["jobId"].ToString().ToInt32(); var empJob = _jobService.GetByID(jobId); } }
/// <summary> /// @author;wp /// @datetime:2016-08-01 /// @desc: 获取员工职务 /// </summary> /// <param name="Source">职务ID</param> /// <returns></returns> public string GetEmployeeJob(object Source) { if (Source != null) { int JboId = Source.ToString().ToInt32(); Sys_EmployeeJob _empJob = _empJobService.GetByID(JboId); if (_empJob != null) { return(_empJob.Jobname); } } return(""); }