Advertisement
henikseptiana15

contoh service

Nov 25th, 2021
882
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 16.36 KB | None | 0 0
  1.     <!-- CREATE SERVICE FIND -->
  2.     <service name="findSalesOrderByBrandById" output="outputDto">
  3.         <informations>
  4.             <description>Find Sales Order By Brand By Id</description>
  5.             <info-in>
  6.                 <info name="result.header.userLoginId" description="user login id" type="Long" />
  7.                 <info name="result.header.roleLoginId" description="role login id" type="Long" />
  8.                 <info name="result.header.tenantLoginId" description="tenant login id" type="Long" />
  9.                 <info name="result.header.datetime" description="datetime" type="String" />
  10.                 <info name="result.header.sessionId" description="session id" type="String" />
  11.                 <info name="result.header.secureKey" description="secure key" type="String" />
  12.                 <info name="result.header.taskName" description="task name" type="String" />
  13.                 <info name="result.payload.id" description="so by brand id" type="Long" />
  14.             </info-in>
  15.             <info-out>
  16.                 <info name="result.id" description="so by brand id" type="Long" />
  17.                 <info name="result.tenantId" description="tenant id" type="Long" />
  18.                 <info name="result.docTypeId" description="Jenis transaksi" type="Long" />
  19.                 <info name="result.docNo" description="No Transaksi" type="String" />
  20.                 <info name="result.docDate" description="Tanggal Transaksi" type="String" />
  21.                 <info name="result.ouId" description="Organisasi Unit id" type="Long" />
  22.                 <info name="result.extDocNo" description="external document no" type="String" />
  23.                 <info name="result.extDocDate" description="external document date" type="String" />
  24.                 <info name="result.refDocTypeId" description="ref doc type id" type="Long" />
  25.                 <info name="result.refId" description="ref id" type="Long" />
  26.                 <info name="result.remark" description="remark" type="String" />
  27.                 <info name="result.partnerId" description="partner / customer id" type="Long" />
  28.                 <info name="result.partnerCpId" description="partner / customer contact person id" type="Long" />
  29.                 <info name="result.partnerBillToId" description="partner bill to id" type="Long" />
  30.                 <info name="result.partnerShipToId" description="partner ship to id" type="Long" />
  31.                 <info name="result.partnerShipAddressId" description="partner ship address id" type="Long" />
  32.                 <info name="result.dueDate" description="due date" type="String" />
  33.                 <info name="result.salesmanId" description="salesman id" type="Long" />
  34.                 <info name="result.flgDelivery" description="flag delivery (pick up or deliver)" type="String" />
  35.                 <info name="result.currCode" description="currency code" type="String" />
  36.                 <info name="result.addDiscountPercentage" description="add discount percentage" type="Double" />
  37.                 <info name="result.addDiscountAmount" description="add discount amount" type="Double" />
  38.                 <info name="result.statusDoc" description="status dokumen" type="String" />
  39.                 <info name="result.workflowStatus" description="status dokumen" type="String" />
  40.                 <info name="result.version" description="version" type="Long" />
  41.                
  42.                 <info name="result.payload.partnerShipCpId" description="partner ship cp id" type="Long" />
  43.                 <info name="result.payload.partnerShipCpName" description="partner ship cp name" type="String" />
  44.                 <info name="result.payload.partnerShipCpPhone1" description="partner ship cp phone 1" type="String" />
  45.                 <info name="result.payload.partnerShipCpPhone2" description="partner ship cp phone 2" type="String" />
  46.                 <info name="result.payload.flgWorkOrder" description="Flg work order" type="String" />
  47.                 <info name="result.payload.flgTopType" description="Flg top type" type="String" />
  48.                 <info name="result.payload.flgShowInvTax" description="Flg Show Inv Tax" type="String" />
  49.                
  50.                 <info name="result.ouCode" description="Organisasi Unit code" type="String" />
  51.                 <info name="result.ouName" description="Organisasi Unit name" type="String" />
  52.                 <info name="result.partnerCode" description="partner code" type="String" />
  53.                 <info name="result.partnerName" description="partner name" type="String" />
  54.                 <info name="result.partnerCpName" description="partner CP Name" type="String" />
  55.                 <info name="result.partnerCpJob" description="partner CP job" type="String" />
  56.                 <info name="result.partnerShipToCode" description="partner ship to code" type="String" />
  57.                 <info name="result.partnerShipToName" description="partner ship to name" type="String" />
  58.                 <info name="result.partnerBillToCode" description="partner Bill to code" type="String" />
  59.                 <info name="result.partnerBillToName" description="partner Bill to name" type="String" />
  60.                 <info name="result.partnerShipAddressDesc" description="partner ship address description" type="String" />
  61.                 <info name="result.salesmanCode" description="salesman code" type="String" />
  62.                 <info name="result.salesmanName" description="salesman name" type="String" />
  63.                
  64.                 <info name="result.createDatetime" description="create datetime" type="String" />
  65.                 <info name="result.createUserId" description="create user id" type="Long" />
  66.                 <info name="result.updateDatetime" description="update datetime" type="String" />
  67.                 <info name="result.updateUserId" description="update user id" type="Long" />
  68.                
  69.                 <info name="result.salesOrderDetailBrandList" description="salesOrderDetailBrandList" type="List" />
  70.                 <info name="result.salesOrderDetailItemList" description="salesOrderDetailItemList" type="List" />
  71.                 <info name="result.salesOrderInfoList" description="salesOrderInfoList" type="List" />
  72.                 <info name="result.salesOrderFinanceList" description="salesOrderFinanceList" type="List" />
  73.                 <info name="result.summaryTaxList" description="summaryTaxList" type="List" />
  74.                
  75.                 <info name="result.totalBrandItem" type="Long" description="total brand item" />
  76.                 <info name="result.totalBrandItemAmount" type="Double" description="total brand item amount" />
  77.                 <info name="result.totalTaxAmount" type="Double" description="total tax amount" />
  78.                 <info name="result.grandTotal" type="Double" description="grand total" />
  79.                 <info name="result.currCode" type="String" description="curr code" />
  80.                 <info name="result.currPropKey" type="String" description="curr propkey" />
  81.                 <info name="result.flgPkp" type="String" description="flg pkp" />
  82.                 <info name="result.custPaymentDuePaymentDays" type="Long" description="cust payment due payment days" />
  83.                 <info name="result.regularDiscountPercentage" type="Double" description="regular discount percentage" />
  84.             </info-out>
  85.         </informations>
  86.         <mod-dto output="inputDto">
  87.             <key name="id" type="Long" from="${result.payload.id}" />
  88.         </mod-dto>
  89.         <call-bf name="findSalesOrderById" input="${inputDto}" output="outputDto">
  90.             <onsuccess />
  91.             <onerror />
  92.         </call-bf>
  93.         <mod-dto output="inputDtoForFindPartnerById">
  94.             <key name="id" type="Long" from="${outputDto.partnerId}" />
  95.         </mod-dto>
  96.         <call-bf name="findPartnerById" input="${inputDtoForFindPartnerById}" output="outputDtoForFindPartnerById">
  97.             <onsuccess />
  98.             <onerror />
  99.         </call-bf>
  100.         <mod-dto output="inputDtoForFindPartnerCpById">
  101.             <key name="id" type="Long" from="${outputDto.partnerCpId}" />
  102.         </mod-dto>
  103.         <call-bf name="findPartnerCpById" input="${inputDtoForFindPartnerCpById}" output="outputDtoForFindPartnerCpById">
  104.             <onsuccess />
  105.             <onerror />
  106.         </call-bf>
  107.         <mod-dto output="inputDtoForFindPartnerShipToById">
  108.             <key name="id" type="Long" from="${outputDto.partnerShipToId}" />
  109.         </mod-dto>
  110.         <call-bf name="findPartnerById" input="${inputDtoForFindPartnerShipToById}" output="outputDtoForFindPartnerShipToById">
  111.             <onsuccess />
  112.             <onerror />
  113.         </call-bf>
  114.         <mod-dto output="inputDtoForFindPartnerBillToById">
  115.             <key name="id" type="Long" from="${outputDto.partnerBillToId}" />
  116.         </mod-dto>
  117.         <call-bf name="findPartnerById" input="${inputDtoForFindPartnerBillToById}" output="outputDtoForFindPartnerBillToById">
  118.             <onsuccess />
  119.             <onerror />
  120.         </call-bf>
  121.         <mod-dto output="inputDtoForFindPartnerAddressById">
  122.             <key name="id" type="Long" from="${outputDto.partnerShipAddressId}" />
  123.         </mod-dto>
  124.         <call-bf name="findPartnerAddressById" input="${inputDtoForFindPartnerAddressById}" output="outputDtoForFindPartnerAddressById">
  125.             <onsuccess />
  126.             <onerror />
  127.         </call-bf>
  128.         <conditional>
  129.             <case expression="${outputDto.salesmanId} != -99 ">
  130.                 <mod-dto output="inputDtoForFindSalesmanById">
  131.                     <key name="id" type="Long" from="${outputDto.salesmanId}" />
  132.                     <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
  133.                 </mod-dto>
  134.                 <call-bf name="findSalesmanById" input="${inputDtoForFindSalesmanById}" output="outputDtoForFindSalesmanById">
  135.                     <onsuccess />
  136.                     <onerror />
  137.                 </call-bf>
  138.             </case>
  139.             <default>
  140.                 <mod-dto output="outputDtoForFindSalesmanById">
  141.                     <key name="salesmanCode" type="String" from="" />
  142.                     <key name="salesmanName" type="String" from="" />
  143.                 </mod-dto>
  144.             </default>
  145.         </conditional>
  146.        
  147.         <mod-dto output="inputDtoGetDetailBrand">
  148.             <key name="soId" type="Long" from="${outputDto.id}" />
  149.             <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
  150.         </mod-dto>
  151.         <call-bf name="getSalesOrderDetailBrandListBySalesOrder" input="${inputDtoGetDetailBrand}" output="outputDtoGetDetailBrand">
  152.             <onsuccess />
  153.             <onerror />
  154.         </call-bf>
  155.         <mod-dto output="inputDtoGetDetailItem">
  156.             <key name="soId" type="Long" from="${outputDto.id}" />
  157.             <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
  158.         </mod-dto>
  159.         <call-bf name="getSalesOrderDetailItemListBySalesOrder" input="${inputDtoGetDetailItem}" output="outputDtoGetDetailItem">
  160.             <onsuccess />
  161.             <onerror />
  162.         </call-bf>
  163.         <mod-dto output="inputDtoGetSOInfo">
  164.             <key name="soId" type="Long" from="${outputDto.id}" />
  165.             <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
  166.         </mod-dto>
  167.         <call-bf name="getSalesOrderInfoListBySalesOrder" input="${inputDtoGetSOInfo}" output="outputDtoGetSOInfo">
  168.             <onsuccess />
  169.             <onerror />
  170.         </call-bf>
  171.         <mod-dto output="inputDtoGetSOFinance">
  172.             <key name="soId" type="Long" from="${outputDto.id}" />
  173.             <key name="tenantLoginId" type="Long" from="${result.header.tenantLoginId}" />
  174.             <key name="userLoginId" type="Long" from="${result.header.userLoginId}" />
  175.             <key name="roleLoginId" type="Long" from="${result.header.roleLoginId}" />
  176.             <key name="datetime" type="String" from="${result.header.datetime}" />
  177.         </mod-dto>
  178.         <call-bf name="getSalesOrderFinanceListBySalesOrder" input="${inputDtoGetSOFinance}" output="outputDtoGetSOFinance">
  179.             <onsuccess />
  180.             <onerror />
  181.         </call-bf>
  182.         <mod-dto output="inputDtoGetSOSummaryTax">
  183.             <key name="soId" type="Long" from="${outputDto.id}" />
  184.             <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
  185.         </mod-dto>
  186.         <call-bf name="getSummarySalesOrderByBrandTaxList" input="${inputDtoGetSOSummaryTax}" output="outputDtoGetSOSummaryTax">
  187.             <onsuccess />
  188.             <onerror />
  189.         </call-bf>
  190.         <mod-dto output="inputDtoGetSOSummary">
  191.             <key name="soId" type="Long" from="${outputDto.id}" />
  192.             <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
  193.         </mod-dto>
  194.         <call-bf name="findTotalSummarySalesOrderByBrand" input="${inputDtoGetSOSummary}" output="outputDtoGetSOSummary">
  195.             <onsuccess />
  196.             <onerror />
  197.         </call-bf>
  198.         <mod-dto output="inputDtoForFindOUById">
  199.             <key name="id" type="Long" from="${outputDto.ouId}" />
  200.         </mod-dto>
  201.         <call-bf name="findOUById" input="${inputDtoForFindOUById}" output="outputDtoForFindOUById">
  202.             <onsuccess />
  203.             <onerror />
  204.         </call-bf>
  205.         <mod-dto output="inputDtoForFindParentOUMainBuByOu">
  206.             <key name="id" type="Long" from="${outputDtoForFindOUById.id}" />
  207.         </mod-dto>
  208.         <call-bf name="findParentOUMainBuByOu" input="${inputDtoForFindParentOUMainBuByOu}" output="outputDtoForFindParentOUMainBuByOu">
  209.             <onsuccess />
  210.             <onerror />
  211.         </call-bf>
  212.         <mod-dto output="inputDtoIsOULegalExistsByIndex">
  213.             <key name="ouId" type="Long" from="${outputDtoForFindParentOUMainBuByOu.id}" />
  214.             <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
  215.         </mod-dto>
  216.         <call-bf name="isOULegalExistsByIndex" input="${inputDtoIsOULegalExistsByIndex}" output="outputDtoIsOULegalExistsByIndex">
  217.             <onsuccess />
  218.             <onerror />
  219.         </call-bf>
  220.         <conditional>
  221.             <case expression="${outputDtoIsOULegalExistsByIndex.exists}">
  222.                 <mod-dto output="outputDto">
  223.                     <key name="flgPkp" type="String" from="${outputDtoIsOULegalExistsByIndex.ouLegalDto.flgPkp}"/>
  224.                 </mod-dto>
  225.             </case>
  226.             <default>
  227.                 <mod-dto output="outputDto">
  228.                     <key name="flgPkp" type="String" from="N"/>
  229.                 </mod-dto>
  230.             </default>
  231.         </conditional>     
  232.        
  233.         <mod-dto output="inputDtoIsCustPaymentExistsByIndex">
  234.             <key name="partnerId" type="Long" from="${outputDto.partnerId}" />
  235.             <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
  236.         </mod-dto>
  237.         <call-bf name="isCustPaymentExistsByIndex" input="${inputDtoIsCustPaymentExistsByIndex}" output="outputDtoIsCustPaymentExistsByIndex">
  238.             <onsuccess />
  239.             <onerror />
  240.         </call-bf>
  241.         <conditional>
  242.             <case expression="${outputDtoIsCustPaymentExistsByIndex.exists}">
  243.                 <mod-dto output="outputDto">
  244.                     <key name="custPaymentDuePaymentDays" type="Long" from="${outputDtoIsCustPaymentExistsByIndex.custPaymentDto.duePaymentDays}"/>
  245.                 </mod-dto>
  246.             </case>
  247.             <default>
  248.                 <mod-dto output="outputDto">
  249.                     <key name="custPaymentDuePaymentDays" type="Long" from="0"/>
  250.                 </mod-dto>
  251.             </default>
  252.         </conditional>     
  253.        
  254.         <mod-dto output="inputDtoIsCustomerExtExistsById">
  255.             <key name="id" type="Long" from="${outputDto.partnerId}" />
  256.         </mod-dto>
  257.         <call-bf name="isCustomerExtExistsById" input="${inputDtoIsCustomerExtExistsById}" output="outputDtoIsCustomerExtExistsById">
  258.             <onsuccess />
  259.             <onerror />
  260.         </call-bf>
  261.         <conditional>
  262.             <case expression="${outputDtoIsCustomerExtExistsById.exists}">
  263.                 <mod-dto output="outputDto">
  264.                     <key name="regularDiscountPercentage" type="Double" from="${outputDtoIsCustomerExtExistsById.customerExtDto.regularDiscountPercentage}"/>
  265.                 </mod-dto>
  266.             </case>
  267.             <default>
  268.                 <mod-dto output="outputDto">
  269.                     <key name="regularDiscountPercentage" type="Double" from="0"/>
  270.                 </mod-dto>
  271.             </default>
  272.         </conditional>     
  273.        
  274.         <mod-dto output="outputDto">
  275.             <key name="ouCode" type="String" from="${outputDtoForFindOUById.code}" />
  276.             <key name="ouName" type="String" from="${outputDtoForFindOUById.name}" />
  277.            
  278.             <key name="partnerCode" type="String" from="${outputDtoForFindPartnerById.code}" />
  279.             <key name="partnerName" type="String" from="${outputDtoForFindPartnerById.name}" />
  280.            
  281.             <key name="partnerCpName" type="String" from="${outputDtoForFindPartnerCpById.cpName}" />
  282.             <key name="partnerCpJob" type="String" from="${outputDtoForFindPartnerCpById.cpJob}" />
  283.            
  284.             <key name="partnerShipToCode" type="String" from="${outputDtoForFindPartnerShipToById.code}" />
  285.             <key name="partnerShipToName" type="String" from="${outputDtoForFindPartnerShipToById.name}" />
  286.            
  287.             <key name="partnerBillToCode" type="String" from="${outputDtoForFindPartnerBillToById.code}" />
  288.             <key name="partnerBillToName" type="String" from="${outputDtoForFindPartnerBillToById.name}" />
  289.             <key name="partnerShipAddressDesc" type="String" from="${outputDtoForFindPartnerAddressById.addressDesc}" />
  290.            
  291.             <key name="salesmanCode" type="String" from="${outputDtoForFindSalesmanById.code}" />
  292.             <key name="salesmanName" type="String" from="${outputDtoForFindSalesmanById.name}" />
  293.                        
  294.             <list name="salesOrderDetailBrandList" from="${outputDtoGetDetailBrand.salesOrderDetailBrandList}" />
  295.             <list name="salesOrderDetailItemList" from="${outputDtoGetDetailItem.salesOrderDetailItemList}" />
  296.             <list name="salesOrderInfoList" from="${outputDtoGetSOInfo.salesOrderInfoList}" />
  297.             <list name="salesOrderFinanceList" from="${outputDtoGetSOFinance.salesOrderFinanceList}" />
  298.             <list name="summaryTaxList" from="${outputDtoGetSOSummaryTax.summaryTaxList}" />
  299.            
  300.             <key name="totalBrandItem" type="Long" from="${outputDtoGetSOSummary.totalBrandItem}" />
  301.             <key name="totalBrandItemAmount" type="Double" from="${outputDtoGetSOSummary.totalBrandItemAmount}" />
  302.             <key name="totalTaxAmount" type="Double" from="${outputDtoGetSOSummary.totalTaxAmount}" />
  303.             <key name="grandTotal" type="Double" from="${outputDtoGetSOSummary.grandTotal}" />
  304.             <key name="currCode" type="String" from="${outputDtoGetSOSummary.currCode}" />
  305.             <key name="currPropKey" type="String" from="${outputDtoGetSOSummary.currPropKey}" />
  306.         </mod-dto>
  307.     </service>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement