/// ///WCF service ///Interface FOR TABLE t_erp_receiveValidDetail ///By wm ///on 06/06/2023 /// 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_receiveValidDetail { //http://localhost:8080/T_ERP_RECEIVEVALIDDETAIL.svc/getobj?id=1 [OperationContract] [WebInvoke(Method = "GET",RequestFormat = WebMessageFormat.Json,ResponseFormat = WebMessageFormat.Json, UriTemplate = "getObj?id={id}")] WcfErp_receiveValidDetail getObj(int id); [OperationContract] [WebInvoke(Method = "GET", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, UriTemplate = "getInStockDetail?preInOrder={preInOrder}")] List getInStockDetail(string preInOrder); /* [OperationContract] [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, UriTemplate = "add")] Result add(WcfErp_receiveValidDetail obj); [OperationContract] [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, UriTemplate = "update")] Result update(WcfErp_receiveValidDetail obj); [OperationContract] [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, UriTemplate = "delete")] Result delete(WcfErp_receiveValidDetail obj); */ [OperationContract] [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, UriTemplate = "where?condition={condition}&pageno={pageno}")] WcfErp_receiveValidDetailList query(string condition, int pageno); /* [OperationContract] [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, UriTemplate = "addList")] List addList(List objs); [OperationContract] [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, UriTemplate = "updateList")] List updateList(List objs); [OperationContract] [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, UriTemplate = "deleteList")] List deleteList(List objs); */ } }