| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  | /// <summary> | 
					
						
							|  |  |  |  | ///WCF service | 
					
						
							|  |  |  |  | ///Interface FOR TABLE t_erp_purch | 
					
						
							|  |  |  |  | ///By wm   | 
					
						
							| 
									
										
										
										
											2023-09-04 22:41:19 +08:00
										 |  |  |  | ///on 06/05/2023 | 
					
						
							| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  | /// </summary> | 
					
						
							|  |  |  |  |    | 
					
						
							|  |  |  |  |  using System.Collections.Generic;  | 
					
						
							|  |  |  |  | using System.ServiceModel;  | 
					
						
							|  |  |  |  | using System.ServiceModel.Web;  | 
					
						
							|  |  |  |  | using DeiNiu.wms.Data.Model.Wcf; | 
					
						
							|  |  |  |  | using DeiNiu.Wcf.erp.wcfData; | 
					
						
							|  |  |  |  | using DeiNiu.Utils; | 
					
						
							|  |  |  |  | namespace DeiNiu.Wcf | 
					
						
							|  |  |  |  | { | 
					
						
							|  |  |  |  |     [ServiceContract] | 
					
						
							|  |  |  |  |     public interface IErp_purch | 
					
						
							|  |  |  |  |     { | 
					
						
							|  |  |  |  |         //http://localhost:8080/T_ERP_PURCH.svc/getobj?id=1 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke(Method = "GET",RequestFormat = WebMessageFormat.Json,ResponseFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |             UriTemplate = "getObj?id={id}")] | 
					
						
							|  |  |  |  |         ErpPurch getObj(int id); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							| 
									
										
										
										
											2023-09-04 22:41:19 +08:00
										 |  |  |  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |             UriTemplate = "add")] | 
					
						
							|  |  |  |  |         Result add(ErpPurch obj); | 
					
						
							| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-09-04 22:41:19 +08:00
										 |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke(Method = "GET", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |    UriTemplate = "getOrder?orderNo={orderNo}")] | 
					
						
							|  |  |  |  |         ErpPurch getOrder(string orderNo); | 
					
						
							| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							| 
									
										
										
										
											2023-09-04 22:41:19 +08:00
										 |  |  |  |         [WebInvoke(Method = "GET", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |  UriTemplate = "getInStockDetail?preInOrder={preInOrder}")] | 
					
						
							|  |  |  |  |         List<WcfErp_receiveValidDetail> getInStockDetail(string preInOrder); | 
					
						
							| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-09-04 22:41:19 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |         /* | 
					
						
							| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            UriTemplate = "update")] | 
					
						
							| 
									
										
										
										
											2023-09-04 22:41:19 +08:00
										 |  |  |  |         Result update(WcfErp_purch obj); | 
					
						
							| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |          UriTemplate = "delete")] | 
					
						
							| 
									
										
										
										
											2023-09-04 22:41:19 +08:00
										 |  |  |  |         Result delete(WcfErp_purch obj); | 
					
						
							|  |  |  |  |         */ | 
					
						
							| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |          UriTemplate = "where?condition={condition}&pageno={pageno}")] | 
					
						
							| 
									
										
										
										
											2023-09-04 22:41:19 +08:00
										 |  |  |  |         WcfErp_purchList query(string condition, int pageno); | 
					
						
							| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  |         /* | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |             UriTemplate = "addList")] | 
					
						
							|  |  |  |  |          List<Result> addList(List<WcfErp_purch> objs); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            UriTemplate = "updateList")] | 
					
						
							|  |  |  |  |          List<Result> updateList(List<WcfErp_purch> objs); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |          UriTemplate = "deleteList")] | 
					
						
							|  |  |  |  |          List<Result> deleteList(List<WcfErp_purch> objs); | 
					
						
							|  |  |  |  |          */ | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-09-04 22:41:19 +08:00
										 |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |       UriTemplate = "complete")] | 
					
						
							|  |  |  |  |         Result complete(string orderNo); | 
					
						
							| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-09-04 22:41:19 +08:00
										 |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |         UriTemplate = "cancel")] | 
					
						
							|  |  |  |  |         Result cancel(string orderNo); | 
					
						
							| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |     } | 
					
						
							|  |  |  |  | } |