コード例 #1
0
    protected void btnGuardarFlotilla_Click(object sender, EventArgs e)
    {
        cClientes cc = new cClientes();

        cc.ClienteId = Convert.ToInt32(lblidCliente.Text);

        cc.GuardaFlotillas(0, txtNombreFlotilla.Text, 1);

        TraeFlotillas();
    }
コード例 #2
0
    protected void gvFlotillas_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        String Valor = e.CommandArgument.ToString();
        String Opc   = e.CommandName.ToString();

        switch (Opc)
        {
        case "EliminarFlotilla":
            cClientes cc = new cClientes();
            cc.ClienteId = Convert.ToInt32(lblidCliente.Text);

            cc.GuardaFlotillas(Convert.ToInt32(Valor), "", 0);
            TraeFlotillas();

            break;
        }
    }