GlobalConfig.cs
26.7 KB
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
using System;
using System.Xml;
using System.IO;
using System.Configuration;
using System.Collections;
namespace ServiceManager
{
public class GlobalConfig
{
public const string CLIENTCONFIGNAME = "MyCMMI.exe.config";
private string _WebServiceUrl = "";
protected Hashtable m_wsConfig = new Hashtable(11);
//private const string CLIENTCONFIGNAME = "MyCMMI.exe.config";
private const string DEFAULTWEBSERVICEURL = @"http://localhost/MyCMMI.WebService/";
private const string SECTIONTYPE = @"System.Configuration.SingleTagSectionHandler";
private string[] UseList;
private string _UseName = "";
private string _DateTime = "";
public GlobalConfig()
{
Initialize();
}
/// <summary>
/// 初始化GlobalConfig参数
/// </summary>
public void Initialize()
{
InitializeWebServiceHashtable();
if (CheckConfig())
{
GetUseConfig();//获取用户信息到
}
else
{
this._WebServiceUrl = "";
}
}
/// <summary>
/// 检测用户端MyCMMI.app.exe.config的文件是否存在,格式是否正确.
/// </summary>
/// <returns></returns>
public bool CheckConfig()
{
FileInfo fi = new FileInfo(CLIENTCONFIGNAME);
if (!fi.Exists)
{
if (CreateDefaultConfig())//如没有MyCMMI.app.exe.config则新建
{
return true;
}
else
{
return false;
}
}
else
{
XmlDocument doc = new XmlDocument();
try//防止格式出错
{
doc.Load(System.Environment.CurrentDirectory + @"\" + CLIENTCONFIGNAME);
}
catch
{
return false;
}
//检测WebService设置
XmlNode node = doc.FirstChild;
node = node.SelectSingleNode("descendant::MyCMMI.BizFacade.Properties.Settings");
if (node.HasChildNodes && node.ChildNodes.Count == m_wsConfig.Count)
{
IEnumerator ienum = node.GetEnumerator();
XmlNode childnode;
string tmpurl1 = "";
string tmpurl2 = "";
while (ienum.MoveNext())
{
childnode = (XmlNode)ienum.Current;
string s_KeyName = childnode.Attributes["name"].Value;
if (childnode.FirstChild.InnerText == null)
return false;
tmpurl2 = childnode.FirstChild.InnerText.ToString();
tmpurl2 = tmpurl2.Substring(0, tmpurl2.LastIndexOf(@"/") + 1);
if (tmpurl1 != "" && tmpurl1.ToUpper() != tmpurl2.ToUpper())
return false;
tmpurl1 = childnode.FirstChild.InnerText.ToString();
tmpurl1 = tmpurl1.Substring(0, tmpurl1.LastIndexOf(@"/") + 1);
}
tmpurl2 = node.FirstChild.FirstChild.InnerText.ToString();
tmpurl2 = tmpurl2.Substring(0, tmpurl2.LastIndexOf(@"/") + 1);
this._WebServiceUrl = tmpurl2;
}
else
{
//节点不足,添加节点
if (!AddWebServiceUrl())
{
return false;
}
}
//return true;
//检测用户设置,保证所有的用户配置节必须在configSections节点中被定义,以及用户配置节的格式正确
node = doc.FirstChild;
XmlNode LastNode = doc.FirstChild;
XmlNode SectionNode = doc.FirstChild;
XmlNode UserNode = doc.FirstChild;
node = node.SelectSingleNode("descendant::configSections");
if (node == null)
{
if (SectionNode.ChildNodes.Count > 1)
{
return false;
}
else
{
return true;
}
}
else
{
if (node.ChildNodes.Count != SectionNode.ChildNodes.Count - 1)
return false;
int i = 0;
UseList = new String[SectionNode.ChildNodes.Count - 2];
LastNode = LastNode.SelectSingleNode("descendant::applicationSettings");
node = node.NextSibling;
while (node != LastNode)
{
string UseName = node.Name;
SectionNode = SectionNode.SelectSingleNode("descendant::section[@name='" + UseName + "']");
if (SectionNode == null)
return false;
string xpath = "descendant::" + UseName;
UserNode = UserNode.SelectSingleNode(xpath);
if (UserNode.Attributes["DateTime"] == null)
return false;
UseList[i] = UseName;
SectionNode = doc.FirstChild;
UserNode = doc.FirstChild;
node = node.NextSibling;
i++;
}
return true;
}
}
}
/// <summary>
/// 添加新的WebService到MyCMMI.app.exe.config
/// </summary>
/// <returns></returns>
public bool AddWebServiceUrl()
{
string f_wsHead = "";
XmlDocument doc = new XmlDocument();
try
{
doc.Load(System.Environment.CurrentDirectory + @"\" + CLIENTCONFIGNAME);
}
catch
{
return false;
}
XmlNode node = doc.FirstChild;
node = node.SelectSingleNode("descendant::MyCMMI.BizFacade.Properties.Settings");
if (node.HasChildNodes)
{
IEnumerator ienum = node.GetEnumerator();
XmlNode childnode;
string tmpurl1 = "";
string tmpurl2 = "";
while (ienum.MoveNext())
{
childnode = (XmlNode)ienum.Current;
if (childnode.Attributes["name"] == null)
{
return false;
}
tmpurl2 = childnode.FirstChild.InnerText.ToString();
tmpurl2 = tmpurl2.Substring(0, tmpurl2.LastIndexOf(@"/") + 1);
if (tmpurl1 != "" && tmpurl1 != tmpurl2)
{
return false;
}
tmpurl1 = childnode.FirstChild.InnerText.ToString();
tmpurl1 = tmpurl1.Substring(0, tmpurl1.LastIndexOf(@"/") + 1);
}
tmpurl2 = node.FirstChild.InnerText.ToString();
tmpurl2 = tmpurl2.Substring(0, tmpurl2.LastIndexOf(@"/") + 1);
this._WebServiceUrl = tmpurl2;
f_wsHead = tmpurl2;
node.RemoveAll();
}
else
{
f_wsHead = DEFAULTWEBSERVICEURL;
this._WebServiceUrl = f_wsHead;
}
foreach (string f_wsKey in m_wsConfig.Keys)
{
XmlNode nodechild = doc.CreateNode(XmlNodeType.Element, "setting", "");
XmlAttribute nodechildAttribute = doc.CreateAttribute("name");
nodechildAttribute.Value = f_wsKey.ToString();
nodechild.Attributes.Append(nodechildAttribute);
XmlAttribute nodechildAttributeTwo = doc.CreateAttribute("serializeAs");
nodechildAttributeTwo.Value = "String";
nodechild.Attributes.Append(nodechildAttributeTwo);
XmlNode nodechildschild = doc.CreateNode(XmlNodeType.Element, "value", "");
if ((f_wsKey == "Edition") || (f_wsKey == "LicenseServerIP"))
{
nodechildschild.InnerText = m_wsConfig[f_wsKey].ToString();
}
else
{
nodechildschild.InnerText = f_wsHead + m_wsConfig[f_wsKey];
}
nodechild.AppendChild(nodechildschild);
node.AppendChild(nodechild);
}
try
{
doc.Save(System.Environment.CurrentDirectory + @"\" + CLIENTCONFIGNAME);
}
catch
{
return false;
}
return true;
//string f_wsHead = "";
//XmlDocument doc = new XmlDocument();
//try
//{
// doc.Load(CLIENTCONFIGNAME);
//}
//catch
//{
// return false;
//}
//XmlNode node = doc.FirstChild;
//node = node.SelectSingleNode("descendant::MyCMMI.BizFacade.Properties.Settings");
//if (node.HasChildNodes)
//{
// IEnumerator ienum = node.GetEnumerator();
// XmlNode childnode;
// string tmpurl1 = "";
// string tmpurl2 = "";
// while (ienum.MoveNext())
// {
// childnode = (XmlNode)ienum.Current;
// if (childnode.Attributes["value"] == null)
// {
// return false;
// }
// tmpurl2 = childnode.Attributes["value"].Value;
// tmpurl2 = tmpurl2.Substring(0, tmpurl2.LastIndexOf(@"/") + 1);
// if (tmpurl1 != "" && tmpurl1 != tmpurl2)
// {
// return false;
// }
// tmpurl1 = childnode.Attributes["value"].Value;
// tmpurl1 = tmpurl1.Substring(0, tmpurl1.LastIndexOf(@"/") + 1);
// }
// tmpurl2 = node.FirstChild.Attributes["value"].Value;
// tmpurl2 = tmpurl2.Substring(0, tmpurl2.LastIndexOf(@"/") + 1);
// this._WebServiceUrl = tmpurl2;
// f_wsHead = tmpurl2;
// node.RemoveAll();
//}
//else
//{
// f_wsHead = DEFAULTWEBSERVICEURL;
// this._WebServiceUrl = f_wsHead;
//}
//foreach (string f_wsKey in m_wsConfig.Keys)
//{
// XmlElement elem = doc.CreateElement("add");
// elem.SetAttribute("key", f_wsKey);
// elem.SetAttribute("value", f_wsHead + m_wsConfig[f_wsKey]);
// node.AppendChild(elem);
//}
//try
//{
// doc.Save(CLIENTCONFIGNAME);
//}
//catch
//{
// return false;
//}
//return true;
}
/// <summary>
/// 创建默认的MyCMMI.App.Exe.Config 本函数只建立最基本的WebService设置
/// </summary>
/// <returns></returns>
public bool CreateDefaultConfig()
{
try
{
XmlTextWriter writer = null;
writer = new XmlTextWriter(System.Environment.CurrentDirectory + @"\" + CLIENTCONFIGNAME, null);
writer.Formatting = Formatting.Indented;
writer.WriteStartElement("configuration");
writer.WriteStartElement("configSections");
writer.WriteStartElement("section");
writer.WriteAttributeString("name", "administrator");
writer.WriteAttributeString("type", "System.Configuration.SingleTagSectionHandler");
writer.WriteEndElement();
writer.WriteStartElement("sectionGroup");
writer.WriteAttributeString("name", "applicationSettings");
writer.WriteAttributeString("type", "System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
writer.WriteStartElement("section");
writer.WriteAttributeString("name", "MyCMMI.BizFacade.Properties.Settings");
writer.WriteAttributeString("type", "System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
writer.WriteAttributeString("requirePermission", "false");
writer.WriteEndElement();
writer.WriteEndElement();
writer.WriteEndElement();
writer.WriteStartElement("applicationSettings");
writer.WriteStartElement("MyCMMI.BizFacade.Properties.Settings");
foreach (string f_wsKey in m_wsConfig.Keys)
{
writer.WriteStartElement("setting");
writer.WriteAttributeString("name", f_wsKey);
writer.WriteAttributeString("serializeAs", "String");
writer.WriteStartElement("value");
writer.WriteString(DEFAULTWEBSERVICEURL + m_wsConfig[f_wsKey]);
writer.WriteEndElement();
writer.WriteEndElement();
}
writer.WriteEndElement();
writer.WriteEndElement();
writer.WriteEndElement();
writer.Close();
//this._edition = "Chinese";
this._WebServiceUrl = DEFAULTWEBSERVICEURL;
}
catch (Exception ex)
{
string strEX = ex.ToString();
return false;
}
return true;
//try
//{
// XmlTextWriter writer = null;
// writer = new XmlTextWriter(CLIENTCONFIGNAME, null);
// writer.Formatting = Formatting.Indented;
// writer.WriteStartElement("configuration");
// writer.WriteStartElement("appSettings");
// foreach (string f_wsKey in m_wsConfig.Keys)
// {
// writer.WriteStartElement("add");
// writer.WriteAttributeString("key", f_wsKey);
// writer.WriteAttributeString("value", DEFAULTWEBSERVICEURL + m_wsConfig[f_wsKey]);
// writer.WriteEndElement();
// }
// writer.Close();
// this._WebServiceUrl = DEFAULTWEBSERVICEURL;
//}
//catch
//{
// return false;
//}
//return true;
}
/// <summary>
/// 获取最后登录应用程序的用户的个人信息
/// </summary>
private void GetUseConfig()
{
int i;
string LoginTime;
this._DateTime = "";
for (i = 0; UseList != null && i < UseList.Length; i++)
{
//IDictionary UseConfigTable = (IDictionary)ConfigurationSettings.GetConfig(UseList[i]);
IDictionary UseConfigTable = (IDictionary)ConfigurationManager.GetSection(UseList[i]);
if (UseConfigTable != null)
{
LoginTime = (string)UseConfigTable["DateTime"];
if (this._DateTime == "" || Convert.ToDateTime(LoginTime) >= Convert.ToDateTime(this._DateTime))
{
this._DateTime = LoginTime;
this._UseName = UseList[i];
}
}
}
}
/// <summary>
/// 创建,添加,修改用户
/// </summary>
/// <returns></returns>
public bool CreateUseConfig(string CurrentUser)
{
try
{
XmlDocument doc = new XmlDocument();
doc.Load(CLIENTCONFIGNAME);
XmlNode node = doc.FirstChild;
XmlNode root = doc.FirstChild;
node = node.SelectSingleNode("descendant::configSections");
if (node == null)
{
node = doc.FirstChild;
node = node.SelectSingleNode("descendant::applicationSettings");
XmlElement elem = doc.CreateElement("configSections");
root = node.ParentNode;
root.InsertBefore(elem, node);
node = doc.FirstChild;
node = node.SelectSingleNode("descendant::configSections");
elem = doc.CreateElement("section");
elem.SetAttribute("name", CurrentUser);
elem.SetAttribute("type", @"System.Configuration.SingleTagSectionHandler");
node.AppendChild(elem);
node = doc.FirstChild;
node = node.SelectSingleNode("descendant::applicationSettings");
elem = doc.CreateElement(CurrentUser);
elem.SetAttribute("DateTime", System.DateTime.Now.ToString());
//可以在此添加用户属性
//例:elem.SetAttribute(属性名,值);
root = node.ParentNode;
root.InsertBefore(elem, node);
return false;
}
else
{
//添加新用户节点
node = doc.FirstChild;
string xpath = "descendant::" + CurrentUser;
node = node.SelectSingleNode(xpath);
if (node == null)
{
node = doc.FirstChild;
node = node.SelectSingleNode("descendant::configSections");
XmlElement elem = doc.CreateElement("section");
elem.SetAttribute("name", CurrentUser);
elem.SetAttribute("type", @"System.Configuration.SingleTagSectionHandler");
node.AppendChild(elem);
node = doc.FirstChild;
node = node.SelectSingleNode("descendant::applicationSettings");
elem = doc.CreateElement(CurrentUser);
elem.SetAttribute("DateTime", System.DateTime.Now.ToString());
//可以在此添加用户属性
//例:elem.SetAttribute(属性名,值);
root = node.ParentNode;
root.InsertBefore(elem, node);
}
else
{
//修改用户的时间属性
node.Attributes["DateTime"].Value = System.DateTime.Now.ToString();
//可以在此添加用户属性
//例:elem.SetAttribute(属性名,值);
}
}
doc.Save(CLIENTCONFIGNAME);
return true;
}
catch
{
return false;
}
}
public bool ModifyUseConfig(string UseName, string AttributeName, string AttributeValue)
{
XmlDocument doc = new XmlDocument();
try
{
doc.Load(CLIENTCONFIGNAME);
}
catch
{
return false;
}
XmlNode node = doc.FirstChild;
string xpath = "descendant::" + UseName;
node = node.SelectSingleNode(xpath);
if (node == null)
{
return false;
}
else
{
if (node.Attributes[AttributeName] == null)
{
string ns = node.GetNamespaceOfPrefix("");
XmlNode attr = doc.CreateNode(XmlNodeType.Attribute, AttributeName, ns);
attr.Value = AttributeValue;
node.Attributes.SetNamedItem(attr);
}
else
{
node.Attributes[AttributeName].Value = AttributeValue;
}
}
try
{
doc.Save(CLIENTCONFIGNAME);
}
catch
{
return false;
}
return true;
}
/// <summary>
/// 设置WebService
/// </summary>
/// <param name="Url">新的WebServiceUrl</param>
/// <returns></returns>
public bool SetWebServiceUrl(string Url)
{
if (!Url.EndsWith(@"/")) //若路径不是以\结尾,则追加之
Url += @"/";
XmlDocument doc = new XmlDocument();
try
{
doc.Load(System.Environment.CurrentDirectory + @"\" + CLIENTCONFIGNAME);
}
catch
{
return false;
}
XmlNode node = doc.FirstChild;
node = node.SelectSingleNode("descendant::MyCMMI.BizFacade.Properties.Settings");
node.RemoveAll();
//XmlElement elem;
foreach (string f_wsKey in m_wsConfig.Keys)
{
XmlNode nodechild = doc.CreateNode(XmlNodeType.Element, "setting", "");
XmlAttribute nodechildAttribute = doc.CreateAttribute("name");
nodechildAttribute.Value = f_wsKey.ToString();
nodechild.Attributes.Append(nodechildAttribute);
XmlAttribute nodechildAttributeTwo = doc.CreateAttribute("serializeAs");
nodechildAttributeTwo.Value = "String";
nodechild.Attributes.Append(nodechildAttributeTwo);
XmlNode nodechildschild = doc.CreateNode(XmlNodeType.Element, "value", "");
if ((f_wsKey == "Edition") || (f_wsKey == "LicenseServerIP"))
{
nodechildschild.InnerText = m_wsConfig[f_wsKey].ToString();
}
else
{
nodechildschild.InnerText = Url + m_wsConfig[f_wsKey];
}
nodechild.AppendChild(nodechildschild);
node.AppendChild(nodechild);
}
try
{
doc.Save(System.Environment.CurrentDirectory + @"\" + CLIENTCONFIGNAME);
}
catch
{
return false;
}
return true;
//if (!Url.EndsWith(@"/")) //若路径不是以\结尾,则追加之
// Url += @"/";
//XmlDocument doc = new XmlDocument();
//try
//{
// doc.Load(CLIENTCONFIGNAME);
//}
//catch
//{
// return false;
//}
//XmlNode node = doc.FirstChild;
//node = node.SelectSingleNode("descendant::appSettings");
//node.RemoveAll();
//foreach (string f_wsKey in m_wsConfig.Keys)
//{
// XmlElement elem = doc.CreateElement("add");
// elem.SetAttribute("key", f_wsKey);
// elem.SetAttribute("value", Url + m_wsConfig[f_wsKey]);
// node.AppendChild(elem);
//}
//try
//{
// doc.Save(CLIENTCONFIGNAME);
//}
//catch
//{
// return false;
//}
//return true;
}
/// <summary>
/// 初始化WebService哈希表.
/// </summary>
public void InitializeWebServiceHashtable()
{
//将MyCMMI需要的所有WebService加入到哈希表中Shixin_MyCMMI_BizFacade_DocTemplateSvc_DocTemplateSvc
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_AuthSvc_AuthSvc", "AuthSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_BaseSvc_BaseSvc", "BaseSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_CMSvc_CMSvc", "CMSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_DevelopmentSvc_DevelopmentSvc", "DevelopmentSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_DocSvc_DocSvc", "DocSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_DocTemplateSvc_DocTemplateSvc", "DocTemplateSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_EmployeeSvc_EmployeeSvc", "EmployeeSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_KnowledgesSvc_KnowledgesSvc", "KnowledgesSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_LifecycleSvc_LifecycleSvc", "LifecycleSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_LocationSvc_LocationSvc", "LocationSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_ParameterSvc_ParameterSvc", "ParameterSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_ProblemSvc_ProblemSvc", "ProblemSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_ProcessImproveSvc_ProcessImproveSvc", "ProcessImproveSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_ProjectSvc_ProjectSvc", "ProjectSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_RiskSvc_RiskSvc", "RiskSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_SQAManagementSvc_SQAManagementSvc", "SQAManagementSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_TrainSvc_TrainSvc", "TrainSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_UpdateSvc_UpdateSvc", "UpdateSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_ProjLogSvc_ProjLogSvc", "ProjLogSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_NCSvc_NCSvc", "NCSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_TestSvc_TestSvc", "TestSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_TaskSvc_TaskSvc", "TaskSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_BugSvc_BugSvc", "BugSvc.asmx");
m_wsConfig.Add("Shixin_MyCMMI_BizFacade_CmpHistorySvc_CmpHistorySvc", "CmpHistorySvc.asmx");
}
/// <summary>
/// WebService地址
/// </summary>
public string WebServiceUrl
{
get
{
return _WebServiceUrl;
}
set
{
_WebServiceUrl = value;
}
}
public string UseName
{
get
{
return _UseName;
}
set
{
_UseName = value;
}
}
public string DateTime
{
get
{
return _DateTime;
}
set
{
_DateTime = value;
}
}
}
}