public static bool DeletePerTypeInfo(string elemID) { UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; //获取公司代码 string companyCD = userInfo.CompanyCD; //执行删除操作 bool isSucc = PerformanceCheckDBHelper.DeletePerTypeInfo(elemID, companyCD); //定义变量 string remark; //成功时 if (isSucc) { //设置操作成功标识 remark = ConstUtil.LOG_PROCESS_SUCCESS; } else { //设置操作成功标识 remark = ConstUtil.LOG_PROCESS_FAILED; } //操作日志 LogInfoModel logModel = InitLogInfo(elemID); //涉及关键元素 这个需要根据每个页面具体设置,本页面暂时设置为空 logModel.Element = ConstUtil.LOG_PROCESS_DELETE; //设置操作成功标识 logModel.Remark = remark; //登陆日志 LogDBHelper.InsertLog(logModel); return(isSucc); }
public static bool UpdateTask(string TaskNo) { UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; //获取公司代码 string companyCD = userInfo.CompanyCD; //执行删除操作 bool isSucc = PerformanceCheckDBHelper.UpdateTask(TaskNo, companyCD); return(isSucc); }
public static DataTable SearchTaskInfo(PerformanceTaskModel model) { //获取登陆用户信息 UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; //获取公司代码 model.CompanyCD = userInfo.CompanyCD; //执行查询 return(PerformanceCheckDBHelper.SearchTaskInfo(model)); }
/// <summary> ///根据考核模板编号获取考核流程信息 /// </summary> /// <returns>DataTable</returns> public static DataTable GetTemplatebyNO(string templateNo) { //获取登陆用户信息 UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; //获取公司代码 string CompanyCD = userInfo.CompanyCD; //执行查询 return(PerformanceCheckDBHelper.GetTemplatebyNO(templateNo, CompanyCD)); }
/// <summary> /// 获取被模板设置的考核人信息 /// </summary> /// <returns>DataTable</returns> public static DataTable GetEmployeeInfo() { //获取登陆用户信息 UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; //获取公司代码 string CompanyCD = userInfo.CompanyCD; //执行查询 return(PerformanceCheckDBHelper.GetEmployeeInfo(CompanyCD)); }
public static DataTable CheckTaskStep(string taskNo, string employeeID, string templateNo) { //获取登陆用户信息 UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; //获取公司代码 string companyCD = userInfo.CompanyCD; string scoreEmployee = userInfo.EmployeeID.ToString(); //执行查询 return(PerformanceCheckDBHelper.CheckTaskStep(companyCD, taskNo, employeeID, templateNo)); }
/// <summary> /// 保存评分项目信息 /// </summary> /// <param name="model"> 评分项目实体</param> /// <returns></returns> public static bool SaveProScoreInfo(IList <PerformanceScoreModel> modellist) { //获取登陆用户信息 UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; bool isSucc = false; //操作日志 LogInfoModel logModel = InitLogInfo(modellist[0].TaskNo); //更新 if (ConstUtil.EDIT_FLAG_UPDATE.Equals(modellist[0].EditFlag)) { try { logModel.Element = ConstUtil.LOG_PROCESS_UPDATE; //执行更新操作 isSucc = PerformanceCheckDBHelper.UpdatePerScoreInfo(modellist); } catch (Exception ex) { //输出系统日志 WriteSystemLog(userInfo, ex); } } //插入 else { try { //logModel.Element = ConstUtil.LOG_PROCESS_INSERT; ////执行插入操作 //isSucc = PerformanceCheckDBHelper.InsertPerTaskInfo(model); //if (isSucc) //{ // if (PerformanceCheckDBHelper.InsertPerScoreInfo(modellist)) // { // if (PerformanceCheckDBHelper.InsertPerSummaryInfo(modleSummaryList)) // { // isSucc = true; // } // else // { return false; } // } // else // { // isSucc = false; // } //} //else //{ // isSucc = false; //} logModel.ObjectID = modellist[0].TaskNo; } catch (Exception ex) { //输出系统日志 WriteSystemLog(userInfo, ex); } } //更新成功时 if (isSucc) { //设置操作成功标识 logModel.Remark = ConstUtil.LOG_PROCESS_SUCCESS; } //更新不成功 else { //设置操作成功标识 logModel.Remark = ConstUtil.LOG_PROCESS_FAILED; } //登陆日志 LogDBHelper.InsertLog(logModel); return(isSucc); }