schangxiang@126.com
2024-12-03 761aaf597639c55c6f36b03f3a89ba2d49a1d3f4
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
//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//     运行时版本:4.0.30319.42000
//
//     对此文件的更改可能会导致不正确的行为,并且如果
//     重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
 
namespace iWareCC.PrintBaseService {
    
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.ServiceContractAttribute(ConfigurationName="PrintBaseService.IPrintWcfService")]
    public interface IPrintWcfService {
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IPrintWcfService/Print", ReplyAction="http://tempuri.org/IPrintWcfService/PrintResponse")]
        iWareCC.PrintBaseService.PrintResponse Print(iWareCC.PrintBaseService.PrintRequest request);
        
        // CODEGEN: 正在生成消息协定,应为该操作具有多个返回值。
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IPrintWcfService/Print", ReplyAction="http://tempuri.org/IPrintWcfService/PrintResponse")]
        System.Threading.Tasks.Task<iWareCC.PrintBaseService.PrintResponse> PrintAsync(iWareCC.PrintBaseService.PrintRequest request);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IPrintWcfService/Print2", ReplyAction="http://tempuri.org/IPrintWcfService/Print2Response")]
        iWareCC.PrintBaseService.Print2Response Print2(iWareCC.PrintBaseService.Print2Request request);
        
        // CODEGEN: 正在生成消息协定,应为该操作具有多个返回值。
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IPrintWcfService/Print2", ReplyAction="http://tempuri.org/IPrintWcfService/Print2Response")]
        System.Threading.Tasks.Task<iWareCC.PrintBaseService.Print2Response> Print2Async(iWareCC.PrintBaseService.Print2Request request);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IPrintWcfService/Print3", ReplyAction="http://tempuri.org/IPrintWcfService/Print3Response")]
        iWareCC.PrintBaseService.Print3Response Print3(iWareCC.PrintBaseService.Print3Request request);
        
        // CODEGEN: 正在生成消息协定,应为该操作具有多个返回值。
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IPrintWcfService/Print3", ReplyAction="http://tempuri.org/IPrintWcfService/Print3Response")]
        System.Threading.Tasks.Task<iWareCC.PrintBaseService.Print3Response> Print3Async(iWareCC.PrintBaseService.Print3Request request);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IPrintWcfService/GetImage", ReplyAction="http://tempuri.org/IPrintWcfService/GetImageResponse")]
        iWareCC.PrintBaseService.GetImageResponse GetImage(iWareCC.PrintBaseService.GetImageRequest request);
        
        // CODEGEN: 正在生成消息协定,应为该操作具有多个返回值。
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IPrintWcfService/GetImage", ReplyAction="http://tempuri.org/IPrintWcfService/GetImageResponse")]
        System.Threading.Tasks.Task<iWareCC.PrintBaseService.GetImageResponse> GetImageAsync(iWareCC.PrintBaseService.GetImageRequest request);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IPrintWcfService/GetPrinterStatus", ReplyAction="http://tempuri.org/IPrintWcfService/GetPrinterStatusResponse")]
        iWareCC.PrintBaseService.GetPrinterStatusResponse GetPrinterStatus(iWareCC.PrintBaseService.GetPrinterStatusRequest request);
        
        // CODEGEN: 正在生成消息协定,应为该操作具有多个返回值。
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IPrintWcfService/GetPrinterStatus", ReplyAction="http://tempuri.org/IPrintWcfService/GetPrinterStatusResponse")]
        System.Threading.Tasks.Task<iWareCC.PrintBaseService.GetPrinterStatusResponse> GetPrinterStatusAsync(iWareCC.PrintBaseService.GetPrinterStatusRequest request);
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="Print", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
    public partial class PrintRequest {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
        public System.Collections.Generic.Dictionary<string, object> data;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
        public int copies;
        
        public PrintRequest() {
        }
        
        public PrintRequest(System.Collections.Generic.Dictionary<string, object> data, int copies) {
            this.data = data;
            this.copies = copies;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="PrintResponse", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
    public partial class PrintResponse {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
        public bool PrintResult;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
        public string msg;
        
        public PrintResponse() {
        }
        
        public PrintResponse(bool PrintResult, string msg) {
            this.PrintResult = PrintResult;
            this.msg = msg;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="Print2", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
    public partial class Print2Request {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
        public System.Collections.Generic.Dictionary<string, object> data;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
        public int copies;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=2)]
        public string tpl;
        
        public Print2Request() {
        }
        
        public Print2Request(System.Collections.Generic.Dictionary<string, object> data, int copies, string tpl) {
            this.data = data;
            this.copies = copies;
            this.tpl = tpl;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="Print2Response", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
    public partial class Print2Response {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
        public bool Print2Result;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
        public string msg;
        
        public Print2Response() {
        }
        
        public Print2Response(bool Print2Result, string msg) {
            this.Print2Result = Print2Result;
            this.msg = msg;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="Print3", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
    public partial class Print3Request {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
        public System.Collections.Generic.Dictionary<string, object> data;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
        public int copies;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=2)]
        public string tpl;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=3)]
        public string printerName;
        
        public Print3Request() {
        }
        
        public Print3Request(System.Collections.Generic.Dictionary<string, object> data, int copies, string tpl, string printerName) {
            this.data = data;
            this.copies = copies;
            this.tpl = tpl;
            this.printerName = printerName;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="Print3Response", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
    public partial class Print3Response {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
        public bool Print3Result;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
        public string msg;
        
        public Print3Response() {
        }
        
        public Print3Response(bool Print3Result, string msg) {
            this.Print3Result = Print3Result;
            this.msg = msg;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="GetImage", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
    public partial class GetImageRequest {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
        public System.Collections.Generic.Dictionary<string, object> data;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
        public string templateUrl;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=2)]
        public int width;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=3)]
        public int height;
        
        public GetImageRequest() {
        }
        
        public GetImageRequest(System.Collections.Generic.Dictionary<string, object> data, string templateUrl, int width, int height) {
            this.data = data;
            this.templateUrl = templateUrl;
            this.width = width;
            this.height = height;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="GetImageResponse", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
    public partial class GetImageResponse {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
        public string GetImageResult;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
        public string msg;
        
        public GetImageResponse() {
        }
        
        public GetImageResponse(string GetImageResult, string msg) {
            this.GetImageResult = GetImageResult;
            this.msg = msg;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="GetPrinterStatus", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
    public partial class GetPrinterStatusRequest {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
        public string printerName;
        
        public GetPrinterStatusRequest() {
        }
        
        public GetPrinterStatusRequest(string printerName) {
            this.printerName = printerName;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.MessageContractAttribute(WrapperName="GetPrinterStatusResponse", WrapperNamespace="http://tempuri.org/", IsWrapped=true)]
    public partial class GetPrinterStatusResponse {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)]
        public int GetPrinterStatusResult;
        
        [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=1)]
        public string msg;
        
        public GetPrinterStatusResponse() {
        }
        
        public GetPrinterStatusResponse(int GetPrinterStatusResult, string msg) {
            this.GetPrinterStatusResult = GetPrinterStatusResult;
            this.msg = msg;
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public interface IPrintWcfServiceChannel : iWareCC.PrintBaseService.IPrintWcfService, System.ServiceModel.IClientChannel {
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public partial class PrintWcfServiceClient : System.ServiceModel.ClientBase<iWareCC.PrintBaseService.IPrintWcfService>, iWareCC.PrintBaseService.IPrintWcfService {
        
        public PrintWcfServiceClient() {
        }
        
        public PrintWcfServiceClient(string endpointConfigurationName) : 
                base(endpointConfigurationName) {
        }
        
        public PrintWcfServiceClient(string endpointConfigurationName, string remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public PrintWcfServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public PrintWcfServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(binding, remoteAddress) {
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        iWareCC.PrintBaseService.PrintResponse iWareCC.PrintBaseService.IPrintWcfService.Print(iWareCC.PrintBaseService.PrintRequest request) {
            return base.Channel.Print(request);
        }
        
        public bool Print(System.Collections.Generic.Dictionary<string, object> data, int copies, out string msg) {
            iWareCC.PrintBaseService.PrintRequest inValue = new iWareCC.PrintBaseService.PrintRequest();
            inValue.data = data;
            inValue.copies = copies;
            iWareCC.PrintBaseService.PrintResponse retVal = ((iWareCC.PrintBaseService.IPrintWcfService)(this)).Print(inValue);
            msg = retVal.msg;
            return retVal.PrintResult;
        }
        
        public System.Threading.Tasks.Task<iWareCC.PrintBaseService.PrintResponse> PrintAsync(iWareCC.PrintBaseService.PrintRequest request) {
            return base.Channel.PrintAsync(request);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        iWareCC.PrintBaseService.Print2Response iWareCC.PrintBaseService.IPrintWcfService.Print2(iWareCC.PrintBaseService.Print2Request request) {
            return base.Channel.Print2(request);
        }
        
        public bool Print2(System.Collections.Generic.Dictionary<string, object> data, int copies, string tpl, out string msg) {
            iWareCC.PrintBaseService.Print2Request inValue = new iWareCC.PrintBaseService.Print2Request();
            inValue.data = data;
            inValue.copies = copies;
            inValue.tpl = tpl;
            iWareCC.PrintBaseService.Print2Response retVal = ((iWareCC.PrintBaseService.IPrintWcfService)(this)).Print2(inValue);
            msg = retVal.msg;
            return retVal.Print2Result;
        }
        
        public System.Threading.Tasks.Task<iWareCC.PrintBaseService.Print2Response> Print2Async(iWareCC.PrintBaseService.Print2Request request) {
            return base.Channel.Print2Async(request);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        iWareCC.PrintBaseService.Print3Response iWareCC.PrintBaseService.IPrintWcfService.Print3(iWareCC.PrintBaseService.Print3Request request) {
            return base.Channel.Print3(request);
        }
        
        public bool Print3(System.Collections.Generic.Dictionary<string, object> data, int copies, string tpl, string printerName, out string msg) {
            iWareCC.PrintBaseService.Print3Request inValue = new iWareCC.PrintBaseService.Print3Request();
            inValue.data = data;
            inValue.copies = copies;
            inValue.tpl = tpl;
            inValue.printerName = printerName;
            iWareCC.PrintBaseService.Print3Response retVal = ((iWareCC.PrintBaseService.IPrintWcfService)(this)).Print3(inValue);
            msg = retVal.msg;
            return retVal.Print3Result;
        }
        
        public System.Threading.Tasks.Task<iWareCC.PrintBaseService.Print3Response> Print3Async(iWareCC.PrintBaseService.Print3Request request) {
            return base.Channel.Print3Async(request);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        iWareCC.PrintBaseService.GetImageResponse iWareCC.PrintBaseService.IPrintWcfService.GetImage(iWareCC.PrintBaseService.GetImageRequest request) {
            return base.Channel.GetImage(request);
        }
        
        public string GetImage(System.Collections.Generic.Dictionary<string, object> data, string templateUrl, int width, int height, out string msg) {
            iWareCC.PrintBaseService.GetImageRequest inValue = new iWareCC.PrintBaseService.GetImageRequest();
            inValue.data = data;
            inValue.templateUrl = templateUrl;
            inValue.width = width;
            inValue.height = height;
            iWareCC.PrintBaseService.GetImageResponse retVal = ((iWareCC.PrintBaseService.IPrintWcfService)(this)).GetImage(inValue);
            msg = retVal.msg;
            return retVal.GetImageResult;
        }
        
        public System.Threading.Tasks.Task<iWareCC.PrintBaseService.GetImageResponse> GetImageAsync(iWareCC.PrintBaseService.GetImageRequest request) {
            return base.Channel.GetImageAsync(request);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        iWareCC.PrintBaseService.GetPrinterStatusResponse iWareCC.PrintBaseService.IPrintWcfService.GetPrinterStatus(iWareCC.PrintBaseService.GetPrinterStatusRequest request) {
            return base.Channel.GetPrinterStatus(request);
        }
        
        public int GetPrinterStatus(string printerName, out string msg) {
            iWareCC.PrintBaseService.GetPrinterStatusRequest inValue = new iWareCC.PrintBaseService.GetPrinterStatusRequest();
            inValue.printerName = printerName;
            iWareCC.PrintBaseService.GetPrinterStatusResponse retVal = ((iWareCC.PrintBaseService.IPrintWcfService)(this)).GetPrinterStatus(inValue);
            msg = retVal.msg;
            return retVal.GetPrinterStatusResult;
        }
        
        public System.Threading.Tasks.Task<iWareCC.PrintBaseService.GetPrinterStatusResponse> GetPrinterStatusAsync(iWareCC.PrintBaseService.GetPrinterStatusRequest request) {
            return base.Channel.GetPrinterStatusAsync(request);
        }
    }
}