Пример #1
0
    protected void chk_cambiarDestino_Checked(object sender, EventArgs e)
    {
        MovimientoBC m = new MovimientoBC();

        if (this.chk_cambiarDestino.Checked)
        {
            this.utils.CargaDrop(this.ddl_compMotivo, "MOET_ID", "DESCRIPCION", m.obtenerXEstadoMovEstSubTipo(50, true));
            this.dv_cambiarD.Attributes.Add("style", "display:block");
            this.rfv_posicionConf.Enabled = true;
        }
        else
        {
            this.utils.CargaDrop(this.ddl_compMotivo, "MOET_ID", "DESCRIPCION", m.obtenerXEstadoMovEstSubTipo(40, true));
            this.dv_cambiarD.Attributes.Add("style", "display:none");
            this.rfv_posicionConf.Enabled = false;
        }
    }
Пример #2
0
 protected void gv_listar_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "DESTINO")
     {
         this.hf_id.Value = e.CommandArgument.ToString();
         ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "modal", "modalDestino();", true);
     }
     if (e.CommandName == "ANULAR")
     {
         this.hf_id.Value = e.CommandArgument.ToString();
         MovimientoBC m = new MovimientoBC();
         this.utils.CargaDrop(this.ddl_confMotivo, "MOET_ID", "DESCRIPCION", m.obtenerXEstadoMovEstSubTipo(60, true));
         ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "modal", "modalConfirmar();", true);
     }
     if (e.CommandName == "CONFIRMAR")
     {
         this.hf_id.Value = e.CommandArgument.ToString();
         MovimientoBC m = new MovimientoBC();
         this.utils.CargaDrop(this.ddl_compMotivo, "MOET_ID", "DESCRIPCION", m.obtenerXEstadoMovEstSubTipo(40, true));
         ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "modal", "modalFinalizar();", true);
     }
     if (e.CommandName == "SUBIR")
     {
         this.hf_id.Value = e.CommandArgument.ToString();
         MovimientoBC m = new MovimientoBC();
         m.ID = Convert.ToInt32(this.hf_id.Value);
         m.CambiarOrden(true);
         this.ObtenerMovimientos(true);
     }
     if (e.CommandName == "BAJAR")
     {
         this.hf_id.Value = e.CommandArgument.ToString();
         MovimientoBC m = new MovimientoBC();
         m.ID = Convert.ToInt32(this.hf_id.Value);
         m.CambiarOrden(false);
         this.ObtenerMovimientos(true);
     }
 }