Ejemplo n.º 1
0
 public static Contract ViewContract(String ContractID)
 {
     try
     {
         Icontext objinter = new BALContract();
         Contract contract = (Contract)objinter.ViewRecord(Convert.ToInt64(ContractID));
         return contract;
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Ejemplo n.º 2
0
 public static bool UpdateContract(Contract contract)
 {
     Boolean flag = false;
     try
     {
         Icontext objinter = new BALContract();
         flag = objinter.UpdateRecord(contract);
     }
     catch (Exception ex)
     {
         throw;
     }
     return flag;
 }
Ejemplo n.º 3
0
 public static IEnumerable<DAL.ContractList> ContractList(String Field, String Value)
 {
     try
     {
         ISearchResult objtext = new BALContract();
         IEnumerable<DAL.ContractList> listRecord = (IEnumerable<DAL.ContractList>)objtext.SearchResultList(Field, Value);
         return listRecord;
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Ejemplo n.º 4
0
 public static Boolean CreateContract(Contract contract)
 {
     Boolean flag = false;
     try
     {
         Icontext objtext = new BALContract();
         flag = objtext.CreateRecord(contract);
     }
     catch (Exception ex)
     {
         throw;
     }
     return flag;
 }
Ejemplo n.º 5
0
 public static IEnumerable<DAL.ContractList> ContractList()
 {
     try
     {
         Icontext objtext = new BALContract();
         IEnumerable<DAL.ContractList> listRecord = (IEnumerable<DAL.ContractList>)objtext.RecordList();
         return listRecord;
     }
     catch (Exception ex)
     {
         throw;
     }
 }