|
|
@@ -17,14 +17,14 @@ namespace Learun.Application.WebApi |
|
|
|
/// </summary> |
|
|
|
public class PurchasePrintApi : BaseApi |
|
|
|
{ |
|
|
|
private Purchase_PrintIBLL purchaseworkIBLL = new Purchase_PrintBLL(); |
|
|
|
private Purchase_PrintIBLL PurchaseprintIBLL = new Purchase_PrintBLL(); |
|
|
|
private NWFProcessIBLL nWFProcessIBLL = new NWFProcessBLL(); |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 注册接口 |
|
|
|
/// <summary> |
|
|
|
public PurchasePrintApi() |
|
|
|
: base("/learun/adms/purchasework") |
|
|
|
: base("/learun/adms/Purchaseprint") |
|
|
|
{ |
|
|
|
Get["/pagelist"] = GetPageList; |
|
|
|
Get["/form"] = GetForm; |
|
|
@@ -43,7 +43,7 @@ namespace Learun.Application.WebApi |
|
|
|
public Response GetPageList(dynamic _) |
|
|
|
{ |
|
|
|
ReqPageParam parameter = this.GetReqData<ReqPageParam>(); |
|
|
|
var data = purchaseworkIBLL.GetPageList(parameter.pagination, parameter.queryJson); |
|
|
|
var data = PurchaseprintIBLL.GetPageList(parameter.pagination, parameter.queryJson); |
|
|
|
var jsonData = new |
|
|
|
{ |
|
|
|
rows = data, |
|
|
@@ -61,8 +61,8 @@ namespace Learun.Application.WebApi |
|
|
|
public Response GetForm(dynamic _) |
|
|
|
{ |
|
|
|
string keyValue = this.GetReqData(); |
|
|
|
var Purchase_PrintData = purchaseworkIBLL.GetPurchase_PrintEntity(keyValue); |
|
|
|
var Purchase_Print_DetailsData = purchaseworkIBLL.GetPurchase_Print_DetailsList(Purchase_PrintData.Id); |
|
|
|
var Purchase_PrintData = PurchaseprintIBLL.GetPurchase_PrintEntity(keyValue); |
|
|
|
var Purchase_Print_DetailsData = PurchaseprintIBLL.GetPurchase_Print_DetailsList(Purchase_PrintData.Id); |
|
|
|
var jsonData = new |
|
|
|
{ |
|
|
|
Purchase_Print = Purchase_PrintData, |
|
|
@@ -100,7 +100,7 @@ namespace Learun.Application.WebApi |
|
|
|
public Response DeleteForm(dynamic _) |
|
|
|
{ |
|
|
|
string keyValue = this.GetReqData(); |
|
|
|
purchaseworkIBLL.DeleteEntity(keyValue); |
|
|
|
PurchaseprintIBLL.DeleteEntity(keyValue); |
|
|
|
return Success("删除成功!"); |
|
|
|
} |
|
|
|
/// <summary> |
|
|
@@ -115,7 +115,7 @@ namespace Learun.Application.WebApi |
|
|
|
List<Purchase_Print_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Print_DetailsEntity>>(); |
|
|
|
//var code = entity.EnCode; |
|
|
|
|
|
|
|
purchaseworkIBLL.SaveEntity(parameter.keyValue, entity, detailList); |
|
|
|
PurchaseprintIBLL.SaveEntity(parameter.keyValue, entity, detailList); |
|
|
|
return Success("保存成功!"); |
|
|
|
} |
|
|
|
/// <summary> |
|
|
@@ -127,7 +127,7 @@ namespace Learun.Application.WebApi |
|
|
|
{ |
|
|
|
string keyValue = this.GetReqData(); |
|
|
|
var processId = Guid.NewGuid().ToString(); |
|
|
|
purchaseworkIBLL.ModifyStatus(keyValue, 1, processId); |
|
|
|
PurchaseprintIBLL.ModifyStatus(keyValue, 1, processId); |
|
|
|
UserInfo userInfo = LoginUserInfo.Get(); |
|
|
|
nWFProcessIBLL.CreateFlow("2-3", processId, "", 1, "", userInfo); |
|
|
|
return Success("提交成功!"); |
|
|
|