Exemple #1
0
 public static void DeleteConstructAnnualPlan(string AnnuelPlanCode)
 {
     try
     {
         if (AnnuelPlanCode != "")
         {
             EntityData entity = ConstructDAO.GetConstructAnnualPlanByCode(AnnuelPlanCode);
             if (entity.HasRecord())
             {
                 string     pBSUnitCode = entity.GetString("PBSUnitCode");
                 int        iYear       = entity.GetInt("IYear");
                 EntityData constructPlanStepByPBSUnitYear = ConstructDAO.GetConstructPlanStepByPBSUnitYear(pBSUnitCode, iYear);
                 ConstructDAO.DeleteConstructPlanStep(constructPlanStepByPBSUnitYear);
                 constructPlanStepByPBSUnitYear.Dispose();
             }
             ConstructDAO.DeleteConstructAnnualPlan(entity);
             entity.Dispose();
         }
     }
     catch (Exception exception)
     {
         throw exception;
     }
 }