コード例 #1
0
        public Spartane.Core.Classes.Spartan_BR_Peer_Review.Spartan_BR_Peer_ReviewPagingModel 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_BR_Peer_Review>("sp_ListSelAll_Spartan_BR_Peer_Review", padWhere, padOrder, padstartRowIndex, padmaximumRows);

            Spartan_BR_Peer_ReviewPagingModel result = null;

            if (data != null)
            {
                result = new Spartan_BR_Peer_ReviewPagingModel
                {
                    Spartan_BR_Peer_Reviews =
                        data.Select(m => new Spartane.Core.Classes.Spartan_BR_Peer_Review.Spartan_BR_Peer_Review
                    {
                        Key_Peer_Review      = m.Spartan_BR_Peer_Review_Key_Peer_Review
                        , User_that_reviewed = m.Spartan_BR_Peer_Review_User_that_reviewed
                        , User_that_reviewed_Spartan_User = new Core.Classes.Spartan_User.Spartan_User()
                        {
                            Id_User = m.Spartan_BR_Peer_Review_User_that_reviewed.GetValueOrDefault(), Name = m.Spartan_BR_Peer_Review_User_that_reviewed_Name
                        }
                        , Acceptance_Criteria = m.Spartan_BR_Peer_Review_Acceptance_Criteria
                        , It_worked           = m.Spartan_BR_Peer_Review_It_worked ?? false
                        , Rejection_reason    = m.Spartan_BR_Peer_Review_Rejection_reason
                        , Rejection_reason_Spartan_BR_Rejection_Reason = new Core.Classes.Spartan_BR_Rejection_Reason.Spartan_BR_Rejection_Reason()
                        {
                            Key_Rejection_Reason = m.Spartan_BR_Peer_Review_Rejection_reason.GetValueOrDefault(), Description = m.Spartan_BR_Peer_Review_Rejection_reason_Description
                        }
                        , Comments      = m.Spartan_BR_Peer_Review_Comments
                        , Evidence      = m.Spartan_BR_Peer_Review_Evidence
                        , Business_Rule = m.Spartan_BR_Peer_Review_Business_Rule

                                          //,Id = m.Id
                    }).ToList()
                };
            }
            return(result);
        }
コード例 #2
0
        public Spartane.Core.Domain.Spartan_BR_Peer_Review.Spartan_BR_Peer_ReviewPagingModel ListaSelAll(int startRowIndex, int maximumRows, string Where, string Order)
        {
            Spartan_BR_Peer_ReviewPagingModel result = null;

            return(result);
        }