Beispiel #1
0
 private void DeleteSpecialProcedures()
 {
     if (_itemTbl != null)
     {
         foreach (DataRow row in _itemTbl.Rows)
         {
             int woItemID = Convert.ToInt32(row["woItemID"]);
             var wid      = new WorkorderItemDelete(woItemID);
             wid.DeleteSpecialProcedures();
         }
     }
 }
Beispiel #2
0
        public void delete()
        {
            DataTable tbl = WorkorderShared.getExistingWorkorderItems(_woID);

            if (tbl != null)
            {
                foreach (DataRow row in tbl.Rows)
                {
                    var wi = new WorkorderItemDelete(Convert.ToInt32(row["woItemID"]));
                    wi.Delete();
                }
            }

            ReleaseRegisteredWorkorderNumber();

            var wda = new WorkorderDeleteAccessary(_woID);

            wda.Delete();

            DeleteWorkorderTitle();
        }