예제 #1
0
        private void DeleteDetail(EVarCalc entity, bool filterModified)
        {
            if (entity == null)
            return;

             IDOUpdate objDO = new RHDOMnt.VarCalcDet();
             EVarCalcDet objE = new EVarCalcDet();
             objE.IdVarCalc = entity.IdVarCalc;
             objDO.Delete(objE);
        }
예제 #2
0
        private void UpdateDetail(IList<EVarCalcDet> col, object[] primKey)
        {
            if (col == null)
            return;

             IDOUpdate objDO = new RHDOMnt.VarCalcDet();

             foreach (EVarCalcDet objE in col)
             {

            object[] objRet = null;

            if (primKey != null)
            {
               objE.IdVarCalc = primKey[0].ToString();
            }

            switch (objE.EntityState)
            {

               case EntityState.Added:
                  objRet = objDO.Insert(objE);
                  break;

            }

             }
        }