/// <summary> /// Web引用地址 /// </summary> /// <returns>Web引用地址</returns> public string GetWebReferenceUrl(string key) { if (!webReferenceUrlList.ContainsKey(key) || (webReferenceUrlList[key] == "")) { this.SetWebReferenceUrl(key, DefineFileReadWrite.GetConfigValue(key)); } return(this.webReferenceUrlList[key]); }
/// <summary> /// Web引用地址 /// </summary> /// <returns>Web引用地址</returns> public string GetWebReferenceUrl() { if (this.mWebReferenceUrl == null) { this.mWebReferenceUrl = DefineFileReadWrite.GetConfigValue("WebReference"); } return(this.mWebReferenceUrl); }
/// <summary> /// 构造函数 /// </summary> private CommonData() { //this.mCurrentDir = System.IO.Directory.GetCurrentDirectory(); AppDomain.CurrentDomain.BaseDirectory; this.mCurrentDir = AppDomain.CurrentDomain.BaseDirectory; //this.mWebReferenceUrl = "http://localhost/HSSQSTSrv"; webReferenceUrlList = new Dictionary <string, string>(); dbConnStrs = new Dictionary <string, string>(); mCookieContainer = new CookieContainer(); commonData = Hashtable.Synchronized(new Hashtable()); DBPOOLS = new Dictionary <string, DBConnectionPool>(); Sqls = new Dictionary <string, string>(); xmldot = new XmlDocument(); UsersToken = new Dictionary <string, string>(); webReference = DefineFileReadWrite.GetConfigValue("WebReference"); updateWebReference = DefineFileReadWrite.GetConfigValue("UpdateWebReference"); }
public String GetSql(string sqlNo) { if (Sqls.ContainsKey(sqlNo)) { return(Sqls[sqlNo]); } else { string sql = DefineFileReadWrite.GetConfigSql(sqlNo); if (sql != null) { Sqls.Add(sqlNo, sql); } return(sql); } }