yirongjin
2025-07-23 f4c6ac315102c3a64da3a8f2d12b2d9042b5effd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//     运行时版本:4.0.30319.42000
//
//     对此文件的更改可能会导致不正确的行为,并且如果
//     重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
 
// 
// 此源代码是由 Microsoft.VSDesigner 4.0.30319.42000 版自动生成。
// 
#pragma warning disable 1591
 
namespace DeviceWCS.rgvSRM {
    using System.Diagnostics;
    using System;
    using System.Xml.Serialization;
    using System.ComponentModel;
    using System.Web.Services.Protocols;
    using System.Web.Services;
    
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="BasicHttpBinding_IRgvService", Namespace="http://tempuri.org/")]
    public partial class RgvService : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private System.Threading.SendOrPostCallback SendRgvTaskOperationCompleted;
        
        private System.Threading.SendOrPostCallback SendRgvDeleteOperationCompleted;
        
        private System.Threading.SendOrPostCallback SendRgvRlsAlertOperationCompleted;
        
        private System.Threading.SendOrPostCallback SendRgvFinishConfirmOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetRgvInfoOperationCompleted;
        
        private System.Threading.SendOrPostCallback IsTaskFinishOperationCompleted;
        
        private System.Threading.SendOrPostCallback SendRgvStopOperationCompleted;
        
        private System.Threading.SendOrPostCallback IsRgvReadyOperationCompleted;
        
        private System.Threading.SendOrPostCallback FinishTaskOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetRgvPosationOperationCompleted;
        
        private System.Threading.SendOrPostCallback ChangeUsefulOperationCompleted;
        
        private bool useDefaultCredentialsSetExplicitly;
        
        /// <remarks/>
        public RgvService() {
            this.Url = global::DeviceWCS.Properties.Settings.Default.DeviceWCS_rgvSRM_RgvService;
            if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
                this.UseDefaultCredentials = true;
                this.useDefaultCredentialsSetExplicitly = false;
            }
            else {
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
        
        public new string Url {
            get {
                return base.Url;
            }
            set {
                if ((((this.IsLocalFileSystemWebService(base.Url) == true) 
                            && (this.useDefaultCredentialsSetExplicitly == false)) 
                            && (this.IsLocalFileSystemWebService(value) == false))) {
                    base.UseDefaultCredentials = false;
                }
                base.Url = value;
            }
        }
        
        public new bool UseDefaultCredentials {
            get {
                return base.UseDefaultCredentials;
            }
            set {
                base.UseDefaultCredentials = value;
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
        
        /// <remarks/>
        public event SendRgvTaskCompletedEventHandler SendRgvTaskCompleted;
        
        /// <remarks/>
        public event SendRgvDeleteCompletedEventHandler SendRgvDeleteCompleted;
        
        /// <remarks/>
        public event SendRgvRlsAlertCompletedEventHandler SendRgvRlsAlertCompleted;
        
        /// <remarks/>
        public event SendRgvFinishConfirmCompletedEventHandler SendRgvFinishConfirmCompleted;
        
        /// <remarks/>
        public event GetRgvInfoCompletedEventHandler GetRgvInfoCompleted;
        
        /// <remarks/>
        public event IsTaskFinishCompletedEventHandler IsTaskFinishCompleted;
        
        /// <remarks/>
        public event SendRgvStopCompletedEventHandler SendRgvStopCompleted;
        
        /// <remarks/>
        public event IsRgvReadyCompletedEventHandler IsRgvReadyCompleted;
        
        /// <remarks/>
        public event FinishTaskCompletedEventHandler FinishTaskCompleted;
        
        /// <remarks/>
        public event GetRgvPosationCompletedEventHandler GetRgvPosationCompleted;
        
        /// <remarks/>
        public event ChangeUsefulCompletedEventHandler ChangeUsefulCompleted;
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/IRgvService/SendRgvTask", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
        public int SendRgvTask(int deviceId, int taskId, int sourcePlace, int toPlace, int taskType, int palletType, int fatherid) {
            object[] results = this.Invoke("SendRgvTask", new object[] {
                        deviceId,
                        taskId,
                        sourcePlace,
                        toPlace,
                        taskType,
                        palletType,
                        fatherid});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void SendRgvTaskAsync(int deviceId, int taskId, int sourcePlace, int toPlace, int taskType, int palletType, int fatherid) {
            this.SendRgvTaskAsync(deviceId, taskId, sourcePlace, toPlace, taskType, palletType, fatherid, null);
        }
        
        /// <remarks/>
        public void SendRgvTaskAsync(int deviceId, int taskId, int sourcePlace, int toPlace, int taskType, int palletType, int fatherid, object userState) {
            if ((this.SendRgvTaskOperationCompleted == null)) {
                this.SendRgvTaskOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendRgvTaskOperationCompleted);
            }
            this.InvokeAsync("SendRgvTask", new object[] {
                        deviceId,
                        taskId,
                        sourcePlace,
                        toPlace,
                        taskType,
                        palletType,
                        fatherid}, this.SendRgvTaskOperationCompleted, userState);
        }
        
        private void OnSendRgvTaskOperationCompleted(object arg) {
            if ((this.SendRgvTaskCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SendRgvTaskCompleted(this, new SendRgvTaskCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/IRgvService/SendRgvDelete", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
        public int SendRgvDelete(int rgvId) {
            object[] results = this.Invoke("SendRgvDelete", new object[] {
                        rgvId});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void SendRgvDeleteAsync(int rgvId) {
            this.SendRgvDeleteAsync(rgvId, null);
        }
        
        /// <remarks/>
        public void SendRgvDeleteAsync(int rgvId, object userState) {
            if ((this.SendRgvDeleteOperationCompleted == null)) {
                this.SendRgvDeleteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendRgvDeleteOperationCompleted);
            }
            this.InvokeAsync("SendRgvDelete", new object[] {
                        rgvId}, this.SendRgvDeleteOperationCompleted, userState);
        }
        
        private void OnSendRgvDeleteOperationCompleted(object arg) {
            if ((this.SendRgvDeleteCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SendRgvDeleteCompleted(this, new SendRgvDeleteCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/IRgvService/SendRgvRlsAlert", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
        public int SendRgvRlsAlert(int rgvId) {
            object[] results = this.Invoke("SendRgvRlsAlert", new object[] {
                        rgvId});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void SendRgvRlsAlertAsync(int rgvId) {
            this.SendRgvRlsAlertAsync(rgvId, null);
        }
        
        /// <remarks/>
        public void SendRgvRlsAlertAsync(int rgvId, object userState) {
            if ((this.SendRgvRlsAlertOperationCompleted == null)) {
                this.SendRgvRlsAlertOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendRgvRlsAlertOperationCompleted);
            }
            this.InvokeAsync("SendRgvRlsAlert", new object[] {
                        rgvId}, this.SendRgvRlsAlertOperationCompleted, userState);
        }
        
        private void OnSendRgvRlsAlertOperationCompleted(object arg) {
            if ((this.SendRgvRlsAlertCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SendRgvRlsAlertCompleted(this, new SendRgvRlsAlertCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/IRgvService/SendRgvFinishConfirm", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
        public bool SendRgvFinishConfirm(int rgvId) {
            object[] results = this.Invoke("SendRgvFinishConfirm", new object[] {
                        rgvId});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void SendRgvFinishConfirmAsync(int rgvId) {
            this.SendRgvFinishConfirmAsync(rgvId, null);
        }
        
        /// <remarks/>
        public void SendRgvFinishConfirmAsync(int rgvId, object userState) {
            if ((this.SendRgvFinishConfirmOperationCompleted == null)) {
                this.SendRgvFinishConfirmOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendRgvFinishConfirmOperationCompleted);
            }
            this.InvokeAsync("SendRgvFinishConfirm", new object[] {
                        rgvId}, this.SendRgvFinishConfirmOperationCompleted, userState);
        }
        
        private void OnSendRgvFinishConfirmOperationCompleted(object arg) {
            if ((this.SendRgvFinishConfirmCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SendRgvFinishConfirmCompleted(this, new SendRgvFinishConfirmCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/IRgvService/GetRgvInfo", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
        public string GetRgvInfo(int rgvId) {
            object[] results = this.Invoke("GetRgvInfo", new object[] {
                        rgvId});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void GetRgvInfoAsync(int rgvId) {
            this.GetRgvInfoAsync(rgvId, null);
        }
        
        /// <remarks/>
        public void GetRgvInfoAsync(int rgvId, object userState) {
            if ((this.GetRgvInfoOperationCompleted == null)) {
                this.GetRgvInfoOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRgvInfoOperationCompleted);
            }
            this.InvokeAsync("GetRgvInfo", new object[] {
                        rgvId}, this.GetRgvInfoOperationCompleted, userState);
        }
        
        private void OnGetRgvInfoOperationCompleted(object arg) {
            if ((this.GetRgvInfoCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetRgvInfoCompleted(this, new GetRgvInfoCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/IRgvService/IsTaskFinish", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
        public bool IsTaskFinish(int rgvId) {
            object[] results = this.Invoke("IsTaskFinish", new object[] {
                        rgvId});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void IsTaskFinishAsync(int rgvId) {
            this.IsTaskFinishAsync(rgvId, null);
        }
        
        /// <remarks/>
        public void IsTaskFinishAsync(int rgvId, object userState) {
            if ((this.IsTaskFinishOperationCompleted == null)) {
                this.IsTaskFinishOperationCompleted = new System.Threading.SendOrPostCallback(this.OnIsTaskFinishOperationCompleted);
            }
            this.InvokeAsync("IsTaskFinish", new object[] {
                        rgvId}, this.IsTaskFinishOperationCompleted, userState);
        }
        
        private void OnIsTaskFinishOperationCompleted(object arg) {
            if ((this.IsTaskFinishCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.IsTaskFinishCompleted(this, new IsTaskFinishCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/IRgvService/SendRgvStop", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
        public int SendRgvStop(int rgvId) {
            object[] results = this.Invoke("SendRgvStop", new object[] {
                        rgvId});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void SendRgvStopAsync(int rgvId) {
            this.SendRgvStopAsync(rgvId, null);
        }
        
        /// <remarks/>
        public void SendRgvStopAsync(int rgvId, object userState) {
            if ((this.SendRgvStopOperationCompleted == null)) {
                this.SendRgvStopOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendRgvStopOperationCompleted);
            }
            this.InvokeAsync("SendRgvStop", new object[] {
                        rgvId}, this.SendRgvStopOperationCompleted, userState);
        }
        
        private void OnSendRgvStopOperationCompleted(object arg) {
            if ((this.SendRgvStopCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SendRgvStopCompleted(this, new SendRgvStopCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/IRgvService/IsRgvReady", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
        public bool IsRgvReady(int rgvId) {
            object[] results = this.Invoke("IsRgvReady", new object[] {
                        rgvId});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void IsRgvReadyAsync(int rgvId) {
            this.IsRgvReadyAsync(rgvId, null);
        }
        
        /// <remarks/>
        public void IsRgvReadyAsync(int rgvId, object userState) {
            if ((this.IsRgvReadyOperationCompleted == null)) {
                this.IsRgvReadyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnIsRgvReadyOperationCompleted);
            }
            this.InvokeAsync("IsRgvReady", new object[] {
                        rgvId}, this.IsRgvReadyOperationCompleted, userState);
        }
        
        private void OnIsRgvReadyOperationCompleted(object arg) {
            if ((this.IsRgvReadyCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.IsRgvReadyCompleted(this, new IsRgvReadyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/IRgvService/FinishTask", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
        public int FinishTask(int rgvId) {
            object[] results = this.Invoke("FinishTask", new object[] {
                        rgvId});
            return ((int)(results[0]));
        }
        
        /// <remarks/>
        public void FinishTaskAsync(int rgvId) {
            this.FinishTaskAsync(rgvId, null);
        }
        
        /// <remarks/>
        public void FinishTaskAsync(int rgvId, object userState) {
            if ((this.FinishTaskOperationCompleted == null)) {
                this.FinishTaskOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFinishTaskOperationCompleted);
            }
            this.InvokeAsync("FinishTask", new object[] {
                        rgvId}, this.FinishTaskOperationCompleted, userState);
        }
        
        private void OnFinishTaskOperationCompleted(object arg) {
            if ((this.FinishTaskCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.FinishTaskCompleted(this, new FinishTaskCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/IRgvService/GetRgvPosation", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
        public long GetRgvPosation(int rgvId) {
            object[] results = this.Invoke("GetRgvPosation", new object[] {
                        rgvId});
            return ((long)(results[0]));
        }
        
        /// <remarks/>
        public void GetRgvPosationAsync(int rgvId) {
            this.GetRgvPosationAsync(rgvId, null);
        }
        
        /// <remarks/>
        public void GetRgvPosationAsync(int rgvId, object userState) {
            if ((this.GetRgvPosationOperationCompleted == null)) {
                this.GetRgvPosationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRgvPosationOperationCompleted);
            }
            this.InvokeAsync("GetRgvPosation", new object[] {
                        rgvId}, this.GetRgvPosationOperationCompleted, userState);
        }
        
        private void OnGetRgvPosationOperationCompleted(object arg) {
            if ((this.GetRgvPosationCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetRgvPosationCompleted(this, new GetRgvPosationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapRpcMethodAttribute("http://tempuri.org/IRgvService/ChangeUseful", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
        public bool ChangeUseful(int rgvId) {
            object[] results = this.Invoke("ChangeUseful", new object[] {
                        rgvId});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public void ChangeUsefulAsync(int rgvId) {
            this.ChangeUsefulAsync(rgvId, null);
        }
        
        /// <remarks/>
        public void ChangeUsefulAsync(int rgvId, object userState) {
            if ((this.ChangeUsefulOperationCompleted == null)) {
                this.ChangeUsefulOperationCompleted = new System.Threading.SendOrPostCallback(this.OnChangeUsefulOperationCompleted);
            }
            this.InvokeAsync("ChangeUseful", new object[] {
                        rgvId}, this.ChangeUsefulOperationCompleted, userState);
        }
        
        private void OnChangeUsefulOperationCompleted(object arg) {
            if ((this.ChangeUsefulCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.ChangeUsefulCompleted(this, new ChangeUsefulCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        public new void CancelAsync(object userState) {
            base.CancelAsync(userState);
        }
        
        private bool IsLocalFileSystemWebService(string url) {
            if (((url == null) 
                        || (url == string.Empty))) {
                return false;
            }
            System.Uri wsUri = new System.Uri(url);
            if (((wsUri.Port >= 1024) 
                        && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
                return true;
            }
            return false;
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    public delegate void SendRgvTaskCompletedEventHandler(object sender, SendRgvTaskCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SendRgvTaskCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SendRgvTaskCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    public delegate void SendRgvDeleteCompletedEventHandler(object sender, SendRgvDeleteCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SendRgvDeleteCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SendRgvDeleteCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    public delegate void SendRgvRlsAlertCompletedEventHandler(object sender, SendRgvRlsAlertCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SendRgvRlsAlertCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SendRgvRlsAlertCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    public delegate void SendRgvFinishConfirmCompletedEventHandler(object sender, SendRgvFinishConfirmCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SendRgvFinishConfirmCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SendRgvFinishConfirmCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    public delegate void GetRgvInfoCompletedEventHandler(object sender, GetRgvInfoCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetRgvInfoCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetRgvInfoCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public string Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((string)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    public delegate void IsTaskFinishCompletedEventHandler(object sender, IsTaskFinishCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class IsTaskFinishCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal IsTaskFinishCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    public delegate void SendRgvStopCompletedEventHandler(object sender, SendRgvStopCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SendRgvStopCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SendRgvStopCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    public delegate void IsRgvReadyCompletedEventHandler(object sender, IsRgvReadyCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class IsRgvReadyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal IsRgvReadyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    public delegate void FinishTaskCompletedEventHandler(object sender, FinishTaskCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class FinishTaskCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal FinishTaskCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    public delegate void GetRgvPosationCompletedEventHandler(object sender, GetRgvPosationCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetRgvPosationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetRgvPosationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public long Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((long)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    public delegate void ChangeUsefulCompletedEventHandler(object sender, ChangeUsefulCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9032.0")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class ChangeUsefulCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal ChangeUsefulCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
    }
}
 
#pragma warning restore 1591