Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

List.cshtml

@model ConfigurationModel


    
        
            
                
                    
                        
                            
                        
                        
                            
                        
                    
                    
                        
                            
                        
                        
                            
                        
                    
                    
                        
                            
                                
                                @T("Admin.Common.Search")
                            
                        
                    
                
            
        
    

    
        
            @await Html.PartialAsync("Table", new DataTablesModel
            {
            Name = "log-grid",
            UrlRead = new DataUrl("LogList", "TaxTransactionLog", null),
            SearchButtonId = "search-log",
            Length = Model.TaxTransactionLogSearchModel.PageSize,
            LengthMenu = Model.TaxTransactionLogSearchModel.AvailablePageSizes,
            Filters = new List
                {
                new FilterParameter(nameof(Model.TaxTransactionLogSearchModel.CreatedFrom), nameof(Model.TaxTransactionLogSearchModel)),
                new FilterParameter(nameof(Model.TaxTransactionLogSearchModel.CreatedTo), nameof(Model.TaxTransactionLogSearchModel))
                },
                ColumnCollection = new List
                    {
                    new ColumnProperty(nameof(TaxTransactionLogModel.Id))
                    {
                    IsMasterCheckBox = true,
                    Render = new RenderCheckBox("checkbox_log"),
                    ClassName =  NopColumnClassDefaults.CenterAll,
                    Width = "50",
                    },
                    new ColumnProperty(nameof(TaxTransactionLogModel.StatusCode))
                    {
                    Title = T("Plugins.Tax.Avalara.Log.StatusCode").Text,
                    Width = "100"
                    },
                    new ColumnProperty(nameof(TaxTransactionLogModel.Url))
                    {
                    Title = T("Plugins.Tax.Avalara.Log.Url").Text,
                    Width = "200"
                    },
                    new ColumnProperty(nameof(TaxTransactionLogModel.CreatedDate))
                    {
                    Title = T("Plugins.Tax.Avalara.Log.CreatedDate").Text,
                    Width = "200",
                    Render = new RenderDate()
                    },
                    new ColumnProperty(nameof(TaxTransactionLogModel.Id))
                    {
                    Title = T("Admin.Common.View").Text,
                    Width = "100",
                    ClassName = NopColumnClassDefaults.Button,
                    Render = new RenderButtonView(new DataUrl("~/Admin/TaxTransactionLog/View/"))
                    }
                    }
                    })

                                               
                $(function() {
                    $('#delete-selected-action-confirmation-submit-button').bind('click', function () {
                        var postData = {
                            selectedIds: selectedIds
                        };
                        addAntiForgeryToken(postData);
                        $.ajax({
                            cache: false,
                            type: 'POST',
                            url: '@(Url.Action("DeleteSelected", "TaxTransactionLog"))',
                            data: postData,
                            traditional: true,
                            error: function (jqXHR, textStatus, errorThrown) {
                                showAlert('deleteSelectedFailed', errorThrown);
                            },
                            complete: function (jqXHR, textStatus) {
                                if (jqXHR.status === 204)
                                {
                                    showAlert('nothingSelectedAlert', '@T("Admin.Common.Alert.NothingSelected")');
                                    return;
                                }
                                updateTable('#log-grid');
                            }
                        });
                        $('#delete-selected-action-confirmation').modal('toggle');
                        return false;
                    });

                    $('#clear-all-action-confirmation-submit-button').bind('click', function () {
                        $.ajax({
                            cache: false,
                            type: 'GET',
                            url: '@(Url.Action("ClearAll", "TaxTransactionLog"))',
                            error: function (jqXHR, textStatus, errorThrown) {
                                showAlert('clear-all-failed', errorThrown);
                            },
                            complete: function (jqXHR, textStatus) {
                                updateTable('#log-grid');
                            }
                        });
                        $('#clear-all-action-confirmation').modal('toggle');
                        return false;
                    });
                });
                                               
        
        
            
                
                @T("Admin.System.Log.DeleteSelected")
            
            
            
                
                @T("Admin.System.Log.ClearLog")