コード例 #1
0
    protected void grid_OnCustomButtonCallback(object sender, ASPxGridViewCustomButtonCallbackEventArgs e)
    {
        if (e.ButtonID != "btnPigeonhole")
        {
            return;
        }

        String exceptionID = grid.GetRowValues(e.VisibleIndex, "ExceptionID").ToString();
        String messageID   = grid.GetRowValues(e.VisibleIndex, "MessageID").ToString();

        ESB.ExceptionService exceptionService = new ESB.ExceptionService();
        exceptionService.DeleteExceptionByID(exceptionID);

        ESB.AuditService auditService = new ESB.AuditService();
        auditService.ExceptionPigeonhole(messageID);

        grid.DataBind();
    }
コード例 #2
0
ファイル: ExceptionList.aspx.cs プロジェクト: vebin/soa
    protected void grid_OnCustomButtonCallback(object sender, ASPxGridViewCustomButtonCallbackEventArgs e)
    {
        if (e.ButtonID != "btnPigeonhole") return;

        String exceptionID = grid.GetRowValues(e.VisibleIndex, "ExceptionID").ToString();
        String messageID = grid.GetRowValues(e.VisibleIndex, "MessageID").ToString();

        ESB.ExceptionService exceptionService = new ESB.ExceptionService();
        exceptionService.DeleteExceptionByID(exceptionID);

        ESB.AuditService auditService = new ESB.AuditService();
        auditService.ExceptionPigeonhole(messageID);

        grid.DataBind();
    }