@@ -117,10 +117,12 @@ namespace Learun.Application.WebApi | |||||
Purchase_Edu_ApplyEntity entity = parameter.strEntity.ToObject<Purchase_Edu_ApplyEntity>(); | Purchase_Edu_ApplyEntity entity = parameter.strEntity.ToObject<Purchase_Edu_ApplyEntity>(); | ||||
List<Purchase_Edu_ApplydetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Edu_ApplydetailsEntity>>(); | List<Purchase_Edu_ApplydetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Edu_ApplydetailsEntity>>(); | ||||
//var code = entity.EnCode; | //var code = entity.EnCode; | ||||
if (detailList.Count == 0) | |||||
if (detailList != null) | |||||
{ | { | ||||
return Fail("请添加明细"); | |||||
if (detailList.Count == 0) | |||||
{ | |||||
return Fail("请添加明细"); | |||||
} | |||||
} | } | ||||
string id=purchaseeduIBLL.SaveEntity(parameter.keyValue, entity, detailList); | string id=purchaseeduIBLL.SaveEntity(parameter.keyValue, entity, detailList); | ||||
var json = new | var json = new | ||||
@@ -117,10 +117,12 @@ namespace Learun.Application.WebApi | |||||
Purchase_Info_ApplyEntity entity = parameter.strEntity.ToObject<Purchase_Info_ApplyEntity>(); | Purchase_Info_ApplyEntity entity = parameter.strEntity.ToObject<Purchase_Info_ApplyEntity>(); | ||||
List<Purchase_Info_ApplydetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Info_ApplydetailsEntity>>(); | List<Purchase_Info_ApplydetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Info_ApplydetailsEntity>>(); | ||||
//var code = entity.EnCode; | //var code = entity.EnCode; | ||||
if (detailList.Count == 0) | |||||
if (detailList != null) | |||||
{ | { | ||||
return Fail("请添加明细"); | |||||
if (detailList.Count == 0) | |||||
{ | |||||
return Fail("请添加明细"); | |||||
} | |||||
} | } | ||||
string id=purchaseinfoIBLL.SaveEntity(parameter.keyValue, entity, detailList); | string id=purchaseinfoIBLL.SaveEntity(parameter.keyValue, entity, detailList); | ||||
var json = new | var json = new | ||||
@@ -117,10 +117,12 @@ namespace Learun.Application.WebApi | |||||
Purchase_Logistic_ApplyEntity entity = parameter.strEntity.ToObject<Purchase_Logistic_ApplyEntity>(); | Purchase_Logistic_ApplyEntity entity = parameter.strEntity.ToObject<Purchase_Logistic_ApplyEntity>(); | ||||
List<Purchase_Logistic_ApplydetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Logistic_ApplydetailsEntity>>(); | List<Purchase_Logistic_ApplydetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Logistic_ApplydetailsEntity>>(); | ||||
//var code = entity.EnCode; | //var code = entity.EnCode; | ||||
if (detailList.Count == 0) | |||||
if (detailList != null) | |||||
{ | { | ||||
return Fail("请添加明细"); | |||||
if (detailList.Count == 0) | |||||
{ | |||||
return Fail("请添加明细"); | |||||
} | |||||
} | } | ||||
string id=purchaselogisticIBLL.SaveEntity(parameter.keyValue, entity, detailList); | string id=purchaselogisticIBLL.SaveEntity(parameter.keyValue, entity, detailList); | ||||
var json = new | var json = new | ||||
@@ -117,10 +117,12 @@ namespace Learun.Application.WebApi | |||||
Purchase_Other_ApplyEntity entity = parameter.strEntity.ToObject<Purchase_Other_ApplyEntity>(); | Purchase_Other_ApplyEntity entity = parameter.strEntity.ToObject<Purchase_Other_ApplyEntity>(); | ||||
List<Purchase_Other_ApplydetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Other_ApplydetailsEntity>>(); | List<Purchase_Other_ApplydetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Other_ApplydetailsEntity>>(); | ||||
//var code = entity.EnCode; | //var code = entity.EnCode; | ||||
if (detailList.Count == 0) | |||||
if (detailList != null) | |||||
{ | { | ||||
return Fail("请添加明细"); | |||||
if (detailList.Count == 0) | |||||
{ | |||||
return Fail("请添加明细"); | |||||
} | |||||
} | } | ||||
string id=PurchaseOtherIBLL.SaveEntity(parameter.keyValue, entity, detailList); | string id=PurchaseOtherIBLL.SaveEntity(parameter.keyValue, entity, detailList); | ||||
var json = new | var json = new | ||||
@@ -117,10 +117,12 @@ namespace Learun.Application.WebApi | |||||
Purchase_Print_ApplyEntity entity = parameter.strEntity.ToObject<Purchase_Print_ApplyEntity>(); | Purchase_Print_ApplyEntity entity = parameter.strEntity.ToObject<Purchase_Print_ApplyEntity>(); | ||||
List<Purchase_Print_ApplydetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Print_ApplydetailsEntity>>(); | List<Purchase_Print_ApplydetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Print_ApplydetailsEntity>>(); | ||||
//var code = entity.EnCode; | //var code = entity.EnCode; | ||||
if (detailList.Count == 0) | |||||
if (detailList != null) | |||||
{ | { | ||||
return Fail("请添加明细"); | |||||
if (detailList.Count == 0) | |||||
{ | |||||
return Fail("请添加明细"); | |||||
} | |||||
} | } | ||||
string id= purchaseprintIBLL.SaveEntity(parameter.keyValue, entity, detailList); | string id= purchaseprintIBLL.SaveEntity(parameter.keyValue, entity, detailList); | ||||
var json = new | var json = new | ||||
@@ -117,10 +117,13 @@ namespace Learun.Application.WebApi | |||||
Purchase_Service_ApplyEntity entity = parameter.strEntity.ToObject<Purchase_Service_ApplyEntity>(); | Purchase_Service_ApplyEntity entity = parameter.strEntity.ToObject<Purchase_Service_ApplyEntity>(); | ||||
List<Purchase_Service_ApplydetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Service_ApplydetailsEntity>>(); | List<Purchase_Service_ApplydetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Service_ApplydetailsEntity>>(); | ||||
//var code = entity.EnCode; | //var code = entity.EnCode; | ||||
if (detailList.Count == 0) | |||||
if (detailList != null) | |||||
{ | { | ||||
return Fail("请添加明细"); | |||||
if (detailList.Count == 0) | |||||
{ | |||||
return Fail("请添加明细"); | |||||
} | |||||
} | } | ||||
string id=PurchaseServiceIBLL.SaveEntity(parameter.keyValue, entity, detailList); | string id=PurchaseServiceIBLL.SaveEntity(parameter.keyValue, entity, detailList); | ||||
var json = new | var json = new | ||||
@@ -117,10 +117,13 @@ namespace Learun.Application.WebApi | |||||
Purchase_Student_ApplyEntity entity = parameter.strEntity.ToObject<Purchase_Student_ApplyEntity>(); | Purchase_Student_ApplyEntity entity = parameter.strEntity.ToObject<Purchase_Student_ApplyEntity>(); | ||||
List<Purchase_Student_ApplydetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Student_ApplydetailsEntity>>(); | List<Purchase_Student_ApplydetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Student_ApplydetailsEntity>>(); | ||||
//var code = entity.EnCode; | //var code = entity.EnCode; | ||||
if (detailList.Count == 0) | |||||
if (detailList != null) | |||||
{ | { | ||||
return Fail("请添加明细"); | |||||
if (detailList.Count == 0) | |||||
{ | |||||
return Fail("请添加明细"); | |||||
} | |||||
} | } | ||||
string id=PurchaseStudentIBLL.SaveEntity(parameter.keyValue, entity, detailList); | string id=PurchaseStudentIBLL.SaveEntity(parameter.keyValue, entity, detailList); | ||||
var json = new | var json = new | ||||
@@ -117,10 +117,12 @@ namespace Learun.Application.WebApi | |||||
Purchase_Travel_ApplyEntity entity = parameter.strEntity.ToObject<Purchase_Travel_ApplyEntity>(); | Purchase_Travel_ApplyEntity entity = parameter.strEntity.ToObject<Purchase_Travel_ApplyEntity>(); | ||||
List<Purchase_Travel_ApplydetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Travel_ApplydetailsEntity>>(); | List<Purchase_Travel_ApplydetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Travel_ApplydetailsEntity>>(); | ||||
//var code = entity.EnCode; | //var code = entity.EnCode; | ||||
if (detailList.Count == 0) | |||||
if (detailList != null) | |||||
{ | { | ||||
return Fail("请添加明细"); | |||||
if (detailList.Count == 0) | |||||
{ | |||||
return Fail("请添加明细"); | |||||
} | |||||
} | } | ||||
string id=PurchaseTravelIBLL.SaveEntity(parameter.keyValue, entity, detailList); | string id=PurchaseTravelIBLL.SaveEntity(parameter.keyValue, entity, detailList); | ||||
var json = new | var json = new | ||||
@@ -117,10 +117,12 @@ namespace Learun.Application.WebApi | |||||
Purchase_Work_ApplyEntity entity = parameter.strEntity.ToObject<Purchase_Work_ApplyEntity>(); | Purchase_Work_ApplyEntity entity = parameter.strEntity.ToObject<Purchase_Work_ApplyEntity>(); | ||||
List<Purchase_Work_ApplydetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Work_ApplydetailsEntity>>(); | List<Purchase_Work_ApplydetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Work_ApplydetailsEntity>>(); | ||||
//var code = entity.EnCode; | //var code = entity.EnCode; | ||||
if (detailList.Count == 0) | |||||
if (detailList != null) | |||||
{ | { | ||||
return Fail("请添加明细"); | |||||
if (detailList.Count == 0) | |||||
{ | |||||
return Fail("请添加明细"); | |||||
} | |||||
} | } | ||||
string id=PurchaseWorkIBLL.SaveEntity(parameter.keyValue, entity, detailList); | string id=PurchaseWorkIBLL.SaveEntity(parameter.keyValue, entity, detailList); | ||||
var json = new | var json = new | ||||