Exemplo n.º 1
0
 /// <summary>
 /// 修改
 /// </summary>
 /// <param name="p_BE">要修改的实体</param>
 /// <param name="sqlTrans">事务类</param>
 public void RUpdate(BaseEntity p_BE, BaseEntity[] p_BE2, IDBTransAccess sqlTrans)
 {
     try
     {
         this.RUpdate(p_BE, sqlTrans);
         ColorSampleDtsRule ruledts = new ColorSampleDtsRule();
         ruledts.RSave((ColorSample)p_BE, p_BE2, sqlTrans);//保存从表
     }
     catch (BaseException)
     {
         throw;
     }
     catch (Exception E)
     {
         throw new BaseException(E.Message);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// 新增(传入事务处理)
        /// </summary>
        /// <param name="p_BE">要新增的实体</param>
        /// <param name="sqlTrans">事务类</param>
        public void RAdd(BaseEntity p_BE, BaseEntity[] p_BE2, IDBTransAccess sqlTrans)
        {
            try
            {
                this.RAdd(p_BE, sqlTrans);
                ColorSampleDtsRule ruledts = new ColorSampleDtsRule();
                ruledts.RSave((ColorSample)p_BE, p_BE2, sqlTrans);//保存从表

                FormNoControlRule fnrule = new FormNoControlRule();
                fnrule.RAddSort("Dev_ColorSample", "FormNo", 0, sqlTrans);
            }
            catch (BaseException)
            {
                throw;
            }
            catch (Exception E)
            {
                throw new BaseException(E.Message);
            }
        }