/// <summary> /// 新增(复合布)(传入事务处理) /// </summary> /// <param name="p_BE">要新增的实体</param> /// <param name="sqlTrans">事务类</param> public void RAdd(BaseEntity p_BE, BaseEntity[] p_BE3, IDBTransAccess sqlTrans) { try { this.CheckCorrect(p_BE); Item entity = (Item)p_BE; this.RAdd(p_BE, sqlTrans); for (int i = 0; i < p_BE3.Length; i++) { ItemCompositeDtsRule rule = new ItemCompositeDtsRule(); ItemCompositeDts entityItemDts = (ItemCompositeDts)p_BE3[i]; entityItemDts.MainID = entity.ID; entityItemDts.Seq = i + 1; rule.RAdd(entityItemDts, sqlTrans); } ; } catch (BaseException) { throw; } catch (Exception E) { throw new BaseException(E.Message); } }
/// <summary> /// 修改(复合布) /// </summary> /// <param name="p_BE">要修改的实体</param> /// <param name="sqlTrans">事务类</param> public void RUpdate(BaseEntity p_BE, BaseEntity[] p_BE3, IDBTransAccess sqlTrans) { try { this.CheckCorrect(p_BE); Item entity = (Item)p_BE; this.RUpdate(entity, sqlTrans); ItemCompositeDtsRule rule1 = new ItemCompositeDtsRule(); rule1.RSave(entity, p_BE3, sqlTrans); } catch (BaseException) { throw; } catch (Exception E) { throw new BaseException(E.Message); } }