public static string CreateData(string strPARENT_ID, string strSTANDARD_ID, string strCONDITION_CODE, string strCONDITION_NAME, string strCONDITION_REMARK) { string result = ""; TBaseEvaluationConInfoVo objConVo = new TBaseEvaluationConInfoVo(); objConVo.ID = GetSerialNumber("t_base_evaluation_con_info_id"); objConVo.PARENT_ID = strPARENT_ID; objConVo.STANDARD_ID = strSTANDARD_ID; if (!String.IsNullOrEmpty(strCONDITION_CODE)) { objConVo.CONDITION_CODE = strCONDITION_CODE; } objConVo.CONDITION_NAME = strCONDITION_NAME; objConVo.CONDITION_REMARK = strCONDITION_REMARK; objConVo.IS_DEL = "0"; if (new TBaseEvaluationConInfoLogic().Create(objConVo)) { result = objConVo.ID; string strMessage = new i3.View.PageBase().LogInfo.UserInfo.USER_NAME + "新增评价标准条件项" + objConVo.ID + "成功"; new i3.View.PageBase().WriteLog(i3.ValueObject.ObjectBase.LogType.AddEvaluationConInfo, "", strMessage); } return(result); }
public static string DelData(string strID) { string result = "false"; TBaseEvaluationConInfoVo objtec = new TBaseEvaluationConInfoVo(); objtec.ID = strID; objtec.IS_DEL = "1"; if (new TBaseEvaluationConInfoLogic().Edit(objtec)) { result = "true"; string strMessage = new i3.View.PageBase().LogInfo.UserInfo.USER_NAME + "删除评价标准条件项" + objtec.ID + "成功"; new PageBase().WriteLog(i3.ValueObject.ObjectBase.LogType.EditEvaluationConInfo, "", strMessage); } return(result); }
public static string EditDataCon(string strID, string strPARENT_ID, string strSTANDARD_ID, string strCONDITION_CODE, string strCONDITION_NAME, string strCONDITION_REMARK) { string result = "false"; TBaseEvaluationConInfoVo objConVo = new TBaseEvaluationConInfoVo(); objConVo.ID = strID; objConVo.PARENT_ID = strPARENT_ID; objConVo.STANDARD_ID = strSTANDARD_ID; objConVo.CONDITION_CODE = strCONDITION_CODE; objConVo.CONDITION_NAME = strCONDITION_NAME; objConVo.CONDITION_REMARK = strCONDITION_REMARK; if (new TBaseEvaluationConInfoLogic().Edit(objConVo)) { result = "true"; string strMessage = new i3.View.PageBase().LogInfo.UserInfo.USER_NAME + "编辑评价标准条件项" + objConVo.ID + "成功"; new i3.View.PageBase().WriteLog(i3.ValueObject.ObjectBase.LogType.EditEvaluationConInfo, "", strMessage); } return(result); }
public static string SaveData(string strID, string strUSER_NAME, string strREAL_NAME, string strORDER_ID, string strBIRTHDAY, string strSEX, string strPHONE_OFFICE, string strPHONE_MOBILE, string strPHONE_HOME, string strEMAIL, string strADDRESS, string strPOSTCODE, string strIS_USE, string strIOS_MAC, string strIF_IOS, string strANDROID_MAC, string strIF_ANDROID, string strREMARK1, string strUSER_PWD) { bool isSuccess = true; TSysUserVo objVo = new TSysUserVo(); objVo.ID = strID.Length > 0 ? strID : GetSerialNumber("user_info_id"); objVo.IS_DEL = "0"; objVo.IS_HIDE = "0"; objVo.USER_NAME = strUSER_NAME; objVo.REAL_NAME = strREAL_NAME; objVo.ORDER_ID = strORDER_ID; objVo.BIRTHDAY = strBIRTHDAY; objVo.SEX = strSEX; objVo.PHONE_OFFICE = strPHONE_OFFICE; objVo.PHONE_MOBILE = strPHONE_MOBILE; objVo.PHONE_HOME = strPHONE_HOME; objVo.EMAIL = strEMAIL; objVo.ADDRESS = strADDRESS; objVo.POSTCODE = strPOSTCODE; objVo.IS_USE = strIS_USE.Length > 0 ? strIS_USE : "1"; objVo.USER_PWD = strUSER_PWD; objVo.IOS_MAC = strIOS_MAC; objVo.IF_IOS = strIF_IOS.Length > 0 ? strIF_IOS : "0"; objVo.ANDROID_MAC = strANDROID_MAC; objVo.IF_ANDROID = strIF_ANDROID.Length > 0 ? strIF_ANDROID : "0"; i3.View.PageBase objP = new i3.View.PageBase(); if (string.IsNullOrEmpty(objVo.USER_PWD)) { objVo.USER_PWD = objP.ToMD5("1"); } else { objVo.USER_PWD = objP.ToMD5(objVo.USER_PWD); } objVo.CREATE_ID = objP.LogInfo.UserInfo.ID; objVo.CREATE_TIME = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); if (strID.Length > 0) { isSuccess = new TSysUserLogic().Edit(objVo); if (isSuccess) { new PageBase().WriteLog("编辑用户", "", new UserLogInfo().UserInfo.USER_NAME + "编辑用户" + objVo.ID); } } else { isSuccess = new TSysUserLogic().Create(objVo); if (isSuccess) { new PageBase().WriteLog("添加用户", "", new UserLogInfo().UserInfo.USER_NAME + "添加用户" + objVo.ID); } } TSysUserPostLogic logicUp = new TSysUserPostLogic(); if (strID.Length > 0) { TSysUserPostVo objUserPostDel = new TSysUserPostVo(); objUserPostDel.USER_ID = strID; logicUp.Delete(objUserPostDel); } string strPostId = strREMARK1.Split('|')[0]; string[] arrPostId = strPostId.Split(','); for (int i = 0; i < arrPostId.Length; i++) { TSysUserPostVo objUserPost = new TSysUserPostVo(); objUserPost.USER_ID = objVo.ID; objUserPost.POST_ID = arrPostId[i]; objUserPost.ID = GetSerialNumber("user_post_infor"); isSuccess = new TSysUserPostLogic().Create(objUserPost); if (isSuccess) { new PageBase().WriteLog("添加职位菜单", "", new UserLogInfo().UserInfo.USER_NAME + "添加职位菜单" + objUserPost.ID); } } if (isSuccess) { return("1"); } else { return("0"); } }