如何使用QuickBooks SDK 13.0通过我的Windows应用程序(C#或VB.Net)删除Quickbook Employee

时间:2016-11-01 05:51:43

标签: c# .net sdk quickbooks

请帮助:

我使用我的Windows应用程序(C#)在add and editQuickBooks中执行了QuickBooks SDK功能。

现在,我想知道如何使用delete operation QuickBooks QuickBooks SDK进行<?xml version="1.0"?> <?qbxml version="13.0"?> <QBXML> <QBXMLMsgsRq onError="stopOnError"> <EmployeeModRq requestID="1"> <EmployeeMod> <ListID>800002A0-1477976825</ListID> <EditSequence>1477977063</EditSequence> <IsActive>False</IsActive> <FirstName>Bobby</FirstName> <MiddleName></MiddleName> <LastName>Westbrooks(111-11-1111)</LastName> <EmployeeAddress> <Addr1>4205 Coleman</Addr1> <City>Memphis</City> <PostalCode>38128</PostalCode> </EmployeeAddress> <SSN>111-11-1111</SSN> <Email>bgwestbrooks@brmch.com</Email> <EmergencyContacts> <PrimaryContact> <ContactName>Rhonda Westbrooks</ContactName> <ContactValue>0</ContactValue> </PrimaryContact> </EmergencyContacts> <HiredDate>2015-11-11</HiredDate> <ReleasedDate>2015-11-11</ReleasedDate> <BirthDate>2015-11-11</BirthDate> </EmployeeMod> </EmployeeModRq> </QBXMLMsgsRq> </QBXML> </xml>

这是我的XML请求:

rest_framework.authentication.SessionAuthentication

1 个答案:

答案 0 :(得分:3)

您可以使用ListDel请求删除员工(以及客户,供应商等其他List类型对象。)

来自OSR:

  

ListDel - 删除列表对象

     

如果是,您只能从QuickBooks公司文件中删除列表项   文件以单用户模式打开。如果文件在多用户中打开   模式,您的应用程序将收到错误。 (这个限制确实如此   不适用于删除或排除交易对象。)

<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="13.0"?>
<QBXML>
  <QBXMLMsgsRq onError="stopOnError">
    <ListDelRq>
      <!-- ListDelType may have one of the following values: Account, BillingRate, Class, Currency, Customer, CustomerMsg, CustomerType, DateDrivenTerms, Employee, InventorySite, ItemDiscount, ItemFixedAsset, ItemGroup, ItemInventory, ItemInventoryAssembly, ItemNonInventory, ItemOtherCharge, ItemPayment, ItemSalesTax, ItemSalesTaxGroup, ItemService, ItemSubtotal, JobType, OtherName, PaymentMethod, PayrollItemNonWage, PayrollItemWage, PriceLevel, SalesRep, SalesTaxCode, ShipMethod, StandardTerms, ToDo, UnitOfMeasureSet, Vehicle, Vendor, VendorType, WorkersCompCode -->
      <ListDelType >ENUMTYPE</ListDelType> <!-- required -->
      <ListID >IDTYPE</ListID> <!-- required -->
    </ListDelRq>
  </QBXMLMsgsRq>
</QBXML>