Example #1
0
        OCRD IOCRD.FP_BUSCAR_OCRD(OCRD ObjOCRD, string Compania, string Key)
        {
            IBOCRD OCRDB = null;

            try
            {
                string error;
                if (!this.Validar(Key, Compania, out error))
                {
                    throw new Exception(error);
                }
                if (ObjOCRD == null)
                {
                    throw new Exception("ObjOCRD vacio");
                }
                if (ObjOCRD.LicTradNum == null || ObjOCRD.LicTradNum.Trim() == "")
                {
                    throw new Exception("LicTradNum vacio");
                }
                if (ObjOCRD.Tipo == null || ObjOCRD.Tipo.Trim() == "")
                {
                    throw new Exception("Tipo vacio");
                }
                OCRDB = new BOCRD(ModVariables.getCompanyConnection(Compania));
                return(OCRDB.FP_BUSCAR_OCRD(ObjOCRD));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                OCRDB = null;
            }
        }
Example #2
0
        IList <ORTT> IORTT.FP_LISTAR_ORTT(string date, string Compania, string Key)
        {
            IBORTT ORTTB = null;

            try
            {
                string error;
                if (!this.Validar(Key, Compania, out error))
                {
                    throw new Exception(error);
                }
                if (date == null || date.Trim() == "")
                {
                    throw new Exception("date vacio");
                }
                ORTTB = new BORTT(ModVariables.getCompanyConnection(Compania));
                return(ORTTB.FP_LISTAR_ORTT(date));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                ORTTB = null;
            }
        }
Example #3
0
        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;
            }
        }
Example #4
0
        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;
            }
        }