Пример #1
0
 private void DeleteSub(string itemno)
 {
     try
     {
         complist = compbal.GetByNo(yused, itemno);
         foreach (tbl_000_H_ITEM_PART c in complist)
         {
             compbal.Delete(c);
         }
         //Tabulation
         DsubPI(itemno);
         DsubVP(itemno);
         DsubAssy(itemno);
         //
         tmptlist = tmptbal.GetByNo(yused, itemno);
         foreach (var m in tmptlist)
         {
             tmptbal.Delete(m);
         }
         tfdclist = tfdcbal.GetByNo(yused, itemno);
         foreach (var f in tfdclist)
         {
             tfdcbal.Delete(f);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #2
0
 private void DeleteSub(string itemno)
 {
     try
     {
         List <tbl_000_H_ITEM_PART> complist = new List <tbl_000_H_ITEM_PART>();
         complist = compbal.GetByNo(UserSettings.LogInYear, itemno);
         foreach (tbl_000_H_ITEM_PART c in complist)
         {
             compbal.Delete(c);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #3
0
 private void DeleteSub(List <tbl_000_H_ITEM> todelete_list)
 {
     try
     {
         foreach (tbl_000_H_ITEM i in todelete_list)
         {
             foreach (tbl_000_H_ITEM_PART ic in i.itemCom)
             {
                 itmcombal.Delete(ic);
             }
             DsubPI(i);
             DsubVP(i);
             DsubAssy(i);
             DsubPI(i);
             DsubVP(i);
             DsubPI(i);
             DsubAssy(i);
             DsubVP(i);
             DsubAssy(i);
             DsubPI(i);
             DsubVP(i);
             DsubAssy(i);
             foreach (tbl_000_H_ITEM_MPT impt in i.itemMPT)
             {
                 itmmptbal.Delete(impt);
             }
             foreach (tbl_000_H_ITEM_FDC impt in i.itemFDC)
             {
                 itmfdcbal.Delete(impt);
             }
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }