public void Update(aers_tbl_events_ddzc model) { try { DateTime dt = DateTime.Now; model.OperatorDate = dt; model.IsFlag = "0"; model.AuditStatus = "0"; model.OperatorID = model.FillStaff; String stmtId = "aers_tbl_events_ddzc_Update"; ExecuteUpdate(stmtId, model); } catch (Exception) { throw; } }
public string Insert(aers_tbl_events_ddzc model) { try { model.EveddzcId = new aers_sys_seedSqlMapDao().GetMaxID("eventsddzc"); DateTime dt = DateTime.Now; model.OperatorDate = dt; model.IsFlag = "0"; model.AuditStatus = "0"; model.OperatorID = model.FillStaff; String stmtId = "aers_tbl_events_ddzc_Insert"; ExecuteInsert(stmtId, model); return(model.EveddzcId); } catch (Exception ex) { throw; } }