public void MapDataFields(System.Data.DataRow currentRow) { documentType = (String)currentRow["DocumentType"]; entityDocumentId = (Int64)currentRow["EntityDocumentId"]; documentId = (Int64)currentRow["DocumentId"]; documentName = (String)currentRow["DocumentName"]; entityFormId = (currentRow["EntityFormId"] is System.DBNull) ? 0 : entityFormId = Convert.ToInt64(currentRow["EntityFormId"]); entityId = (Int64)currentRow["EntityId"]; version = Convert.ToDouble(currentRow["Version"]); contactType = (Server.Core.Enumerations.EntityContactType)(Int32) currentRow["ContactType"]; readyToSendDate = (currentRow["ReadyToSendDate"] is System.DBNull) ? null : readyToSendDate = Convert.ToDateTime(currentRow["ReadyToSendDate"]); sentDate = (currentRow["SentDate"] is System.DBNull) ? null : sentDate = Convert.ToDateTime(currentRow["SentDate"]); receivedDate = (currentRow["ReceivedDate"] is System.DBNull) ? null : receivedDate = Convert.ToDateTime(currentRow["ReceivedDate"]); returnedDate = (currentRow["ReturnedDate"] is System.DBNull) ? null : returnedDate = Convert.ToDateTime(currentRow["ReturnedDate"]); hasImage = Convert.ToBoolean(currentRow["HasImage"]); createAccountInfo.MapDataFields(currentRow, "Create"); modifiedAccountInfo.MapDataFields(currentRow, "Modified"); return; }
override public void MapDataFields(System.Data.DataRow currentRow) { base.MapDataFields(currentRow); entityId = (Int64)currentRow["EntityId"]; correspondenceId = (Int64)currentRow["CorrespondenceId"]; correspondenceName = (String)currentRow["CorrespondenceName"]; correspondenceVersion = Convert.ToDouble(currentRow["CorrespondenceVersion"]); entityFormId = IdFromSql(currentRow, "EntityFormId"); relatedEntityId = IdFromSql(currentRow, "RelatedEntityId"); relatedObjectType = (String)currentRow["RelatedObjectType"]; relatedObjectId = IdFromSql(currentRow, "RelatedObjectId"); readyToSendDate = (DateTime)currentRow["ReadyToSendDate"]; sentDate = (currentRow["SentDate"] is System.DBNull) ? null : sentDate = Convert.ToDateTime(currentRow["SentDate"]); receivedDate = (currentRow["ReceivedDate"] is System.DBNull) ? null : returnedDate = Convert.ToDateTime(currentRow["ReceivedDate"]); returnedDate = (currentRow["ReturnedDate"] is System.DBNull) ? null : returnedDate = Convert.ToDateTime(currentRow["ReturnedDate"]); contactType = (Mercury.Server.Core.Enumerations.EntityContactType)(Int32) currentRow["ContactType"]; entityAddressId = IdFromSql(currentRow, "EntityAddressId"); entityContactInformationId = IdFromSql(currentRow, "EntityContactInformationId"); attention = (String)currentRow["Attention"]; addressLine1 = (String)currentRow["AddressLine1"]; addressLine2 = (String)currentRow["AddressLine2"]; addressCity = (String)currentRow["AddressCity"]; addressState = (String)currentRow["AddressState"]; addressZipCode = (String)currentRow["AddressZipCode"]; addressZipPlus4 = (String)currentRow["AddressZipPlus4"]; addressPostalCode = (String)currentRow["AddressPostalCode"]; ContactFaxNumber = (String)currentRow["ContactFaxNumber"]; ContactEmail = (String)currentRow["ContactEmail"]; Remarks = StringFromSql(currentRow, "Remarks"); AutomationId = GuidFromSql(currentRow, "AutomationId"); AutomationStatus = (Automation.Enumerations.AutomationStatus)Convert.ToInt32(currentRow["AutomationStatus"]); AutomationDate = DateTimeFromSql(currentRow, "AutomationDate"); AutomationException = StringFromSql(currentRow, "AutomationException"); if (currentRow.Table.Columns.Contains("HasImage")) { hasImage = Convert.ToBoolean(currentRow["HasImage"]); } return; }