private string A6GetSuit(string urls) { try { if (urls.Trim().Length <= 0) { return(MessageManager.GetMessageInfo(DingYiZhiFuChuan.ServerEmpty)); } string str = urls + "/pzWebService.ws"; object obj2 = new object(); string str2 = "getAccount"; string[] strArray = new string[0]; string[] strArray2 = (string[])WebServiceFactory.InvokeWebService(str, str2, strArray); if (strArray2.Length <= 0) { return(DingYiZhiFuChuan.strErrLinkFailTip); } this._A6SuitList = strArray2; } catch (BaseException exception) { this.loger.Error(exception.Message + MessageManager.GetMessageInfo(DingYiZhiFuChuan.strErrLinkFailTip)); return(DingYiZhiFuChuan.strErrLinkFailTip); } catch (Exception exception2) { this.loger.Error(exception2.Message + MessageManager.GetMessageInfo(DingYiZhiFuChuan.strErrLinkFailTip)); return(DingYiZhiFuChuan.strErrLinkFailTip); } return(string.Empty); }
public static bool IsA6Version() { try { if (_FistFindIsA6Version) { _FistFindIsA6Version = false; DingYiZhiFuChuan.GetLinkUserSuit(); if (string.IsNullOrEmpty(DingYiZhiFuChuan.A6ServerLink)) { _IsA6Version = false; return(_IsA6Version); } string str = DingYiZhiFuChuan.A6ServerLink + "/pzWebService.ws"; writeLogfile("A6Link:" + str, _Loger); if (string.IsNullOrEmpty(DingYiZhiFuChuan.A6SuitGuid) || string.IsNullOrEmpty(DingYiZhiFuChuan.A6UserGuid)) { _IsA6Version = false; return(_IsA6Version); } string str2 = DingYiZhiFuChuan.A6SuitGuid; string str3 = DingYiZhiFuChuan.A6UserGuid; str2 = str2.Substring(0, str2.IndexOf("=")); str3 = str3.Substring(0, str3.IndexOf("=")); object obj2 = new object(); string str4 = "getAcctGUID"; string[] strArray2 = new string[2]; strArray2[0] = str2; string[] strArray = strArray2; string str5 = (string)WebServiceFactory.InvokeWebService(str, str4, strArray); if (str5.Length <= 0) { _IsA6Version = false; return(_IsA6Version); } if (str5.Equals("1")) { _IsA6Version = true; return(_IsA6Version); } _IsA6Version = false; } return(_IsA6Version); } catch (BaseException exception) { _Loger.Error(exception.Message + " 不是A6平台"); _IsA6Version = false; return(_IsA6Version); } catch (Exception exception2) { _Loger.Error(exception2.Message + " 不是A6平台"); _IsA6Version = false; return(_IsA6Version); } }
private void btnLoad_Click(object sender, EventArgs e) { if (this.txtLoadUri.Text.Trim() == "") { MessageManager.ShowMsgBox("INP-111001", "提示", new string[] { "下载地址输入不正确" }); this.txtLoadUri.Select(); } else if (this.lstBoxAuthNo.Items.Count == 0) { MessageManager.ShowMsgBox("INP-111001", "提示", new string[] { "文件提取号输入不正确" }); this.txtAuthNo.Select(); } else { string str = this.txtLoadUri.Text + "/GetRegSrc/GetRegSrc.asmx"; string str2 = "SimplyGetRegFile"; string baseDirectory = AppDomain.CurrentDomain.BaseDirectory; List <string> regFiles = new List <string>(); try { foreach (object obj2 in this.lstBoxAuthNo.Items) { object[] objArray = new object[] { base.TaxCardInstance.TaxCode, obj2.ToString() }; object obj3 = WebServiceFactory.InvokeWebService(str, str2, objArray); if (obj3 is XmlElement) { string innerXml = ((XmlElement)obj3).InnerXml; string item = this.CreateRegFile(innerXml, baseDirectory); if (item != null) { regFiles.Add(item); } } } } catch (Exception exception) { MessageManager.ShowMsgBox("INP-111001", "提示", new string[] { "下载注册文件异常。\r\n请检查下载地址是否正确,或网络连接是否正常。" }); this.loger.Error(exception.Message, exception); return; } this.SetupNewRegFiles(regFiles); } }
private string A6GetUser(string urls, string suitNo) { try { if (urls.Trim().Length <= 0) { return(MessageManager.GetMessageInfo(DingYiZhiFuChuan.ServerEmpty)); } if (suitNo.Trim().Length <= 0) { return(MessageManager.GetMessageInfo(DingYiZhiFuChuan.UserEmpty)); } string str = urls + "/pzWebService.ws"; string str2 = suitNo.Trim(); if (str2.IndexOf("=") != -1) { str2 = str2.Substring(0, str2.IndexOf("=")); } object obj2 = new object(); string str3 = "getUser"; string[] strArray = new string[] { str2 }; string[] strArray2 = (string[])WebServiceFactory.InvokeWebService(str, str3, strArray); if (strArray2.Length <= 0) { return(DingYiZhiFuChuan.strErrLinkFailTip); } this._A6UserList = strArray2; } catch (BaseException exception) { this.loger.Error(exception.Message + MessageManager.GetMessageInfo(DingYiZhiFuChuan.strErrLinkFailTip)); return(DingYiZhiFuChuan.strErrLinkFailTip); } catch (Exception exception2) { this.loger.Error(exception2.Message + MessageManager.GetMessageInfo(DingYiZhiFuChuan.strErrLinkFailTip)); return(DingYiZhiFuChuan.strErrLinkFailTip); } return(string.Empty); }