public XElement ToXml() { return(new XElement("BM1", new XElement("ID", ID), new XElement("AUDIT_ID", AUDIT_ID), new XElement("ACT_DATE", Convert.ToDateTime(ACT_DATE).ToString("dd-MMM-yy")), new XElement("ACT_NO", ACT_NO), new XElement("ACT_VIOLATION_DESC", ACT_VIOLATION_DESC), new XElement("ACT_VIOLATION_TYPE", ACT_VIOLATION_TYPE), new XElement("ACT_SUBMITTED_DATE", Convert.ToDateTime(ACT_SUBMITTED_DATE).ToString("dd-MMM-yy")), new XElement("ACT_DELIVERY_DATE", Convert.ToDateTime(ACT_DELIVERY_DATE).ToString("dd-MMM-yy")), ACT_AMOUNT != null ? new XElement("ACT_AMOUNT", ACT_AMOUNT.Split(',')) : new XElement("ACT_AMOUNT", null), new XElement("ACT_STATE_AMOUNT", ACT_STATE_AMOUNT), new XElement("ACT_LOCAL_AMOUNT", ACT_LOCAL_AMOUNT), new XElement("ACT_ORG_AMOUNT", ACT_ORG_AMOUNT), new XElement("ACT_OTHER_AMOUNT", ACT_OTHER_AMOUNT), new XElement("ACT_RCV_NAME", ACT_RCV_NAME), new XElement("ACT_RCV_ROLE", ACT_RCV_ROLE), new XElement("ACT_RCV_GIVEN_NAME", ACT_RCV_GIVEN_NAME), new XElement("ACT_RCV_PHONE", ACT_RCV_PHONE), new XElement("ACT_RCV_ADDRESS", ACT_RCV_ADDRESS), //new XElement("ACT_CONTROL_AUDITOR", ACT_CONTROL_AUDITOR), COMPLETION_DATE != null ? new XElement("COMPLETION_DATE", Convert.ToDateTime(COMPLETION_DATE).ToString("dd-MMM-yy")) : new XElement("COMPLETION_DATE", null), new XElement("COMPLETION_ORDER", COMPLETION_ORDER), COMPLETION_AMOUNT != null ? new XElement("COMPLETION_AMOUNT", COMPLETION_AMOUNT.Split(',')) : new XElement("COMPLETION_AMOUNT", null), new XElement("COMPLETION_STATE_AMOUNT", COMPLETION_STATE_AMOUNT), new XElement("COMPLETION_LOCAL_AMOUNT", COMPLETION_LOCAL_AMOUNT), new XElement("COMPLETION_ORG_AMOUNT", COMPLETION_ORG_AMOUNT), new XElement("COMPLETION_OTHER_AMOUNT", COMPLETION_OTHER_AMOUNT), REMOVED_AMOUNT != null ? new XElement("REMOVED_AMOUNT", REMOVED_AMOUNT.Split(',')) : new XElement("REMOVED_AMOUNT", null), new XElement("REMOVED_LAW_AMOUNT", REMOVED_LAW_AMOUNT), REMOVED_LAW_DATE != null ? new XElement("REMOVED_LAW_DATE", Convert.ToDateTime(REMOVED_LAW_DATE).ToString("dd-MMM-yy")) : new XElement("REMOVED_LAW_DATE", null), new XElement("REMOVED_LAW_NO", REMOVED_LAW_NO), new XElement("REMOVED_INVALID_AMOUNT", REMOVED_INVALID_AMOUNT), REMOVED_INVALID_DATE != null ? new XElement("REMOVED_INVALID_DATE", Convert.ToDateTime(REMOVED_INVALID_DATE).ToString("dd-MMM-yy")) : new XElement("REMOVED_INVALID_DATE", null), new XElement("REMOVED_INVALID_NO", REMOVED_INVALID_NO), ACT_C2_AMOUNT != null ? new XElement("ACT_C2_AMOUNT", ACT_C2_AMOUNT.Split(',')) : new XElement("ACT_C2_AMOUNT", null), ACT_C2_NONEXPIRED != null ? new XElement("ACT_C2_NONEXPIRED", ACT_C2_NONEXPIRED.Split(',')) : new XElement("ACT_C2_NONEXPIRED", null), ACT_C2_EXPIRED != null ? new XElement("ACT_C2_EXPIRED", ACT_C2_EXPIRED.Split(',')) : new XElement("ACT_C2_EXPIRED", null), new XElement("BENEFIT_FIN", BENEFIT_FIN), BENEFIT_FIN_AMOUNT != null ? new XElement("BENEFIT_FIN_AMOUNT", BENEFIT_FIN_AMOUNT.Split(',')) : new XElement("BENEFIT_FIN_AMOUNT", null), new XElement("BENEFIT_NONFIN", BENEFIT_NONFIN), new XElement("IS_ACTIVE", IS_ACTIVE), new XElement("CREATED_DATE", CREATED_DATE) )); }
public XElement ToXml() { return(new XElement("BM3", new XElement("ID", ID), new XElement("AUDIT_ID", AUDIT_ID), new XElement("REFERENCE_DESC", REFERENCE_DESC), new XElement("REFERENCE_TYPE", REFERENCE_TYPE), new XElement("REFERENCE_COUNT", REFERENCE_COUNT), REFERENCE_AMOUNT != null ? new XElement("REFERENCE_AMOUNT", REFERENCE_AMOUNT.Split(',')) : new XElement("REFERENCE_AMOUNT", null), REFERENCE_SUBMITTED_DATE != null ? new XElement("REFERENCE_SUBMITTED_DATE", Convert.ToDateTime(REFERENCE_SUBMITTED_DATE).ToString("dd-MMM-yy")) : new XElement("REFERENCE_SUBMITTED_DATE", null), REFERENCE_DELIVERY_DATE != null ? new XElement("REFERENCE_DELIVERY_DATE", Convert.ToDateTime(REFERENCE_DELIVERY_DATE).ToString("dd-MMM-yy")) : new XElement("REFERENCE_DELIVERY_DATE", null), new XElement("REFERENCE_RCV_NAME", REFERENCE_RCV_NAME), new XElement("REFERENCE_RCV_ROLE", REFERENCE_RCV_ROLE), new XElement("REFERENCE_RCV_GIVEN_NAME", REFERENCE_RCV_GIVEN_NAME), new XElement("REFERENCE_RCV_PHONE", REFERENCE_RCV_PHONE), new XElement("REFERENCE_RCV_ADDRESS", REFERENCE_RCV_ADDRESS), COMPLETION_DATE != null ? new XElement("COMPLETION_DATE", Convert.ToDateTime(COMPLETION_DATE).ToString("dd-MMM-yy")) : new XElement("COMPLETION_DATE", null), new XElement("COMPLETION_ORDER", COMPLETION_ORDER), new XElement("COMPLETION_DONE", COMPLETION_DONE), COMPLETION_DONE_AMOUNT != null ? new XElement("COMPLETION_DONE_AMOUNT", COMPLETION_DONE_AMOUNT.Split(',')) : new XElement("COMPLETION_DONE_AMOUNT", null), new XElement("COMPLETION_PROGRESS", COMPLETION_PROGRESS), COMPLETION_PROGRESS_AMOUNT != null ? new XElement("COMPLETION_PROGRESS_AMOUNT", COMPLETION_PROGRESS_AMOUNT.Split(',')) : new XElement("COMPLETION_PROGRESS_AMOUNT", null), new XElement("C2_NONEXPIRED", C2_NONEXPIRED), C2_NONEXPIRED_AMOUNT != null ? new XElement("C2_NONEXPIRED_AMOUNT", C2_NONEXPIRED_AMOUNT.Split(',')) : new XElement("C2_NONEXPIRED_AMOUNT", null), new XElement("C2_EXPIRED", C2_EXPIRED), C2_EXPIRED_AMOUNT != null ? new XElement("C2_EXPIRED_AMOUNT", C2_EXPIRED_AMOUNT.Split(',')) : new XElement("C2_EXPIRED_AMOUNT", null), new XElement("BENEFIT_FIN", BENEFIT_FIN), BENEFIT_FIN_AMOUNT != null ? new XElement("BENEFIT_FIN_AMOUNT", BENEFIT_FIN_AMOUNT.Split(',')) : new XElement("BENEFIT_FIN_AMOUNT", null), new XElement("BENEFIT_NONFIN", BENEFIT_NONFIN), new XElement("IS_ACTIVE", IS_ACTIVE), new XElement("CREATED_DATE", Convert.ToDateTime(CREATED_DATE).ToString("dd-MMM-yy")) )); }