82 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			82 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			C#
		
	
	
	
|  | /// <summary> | |||
|  | ///WCF service | |||
|  | ///Interface FOR TABLE t_erp_pandian | |||
|  | ///By wm   | |||
|  | ///on 06/08/2023 | |||
|  | /// </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_pandian | |||
|  |     { | |||
|  |         //http://localhost:8080/T_ERP_PANDIAN.svc/getobj?id=1 | |||
|  |         [OperationContract] | |||
|  |         [WebInvoke(Method = "GET",RequestFormat = WebMessageFormat.Json,ResponseFormat = WebMessageFormat.Json, | |||
|  |             UriTemplate = "getObj?id={id}")] | |||
|  |         WcfErp_pandian getObj(int id); | |||
|  | 
 | |||
|  |         [OperationContract] | |||
|  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | |||
|  |             UriTemplate = "add")] | |||
|  |         Result add(WcfErp_pandian obj); | |||
|  | 
 | |||
|  |         /* | |||
|  |         [OperationContract] | |||
|  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | |||
|  |            UriTemplate = "update")] | |||
|  |         Result update(WcfErp_pandian obj); | |||
|  | 
 | |||
|  |         [OperationContract] | |||
|  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | |||
|  |          UriTemplate = "delete")] | |||
|  |         Result delete(WcfErp_pandian obj); | |||
|  |         */ | |||
|  | 
 | |||
|  |         [OperationContract] | |||
|  |         [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | |||
|  |          UriTemplate = "where?condition={condition}&pageno={pageno}")] | |||
|  |         WcfErp_pandianList query(string condition, int pageno); | |||
|  | 
 | |||
|  | 
 | |||
|  |         /* | |||
|  |         [OperationContract] | |||
|  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | |||
|  |             UriTemplate = "addList")] | |||
|  |          List<Result> addList(List<WcfErp_pandian> objs); | |||
|  | 
 | |||
|  |         [OperationContract] | |||
|  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | |||
|  |            UriTemplate = "updateList")] | |||
|  |          List<Result> updateList(List<WcfErp_pandian> objs); | |||
|  | 
 | |||
|  |         [OperationContract] | |||
|  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | |||
|  |          UriTemplate = "deleteList")] | |||
|  |          List<Result> deleteList(List<WcfErp_pandian> objs); | |||
|  |          */ | |||
|  | 
 | |||
|  |         [OperationContract] | |||
|  |         [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, | |||
|  | UriTemplate = "complete")] | |||
|  |         Result complete(string orderNo);  | |||
|  | 
 | |||
|  | 
 | |||
|  |         [OperationContract] | |||
|  |         [WebInvoke(Method = "GET", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, | |||
|  | UriTemplate = "getSumary?orderNo={orderNo}&goodsId={goodsId}")] | |||
|  |         WcfErp_pandian getSumary(string orderNo, string goodsId); | |||
|  | 
 | |||
|  |         [OperationContract] | |||
|  |         [WebInvoke(Method = "GET", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, | |||
|  | UriTemplate = "getDetail?orderNo={orderNo}&goodsId={goodsId}")] | |||
|  |         List<WcfErp_pandian> getDetail(string orderNo, string goodsId); | |||
|  |     } | |||
|  | } |