示例#1
0
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("readReport");

            if (String.IsNullOrWhiteSpace(ReportName))
            {
                throw new ArgumentException("Report Name is required for read report");
            }

            if (ReturnDef == true)
            {
                xml.WriteAttribute("returnDef", true);
                xml.WriteElement("report", ReportName, true);
            }
            else
            {
                xml.WriteElement("report", ReportName, true);
                // TODO write arguments
                xml.WriteElement("waitTime", WaitTime);
                xml.WriteElement("pagesize", PageSize);
                xml.WriteElement("returnFormat", ReturnFormat);
                xml.WriteElement("listSeparator", ListSeparator);
            }

            xml.WriteEndElement(); //readReport

            xml.WriteEndElement(); //function
        }
示例#2
0
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("get_list");

            xml.WriteAttribute("object", ObjectName, true);

            xml.WriteAttribute("showprivate", ShowPrivate.Value);

            if (Filters.Count > 0)
            {
                xml.WriteStartElement("filter");
                foreach (FilterInterface Filter in Filters)
                {
                    Filter.WriteXml(ref xml);
                }
                xml.WriteEndElement(); //filter
            }

            if (SortFields.Count > 0)
            {
                xml.WriteStartElement("sorts");
                foreach (SortField Field in SortFields)
                {
                    Field.WriteXml(ref xml);
                }
                xml.WriteEndElement(); //sorts
            }

            if (ReturnFields.Count > 0)
            {
                xml.WriteStartElement("filter");
                foreach (string Field in ReturnFields)
                {
                    xml.WriteElement("field", Field);
                }
                xml.WriteEndElement(); //filter
            }

            if (AdditionalParameters.Count > 0)
            {
                xml.WriteStartElement("additional_parameters");
                foreach (AdditionalParameter Parameter in AdditionalParameters)
                {
                    Parameter.WriteXml(ref xml);
                }
                xml.WriteEndElement(); //additional_parameters
            }

            xml.WriteEndElement(); //get_list

            xml.WriteEndElement(); //function
        }
示例#3
0
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("update_cctransaction");

            xml.WriteAttribute("key", RecordNo, true);

            if (TransactionDate.HasValue)
            {
                xml.WriteStartElement("paymentdate");
                xml.WriteDateSplitElements(TransactionDate.Value);
                xml.WriteEndElement(); //paymentdate
            }

            xml.WriteElement("referenceno", ReferenceNumber);
            xml.WriteElement("payee", Payee);
            xml.WriteElement("description", Description);
            xml.WriteElement("supdocid", AttachmentsId);
            xml.WriteElement("currency", TransactionCurrency);

            if (ExchangeRateValue.HasValue)
            {
                xml.WriteElement("exchrate", ExchangeRateValue);
            }
            else if (ExchangeRateDate.HasValue || !string.IsNullOrWhiteSpace(ExchangeRateType))
            {
                if (ExchangeRateDate.HasValue)
                {
                    xml.WriteStartElement("exchratedate");
                    xml.WriteDateSplitElements(ExchangeRateDate.Value);
                    xml.WriteEndElement();
                }
                xml.WriteElement("exchratetype", ExchangeRateType, true);
            }

            xml.WriteCustomFieldsExplicit(CustomFields);

            if (Lines.Count > 0)
            {
                xml.WriteStartElement("updateccpayitems");
                foreach (ChargeCardTransactionLineUpdate line in Lines)
                {
                    line.WriteXml(ref xml);
                }
                xml.WriteEndElement(); //updateccpayitems
            }

            xml.WriteEndElement(); //update_cctransaction

            xml.WriteEndElement(); //function
        }
示例#4
0
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("delete_employee");

            xml.WriteAttribute("employeeid", EmployeeId, true);

            xml.WriteEndElement(); //delete_employee

            xml.WriteEndElement(); //function
        }
示例#5
0
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("delete_contact");

            xml.WriteAttribute("contactname", ContactName, true);

            xml.WriteEndElement(); //delete_contact

            xml.WriteEndElement(); //function
        }
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("delete_apaccountlabel");

            xml.WriteAttribute("accountlabel", AccountLabel);

            xml.WriteEndElement(); //delete_apaccountlabel

            xml.WriteEndElement(); //function
        }
示例#7
0
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("delete_department");

            xml.WriteAttribute("departmentid", DepartmentId, true);

            xml.WriteEndElement(); //delete_department

            xml.WriteEndElement(); //function
        }
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("delete_aradjustment");

            xml.WriteAttribute("key", RecordNo);

            xml.WriteEndElement(); //delete_araccountlabel

            xml.WriteEndElement(); //function
        }
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("delete_allocation");

            xml.WriteAttribute("key", AllocationId);

            xml.WriteEndElement(); //delete_allocation

            xml.WriteEndElement(); //function
        }
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("delete_customerchargecard");

            xml.WriteAttribute("recordno", RecordNo);

            xml.WriteEndElement(); //delete_customerchargecard

            xml.WriteEndElement(); //function
        }
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("delete_customer");

            xml.WriteAttribute("customerid", CustomerId, true);

            xml.WriteEndElement(); //delete_customer

            xml.WriteEndElement(); //function
        }
示例#12
0
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("delete_invoice");

            xml.WriteAttribute("key", RecordNo, true);

            xml.WriteEndElement(); //delete_invoice

            xml.WriteEndElement(); //function
        }
示例#13
0
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("delete_item");

            xml.WriteAttribute("itemid", ItemId, true);

            xml.WriteEndElement(); //delete_item

            xml.WriteEndElement(); //function
        }
示例#14
0
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("delete_glaccount");

            xml.WriteAttribute("glaccountno", AccountNo, true);

            xml.WriteEndElement(); //delete_glaccount

            xml.WriteEndElement(); //function
        }
示例#15
0
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("delete_expensetype");

            xml.WriteAttribute("expensetype", ExpenseType);

            xml.WriteEndElement(); //delete_expensetype

            xml.WriteEndElement(); //function
        }
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("delete_supdocfolder");

            xml.WriteAttribute("key", FolderName);

            xml.WriteEndElement(); //delete_supdocfolder

            xml.WriteEndElement(); //function
        }
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("update_customerchargecard");

            xml.WriteAttribute("recordno", RecordNo, true);

            xml.WriteElement("exp_month", ExpirationMonth);
            xml.WriteElement("exp_year", ExpirationYear);

            xml.WriteElement("description", Description);

            if (Active == true)
            {
                xml.WriteElement("STATUS", "active");
            }
            else if (Active == false)
            {
                xml.WriteElement("STATUS", "inactive");
            }

            // Are any of these set with data?
            if (
                !String.IsNullOrWhiteSpace(AddressLine1) ||
                !String.IsNullOrWhiteSpace(AddressLine2) ||
                !String.IsNullOrWhiteSpace(City) ||
                !String.IsNullOrWhiteSpace(StateProvince) ||
                !String.IsNullOrWhiteSpace(ZipPostalCode) ||
                !String.IsNullOrWhiteSpace(Country)
                )
            {
                xml.WriteStartElement("mailaddress");
                xml.WriteElement("address1", AddressLine1);
                xml.WriteElement("address2", AddressLine2);
                xml.WriteElement("city", City);
                xml.WriteElement("state", StateProvince);
                xml.WriteElement("zip", ZipPostalCode);
                xml.WriteElement("country", Country);
                xml.WriteEndElement(); //mailaddress
            }

            xml.WriteElement("defaultcard", DefaultCard);
            xml.WriteElement("usebilltoaddr", BillToContactAddressUsedForVerification);

            xml.WriteEndElement(); //update_customerchargecard

            xml.WriteEndElement(); //function
        }
示例#18
0
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("create_arpaymentbatch");

            xml.WriteElement("batchtitle", Title, true);

            if (!string.IsNullOrWhiteSpace(UndepositedFundsGlAccountNo))
            {
                xml.WriteElement("undepfundsacct", UndepositedFundsGlAccountNo);
            }
            else
            {
                xml.WriteElement("bankaccountid", BankAccountId);
            }

            if (GlPostingDate.HasValue)
            {
                xml.WriteStartElement("datecreated");
                xml.WriteDateSplitElements(GlPostingDate.Value, true);
                xml.WriteEndElement(); //datecreated
            }

            xml.WriteEndElement(); //create_arpaymentbatch

            xml.WriteEndElement(); //function
        }
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("apply_arpayment");

            xml.WriteElement("arpaymentkey", RecordNo, true);

            xml.WriteStartElement("paymentdate");
            xml.WriteDateSplitElements(ReceivedDate.Value, true);
            xml.WriteEndElement(); //paymentdate

            xml.WriteElement("batchkey", SummaryRecordNo);
            xml.WriteElement("memo", Memo);
            xml.WriteElement("overpaylocid", OverpaymentLocationId);
            xml.WriteElement("overpaydeptid", OverpaymentDepartmentId);

            if (ApplyToTransactions.Count > 0)
            {
                xml.WriteStartElement("arpaymentitems");
                foreach (ArPaymentItem applyToTransaction in ApplyToTransactions)
                {
                    applyToTransaction.WriteXml(ref xml);
                }

                xml.WriteEndElement(); //arpaymentitems
            }

            xml.WriteEndElement(); //apply_arpayment

            xml.WriteEndElement(); //function
        }
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("record_deposit");

            xml.WriteElement("bankaccountid", BankAccountId, true);

            xml.WriteStartElement("depositdate");
            xml.WriteDateSplitElements(DepositDate);
            xml.WriteEndElement(); //depositdate

            xml.WriteElement("depositid", DepositSlipId, true);

            xml.WriteStartElement("receiptkeys");
            if (TransactionsKeysToDeposit.Count > 0)
            {
                foreach (int key in TransactionsKeysToDeposit)
                {
                    xml.WriteElement("receiptkey", key, true);
                }
            }
            xml.WriteEndElement(); //receiptkeys

            xml.WriteElement("description", Description);

            xml.WriteElement("supdocid", AttachmentsId);

            xml.WriteCustomFieldsExplicit(CustomFields);

            xml.WriteEndElement(); //record_deposit

            xml.WriteEndElement(); //function
        }
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("consolidate");

            xml.WriteElement("bookid", ReportingBookId, true);

            xml.WriteElement("reportingperiodname", ReportingPeriodName, true);

            xml.WriteElement("offline", ProcessOffline);
            xml.WriteElement("updatesucceedingperiods", UpdateSucceedingPeriods);
            xml.WriteElement("changesonly", ChangesOnly);
            xml.WriteElement("email", NotificationEmail);

            if (Entities.Count > 0)
            {
                xml.WriteStartElement("entities");

                foreach (ConsolidationEntity Entity in Entities)
                {
                    Entity.WriteXml(ref xml);
                }

                xml.WriteEndElement(); //entities
            }

            xml.WriteEndElement(); //consolidate

            xml.WriteEndElement(); //function
        }
示例#22
0
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("create");
            xml.WriteStartElement("USERINFO");

            xml.WriteElement("LOGINID", UserId, true);
            xml.WriteElement("USERTYPE", UserType, true);

            xml.WriteStartElement("CONTACTINFO");
            xml.WriteElement("LASTNAME", LastName);
            xml.WriteElement("FIRSTNAME", FirstName);
            xml.WriteElement("EMAIL1", PrimaryEmailAddress);
            xml.WriteElement("CONTACTNAME", ContactName);
            xml.WriteEndElement(); //CONTACTINFO

            xml.WriteElement("DESCRIPTION", UserName);

            if (Active == true)
            {
                xml.WriteElement("STATUS", "active");
            }
            else if (Active == false)
            {
                xml.WriteElement("STATUS", "inactive");
            }

            xml.WriteElement("LOGINDISABLED", WebServicesOnly);
            xml.WriteElement("SSO_ENABLED", SsoEnabled);
            xml.WriteElement("SSO_FEDERATED_ID", SsoFederatedId);

            if (RestrictedEntities.Count > 0)
            {
                foreach (string restrictedEntity in RestrictedEntities)
                {
                    xml.WriteStartElement("USERLOCATIONS");
                    xml.WriteElement("LOCATIONID", restrictedEntity);
                    xml.WriteEndElement(); //USERLOCATIONS
                }
            }

            if (RestrictedDepartments.Count > 0)
            {
                foreach (string restrictedDepartment in RestrictedDepartments)
                {
                    xml.WriteStartElement("USERDEPARTMENTS");
                    xml.WriteElement("DEPARTMENTID", restrictedDepartment);
                    xml.WriteEndElement(); //USERDEPARTMENTS
                }
            }

            xml.WriteCustomFieldsImplicit(CustomFields);

            xml.WriteEndElement(); //USERINFO
            xml.WriteEndElement(); //create

            xml.WriteEndElement(); //function
        }
示例#23
0
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("update");

            xml.WriteStartElement("ARACCOUNTLABEL");

            xml.WriteElement("ACCOUNTLABEL", AccountLabel, true);

            xml.WriteElement("DESCRIPTION", Description);

            xml.WriteElement("GLACCOUNTNO", GlAccountNo);

            xml.WriteElement("OFFSETGLACCOUNTNO", OffsetGlAccountNo);

            if (Active == true)
            {
                xml.WriteElement("STATUS", "active");
            }
            else if (Active == false)
            {
                xml.WriteElement("STATUS", "inactive");
            }

            xml.WriteEndElement(); //ARACCOUNTLABEL

            xml.WriteEndElement(); //update

            xml.WriteEndElement(); //function
        }
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("updateccpayitem");

            xml.WriteAttribute("line_num", LineNo);

            if (!string.IsNullOrWhiteSpace(AccountLabel))
            {
                xml.WriteElement("accountlabel", AccountLabel);
            }
            else
            {
                xml.WriteElement("glaccountno", GlAccountNumber);
            }

            xml.WriteElement("description", Memo);
            xml.WriteElement("paymentamount", TransactionAmount);
            xml.WriteElement("departmentid", DepartmentId);
            xml.WriteElement("locationid", LocationId);
            xml.WriteElement("customerid", CustomerId);
            xml.WriteElement("vendorid", VendorId);
            xml.WriteElement("employeeid", EmployeeId);
            xml.WriteElement("projectid", ProjectId);
            xml.WriteElement("itemid", ItemId);
            xml.WriteElement("classid", ClassId);
            xml.WriteElement("contractid", ContractId);
            xml.WriteElement("warehouseid", WarehouseId);

            xml.WriteCustomFieldsExplicit(CustomFields);

            xml.WriteEndElement(); //updateccpayitem
        }
示例#25
0
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("create");
            xml.WriteStartElement("TIMESHEET");

            xml.WriteElement("EMPLOYEEID", EmployeeId, true);
            xml.WriteElement("BEGINDATE", BeginDate, IaXmlWriter.IntacctDateFormat);

            xml.WriteElement("DESCRIPTION", Description);
            xml.WriteElement("SUPDOCID", AttachmentsId);
            xml.WriteElement("STATE", Action);

            xml.WriteStartElement("TIMESHEETENTRIES");
            if (Entries.Count > 0)
            {
                foreach (TimesheetEntryCreate entry in Entries)
                {
                    entry.WriteXml(ref xml);
                }
            }
            xml.WriteEndElement(); //TIMESHEETENTRIES

            xml.WriteCustomFieldsImplicit(CustomFields);

            xml.WriteEndElement(); //TIMESHEET
            xml.WriteEndElement(); //create

            xml.WriteEndElement(); //function
        }
示例#26
0
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("create");
            xml.WriteStartElement("GLBATCH");

            xml.WriteElement("JOURNAL", JournalSymbol, true);
            xml.WriteElement("BATCH_DATE", PostingDate, IaXmlWriter.IntacctDateFormat, true);
            xml.WriteElement("REVERSEDATE", ReverseDate, IaXmlWriter.IntacctDateFormat);
            xml.WriteElement("BATCH_TITLE", Description, true);
            xml.WriteElement("HISTORY_COMMENT", HistoryComment);
            xml.WriteElement("REFERENCENO", ReferenceNumber);
            xml.WriteElement("SUPDOCID", AttachmentsId);
            xml.WriteElement("STATE", Action);

            xml.WriteCustomFieldsImplicit(CustomFields);

            xml.WriteStartElement("ENTRIES");
            if (Lines.Count > 0)
            {
                foreach (StatisticalJournalEntryLineCreate Line in Lines)
                {
                    Line.WriteXml(ref xml);
                }
            }
            xml.WriteEndElement(); //ENTRIES

            xml.WriteEndElement(); //GLBATCH
            xml.WriteEndElement(); //create

            xml.WriteEndElement(); //function
        }
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("update_supdoc");

            xml.WriteElement("supdocid", AttachmentsId, true);

            xml.WriteElement("supdocname", AttachmentsName);
            xml.WriteElement("supdocfoldername", AttachmentFolderName);
            xml.WriteElement("supdocdescription", Description);

            if (Files.Count > 0)
            {
                xml.WriteStartElement("attachments");

                foreach (IAttachment file in Files)
                {
                    file.WriteXml(ref xml);
                }

                xml.WriteEndElement();
            }

            xml.WriteEndElement(); //update_supdoc

            xml.WriteEndElement(); //function
        }
示例#28
0
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId);

            xml.WriteStartElement("runDdsJob");

            xml.WriteElement("object", ObjectName, true);
            xml.WriteElement("cloudDelivery", CloudDeliveryName, true);
            xml.WriteElement("jobType", JobType, true);

            if (Timestamp.HasValue)
            {
                xml.WriteElement("timeStamp", Timestamp.Value.ToString("s")); //s format = 2002-09-24T06:00:00
            }

            xml.WriteStartElement("fileConfiguration");

            xml.WriteElement("delimiter", Delimiter);
            xml.WriteElement("enclosure", Enclosure);
            xml.WriteElement("includeHeaders", IncludeHeaders);
            xml.WriteElement("fileFormat", FileFormat);
            xml.WriteElement("splitSize", SplitSize);
            xml.WriteElement("compress", Compressed);

            xml.WriteEndElement(); //fileConfiguration

            xml.WriteEndElement(); //runDdsJob

            xml.WriteEndElement(); //function
        }
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("update");
            xml.WriteStartElement("DEPARTMENT");

            xml.WriteElement("DEPARTMENTID", DepartmentId, true);

            xml.WriteElement("TITLE", DepartmentName);
            xml.WriteElement("PARENTID", ParentDepartmentId);
            xml.WriteElement("SUPERVISORID", ManagerEmployeeId);

            xml.WriteElement("CUSTTITLE", DepartmentTitle);

            if (Active == true)
            {
                xml.WriteElement("STATUS", "active");
            }
            else if (Active == false)
            {
                xml.WriteElement("STATUS", "inactive");
            }

            xml.WriteCustomFieldsImplicit(CustomFields);

            xml.WriteEndElement(); //DEPARTMENT
            xml.WriteEndElement(); //update

            xml.WriteEndElement(); //function
        }
示例#30
0
        public override void WriteXml(ref IaXmlWriter xml)
        {
            xml.WriteStartElement("function");
            xml.WriteAttribute("controlid", ControlId, true);

            xml.WriteStartElement("create_reimbursementrequest");

            xml.WriteElement("bankaccountid", BankAccountId, true);
            xml.WriteElement("employeeid", EmployeeId, true);

            xml.WriteElement("memo", Memo);

            xml.WriteElement("paymentmethod", PaymentMethod, true);

            xml.WriteStartElement("paymentdate");
            xml.WriteDateSplitElements(PaymentDate, true);
            xml.WriteEndElement(); //paymentdate

            xml.WriteElement("paymentoption", MergeOption);

            xml.WriteStartElement("eppaymentrequestitems");
            foreach (ReimbursementRequestItem applyToTransaction in ApplyToTransactions)
            {
                applyToTransaction.WriteXml(ref xml);
            }
            xml.WriteEndElement(); //eppaymentrequestitems

            xml.WriteElement("documentnumber", DocumentNo);
            xml.WriteElement("paymentdescription", Memo);
            xml.WriteElement("paymentcontact", NotificationContactName);

            xml.WriteEndElement(); //create_reimbursementrequest

            xml.WriteEndElement(); //function
        }