public static void Init()
        {
            if (System.Net.Dns.GetHostName() == "OD00308" || System.Net.Dns.GetHostName() == "DESKTOP-GPAUBOV")
            {
                m_xmlParams = new XmlParams(GetAppRunPath() + "\\AdminSystemParams.xml");
            }
            else
            {
                m_xmlParams = new XmlParams(GetAppRunPath() + "\\SystemParams.xml");
            }

            m_dicParams = m_xmlParams.GetParams();

            Dictionary <string, string> paramItem = m_dicParams["系统参数"] as Dictionary <string, string>;

            m_userCode = paramItem["用户编码"];

            if (paramItem.ContainsKey("公告提示"))
            {
                m_LoginNotice = paramItem["公告提示"].ToString();
            }

            if (paramItem.ContainsKey("只显示有权限的功能树节点"))
            {
                m_onlyShowAuthorizedNodes = Convert.ToBoolean(paramItem["只显示有权限的功能树节点"]);
            }

            if (paramItem.ContainsKey("系统平台"))
            {
                _SystemName = GeneralFunction.StringConvertToEnum <CE_SystemName>(paramItem["系统平台"].ToString());
            }
        }
        /// <summary>
        /// 初始化公有参数类
        /// </summary>
        /// <param name="error">出错时返回错误信息,无错时返回null</param>
        /// <returns>成功初始化返回true,失败返回false</returns>
        public static void Init(string selectValue)
        {
            if (System.Net.Dns.GetHostName() == "OD00308" || System.Net.Dns.GetHostName() == "DESKTOP-GPAUBOV")
            {
                m_xmlParams = new XmlParams(GetAppRunPath() + "\\AdminSystemParams.xml");
            }
            else
            {
                m_xmlParams = new XmlParams(GetAppRunPath() + "\\SystemParams.xml");
            }

            m_dicParams = m_xmlParams.GetParams();

            Dictionary <string, string> paramItem = m_dicParams["系统参数"] as Dictionary <string, string>;

            m_serverPort = Int32.Parse(paramItem["服务器端口"]);
            List <string> lstIP = paramItem["服务器IP地址"].ToString().Split('|').ToList();

            _SystemName = GlobalObject.GeneralFunction.StringConvertToEnum <CE_SystemName>(selectValue);
            switch (_SystemName)
            {
            case CE_SystemName.湖南容大:
                m_dataServerIP = lstIP[0];
                break;

            case CE_SystemName.泸州容大:
                m_dataServerIP = lstIP[1];
                break;

            default:
                m_dataServerIP = lstIP[0];
                break;
            }


            //通过IP地址连接,必需确保SQL服务器开启1433端口和检查SQL网络连接启用TCP/IP协议
            string serverInfo = string.Format("Data Source={0};Connect Timeout=120;Network Library=DBMSSOCN;MultipleActiveResultSets=true;Initial Catalog=", m_dataServerIP);

            string pwd    = ";User ID=InfoSysUser;PWD=meimima123";
            string webPwd = ";User ID=RundarWebUser;PWD=@HelloRundar!123";

            m_dbStorehouseConnectionString      = string.Format("{0}{1}{2}", serverInfo, "DepotManagement", pwd);
            m_dbPlatformServiceConnectionString = string.Format("{0}{1}{2}", serverInfo, "PlatformService", pwd);
            m_dbTaskConnectionString            = string.Format("{0}{1}{2}", serverInfo, "TaskManagement", pwd);
            m_dbWebServerConnectionString       = string.Format("{0}{1}{2}", serverInfo, "RundarWebServer", webPwd);

            m_FileTempPath = System.Environment.GetEnvironmentVariable("TEMP");

            if (m_dataServerIP.IndexOf(',') < 0)
            {
                m_FTPServerIP = m_dataServerIP;
            }
            else
            {
                m_FTPServerIP = m_dataServerIP.Substring(0, m_dataServerIP.IndexOf(','));
            }

            m_FTPServerPort             = 21;
            m_FTPServerAdvancedUser     = "******";
            m_FTPServerAdvancedPassword = "******";
        }