public static int SaveAimCheckInfo(AimCheckInfoModel model) { //定义返回变量 int isSucc = 0; //ID存在时,更新 if (ConstUtil.EDIT_FLAG_UPDATE.Equals(model.EditFlag)) { try { //执行更新操作 isSucc = AimCheckInfoDBHelper.UpdateAimCheckInfo(model); } catch { //输出日志 } } //插入 else { try { //执行插入操作 isSucc = AimCheckInfoDBHelper.InsertAimCheckInfo(model); } catch { //输出日志 } } return(isSucc); }
public static DataTable GetAimCheckList(int pageindex, int pagesize, Hashtable parm, out int RecordCount) { DataTable aimlisttable = new DataTable(); int rec = 0; try { //执行更新操作 aimlisttable = AimCheckInfoDBHelper.SelectAimCheckList(pageindex, pagesize, parm, out rec); } catch { //输出日志 } RecordCount = rec; return(aimlisttable); }
public static int DelAimCheckInfo(string[] IdStr) { int delCount = IdStr.Length; try { //执行更新操作 if (AimCheckInfoDBHelper.DelAimInfoByIdArray(IdStr) != true) { return(0); } } catch { return(0); //输出日志 } return(delCount); }