|  |  |  | 
|---|
|  |  |  | { | 
|---|
|  |  |  | //private static string CloudUrl = "http://localhost/k3cloud/";//K/3 Cloud 业务站点地址 | 
|---|
|  |  |  | //private static string CloudUrl = "http://60.190.4.42:9002/k3cloud/";//K/3 Cloud 业务站点地址 | 
|---|
|  |  |  | private static string CloudUrl = "http://47.96.97.237/k3cloud/";//K/3 Cloud 业务站点地址 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //private static string CloudUrl = "http://47.96.97.237/k3cloud/";//K/3 Cloud 业务站点地址 | 
|---|
|  |  |  | //private static string CloudUrl = "http://60.190.4.42:9002/K3CLOUD/";//夏宝 | 
|---|
|  |  |  | private static string CloudUrl = "http://124.70.129.242/k3cloud/";//雅琪诺 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// 登陆 | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | 
|---|
|  |  |  | httpClient.Url = string.Concat(CloudUrl, "Kingdee.BOS.WebApi.ServicesStub.AuthService.ValidateUser.common.kdsvc"); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<object> Parameters = new List<object>(); | 
|---|
|  |  |  | Parameters.Add("61aec029faed1a");//账套标示 | 
|---|
|  |  |  | Parameters.Add("5f56ea565892f4");//账套标示 | 
|---|
|  |  |  | Parameters.Add("Administrator");//用户名 | 
|---|
|  |  |  | Parameters.Add("qaz!@#123");//密码 | 
|---|
|  |  |  | Parameters.Add("ycy123");//密码 | 
|---|
|  |  |  | Parameters.Add(2052);//2052代表中文 | 
|---|
|  |  |  | httpClient.Content = JsonConvert.SerializeObject(Parameters); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | return httpClient.SyncRequest(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //反审核 | 
|---|
|  |  |  | public static string UnAudit(string formId, string content) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | HttpClient httpClient = new HttpClient(); | 
|---|
|  |  |  | 
|---|
|  |  |  | httpClient.Content = JsonConvert.SerializeObject(Parameters); | 
|---|
|  |  |  | return httpClient.SyncRequest(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //下推 | 
|---|
|  |  |  | public static string Push(string formId, string content) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | HttpClient httpClient = new HttpClient(); | 
|---|
|  |  |  | 
|---|
|  |  |  | httpClient.Content = JsonConvert.SerializeObject(args); | 
|---|
|  |  |  | return httpClient.SyncRequest(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //生产订单 执行 | 
|---|
|  |  |  | public static string ExcuteOperation(string formId, string opNumber, string content) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | LogService.Write("生产订单 执行,opNumber: " + opNumber + ",content:" + content); | 
|---|
|  |  |  | HttpClient httpClient = new HttpClient(); | 
|---|
|  |  |  | httpClient.Url = string.Concat(CloudUrl, "Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.ExcuteOperation.common.kdsvc"); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<object> Parameters = new List<object>(); | 
|---|
|  |  |  | //业务对象Id | 
|---|
|  |  |  | Parameters.Add(formId); | 
|---|
|  |  |  | //操作 开工"ToStart" | 
|---|
|  |  |  | Parameters.Add(opNumber); | 
|---|
|  |  |  | //Json字串 | 
|---|
|  |  |  | Parameters.Add(content); | 
|---|
|  |  |  | httpClient.Content = JsonConvert.SerializeObject(Parameters); | 
|---|
|  |  |  | return httpClient.SyncRequest(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|