Пример #1
0
        public decimal CreateFakeSalesOrder(ref RootSalesHeader salesHeaderPort)
        {
            object[] results = this.Invoke("CreateFakeSalesOrder", new object[] {
                salesHeaderPort
            });

            salesHeaderPort = ((RootSalesHeader)(results[1]));
            return((decimal)(results[0]));
        }
Пример #2
0
        public string CreateSalesOrder(ref RootSalesHeader salesHeaderPort)
        {
            object[] results = this.Invoke("CreateSalesOrder", new object[] {
                salesHeaderPort
            });

            salesHeaderPort = ((RootSalesHeader)(results[1]));
            return((string)(results[0]));
        }
Пример #3
0
 /// <remarks/>
 public void CreateFakeSalesOrderAsync(RootSalesHeader salesHeaderPort, object userState)
 {
     if ((this.CreateFakeSalesOrderOperationCompleted == null))
     {
         this.CreateFakeSalesOrderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateFakeSalesOrderOperationCompleted);
     }
     this.InvokeAsync("CreateFakeSalesOrder", new object[] {
         salesHeaderPort
     }, this.CreateFakeSalesOrderOperationCompleted, userState);
 }
 public String WriteOrder(JavaList<ItemSingle> items, CustomerSingle customer)
 {
     SalesHeader header = new SalesHeader();
     header.Sell_To_Customer_No = customer.no;
     RootSalesHeader root = new RootSalesHeader();
     List<Lines> lines = new List<Lines>();
     foreach (var item in items)
     {
         Lines line = new Lines();
         line.No = item.no;
         line.Quantity = Convert.ToDecimal(item.quantity);
         line.Line_Discount_Pct = Convert.ToDecimal(item.discount);
         lines.Add(line);
     }
     header.Lines = lines.ToArray();
     root.SalesHeader.Lines.SetValue(header,0);
     return _Service.CreateSalesOrder(ref root);
 }
        public String getPrice(String itemNo, String amount)
        {
            SalesHeader head = new SalesHeader();
            Lines line= new Lines();

            line.No = itemNo;
            line.Quantity = Convert.ToDecimal(amount);
            List<Lines> lines = new List<Lines>();
            object lineObj = line;
            lines.Add(line);
            head.Lines = lines.ToArray();
            RootSalesHeader root = new RootSalesHeader();
            root.SalesHeader = head;
            double price=Convert.ToDouble(_Service.CreateFakeSalesOrder(ref root));
            return price.ToString();
        }
 /// <remarks/>
 public void CreateFakeSalesOrderAsync(RootSalesHeader salesHeaderPort, object userState) {
     if ((this.CreateFakeSalesOrderOperationCompleted == null)) {
         this.CreateFakeSalesOrderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateFakeSalesOrderOperationCompleted);
     }
     this.InvokeAsync("CreateFakeSalesOrder", new object[] {
                 salesHeaderPort}, this.CreateFakeSalesOrderOperationCompleted, userState);
 }
 /// <remarks/>
 public void CreateFakeSalesOrderAsync(RootSalesHeader salesHeaderPort) {
     this.CreateFakeSalesOrderAsync(salesHeaderPort, null);
 }
 public decimal CreateFakeSalesOrder(ref RootSalesHeader salesHeaderPort) {
     object[] results = this.Invoke("CreateFakeSalesOrder", new object[] {
                 salesHeaderPort});
     salesHeaderPort = ((RootSalesHeader)(results[1]));
     return ((decimal)(results[0]));
 }
 public string CreateSalesOrder(ref RootSalesHeader salesHeaderPort) {
     object[] results = this.Invoke("CreateSalesOrder", new object[] {
                 salesHeaderPort});
     salesHeaderPort = ((RootSalesHeader)(results[1]));
     return ((string)(results[0]));
 }
Пример #10
0
 /// <remarks/>
 public void CreateFakeSalesOrderAsync(RootSalesHeader salesHeaderPort)
 {
     this.CreateFakeSalesOrderAsync(salesHeaderPort, null);
 }