Esempio n. 1
0
 public static EnergyMaster ViewEnergy(String energyID)
 {
     try
     {
         Icontext objinter = new BALEnergy();
         EnergyMaster energy = (EnergyMaster)objinter.ViewRecord(Convert.ToInt64(energyID));
         return energy;
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Esempio n. 2
0
 public static IEnumerable<DAL.EnergyList> EnergyList(String Field, String Value)
 {
     try
     {
         ISearchResult objtext = new BALEnergy();
         IEnumerable<DAL.EnergyList> listRecord = (IEnumerable<DAL.EnergyList>)objtext.SearchResultList(Field, Value);
         return listRecord;
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Esempio n. 3
0
 public static bool UpdateEnergy(EnergyMaster energy)
 {
     Boolean flag = false;
     try
     {
         Icontext objinter = new BALEnergy();
         flag = objinter.UpdateRecord(energy);
     }
     catch (Exception ex)
     {
         throw;
     }
     return flag;
 }
Esempio n. 4
0
 public static IEnumerable<DAL.EnergyList> EnergyList()
 {
     try
     {
         Icontext objtext = new BALEnergy();
         IEnumerable<DAL.EnergyList> listRecord = (IEnumerable<DAL.EnergyList>)objtext.RecordList();
         return listRecord;
     }
     catch (Exception ex)
     {
         throw;
     }
 }