123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using WS;
- using WS.Helper;
- namespace QM.KJGH.CGGL.NMCGHJ.ZZQ
- {
- public class ZZQConfig
- {
-
-
-
- public static int TIME_OUT = 120;
-
-
-
- public static string AUTHORIZATION = "Basic c2FiZXI6c2FiZXJfc2VjcmV0";
-
-
-
- public static string TENANT_ID = "000000";
-
-
-
- public static string GRANT_TYPE = "password";
-
-
-
- public static string USERNAME = "";
-
-
-
- public static string PASSWORD = "";
-
-
-
- public static double FILE_SIZE = 10l;
-
-
-
- public static string URL_TOKEN = "http://10.254.238.63/blade-auth/oauth/token";
-
-
-
- public static string URL_MD5 = "http://10.254.238.63/onemap-map/WfAchievementFile/findByMd5";
-
-
-
- public static string URL_SPLIT_FILE = "http://10.254.238.63/onemap-map/WfAchievementFile/thirdParty/uploadSplitFile";
-
-
-
- public static string URL_UPDATE_INDICATORS_VALUE = "http://10.254.238.63/onemap-model/IdtIndicators/thirdParty/updateIndicatorsValue";
-
-
-
- public static string URL_THIRD_PARTY = "http://10.254.238.63/onemap-model/AvtReviewTask/thirdParty/list";
-
-
-
- public static string URL_THIRD_PARTY_UPLOAD = "http://10.254.238.63/onemap-model/AvtReviewTask/thirdParty/upload";
-
-
-
- public static string URL_TOWN_FILE = "http://10.254.238.63/onemap-model/WfAchievementFile/thirdParty/uploadVilSplitFile";
-
-
-
- public static string URL_DETAIL_FILE = "http://10.254.238.63/onemap-map/WfAchievementFile/thirdParty/uploadDetailSplitFile";
-
-
-
- public static string URL_LANDMYATTENDSDATA = "http://10.254.238.63/onemap-nmg/AvtLandDeclareThirdParty/landMyAttendsData";
-
-
-
- public static string URL_LANDGETALLTASKS = "http://10.254.238.63/onemap-nmg/AvtLandDeclareThirdParty/landGetAllTasks";
-
-
-
- public static string URL_LANDTASKSTATUS = "http://10.254.238.63/onemap-nmg/AvtLandDeclareThirdParty/landTaskStatus";
-
-
-
- public static string URL_REPORTDOWNLOAD = "http://10.254.238.63/onemap-nmg/AvtLandDeclareThirdParty/reportDownload";
-
-
-
- public static void Init()
- {
- TIME_OUT = string.IsNullOrWhiteSpace(ConfigHelper.Configuration["TIME_OUT"]) ? 120 : ConfigHelper.Configuration["TIME_OUT"].ToInt();
- AUTHORIZATION = ConfigHelper.Configuration["ZZQURL:AUTHORIZATION"];
- TENANT_ID = ConfigHelper.Configuration["ZZQURL:TENANT_ID"];
- GRANT_TYPE = ConfigHelper.Configuration["ZZQURL:GRANT_TYPE"];
- USERNAME = ConfigHelper.Configuration["ZZQURL:USERNAME"];
- PASSWORD = ConfigHelper.Configuration["ZZQURL:PASSWORD"];
- FILE_SIZE = ConfigHelper.Configuration["ZZQURL:FILE_SIZE"].ToDouble();
- URL_TOKEN = ConfigHelper.Configuration["ZZQURL:URL_TOKEN"];
- URL_MD5 = ConfigHelper.Configuration["ZZQURL:URL_MD5"];
- URL_SPLIT_FILE = ConfigHelper.Configuration["ZZQURL:URL_SPLIT_FILE"];
- URL_UPDATE_INDICATORS_VALUE = ConfigHelper.Configuration["ZZQURL:URL_UPDATE_INDICATORS_VALUE"];
- URL_THIRD_PARTY = ConfigHelper.Configuration["ZZQURL:URL_THIRD_PARTY"];
- URL_THIRD_PARTY_UPLOAD = ConfigHelper.Configuration["ZZQURL:URL_THIRD_PARTY_UPLOAD"];
- URL_TOWN_FILE = ConfigHelper.Configuration["ZZQURL:URL_TOWN_FILE"];
- URL_DETAIL_FILE = ConfigHelper.Configuration["ZZQURL:URL_DETAIL_FILE"];
- URL_LANDMYATTENDSDATA = ConfigHelper.Configuration["ZZQURL:URL_LANDMYATTENDSDATA"];
- URL_LANDGETALLTASKS = ConfigHelper.Configuration["ZZQURL:URL_LANDGETALLTASKS"];
- URL_LANDTASKSTATUS = ConfigHelper.Configuration["ZZQURL:URL_LANDTASKSTATUS"];
- URL_REPORTDOWNLOAD = ConfigHelper.Configuration["ZZQURL:URL_REPORTDOWNLOAD"];
- }
- }
- }
|