/// <summary> /// 更新用户信息(主入口) /// </summary> public void Update() { Wicresoft.Session.Session session = new Wicresoft.Session.Session(); try { session.BeginTransaction(); // 更新用户主档信息 UpdateUserInfo(session, this.PKID); session.Commit(); // Write Log //BusinessRule.SystemManage.OperationLog rule = new BusinessRule.SystemManage.OperationLog(); //rule.WriteOperationLog("用户信息管理", "编辑用户信息"); } catch (System.Data.SqlClient.SqlException) { session.Rollback(); } }
/// <summary> /// 创建新用户(主入口) /// </summary> public void Save() { Wicresoft.Session.Session session = new Wicresoft.Session.Session(); try { session.BeginTransaction(); // 插入主档信息 int userid = InsertUserInfo(session); session.Commit(); // Write Log //BusinessRule.SystemManage.OperationLog rule = new BusinessRule.SystemManage.OperationLog(); //rule.WriteOperationLog("用户信息管理", "新增用户信息"); } catch (System.Data.SqlClient.SqlException) { session.Rollback(); } }