コード例 #1
0
ファイル: CL_Vales.cs プロジェクト: julioanyosa/ERPH
        public DataTable getComprobante()
        {
            CD_Vales  objCD_Vale = new CD_Vales(AppSettings.GetConnectionString);
            DataTable dtTMP      = new DataTable();

            dtTMP = objCD_Vale.getComprobante();
            return(dtTMP);
        }
コード例 #2
0
ファイル: CL_Vales.cs プロジェクト: julioanyosa/ERPH
        public DataTable getReporteEntrega(string SedeID)
        {
            CD_Vales  objCD_Vale = new CD_Vales(AppSettings.GetConnectionString);
            DataTable dtTMP      = new DataTable();

            dtTMP = objCD_Vale.getReporteEntrega(SedeID);
            return(dtTMP);
        }
コード例 #3
0
ファイル: CL_Vales.cs プロジェクト: julioanyosa/ERPH
        public DataTable getAsignacionPorComprobante(string NumComprobante)
        {
            CD_Vales  objCD_Vale = new CD_Vales(AppSettings.GetConnectionString);
            DataTable dtTMP      = new DataTable();

            dtTMP = objCD_Vale.getAsignacionPorComprobante(NumComprobante);
            return(dtTMP);
        }
コード例 #4
0
ファイル: CL_Vales.cs プロジェクト: julioanyosa/ERPH
        //public DataTable getdetalleVales(string NumComprobante,int NumVale)
        //{
        //    CD_Vales objCD_Vale = new CD_Vales(AppSettings.GetConnectionString);
        //    DataTable dtTMP = new DataTable();

        //    dtTMP = objCD_Vale.getdetalleVales(NumComprobante,NumVale);
        //    return dtTMP;
        //}

        public DataTable getProductosGenericos()
        {
            CD_Vales  objCD_Vale = new CD_Vales(AppSettings.GetConnectionString);
            DataTable dtTMP      = new DataTable();

            dtTMP = objCD_Vale.getProductosGenericos();
            return(dtTMP);
        }
コード例 #5
0
ファイル: CL_Vales.cs プロジェクト: julioanyosa/ERPH
        public DataTable getdetalleVales(string NumComprobante, int TipoComprobanteID)
        {
            CD_Vales  objCD_Vale = new CD_Vales(AppSettings.GetConnectionString);
            DataTable dtTMP      = new DataTable();

            dtTMP = objCD_Vale.getdetalleVales(NumComprobante, TipoComprobanteID);
            return(dtTMP);
        }
コード例 #6
0
ファイル: CL_Vales.cs プロジェクト: julioanyosa/ERPH
        public DataSet getNumComprobante(string NumComprobante, Int32 TipoComprobanteID)
        {
            CD_Vales objCD_Vale    = new CD_Vales(AppSettings.GetConnectionString);
            DataSet  dsComprobante = new DataSet();

            dsComprobante = objCD_Vale.gerNumComprobante(NumComprobante, TipoComprobanteID);
            return(dsComprobante);
        }
コード例 #7
0
ファイル: CL_Vales.cs プロジェクト: julioanyosa/ERPH
        public void Insert(int UsuarioID, string SedeID, DataTable dtVale, int TipoComprobanteID)
        {
            string   xml, xmlDetalle;
            CD_Vales objCD_Vale = new CD_Vales(AppSettings.GetConnectionString);

            xml        = new BaseFunctions().GetXML(dtVale).Replace("NewDataSet", "DocumentElement");
            xmlDetalle = xml.Replace("Table", "Vales");

            objCD_Vale.Insert(UsuarioID, SedeID, xmlDetalle, TipoComprobanteID);
        }
コード例 #8
0
ファイル: CL_Vales.cs プロジェクト: julioanyosa/ERPH
        public void UpdateAsignacion(string NumComprobante, string operacion, int UsuarioId, DataTable dtOperacion)
        {
            string   xml, xmlDetalle;
            CD_Vales objCD_Vale = new CD_Vales(AppSettings.GetConnectionString);

            xml        = new BaseFunctions().GetXML(dtOperacion).Replace("NewDataSet", "DocumentElement");
            xmlDetalle = xml.Replace("Table", "Asignacion");

            objCD_Vale.UpdateAsignacion(NumComprobante, operacion, UsuarioId, xmlDetalle);
        }
コード例 #9
0
ファイル: CL_Vales.cs プロジェクト: julioanyosa/ERPH
        public void InsertPesos(int UsuarioID, string AlmacenID, decimal PesoTot, DataTable dtPeso, DataTable dtProducto)
        {
            string   xml, xmlPeso, xmlProducto;
            CD_Vales objCD_Vale = new CD_Vales(AppSettings.GetConnectionString);

            xml     = new BaseFunctions().GetXML(dtPeso).Replace("NewDataSet", "DocumentElement");
            xmlPeso = xml.Replace("Table", "Peso");

            xml = null;
            dtProducto.TableName = "Producto";
            xml         = new BaseFunctions().GetXML(dtProducto).Replace("NewDataSet", "DocumentElement");
            xmlProducto = xml.Replace("Table", "Producto");
            objCD_Vale.InsertPesos(UsuarioID, AlmacenID, PesoTot, xmlPeso, xmlProducto);
        }
コード例 #10
0
ファイル: CL_Vales.cs プロジェクト: julioanyosa/ERPH
        public DataRow getNumVale(int NumVale, string SedeID)
        {
            CD_Vales  objCD_Vale = new CD_Vales(AppSettings.GetConnectionString);
            DataTable dt         = new DataTable();

            dt = objCD_Vale.getNumVale(NumVale, SedeID);

            if (dt.Rows.Count == 0)
            {
                return(null);
            }
            else
            {
                return(dt.Rows[0]);
            }
        }
コード例 #11
0
ファイル: CL_Vales.cs プロジェクト: julioanyosa/ERPH
        public int UpdateEntrega(E_Vale ObjVale)
        {
            CD_Vales objCD_Vale = new CD_Vales(AppSettings.GetConnectionString);

            return(objCD_Vale.UpdateEntrega(ObjVale));
        }
コード例 #12
0
ファイル: CL_Vales.cs プロジェクト: julioanyosa/ERPH
        public int getUltimoVale()
        {
            CD_Vales objCD_Vale = new CD_Vales(AppSettings.GetConnectionString);

            return(objCD_Vale.getUltimoVale());
        }