Пример #1
0
        //DESCOMENTAR EN DESARROLLO
        public NotaPedidoBE DarNumerosAg()
        {
            var numeroPedido = "V";

            if (txtNumeroPedido.Value.Trim() != "Número de pedido")
            {
                var caracteresIngresados = txtNumeroPedido.Value.Trim().Length;
                if (caracteresIngresados > 9)
                {
                    throw new ArgumentException("Ingrese un numero válido de Nota de Pedido.");
                }
                var conteo = 0;
                while (conteo < (9 - caracteresIngresados))
                {
                    numeroPedido = numeroPedido + "0";
                    conteo++;
                }
                numeroPedido = numeroPedido + txtNumeroPedido.Value.Trim();
            }
            var xx = new NotaPedidoServiceClient();

            var respuesta = xx.RegistraNotaPedido(numeroPedido, txtVin.Value.Trim(), Session["usrname"].ToString());

            xx.Close();
            return(respuesta);
        }
Пример #2
0
        public int InsertarEstadoAg(string vin)
        {
            var xx        = new NotaPedidoServiceClient();
            var respuesta = xx.ActualizaEstadoNotaPedido(vin, "A1");

            xx.Close();
            return(respuesta);
        }