示例#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