Пример #1
0
    protected void btnAgregar_Click(object sender, EventArgs e)
    {
        servicioWeb.WCFTrans servicio = new servicioWeb.WCFTrans();
        string COD_BODEGA             = txtCodBodega.Text;
        int    ID_USUARIO             = Convert.ToInt32(ddUsuario.SelectedIndex);

        servicio.AgregarBodega(COD_BODEGA, ID_USUARIO);
        Response.Redirect("Bodega.aspx");
    }
Пример #2
0
    protected void btnCrear_Click(object sender, EventArgs e)
    {
        servicioWeb.WCFTrans servicio = new servicioWeb.WCFTrans();
        string PRODUCTO_COD           = lblCodPro.Text;
        string PRODUCTO_COD_DETALLE   = txtCodDetalle.Text;
        int    CANTIDAD_MINIMA        = Convert.ToInt32(txtCanMin.Text);
        int    CANTIDAD_ACTUAL        = Convert.ToInt32(txtCanAct.Text);
        int    VALOR = Convert.ToInt32(txtValor.Text);

        servicio.AgregarDetalle(PRODUCTO_COD_DETALLE, PRODUCTO_COD, CANTIDAD_MINIMA, CANTIDAD_ACTUAL, VALOR);
        Response.Redirect("DetalleProducto.aspx?id_producto=" + PRODUCTO_COD + "");
    }
Пример #3
0
    protected void btnAgregar_Click(object sender, EventArgs e)
    {
        /*ProductosOT.aspx?id_ot=1*/
        int    ID_OT        = Convert.ToInt32(lbl_idot.Text);
        string PRODUCTO_COD = dd_productoCod.SelectedValue;
        int    CANTIDAD     = Convert.ToInt32(txtCantidad.Text);

        servicioWeb.WCFTrans servicio = new servicioWeb.WCFTrans();
        DETALLE detalle = servicio.MostrarDetalleByIDProducto(PRODUCTO_COD);

        int VALOR_DEL_PRODUCTO = int.Parse(detalle.VALOR.ToString());
        int TOTAL_PRODUCTO     = CANTIDAD * VALOR_DEL_PRODUCTO;

        servicio.AgregarProductoOt(PRODUCTO_COD, ID_OT, CANTIDAD, TOTAL_PRODUCTO);

        Response.Redirect("ProductosOT.aspx?id_ot=" + ID_OT + "");
    }
Пример #4
0
    protected void btnIngresar_Click(object sender, EventArgs e)
    {
        servicioWeb.WCFTrans servicio = new servicioWeb.WCFTrans();
        string password = txtPassword.Text;
        string usuario1 = txtUsuario.Text;

        USUARIO data = servicio.BuscarUsuarioByPasswordAndUsuario(password, usuario1);


        if (data == null)
        {
            lblMensaje.Text = "Usuario no encontrado !! verifique nombre de usuario y contraseña";
            limpiar();
        }
        else
        {
            Session["Usuario"]    = data.NOMBRE_USUARIO + " " + data.APELLIDO_USUARIO;
            Session["id_usuario"] = data.ID_USUARIO;
            Session["perfil"]     = data.PERFIL;
            Response.Redirect("Principal.aspx");
        }
    }