protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            InterfaceHNSetting config = new InterfaceHNSetting()
            {
                CenterId       = "440902",
                CenterName     = "茂名市医保中心",
                HospitalId     = "40999179",
                HospitalName   = "大参林",
                HospitalId_pwd = "",
                Server         = "frp.sq580.com",
                Port           = 20105,
                Servle         = "sicp3_test/ProcessAll",
                StaffId        = "440902088",
                StaffId_pwd    = "440902088",
            };

            InterfaceHNUtil.config = config;
        }
Beispiel #2
0
        private void InitInterfaceHNSetting(IConfiguration configuration)
        {
            var section = configuration.GetSection("InterfaceHNSetting");

            InterfaceHNSetting config = new InterfaceHNSetting()
            {
                CenterId       = section.GetSection("center_id").Value.ToString(),
                CenterName     = section.GetSection("center_name").Value.ToString(),
                HospitalId     = section.GetSection("hosp_id").Value.ToString(),
                HospitalName   = section.GetSection("hosp_name").Value.ToString(),
                HospitalId_pwd = section.GetSection("hosp_pwd").Value.ToString(),
                Server         = section.GetSection("server").Value.ToString(),
                Port           = Convert.ToInt32(section.GetSection("port").Value.ToString()),
                Servle         = section.GetSection("servlet").Value.ToString(),
                StaffId        = section.GetSection("staff_id").Value.ToString(),
                StaffId_pwd    = section.GetSection("staff_pwd").Value.ToString(),

                SetDebug = section.GetSection("set_debug").Value.ToString() == "1" ? 1 : 0,
                LogPath  = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, section.GetSection("log_path").Value.ToString())
            };


            InterfaceHNUtil.config = config;
        }