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
- {
- /// <summary>
- /// 超时(秒)
- /// </summary>
- public static int TIME_OUT = 120;
- /// <summary>
- /// 授权码
- /// </summary>
- public static string AUTHORIZATION = "Basic c2FiZXI6c2FiZXJfc2VjcmV0";
- /// <summary>
- /// 租户ID
- /// </summary>
- public static string TENANT_ID = "000000";
- /// <summary>
- /// 授权模式
- /// </summary>
- public static string GRANT_TYPE = "password";
- /// <summary>
- /// 用户名
- /// </summary>
- public static string USERNAME = "";
- /// <summary>
- /// 密码
- /// </summary>
- public static string PASSWORD = "";
- /// <summary>
- /// 文件分包大小
- /// </summary>
- public static double FILE_SIZE = 10l;
- /// <summary>
- /// Token接口
- /// </summary>
- public static string URL_TOKEN = "http://10.254.238.63/blade-auth/oauth/token";
- /// <summary>
- /// 查询MD5值
- /// </summary>
- public static string URL_MD5 = "http://10.254.238.63/onemap-map/WfAchievementFile/findByMd5";
- /// <summary>
- /// 分片上传成果包
- /// </summary>
- public static string URL_SPLIT_FILE = "http://10.254.238.63/onemap-map/WfAchievementFile/thirdParty/uploadSplitFile";
- /// <summary>
- /// 监测预警接口
- /// </summary>
- public static string URL_UPDATE_INDICATORS_VALUE = "http://10.254.238.63/onemap-model/IdtIndicators/thirdParty/updateIndicatorsValue";
- /// <summary>
- /// 体检评估成果任务
- /// </summary>
- public static string URL_THIRD_PARTY = "http://10.254.238.63/onemap-model/AvtReviewTask/thirdParty/list";
- /// <summary>
- /// 体检评估成果上传文件
- /// </summary>
- public static string URL_THIRD_PARTY_UPLOAD = "http://10.254.238.63/onemap-model/AvtReviewTask/thirdParty/upload";
- /// <summary>
- /// 上报乡村成果包接口-分片上传
- /// </summary>
- public static string URL_TOWN_FILE = "http://10.254.238.63/onemap-model/WfAchievementFile/thirdParty/uploadVilSplitFile";
- /// <summary>
- /// 上报详细规划成果包接口-分片上传
- /// </summary>
- public static string URL_DETAIL_FILE = "http://10.254.238.63/onemap-map/WfAchievementFile/thirdParty/uploadDetailSplitFile";
- /// <summary>
- /// 查询已办成果流程
- /// </summary>
- public static string URL_LANDMYATTENDSDATA = "http://10.254.238.63/onemap-nmg/AvtLandDeclareThirdParty/landMyAttendsData";
- /// <summary>
- /// 查询待办成果列表
- /// </summary>
- public static string URL_LANDGETALLTASKS = "http://10.254.238.63/onemap-nmg/AvtLandDeclareThirdParty/landGetAllTasks";
- /// <summary>
- /// 查询已办成果审批记录
- /// </summary>
- public static string URL_LANDTASKSTATUS = "http://10.254.238.63/onemap-nmg/AvtLandDeclareThirdParty/landTaskStatus";
- /// <summary>
- /// 下载成果质检审查报告
- /// </summary>
- public static string URL_REPORTDOWNLOAD = "http://10.254.238.63/onemap-nmg/AvtLandDeclareThirdParty/reportDownload";
- /// <summary>
- /// 初始化
- /// </summary>
- 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"];
- }
- }
- }
|