66 lines
2.3 KiB
C#
66 lines
2.3 KiB
C#
|
/// <summary>
|
|||
|
///WCF service
|
|||
|
///Interface FOR TABLE t_erp_sale_d
|
|||
|
///By wm
|
|||
|
///on 05/10/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_sale_d
|
|||
|
{
|
|||
|
//http://localhost:8080/T_ERP_SALE_D.svc/getobj?id=1
|
|||
|
[OperationContract]
|
|||
|
[WebInvoke(Method = "GET",RequestFormat = WebMessageFormat.Json,ResponseFormat = WebMessageFormat.Json,
|
|||
|
UriTemplate = "getObj?id={id}")]
|
|||
|
WcfErp_sale_d getObj(int id);
|
|||
|
|
|||
|
[OperationContract]
|
|||
|
[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json,
|
|||
|
UriTemplate = "add")]
|
|||
|
enumDbResult add(WcfErp_sale_d obj);
|
|||
|
|
|||
|
[OperationContract]
|
|||
|
[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json,
|
|||
|
UriTemplate = "update")]
|
|||
|
enumDbResult update(WcfErp_sale_d obj);
|
|||
|
|
|||
|
[OperationContract]
|
|||
|
[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json,
|
|||
|
UriTemplate = "delete")]
|
|||
|
enumDbResult delete(WcfErp_sale_d obj);
|
|||
|
|
|||
|
[OperationContract]
|
|||
|
[WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json,
|
|||
|
UriTemplate = "where?condition={condition}&pageno={pageno}")]
|
|||
|
WcfErp_sale_dList query(string condition, int pageno);
|
|||
|
/*
|
|||
|
[OperationContract]
|
|||
|
[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json,
|
|||
|
UriTemplate = "addList")]
|
|||
|
List<Result> addList(List<WcfErp_sale_d> objs);
|
|||
|
|
|||
|
[OperationContract]
|
|||
|
[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json,
|
|||
|
UriTemplate = "updateList")]
|
|||
|
List<Result> updateList(List<WcfErp_sale_d> objs);
|
|||
|
|
|||
|
[OperationContract]
|
|||
|
[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json,
|
|||
|
UriTemplate = "deleteList")]
|
|||
|
List<Result> deleteList(List<WcfErp_sale_d> objs);
|
|||
|
*/
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
}
|
|||
|
}
|