| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  | /// <summary> | 
					
						
							|  |  |  |  | ///WCF service | 
					
						
							|  |  |  |  | ///Interface FOR TABLE t_erpGoods | 
					
						
							|  |  |  |  | ///By wm   | 
					
						
							| 
									
										
										
										
											2023-09-04 22:41:19 +08:00
										 |  |  |  | ///on 07/21/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 IErpGoods | 
					
						
							|  |  |  |  |     { | 
					
						
							|  |  |  |  |         //http://localhost:8080/T_ERPGOODS.svc/getobj?id=1 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke(Method = "GET",RequestFormat = WebMessageFormat.Json,ResponseFormat = WebMessageFormat.Json, | 
					
						
							| 
									
										
										
										
											2023-09-04 22:41:19 +08:00
										 |  |  |  |             UriTemplate = "getObj?id={id}")] | 
					
						
							|  |  |  |  |         WcfErpGoods getObj(int id); | 
					
						
							| 
									
										
										
										
											2023-05-23 16:13:17 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |             UriTemplate = "add")] | 
					
						
							| 
									
										
										
										
											2023-09-04 22:41:19 +08:00
										 |  |  |  |         Result add(WcfErpGoods obj); | 
					
						
							| 
									
										
										
										
											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(WcfErpGoods 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(WcfErpGoods 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}")] | 
					
						
							|  |  |  |  |         WcfErpGoodsList query(string condition, int pageno);  | 
					
						
							|  |  |  |  |         /* | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |             UriTemplate = "addList")] | 
					
						
							|  |  |  |  |          List<Result> addList(List<WcfErpGoods> objs); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |            UriTemplate = "updateList")] | 
					
						
							|  |  |  |  |          List<Result> updateList(List<WcfErpGoods> objs); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         [OperationContract] | 
					
						
							|  |  |  |  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | 
					
						
							|  |  |  |  |          UriTemplate = "deleteList")] | 
					
						
							|  |  |  |  |          List<Result> deleteList(List<WcfErpGoods> objs); | 
					
						
							|  |  |  |  |          */ | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |     } | 
					
						
							|  |  |  |  | } |