IList <OITM> IOITM.FP_LISTAR_OITM(string FechaIni, string FechaFin, string Compania, string Key) { IBOITM OITMB = null; try { string error; if (!this.Validar(Key, Compania, out error)) { throw new Exception(error); } if (FechaIni == null || FechaIni.Trim() == "") { throw new Exception("FechaIni vacio"); } if (FechaFin == null || FechaFin.Trim() == "") { throw new Exception("FechaFin vacio"); } OITMB = new BOITM(ModVariables.getCompanyConnection(Compania)); return(OITMB.FP_LISTAR_OITM(FechaIni, FechaFin)); } catch (Exception ex) { throw ex; } finally { OITMB = null; } }
IList <OITM> IOITM.FP_LISTAR_OITM_TOT(string Compania, string Key) { IBOITM OITMB = null; try { string error; if (!this.Validar(Key, Compania, out error)) { throw new Exception(error); } OITMB = new BOITM(ModVariables.getCompanyConnection(Compania)); return(OITMB.FP_LISTAR_OITM_TOT()); } catch (Exception ex) { throw ex; } finally { OITMB = null; } }