Beispiel #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;
     }
 }
Beispiel #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;
     }
 }
Beispiel #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;
 }
Beispiel #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;
     }
 }