Exemplo n.º 1
0
 public static UnitList ViewUnit(String UnitID)
 {
     try
     {
         Icontext objinter = new BALUnit();
         UnitList vwunit = (UnitList)objinter.ViewRecord(Convert.ToInt64(UnitID));
         return vwunit;
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Exemplo n.º 2
0
 public static bool UpdateUnit(Unit unit)
 {
     Boolean flag = false;
     try
     {
         Icontext objinter = new BALUnit();
         flag = objinter.UpdateRecord(unit);
     }
     catch (Exception ex)
     {
         throw;
     }
     return flag;
 }
Exemplo n.º 3
0
 public static IEnumerable<DAL.UnitList> UnitList()
 {
     try
     {
         Icontext objtext = new BALUnit();
         IEnumerable<DAL.UnitList> listRecord = (IEnumerable<DAL.UnitList>)objtext.RecordList();
         return listRecord;
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Exemplo n.º 4
0
 public static Unit EditUnit(String UnitID)
 {
     try
     {
         Icontext objinter = new BALUnit();
         Unit unit = (Unit)objinter.EditRecord(Convert.ToInt64(UnitID));
         return unit;
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Exemplo n.º 5
0
 public static Boolean CreateUnit(Unit unit)
 {
     Boolean flag = false;
     try
     {
         Icontext objtext = new BALUnit();
         flag = objtext.CreateRecord(unit);
     }
     catch (Exception ex)
     {
         throw;
     }
     return flag;
 }
Exemplo n.º 6
0
 public static List<SelectListItem> SearchFieldDDList()
 {
     ISearchField sobj = new BALUnit();
     List<SelectListItem> lstsearchField = sobj.SearchField();
     return lstsearchField;
 }