예제 #1
0
 protected void cancelFondeo(object sender, EventArgs args)
 {
     try
     {
         string folioFondeo       = hf_folio_fondeo.Value;
         Usuario_cancelacion oUsr = new Usuario_cancelacion()
         {
             Id_usuario         = ((MstCasc)this.Master).getUsrLoged().Id,
             Motivo_cancelacion = hf_motivo_cancelacion.Value,
         };
         EntradaCtrl.FondeoDelete(folioFondeo, oUsr);
         ClientScript.RegisterStartupScript(this.GetType(), "alertSave", "<script type=\"text/javascript\">alert('Se eliminó correctamente el registro');window.location.href='frmFondeo.aspx';</script>");
     }
     catch (Exception e)
     {
         grd_fondeo.DataSource = "";
         grd_fondeo.DataBind();
         ((MstCasc)this.Master).setError = e.Message;
     }
 }