int dataReference = 0;
            int dataType = 3;
            string dataXML =
                 StringCompressor.CompressString(
                "<SALES_ORDERS>"
                + "<ORDER_SLIP DBOP=\"INS\">"   
                + "<NUMBER>~</NUMBER>"
                + "<DATE>26.03.2015</DATE>"
                + "<TIME>08:00</TIME>"
                + "<ARP_CODE>CARI.01</ARP_CODE>"
                + "<CURRSEL_TOTAL>1</CURRSEL_TOTAL>"
                + "<TRANSACTIONS>"
                + "<TRANSACTION>"
                + "<TYPE>0</TYPE>"
                + "<MASTER_CODE>MALZEME.01</MASTER_CODE>"
                + "<QUANTITY>5</QUANTITY>"
                + "<PRICE>10</PRICE>"
                + "<VAT_RATE>18</VAT_RATE>"
                + "<UNIT_CODE>ADET</UNIT_CODE>"
                + "<UNIT_CONV1>1</UNIT_CONV1>"
                + "<UNIT_CONV2>1</UNIT_CONV2>"
                + "<EDT_CURR>1</EDT_CURR>"
                + "</TRANSACTION>"
                + "</TRANSACTIONS>"
                + "</ORDER_SLIP>"
                + "</SALES_ORDERS>"
            );
             string paramXML =
                "<?xml version=\"1.0\" encoding=\"utf-16\"?>"
                + "<Parameters>"
                + "  <ReplicMode>0</ReplicMode>"
                + "  <CheckParams>1</CheckParams>"
                + "  <CheckRight>1</CheckRight>"
                + "  <ApplyCampaign>0</ApplyCampaign>"
                + "  <ApplyCondition>0</ApplyCondition>"
                + "  <FillAccCodes>0</FillAccCodes>"
                + "  <FormSeriLotLines>0</FormSeriLotLines>"
                + "  <GetStockLinePrice>0</GetStockLinePrice>"
                + "  <ExportAllData>0</ExportAllData>"
                + "</Parameters>";
            
	    string errorString = "";
            byte status = 0;
            
	    clientHTML.CalculateDataObject(dataType, ref dataReference, ref dataXML, ref paramXML, ref errorString, ref status, "", 0, g_securitycode);
 
           if (status == 4)
               ResultTextBox.AppendText(errorString+"\r");
           else
               ResultTextBox.AppendText("sipariş " + dataReference.ToString() + " referansı ile kaydedildi\r");
Telif HakkıKullanım KoşullarıGizlilik
Copyright © 2018 Logo Yazılım