예제 #1
0
        public DataTable getComprobante()
        {
            CD_Vales  objCD_Vale = new CD_Vales(AppSettings.GetConnectionString);
            DataTable dtTMP      = new DataTable();

            dtTMP = objCD_Vale.getComprobante();
            return(dtTMP);
        }
예제 #2
0
        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
        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
        //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
        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
        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
        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
        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
        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
        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
        public int UpdateEntrega(E_Vale ObjVale)
        {
            CD_Vales objCD_Vale = new CD_Vales(AppSettings.GetConnectionString);

            return(objCD_Vale.UpdateEntrega(ObjVale));
        }
예제 #12
0
        public int getUltimoVale()
        {
            CD_Vales objCD_Vale = new CD_Vales(AppSettings.GetConnectionString);

            return(objCD_Vale.getUltimoVale());
        }