public static bool InSertOrUpdateStepsDetails(ArrayList MyList) { try { string ids; bool rev = false; string CompanyCD = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).CompanyCD; if (MyList.Count > 0) { if (StepsDetailsDBHelper.IsExits((MyList[0] as StepsDetailsModel).PayOrInComeType, (MyList[0] as StepsDetailsModel).SourceID.ToString(), CompanyCD, out ids)) { rev = StepsDetailsDBHelper.UpdateStepsDetails(MyList); } else { rev = StepsDetailsDBHelper.InSertStepsDetails(MyList); } } return(rev); } catch (Exception ex) { throw ex; } }
/// <summary> /// 修改勾兑明细操作记录 /// </summary> /// <param name="MyList">ArrayList</param> /// <returns></returns> public static bool UpdateStepsDetails(ArrayList MyList) { try { return(StepsDetailsDBHelper.UpdateStepsDetails(MyList)); } catch (Exception ex) { throw ex; } }