Exemple #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;
         UsuarioDeseaObtenerTodosLosManifiestosCargadosDesdeExcel?.Invoke(sender, e);
     }
     catch (Exception ex)
     {
         ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true);
     }
 }
Exemple #2
0
        protected void UiVistaReporteManifiesto_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
        {
            switch (e.Parameters.Split('|')[0])
            {
            case "btnFind":
                UsuarioDeseaObtenerTodosLosManifiestosCargadosDesdeExcelPorFecha?.Invoke(sender, new ManifiestoArgumento
                {
                    ManifiestoEncabezado = new ManifiestoEncabezado
                    {
                        START_DATE = (DateTime)UiFechaInio.Value
                        ,
                        END_DATE = (DateTime)UiFechaFin.Value
                    }
                });
                break;

            case "btnAll":
                UsuarioDeseaObtenerTodosLosManifiestosCargadosDesdeExcel?.Invoke(sender, e);
                break;
            }
        }