예제 #1
0
 protected void BtnSi_Click(object sender, EventArgs e)
 {
     try
     {
         string r = _objManifest.DeleteManifest(Session["connectionString"].ToString(), Session["MANIFEST_HEADER"].ToString());
         ASPxPopupControl2.ShowOnPageLoad = false;
         var pResult = "";
         var ds      = _objManifest.GetAllManifestToday(Session["connectionString"].ToString(), ref pResult);
         if (pResult == "")
         {
             ASPxGridView1.DataSource = ds;
             ASPxGridView1.DataBind();
             Session["DATA_MANIFEST"] = ds;
             if (r != "OK")
             {
                 ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText",
                                                     "CallError('Error: " + r + "');", true);
             }
         }
         else
         {
             ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('" + pResult + "');", true);
         }
     }
     catch (Exception ex)
     {
         ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true);
     }
 }
예제 #2
0
 protected void BtnSi_Click(object sender, EventArgs e)
 {
     try
     {
         string r = _objManifest.DeleteManifest(Session["connectionString"].ToString(), Session["MANIFEST_HEADER"].ToString());
         ASPxPopupControl2.ShowOnPageLoad = false;
         UsuarioDeseaObtenerTodosLosManifiestosCargadosDesdeExcel?.Invoke(sender, e);
     }
     catch (Exception ex)
     {
         ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true);
     }
 }