Example #1
0
        private void button10_Click(object sender, EventArgs e)
        {
            using (OrderService.OrderWebService ops = new OrderService.OrderWebService())
            {
                label5.Text = "call";
                ops.Url     = textBox4.Text;
                orderSaveParameters sp = new orderSaveParameters();
                sp.clientId = "IMISTD";
                //sp.stockNo = "910";
                sp.order                    = new order();
                sp.order.orderType          = orderType.PO;
                sp.order.orderTypeSpecified = true;
                sp.order.text               = "Be very careful";
                sp.order.poid               = "OLLA_081015_PO02";
                sp.order.poSeq              = 1;
                sp.order.reqDelDate         = DateTime.Now;
                sp.order.shipFromPartyid    = "900123";
                sp.order.receivingWhid      = "910";
                sp.order.orderLines         = new orderLine[2];

                sp.order.orderLines[0]            = new orderLine();
                sp.order.orderLines[0].partNo     = "888888A";
                sp.order.orderLines[0].partDescr1 = "Sprite";
                sp.order.orderLines[0].text       = "det kommer jag ärligt talat inte ihåg vad det är. det är sprite eller något sådant där";
                sp.order.orderLines[0].qtyUnit    = 888;
                sp.order.orderLines[0].unit       = "BTL";
                sp.order.orderLines[0].linePos    = 1;
                sp.order.orderLines[0].lineSeq    = 0;

                sp.order.orderLines[1]            = new orderLine();
                sp.order.orderLines[1].partNo     = "888888B";
                sp.order.orderLines[1].partDescr1 = "Fanta";
                sp.order.orderLines[1].text       = "instruction2";
                sp.order.orderLines[1].qtyUnit    = 333;
                sp.order.orderLines[1].unit       = "BTL";
                sp.order.orderLines[1].linePos    = 2;
                sp.order.orderLines[1].lineSeq    = 0;

                order order = ops.saveOrder(sp);

                label5.Text = "null";
                if (order != null)
                {
                    label5.Text = order.coNo;
                }
                else
                {
                    label5.Text = "Empty list";
                }
            }
        }
Example #2
0
        private void button8_Click(object sender, EventArgs e)
        {
            using (OrderService.OrderWebService ops = new OrderService.OrderWebService())
            {
                label5.Text = "call";
                ops.Url     = textBox4.Text;
                orderSaveParameters sp = new orderSaveParameters();
                sp.clientId                  = "IMISTD";
                sp.stockNo                   = "910";
                sp.order                     = new order();
                sp.order.orderType           = orderType.CO3PL;
                sp.order.orderTypeSpecified  = true;
                sp.order.coNo                = "OLLA_081015_CO01";
                sp.order.customer            = "171";
                sp.order.text                = "Be very careful";
                sp.order.coMark              = "The Mark";
                sp.order.customerOrderTypeId = "N";
                sp.order.methodOfShipmentId  = "12";
                sp.order.orderLines          = new orderLine[2];

                sp.order.orderLines[0]         = new orderLine();
                sp.order.orderLines[0].partNo  = "721004";
                sp.order.orderLines[0].qtyUnit = 10;
                sp.order.orderLines[0].delDate = DateTime.Now;
                sp.order.orderLines[0].unit    = "EH";
                sp.order.orderLines[0].linePos = 1;
                sp.order.orderLines[0].lineSeq = 0;
                sp.order.orderLines[0].lineId  = 0;

                sp.order.orderLines[1]         = new orderLine();
                sp.order.orderLines[1].partNo  = "721512";
                sp.order.orderLines[1].qtyUnit = 12;
                sp.order.orderLines[1].delDate = DateTime.Now;
                sp.order.orderLines[1].unit    = "EH";
                sp.order.orderLines[1].linePos = 2;
                sp.order.orderLines[1].lineSeq = 0;
                sp.order.orderLines[1].lineId  = 0;

                order order = ops.saveOrder(sp);

                label5.Text = "null";
                if (order != null)
                {
                    label5.Text = order.coNo;
                }
                else
                {
                    label5.Text = "Empty list";
                }
            }
        }