| | |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Common; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.Helper; |
| | | using WIDESEA_ISquareCabinServices; |
| | |
| | | // WebResponseContent content = new WebResponseContent(); |
| | | // try |
| | | // { |
| | | // var url = "http://121.37.118.63:80/GYZ2/95fck/inOrder"; |
| | | // var url = "http://192.168.1.100:80/GYZ2/95fck/inOrder"; |
| | | // string GetOutOrderDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); |
| | | // if (string.IsNullOrEmpty(SearchInOrderDate)) SearchInOrderDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); |
| | | // var requestData = new { searchDate = SearchInOrderDate }; |
| | |
| | | // WebResponseContent content = new WebResponseContent(); |
| | | // try |
| | | // { |
| | | // //var url = "http://121.37.118.63:80/GYZ2/95fck/outOrder"; |
| | | // //var url = "http://192.168.1.100:80/GYZ2/95fck/outOrder"; |
| | | // var url = "http://127.0.0.1:4523/m2/5660322-5340849-default/366751306?apifoxApiId=366751306"; |
| | | // string GetOutOrderDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); |
| | | // if (string.IsNullOrEmpty(SearchOutOrderDate)) SearchOutOrderDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); |
| | |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | var url = "http://121.37.118.63:80/GYZ2/95fck/inOrder"; |
| | | var url = "http://192.168.1.100:80/GYZ2/95fck/inOrder"; |
| | | string GetOutOrderDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); |
| | | if (string.IsNullOrEmpty(SearchInOrderDate)) SearchInOrderDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); |
| | | var requestData = new { searchDate = SearchInOrderDate }; |
| | | var result = HttpHelper.Post(url, requestData.ToJsonString()); |
| | | var response = JsonConvert.DeserializeObject<UpstreamResponse<UpstreamOrderInfo>>(result); |
| | | if (response == null) return content; |
| | | if (response.data.Count < 1) |
| | | if (response == null || response.data == null) return content; |
| | | if (response.data.Count < 1 ) |
| | | { |
| | | SearchInOrderDate = GetOutOrderDate; |
| | | return content; |
| | |
| | | else if (order.order_type == "3")//å
¥åºéæ |
| | | { |
| | | #region 转æ¢ä¸ºåºåºå |
| | | UpstramOutOrderInfo upstramOutOrderInfo = new UpstramOutOrderInfo() |
| | | UpstramOutOrderInfo upstramOutOrderInfo = new UpstramOutOrderInfo() |
| | | { |
| | | order_no = order.order_no, |
| | | order_type = order.order_type, |
| | | client_no=order.supplier_no, |
| | | client_name=order.supplier_name, |
| | | account_time=order.account_time, |
| | | client_no = order.supplier_no, |
| | | client_name = order.supplier_name, |
| | | account_time = order.account_time, |
| | | warehouse_no = order.warehouse_no, |
| | | details = new List<UpstreamOutOrderDetail>() |
| | | }; |
| | |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | #region è·åERPåºåºå |
| | | static string SearchOutOrderDate = "2025-11-01 00:00:00"; |
| | | public WebResponseContent GetOutOrder() |
| | |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | var url = "http://121.37.118.63:80/GYZ2/95fck/outOrder"; |
| | | //var url = "http://192.168.1.100:80/GYZ2/95fck/outOrder"; |
| | | var url = "http://127.0.0.1:4523/m1/5660322-5340849-default/GYZ2/95fck/outOrder"; |
| | | string GetOutOrderDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); |
| | | if (string.IsNullOrEmpty(SearchOutOrderDate)) SearchOutOrderDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); |
| | | var requestData = new { searchDate = SearchOutOrderDate }; |
| | | var result = HttpHelper.Post(url, requestData.ToJsonString()); |
| | | var response = JsonConvert.DeserializeObject<UpstreamResponse<UpstramOutOrderInfo>>(result); |
| | | |
| | | if (response == null) return content; |
| | | if (response == null || response.data == null) return content; |
| | | if (response.data.Count < 1) |
| | | { |
| | | SearchOutOrderDate = GetOutOrderDate; |