示例#1
0
        private void button2_Click(object sender, RoutedEventArgs e)
        {
            ServiceReference2.ApprovalServiceClient cli = new ServiceReference2.ApprovalServiceClient();
            var ret = cli.startApprovalProcess("*****@*****.**", "hallo Günther " + Environment.NewLine + "Wie gehts?", "New Approval Process", new TimeSpan(0, 30, 0));

            id         = ret.WFID;
            activityID = ret.ActivityID;
        }
示例#2
0
        private void button3_Click(object sender, RoutedEventArgs e)
        {
            ServiceReference2.ApprovalServiceClient cli = new ServiceReference2.ApprovalServiceClient();
            Boolean?b = cli.sendApprovalResponse(new ServiceReference2.WFIdentification()
            {
                WFID = id, ActivityID = activityID
            }, true, "Nota di Approvazione");

            if (b.Value)
            {
                MessageBox.Show("Wow...");
            }
        }