Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using KCS_WHSWorkNotificationTest.WHSWorkNotification;
- namespace KCS_WHSWorkNotificationTest
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- KCSWHSWorkNotificationClient servClient = new KCSWHSWorkNotificationClient();
- Response response = new Response();
- CallContext callContext = new CallContext();
- String resultDescription = "";
- String workId = "";
- servClient.ClientCredentials.UserName.UserName = "ax-install-admin";
- servClient.ClientCredentials.UserName.Password = "%Go2KcS2015*";
- response = servClient.existsWorkForNotification(callContext, inventLocation.Text, zone.Text);
- if (response.WorkList != null)
- {
- foreach (WHSWorkNotification.WorkList workList in response.WorkList)
- {
- workId = workList.WorkId;
- if (workId == "")
- resultDescription += workId;
- }
- if (workId == "")
- resultDescription += "\n";
- }
- foreach (WHSWorkNotification.Result result in response.ResultList)
- {
- resultDescription += result.ResultDescription;
- resultDescription += "\n";
- }
- MessageBox.Show(resultDescription);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement