Exemple #1
0
        private IEnumerable <ReferenceNumberVO> BuildReferenceNumbers(DataTable dataTable)
        {
            var References = new List <ReferenceNumberVO>();

            foreach (DataRow currentRow in dataTable.Rows)
            {
                var currentReference = new ReferenceNumberVO
                {
                    Identity       = (int)currentRow["REQ_ETY_CMM_I"],
                    EntityName     = currentRow["ETY_NM"].ToString(),
                    EntityIdentity = (int)currentRow["ETY_KEY_I"],
                    SoutheasternReferenceNumberType = currentRow["SLU_REF_NBR_TYP"].ToString(),
                    ReferenceNumber        = currentRow["REF_NBR"].ToString(),
                    CreatedDate            = (DateTime?)currentRow["CRT_S"],
                    CreatedUserId          = currentRow["CRT_UID"].ToString(),
                    CreatedProgramCode     = currentRow["CRT_PGM_C"].ToString(),
                    LastUpdatedDate        = (DateTime?)currentRow["LST_UPD_S"],
                    LastUpdatedUserId      = currentRow["LST_UPD_UID"].ToString(),
                    LastUpdatedProgramCode = currentRow["LST_UPD_PGM_C"].ToString()
                };
                References.Add(currentReference);
            }

            return(References);
        }
        private List<ReferenceNumberVO> BuildReferenceNumbers(DataTable dataTable)
        {
            var ReferenceNumbers = new List<ReferenceNumberVO>();

            foreach (DataRow currentRow in dataTable.Rows)
            {
                var ReferenceNumber = new ReferenceNumberVO
                {
                    Identity = (int)currentRow["REQ_ETY_REF_NBR_I"],
                    EntityName = currentRow["ETY_NM"].ToString(),
                    EntityID = (int)currentRow["ETY_KEY_I"],
                    SELURefNumber = currentRow["SLU_REF_NBR_TYP"].ToString(),
                    ReferenceNumber = currentRow["REF_NBR"].ToString(),
                    CreatedDate = (DateTime)currentRow["CRT_S"],
                    CreatedUID = currentRow["CRT_UID"].ToString(),
                    CreatedCode = currentRow["CRT_PGM_C"].ToString(),
                    LastUpdatedDate = (DateTime)currentRow["LST_UPD_S"],
                    LastUpdatedUID = currentRow["LST_UPD_UID"].ToString(),
                    LastUpdatedCode = currentRow["LST_UPD_PGM_C"].ToString()
                };
            }
            return ReferenceNumbers;
        }