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