Beispiel #1
0
 public static IEnumerable<DAL.MeterDetails> GetMeterDeatailsRecordList(String LoggerID, String ClientId, String SiteID)
 {
     try
     {
         IRecordList3 objtext = new BALMeter();
         IEnumerable<DAL.MeterDetails> listRecord = (IEnumerable<DAL.MeterDetails>)objtext.RecordList(LoggerID, ClientId, SiteID);
         return listRecord;
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Beispiel #2
0
 public static IEnumerable<DAL.MeterDetails> GetMeterDeatailsRecordList(String ClientId, String SiteID, String SupplyID, String bulkMeterID)
 {
     try
     {
         IListView4 objtext = new BALMeter();
         IEnumerable<DAL.MeterDetails> listRecord = (IEnumerable<DAL.MeterDetails>)objtext.RecordList(ClientId, SiteID, SupplyID, bulkMeterID);
         return listRecord;
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Beispiel #3
0
 public static Meterclass EditMeter(String MeterID)
 {
     try
     {
         Icontext objinter = new BALMeter();
         Meterclass meter = (Meterclass)objinter.EditRecord(Convert.ToInt64(MeterID));
         return meter;
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Beispiel #4
0
 public static Boolean CreateMeter(Meterclass meter)
 {
     Boolean flag = false;
     try
     {
         Icontext objtext = new BALMeter();
         flag = objtext.CreateRecord(meter);
     }
     catch (Exception ex)
     {
         throw;
     }
     return flag;
 }
Beispiel #5
0
 public static DAL.MeterList ViewMeter(String MerterID)
 {
     try
     {
         Icontext objinter = new BALMeter();
         DAL.MeterList meter = (DAL.MeterList)objinter.ViewRecord(Convert.ToInt64(MerterID));
         return meter;
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Beispiel #6
0
 public static IEnumerable<DAL.MeterList> MeterRecordList(String Field, String Value)
 {
     try
     {
         ISearchResult objtext = new BALMeter();
         IEnumerable<DAL.MeterList> listRecord = (IEnumerable<DAL.MeterList>)objtext.SearchResultList(Field, Value);
         return listRecord;
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Beispiel #7
0
 public static IEnumerable<DAL.MeterList> MeterRecordList()
 {
     try
     {
         Icontext objtext = new BALMeter();
         IEnumerable<DAL.MeterList> listRecord = (IEnumerable<DAL.MeterList>)objtext.RecordList();
         return listRecord;
     }
     catch (Exception ex)
     {
         throw;
     }
 }