Example #1
0
        public Int32  GetCodStock(Int32 CodPreVenta)
        {
            Int32 CodStock = 0;

            Clases.cPreVenta pre  = new Clases.cPreVenta();
            DataTable        trdo = pre.GetPreVentaxCodigo(CodPreVenta);

            if (trdo.Rows.Count > 0)
            {
                if (trdo.Rows[0]["CodStock"].ToString() != "")
                {
                    CodStock = Convert.ToInt32(trdo.Rows[0]["CodStock"].ToString());
                }
            }
            return(CodStock);
        }
Example #2
0
        public double GetImporteSenia(Int32 CodPreVenta)
        {
            double Importe = 0;

            Clases.cPreVenta pre  = new Clases.cPreVenta();
            DataTable        trdo = pre.GetPreVentaxCodigo(CodPreVenta);

            if (trdo.Rows.Count > 0)
            {
                if (trdo.Rows[0]["PrecioSenia"].ToString() != "")
                {
                    Importe = Convert.ToDouble(trdo.Rows[0]["PrecioSenia"].ToString());
                }
            }
            return(Importe);
        }