Exemplo 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;
     }
 }
Exemplo 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;
     }
 }
Exemplo 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;
 }
Exemplo 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;
     }
 }