예제 #1
0
       }//GetConsumerID


       public static IEnumerable<DAL.ConsumerList> ConsumerRecordList(String Field, String Value)
       {
           try
           {
               ISearchResult objtext = new BALConsumerRegister();
               IEnumerable<DAL.ConsumerList> listRecord = (IEnumerable<DAL.ConsumerList>)objtext.SearchResultList(Field, Value);
               return listRecord;
           }
           catch (Exception ex)
           {
               throw;
           }
       }//ConsumerRecordList
예제 #2
0
       }//UpdateProperty

       public static IEnumerable<DAL.ConsumerList> ConsumerRecordList()
       {
           try
           {
               Icontext objtext = new BALConsumerRegister();
               IEnumerable<DAL.ConsumerList> listRecord = (IEnumerable<DAL.ConsumerList>)objtext.RecordList();
               return listRecord;
           }
           catch (Exception ex)
           {
               throw;
           }
       }//ConsumerRecordList    
예제 #3
0
       }//SearchField

       public static DAL. ConsumerList ViewConsumer(String ConsumerID)
       {
           try
           {
               Icontext objinter = new BALConsumerRegister();
               ConsumerList Consumer = (ConsumerList)objinter.ViewRecord(Convert.ToInt64(ConsumerID));
               return Consumer;
           }
           catch (Exception ex)
           {
               throw;
           }
       }//  ViewConsumer 
예제 #4
0
       }//CreateConsumer


       public static ConsumerMaster EditConsumer(String ConsumerID)
       {
           try
           {
               Icontext objinter = new BALConsumerRegister();
               ConsumerMaster prop = (ConsumerMaster)objinter.EditRecord(Convert.ToInt64(ConsumerID));
               return prop;
           }
           catch (Exception ex)
           {
               throw;
           }

       }//EditConsumer
예제 #5
0
       }//EditConsumer

       public static bool UpdateConsumer(ConsumerMaster consumer)
       {
           Boolean flag = false;
           try
           {
               Icontext objinter = new BALConsumerRegister();
               flag = objinter.UpdateRecord(consumer);
           }
           catch (Exception ex)
           {
               throw;
           }
           return flag;
       }//UpdateProperty
예제 #6
0
       }//CreateConsumerRegistration


       public static Boolean CreateConsumer(ConsumerMaster Consumer)
       {
           Boolean flag = false;
           try
           {
               Icontext objtext = new BALConsumerRegister();
               flag = objtext.CreateRecord(Consumer);
           }
           catch (Exception ex)
           {
               throw;
           }
           return flag;
       }//CreateConsumer
예제 #7
0
       }//CreateConsumer

       public static DAL.ConsumerList ConsumerBySearchParmaterInfo(String ConsumerID)
       {
           try
           {
               IRecord1View objinter = new BALConsumerRegister();
               ConsumerList Consumer = (ConsumerList)objinter.RecordView(ConsumerID);
               return Consumer;
           }
           catch (Exception ex)
           {
               throw;
           }
       }//  ConsumerBySearchParmaterInfo 
예제 #8
0
       }//UpdateConsumerField


       public static String AddConsumer(ConsumerMaster Consumer)
       {
           String ConsumerID = String.Empty;
           try
           {
               IRecordSave objtext = new BALConsumerRegister();
               ConsumerID = objtext.AddRecord(Consumer);
           }
           catch (Exception ex)
           {
               throw;
           }
           return ConsumerID;
       }//CreateConsumer
예제 #9
0
 public static DAL.ConsumerList ViewConsumer(String ConsumerID)
 {
     try
        {
        IGetRecordView objinter = new BALConsumerRegister();
        ConsumerList Consumer = (ConsumerList)objinter.GetRecord(ConsumerID);
        return Consumer;
        }
        catch (Exception ex)
        {
        throw;
        }
 }
예제 #10
0
       }//  ConsumerBySearchParmaterInfo 

       public static bool UpdateConsumerInfromation(ConsumerMaster consumer)
       {
           Boolean flag = false;
           try
           {
               IModifyRecord objinter = new BALConsumerRegister();
               flag = objinter.UpdateRecord(consumer);
           }
           catch (Exception ex)
           {
               throw;
           }
           return flag;
       }//UpdateConsumerField