| | |
| | | /// </summary> |
| | | public static string Login() |
| | | { |
| | | var dbId = Util.GetConfigKey(AppDomain.CurrentDomain.BaseDirectory + "/Config/kdapi.config", "DbId"); |
| | | var useName = Util.GetConfigKey(AppDomain.CurrentDomain.BaseDirectory + "/Config/kdapi.config", "UserName"); |
| | | var pwd = Util.GetConfigKey(AppDomain.CurrentDomain.BaseDirectory + "/Config/kdapi.config", "PassWord"); |
| | | //从C盘配置文件获取 CLOUD网址、账套信息、登录用户、登录密码 |
| | | Pub_Class.ClsPub.GetCLOUDLoginInfo(ref Pub_Class.ClsPub.sExeReturnInfo); |
| | | var useName = Pub_Class.ClsPub.sCLOUDUseName; |
| | | var pwd = Pub_Class.ClsPub.sCLOUDPsd; |
| | | var dbId = Pub_Class.ClsPub.sCLOUDAcc; |
| | | CloudUrl = Pub_Class.ClsPub.sCLOUDUrl; |
| | | |
| | | //原从Config/kdapi.config模块中获取 20240712屏蔽 |
| | | //var dbId = Util.GetConfigKey(AppDomain.CurrentDomain.BaseDirectory + "/Config/kdapi.config", "DbId"); |
| | | //var useName = Util.GetConfigKey(AppDomain.CurrentDomain.BaseDirectory + "/Config/kdapi.config", "UserName"); |
| | | //var pwd = Util.GetConfigKey(AppDomain.CurrentDomain.BaseDirectory + "/Config/kdapi.config", "PassWord"); |
| | | HttpClient httpClient = new HttpClient(); |
| | | httpClient.Url = string.Concat(CloudUrl, "Kingdee.BOS.WebApi.ServicesStub.AuthService.ValidateUser.common.kdsvc"); |
| | | |
| | |
| | | return httpClient.SyncRequest(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 单据查询 |
| | | /// </summary> |
| | | public static string Query(string formId, string content) |
| | | { |
| | | HttpClient httpClient = new HttpClient(); |