public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("delete_statglaccount"); xml.WriteAttribute("glaccountno", AccountNo, true); xml.WriteEndElement(); //delete_statglaccount xml.WriteEndElement(); //function }
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("create_paymentrequest"); if (!string.IsNullOrWhiteSpace(ChargeCardId)) { xml.WriteElement("chargecardid", ChargeCardId); } else { xml.WriteElement("bankaccountid", BankAccountId); } xml.WriteElement("vendorid", VendorId, true); xml.WriteElement("memo", Memo); xml.WriteElement("paymentmethod", PaymentMethod, true); xml.WriteElement("grouppayments", GroupPayments); xml.WriteStartElement("paymentdate"); xml.WriteDateSplitElements(PaymentDate, true); xml.WriteEndElement(); //paymentdate xml.WriteElement("paymentoption", MergeOption); if (ApplyToTransactions.Count > 0) { xml.WriteStartElement("paymentrequestitems"); foreach (ApPaymentRequestItem applyToTransaction in ApplyToTransactions) { applyToTransaction.WriteXml(ref xml); } xml.WriteEndElement(); //paymentrequestitems } xml.WriteElement("documentnumber", DocumentNo); // TODO: review paymentdescription vs memo xml.WriteElement("paymentdescription", Memo); xml.WriteElement("paymentcontact", NotificationContactName); xml.WriteEndElement(); //create_paymentrequest xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create"); xml.WriteStartElement("CONTRACT"); xml.WriteElement("CONTRACTID", ContractId); xml.WriteElement("CUSTOMERID", CustomerId, true); xml.WriteElement("NAME", ContractName, true); xml.WriteElement("BILLTOCONTACTNAME", BillToContactName); xml.WriteElement("DESCRIPTION", Description); xml.WriteElement("SHIPTOCONTACTNAME", ShipToContactName); xml.WriteElement("BEGINDATE", BeginDate, IaXmlWriter.IntacctDateFormat, true); xml.WriteElement("ENDDATE", EndDate, IaXmlWriter.IntacctDateFormat, true); xml.WriteElement("BILLINGFREQUENCY", BillingFrequency, true); xml.WriteElement("TERMNAME", PaymentTerm, true); xml.WriteElement("PRCLIST", BillingPriceList); xml.WriteElement("MEAPRCLIST", FairValuePriceList); xml.WriteElement("SUPDOCID", AttachmentsId); xml.WriteElement("LOCATIONID", LocationId); xml.WriteElement("DEPARTMENTID", DepartmentId); xml.WriteElement("PROJECTID", ProjectId); xml.WriteElement("VENDORID", VendorId); xml.WriteElement("EMPLOYEEID", EmployeeId); xml.WriteElement("CLASSID", ClassId); xml.WriteElement("CURRENCY", TransactionCurrency); xml.WriteElement("EXCHRATETYPE", ExchangeRateType); xml.WriteElement("RENEWAL", Renewal); if (Renewal == true) { xml.WriteElement("RENEWALMACRO", RenewalTemplate); xml.WriteElement("RENEWTERMLENGTH", RenewalTermLength); xml.WriteElement("RENEWTERMPERIOD", RenewalTermPeriod); } xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //CONTRACT xml.WriteEndElement(); //create xml.WriteEndElement(); //function }
private void WriteCrudXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement(GetFunction()); xml.WriteElement("object", "APPYMT"); xml.WriteElement("keys", _recordNo); xml.WriteEndElement(); //delete xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("lineitem"); if (!string.IsNullOrWhiteSpace(AccountLabel)) { xml.WriteElement("accountlabel", AccountLabel, true); } else { xml.WriteElement("glaccountno", GlAccountNumber, true); } xml.WriteElement("offsetglaccountno", OffsetGlAccountNumber); xml.WriteElement("amount", TransactionAmount); xml.WriteElement("allocationid", AllocationId); xml.WriteElement("memo", Memo); xml.WriteElement("locationid", LocationId); xml.WriteElement("departmentid", DepartmentId); xml.WriteElement("key", Key); xml.WriteElement("totalpaid", TotalPaid); xml.WriteElement("totaldue", TotalDue); xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteElement("revrectemplate", RevRecTemplateId); xml.WriteElement("defrevaccount", DeferredRevGlAccountNo); if (RevRecStartDate.HasValue) { xml.WriteStartElement("revrecstartdate"); xml.WriteDateSplitElements(RevRecStartDate.Value); xml.WriteEndElement(); //revrecstartdate } if (RevRecEndDate.HasValue) { xml.WriteStartElement("revrecenddate"); xml.WriteDateSplitElements(RevRecEndDate.Value); xml.WriteEndElement(); //revrecenddate } xml.WriteElement("projectid", ProjectId); xml.WriteElement("customerid", CustomerId); xml.WriteElement("vendorid", VendorId); xml.WriteElement("employeeid", EmployeeId); xml.WriteElement("itemid", ItemId); xml.WriteElement("classid", ClassId); xml.WriteElement("contractid", ContractId); xml.WriteElement("warehouseid", WarehouseId); xml.WriteEndElement(); //lineitem }
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 }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("delete_timesheet"); xml.WriteAttribute("key", RecordNo); xml.WriteEndElement(); //delete_timesheet xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("delete"); xml.WriteElement("object", "GLBATCH"); xml.WriteElement("keys", RecordNo, true); xml.WriteEndElement(); //delete xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("getObjectTrail"); xml.WriteElement("object", ObjectName, true); xml.WriteElement("objectKey", ObjectKey, true); xml.WriteEndElement(); //getObjectTrail xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create"); xml.WriteStartElement("APPYMT"); xml.WriteElement("PAYMENTMETHOD", _apPaymentInfo.PaymentMethod, true); xml.WriteElement("FINANCIALENTITY", _apPaymentInfo.FinancialEntityId, true); xml.WriteElement("VENDORID", _apPaymentInfo.VendorId, true); xml.WriteElement("PAYMENTREQUESTMETHOD", _apPaymentInfo.MergeOption); xml.WriteElement("GROUPPAYMENTS", _apPaymentInfo.GroupPayments); if (_apPaymentInfo.ExchangeRateDate.HasValue) { xml.WriteElement("EXCH_RATE_DATE", _apPaymentInfo.ExchangeRateDate, IaXmlWriter.IntacctDateFormat); } xml.WriteElement("EXCH_RATE_TYPE_ID", _apPaymentInfo.ExchangeRateType); xml.WriteElement("DOCNUMBER", _apPaymentInfo.DocumentNo); xml.WriteElement("DESCRIPTION", _apPaymentInfo.Memo); xml.WriteElement("PAYMENTCONTACT", _apPaymentInfo.NotificationContactName); xml.WriteElement("PAYMENTDATE", _apPaymentInfo.PaymentDate, IaXmlWriter.IntacctDateFormat, true); xml.WriteElement("CURRENCY", _apPaymentInfo.TransactionCurrency); xml.WriteElement("BASECURR", _apPaymentInfo.BaseCurrency); xml.WriteElement("AMOUNTTOPAY", _apPaymentInfo.TransactionAmountPaid); xml.WriteElement("ACTION", _apPaymentInfo.Action); if (_apPaymentInfo.ApPaymentDetails.Count > 0) { xml.WriteStartElement("APPYMTDETAILS"); foreach (IApPaymentDetail apPaymentDetail in _apPaymentInfo.ApPaymentDetails) { apPaymentDetail.WriteXml(ref xml); } xml.WriteEndElement(); //APPYMTDETAILS } xml.WriteEndElement(); //APPYMT xml.WriteEndElement(); //create xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create_ictransaction"); xml.WriteElement("transactiontype", TransactionDefinition, true); xml.WriteStartElement("datecreated"); xml.WriteDateSplitElements(TransactionDate.Value, true); xml.WriteEndElement(); //datecreated xml.WriteElement("createdfrom", CreatedFrom); xml.WriteElement("documentno", DocumentNumber); xml.WriteElement("referenceno", ReferenceNumber); xml.WriteElement("message", Message); xml.WriteElement("externalid", ExternalId); xml.WriteElement("basecurr", BaseCurrency); xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteElement("state", State); xml.WriteStartElement("ictransitems"); if (Lines.Count > 0) { foreach (InventoryTransactionLineCreate line in Lines) { line.WriteXml(ref xml); } } xml.WriteEndElement(); //ictransitems if (Subtotals.Count > 0) { xml.WriteStartElement("subtotals"); foreach (TransactionSubtotalCreate subtotal in Subtotals) { subtotal.WriteXml(ref xml); } xml.WriteEndElement(); //subtotals } xml.WriteEndElement(); //create_ictransaction xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create"); xml.WriteStartElement("LOCATION"); xml.WriteElement("LOCATIONID", LocationId, true); xml.WriteElement("NAME", LocationName, true); xml.WriteElement("PARENTID", ParentLocationId); xml.WriteElement("SUPERVISORID", ManagerEmployeeId); if (!string.IsNullOrWhiteSpace(LocationContactName)) { xml.WriteStartElement("CONTACTINFO"); xml.WriteElement("CONTACTNAME", LocationContactName); xml.WriteEndElement(); //CONTACTINFO } if (!string.IsNullOrWhiteSpace(ShipToContactName)) { xml.WriteStartElement("SHIPTO"); xml.WriteElement("CONTACTNAME", ShipToContactName); xml.WriteEndElement(); //SHIPTO } xml.WriteElement("STARTDATE", StartDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("ENDDATE", EndDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("CUSTTITLE", LocationTitle); if (Active == true) { xml.WriteElement("STATUS", "active"); } else if (Active == false) { xml.WriteElement("STATUS", "inactive"); } xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //LOCATION xml.WriteEndElement(); //create xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttributeString("controlid", ControlId); xml.WriteStartElement("getAPISession"); if (EntityId != null) { xml.WriteElementString("locationid", EntityId); } xml.WriteEndElement(); //getAPISession xml.WriteEndElement(); //function }
public void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("operation"); xml.WriteAttributeString("transaction", this.Transaction == true ? "true" : "false"); Authentication.WriteXml(ref xml); xml.WriteStartElement("content"); foreach (IFunction apiFunction in Content) { apiFunction.WriteXml(ref xml); } xml.WriteEndElement(); // content xml.WriteEndElement(); // operation }
public void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("order"); xml.WriteElement("field", _fieldName); xml.WriteElement(GetDirection(), "", true); xml.WriteEndElement(); // order }
public void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("APPYMTDETAIL"); xml.WriteElement("RECORDKEY", _info.RecordNo, true); xml.WriteElement("ENTRYKEY", _info.LineRecordNo); if (_info.ApplyToDiscountDate.HasValue) { xml.WriteElement("DISCOUNTDATE", _info.ApplyToDiscountDate, IaXmlWriter.IntacctDateFormat); } else { xml.WriteElement("DISCOUNTTOAPPLY", _info.DiscountToApply); } if (_info.DetailTransaction != null) { _info.DetailTransaction.WriteXml(ref xml); } else { xml.WriteElement("CREDITTOAPPLY", _info.CreditToApply); } xml.WriteElement("TRX_PAYMENTAMOUNT", _info.PaymentAmount); xml.WriteEndElement(); //APPYMTDETAIL }
protected void WriteXmlMailAddress(ref IaXmlWriter xml) { if ( !string.IsNullOrWhiteSpace(AddressLine1) || !string.IsNullOrWhiteSpace(AddressLine2) || !string.IsNullOrWhiteSpace(City) || !string.IsNullOrWhiteSpace(StateProvince) || !string.IsNullOrWhiteSpace(ZipPostalCode) || !string.IsNullOrWhiteSpace(Country) || !string.IsNullOrWhiteSpace(IsoCountryCode) ) { xml.WriteStartElement("MAILADDRESS"); xml.WriteElementString("ADDRESS1", AddressLine1); xml.WriteElementString("ADDRESS2", AddressLine2); xml.WriteElementString("CITY", City); xml.WriteElementString("STATE", StateProvince); xml.WriteElementString("ZIP", ZipPostalCode); xml.WriteElementString("COUNTRY", Country); xml.WriteElementString("ISOCOUNTRYCODE", IsoCountryCode); xml.WriteEndElement(); //MAILADDRESS } }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("update_supdocfolder"); xml.WriteElement("supdocfoldername", FolderName, true); xml.WriteElement("supdocfolderdescription", Description); xml.WriteElement("supdocparentfoldername", ParentFolderName); xml.WriteEndElement(); //update_supdocfolder xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("ccpayitem"); if (!string.IsNullOrWhiteSpace(AccountLabel)) { xml.WriteElement("accountlabel", AccountLabel, true); } else { xml.WriteElement("glaccountno", GlAccountNumber, true); } xml.WriteElement("description", Memo); xml.WriteElement("paymentamount", TransactionAmount, true); 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(); //ccpayitem }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("TIMESHEETENTRY"); xml.WriteElement("ENTRYDATE", EntryDate, IaXmlWriter.IntacctDateFormat); xml.WriteElement("QTY", Quantity, true); xml.WriteElement("DESCRIPTION", Description); xml.WriteElement("NOTES", Notes); xml.WriteElement("TASKKEY", TaskRecordNo); xml.WriteElement("TIMETYPE", TimeTypeName); xml.WriteElement("BILLABLE", Billable); xml.WriteElement("EXTBILLRATE", OverrideBillingRate); xml.WriteElement("EXTCOSTRATE", OverrideLaborCostRate); xml.WriteElement("DEPARTMENTID", DepartmentId); xml.WriteElement("LOCATIONID", LocationId); xml.WriteElement("PROJECTID", ProjectId); xml.WriteElement("CUSTOMERID", CustomerId); xml.WriteElement("VENDORID", VendorId); xml.WriteElement("ITEMID", ItemId); xml.WriteElement("CLASSID", ClassId); xml.WriteElement("CONTRACTID", ContractId); xml.WriteElement("WAREHOUSEID", WarehouseId); xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //TIMESHEETENTRY }
// TODO Module Preferences public void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("operation"); xml.WriteAttribute("transaction", Transaction); Authentication.WriteXml(ref xml); xml.WriteStartElement("content"); foreach (AbstractFunction function in Content) { function.WriteXml(ref xml); } xml.WriteEndElement(); // content xml.WriteEndElement(); // operation }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create"); xml.WriteStartElement("GLACCOUNT"); xml.WriteElement("ACCOUNTNO", AccountNo, true); xml.WriteElement("TITLE", Title, true); xml.WriteElement("ACCOUNTTYPE", AccountType, true); xml.WriteElement("NORMALBALANCE", NormalBalance, true); xml.WriteElement("CLOSINGTYPE", ClosingType, true); xml.WriteElement("CLOSINGACCOUNTNO", CloseIntoGlAccountNo); xml.WriteElement("CATEGORY", SystemCategory); xml.WriteElement("TAXCODE", TaxReturnCode); xml.WriteElement("MRCCODE", M3ReturnCode); if (Active == true) { xml.WriteElement("STATUS", "active"); } else if (Active == false) { xml.WriteElement("STATUS", "inactive"); } xml.WriteElement("TAXABLE", Taxable); xml.WriteElement("REQUIREDEPT", RequireDepartment); xml.WriteElement("REQUIRELOC", RequireLocation); xml.WriteElement("REQUIREPROJECT", RequireProject); xml.WriteElement("REQUIRECUSTOMER", RequireCustomer); xml.WriteElement("REQUIREVENDOR", RequireVendor); xml.WriteElement("REQUIREEMPLOYEE", RequireEmployee); xml.WriteElement("REQUIREITEM", RequireItem); xml.WriteElement("REQUIRECLASS", RequireClass); xml.WriteElement("REQUIRECONTRACT", RequireContract); xml.WriteElement("REQUIREWAREHOUSE", RequireWarehouse); xml.WriteCustomFieldsImplicit(CustomFields); xml.WriteEndElement(); //GLACCOUNT xml.WriteEndElement(); //create xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create_expensereport"); xml.WriteElement("employeeid", EmployeeId, true); xml.WriteStartElement("datecreated"); xml.WriteDateSplitElements(TransactionDate.Value); xml.WriteEndElement(); //datecreated if (GlPostingDate.HasValue) { xml.WriteStartElement("dateposted"); xml.WriteDateSplitElements(GlPostingDate.Value); xml.WriteEndElement(); //dateposted } xml.WriteElement("batchkey", SummaryRecordNo); xml.WriteElement("expensereportno", ExpenseReportNumber); xml.WriteElement("state", Action); xml.WriteElement("description", ReasonForExpense); xml.WriteElement("memo", Memo); xml.WriteElement("externalid", ExternalId); xml.WriteElement("basecurr", BaseCurrency); xml.WriteElement("currency", ReimbursementCurrency); xml.WriteCustomFieldsExplicit(CustomFields); xml.WriteElement("supdocid", AttachmentsId); xml.WriteStartElement("expenses"); if (Lines.Count > 0) { foreach (ExpenseReportLineCreate line in Lines) { line.WriteXml(ref xml); } } xml.WriteEndElement(); //expenses xml.WriteEndElement(); //create_expensereport xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("read"); xml.WriteElement("object", ObjectName, true); xml.WriteElement("keys", Keys.Count > 0 ? string.Join(",", Keys) : "", true); xml.WriteElement("fields", Fields.Count > 0 ? string.Join(",", Fields) : "*", true); xml.WriteElement("returnFormat", "xml"); xml.WriteElement("docparid", DocParId); xml.WriteEndElement(); //read xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("confirm_appaymentrequest"); xml.WriteStartElement("appaymentkeys"); xml.WriteElement("appaymentkey", RecordNo, true); xml.WriteEndElement(); //appaymentkeys xml.WriteEndElement(); //confirm_appaymentrequest xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("readMore"); if (String.IsNullOrWhiteSpace(ResultId)) { throw new ArgumentException("Result ID is required for read more"); } xml.WriteElement("resultId", ResultId, true); xml.WriteEndElement(); //readMore xml.WriteEndElement(); //function }
private void WriteLegacyXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement(GetFunction()); xml.WriteStartElement("appaymentkeys"); xml.WriteElement("appaymentkey", _recordNo, true); xml.WriteEndElement(); //appaymentkeys xml.WriteEndElement(); // GetFunction xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("read"); xml.WriteElement("object", ObjectName, true); xml.WriteElement("keys", KeysString(), true); xml.WriteElement("fields", FieldsString(), true); xml.WriteElement("returnFormat", ReturnFormat); xml.WriteElement("docparid", DocParId); xml.WriteEndElement(); //read xml.WriteEndElement(); //function }
public override void WriteXml(ref IaXmlWriter xml) { xml.WriteStartElement("function"); xml.WriteAttribute("controlid", ControlId, true); xml.WriteStartElement("create_apadjustmentbatch"); xml.WriteElement("batchtitle", Title, true); xml.WriteStartElement("datecreated"); xml.WriteDateSplitElements(GlPostingDate); xml.WriteEndElement(); //datecreated xml.WriteEndElement(); //create_apadjustmentbatch xml.WriteEndElement(); //function }