Example #1
0
        public void GetCustomers()
        {
            BalanceWarehouse Warehouse = new BalanceWarehouse();

            Warehouse.UseDefaultCredentials = true;

            try
            {
                Warehouse.WSFindCustomers(WhseShipNo);
            }
            catch (Exception ex)
            {
                MessageBoxExample.MyMessageBox.ShowBox(ex.Message);
            }

            WarehouseShipmentFright_Service whsefrightservice = new WarehouseShipmentFright_Service();

            whsefrightservice.UseDefaultCredentials = true;

            List <WarehouseShipmentFright_Filter> WarehouseShipmentFrightFilterArray = new List <WarehouseShipmentFright_Filter>();

            WarehouseShipmentFright_Filter WarehouseShipmentNoFilter = new WarehouseShipmentFright_Filter();

            WarehouseShipmentNoFilter.Field    = WarehouseShipmentFright_Fields.Warehouse_Shipment_Header_No;
            WarehouseShipmentNoFilter.Criteria = WhseShipNo;
            WarehouseShipmentFrightFilterArray.Add(WarehouseShipmentNoFilter);

            Result = whsefrightservice.ReadMultiple(WarehouseShipmentFrightFilterArray.ToArray(), "", 50);

            if (Result.Count() > 0)
            {
                dataGridView1.DataSource = Result;
                dataGridView1.Update();
            }
        }