public Spartane.Core.Classes.Spartan_Report_Permissions.Spartan_Report_PermissionsPagingModel ListaSelAll(int startRowIndex, int maximumRows, string Where, string Order)
        {
            var padstartRowIndex = _dataProvider.GetParameter();

            padstartRowIndex.ParameterName = "startRowIndex";
            padstartRowIndex.DbType        = DbType.Int32;
            padstartRowIndex.Value         = startRowIndex;

            var padmaximumRows = _dataProvider.GetParameter();

            padmaximumRows.ParameterName = "maximumRows";
            padmaximumRows.DbType        = DbType.Int32;
            padmaximumRows.Value         = maximumRows;

            var padWhere = _dataProvider.GetParameter();

            padWhere.ParameterName = "Where";
            padWhere.DbType        = DbType.String;
            padWhere.Value         = Where;

            var padOrder = _dataProvider.GetParameter();

            padOrder.ParameterName = "Order";
            padOrder.DbType        = DbType.String;
            padOrder.Value         = Order;

            var data = _dbContext.ExecuteStoredProcedureList <Spartane.Core.Classes.StoredProcedure.SpListSelAllSpartan_Report_Permissions>("sp_ListSelAll_Spartan_Report_Permissions", padWhere, padOrder, padstartRowIndex, padmaximumRows);

            Spartan_Report_PermissionsPagingModel result = null;

            if (data != null)
            {
                result = new Spartan_Report_PermissionsPagingModel
                {
                    Spartan_Report_Permissionss =
                        data.Select(m => new Spartane.Core.Classes.Spartan_Report_Permissions.Spartan_Report_Permissions
                    {
                        ReportPermissionId      = m.Spartan_Report_Permissions_ReportPermissionId
                        , User_Role             = m.Spartan_Report_Permissions_User_Role
                        , Report                = m.Spartan_Report_Permissions_Report
                        , Report_Spartan_Report = new Core.Classes.Spartan_Report.Spartan_Report()
                        {
                            ReportId = m.Spartan_Report_Permissions_Report.GetValueOrDefault(), Report_Name = m.Spartan_Report_Permissions_Report_Report_Name
                        }
                        , Permission_Type = m.Spartan_Report_Permissions_Permission_Type
                        , Permission_Type_Spartan_Report_Permission_Type = new Core.Classes.Spartan_Report_Permission_Type.Spartan_Report_Permission_Type()
                        {
                            PermissionTypeId = m.Spartan_Report_Permissions_Permission_Type.GetValueOrDefault(), Description = m.Spartan_Report_Permissions_Permission_Type_Description
                        }

                        //,Id = m.Id
                    }).ToList()
                };
            }
            return(result);
        }
Esempio n. 2
0
        public Spartane.Core.Domain.Spartan_Report_Permissions.Spartan_Report_PermissionsPagingModel ListaSelAll(int startRowIndex, int maximumRows, string Where, string Order)
        {
            Spartan_Report_PermissionsPagingModel result = null;

            return(result);
        }