@@ -129,8 +129,12 @@ namespace Learun.Application.WebApi | |||||
List<Purchase_Edu_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Edu_DetailsEntity>>(); | List<Purchase_Edu_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Edu_DetailsEntity>>(); | ||||
//var code = entity.EnCode; | //var code = entity.EnCode; | ||||
purchaseeduIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
return Success("保存成功!"); | |||||
string id = purchaseeduIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
var json = new | |||||
{ | |||||
Id = id | |||||
}; | |||||
return Success(json); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 提交 | /// 提交 | ||||
@@ -129,8 +129,12 @@ namespace Learun.Application.WebApi | |||||
List<Purchase_Info_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Info_DetailsEntity>>(); | List<Purchase_Info_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Info_DetailsEntity>>(); | ||||
//var code = entity.EnCode; | //var code = entity.EnCode; | ||||
PurchaseInfoIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
return Success("保存成功!"); | |||||
string id=PurchaseInfoIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
var json = new | |||||
{ | |||||
Id = id | |||||
}; | |||||
return Success(json); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 提交 | /// 提交 | ||||
@@ -129,8 +129,12 @@ namespace Learun.Application.WebApi | |||||
List<Purchase_Logistic_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Logistic_DetailsEntity>>(); | List<Purchase_Logistic_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Logistic_DetailsEntity>>(); | ||||
//var code = entity.EnCode; | //var code = entity.EnCode; | ||||
PurchaseLogisticIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
return Success("保存成功!"); | |||||
string id= PurchaseLogisticIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
var json = new | |||||
{ | |||||
Id = id | |||||
}; | |||||
return Success(json); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 提交 | /// 提交 | ||||
@@ -129,8 +129,12 @@ namespace Learun.Application.WebApi | |||||
List<Purchase_Other_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Other_DetailsEntity>>(); | List<Purchase_Other_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Other_DetailsEntity>>(); | ||||
//var code = entity.EnCode; | //var code = entity.EnCode; | ||||
PurchaseOtherIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
return Success("保存成功!"); | |||||
string id=PurchaseOtherIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
var json = new | |||||
{ | |||||
Id = id | |||||
}; | |||||
return Success(json); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 提交 | /// 提交 | ||||
@@ -129,8 +129,12 @@ namespace Learun.Application.WebApi | |||||
List<Purchase_Print_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Print_DetailsEntity>>(); | List<Purchase_Print_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Print_DetailsEntity>>(); | ||||
//var code = entity.EnCode; | //var code = entity.EnCode; | ||||
PurchaseprintIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
return Success("保存成功!"); | |||||
string id=PurchaseprintIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
var json = new | |||||
{ | |||||
Id = id | |||||
}; | |||||
return Success(json); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 提交 | /// 提交 | ||||
@@ -129,8 +129,12 @@ namespace Learun.Application.WebApi | |||||
List<Purchase_Service_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Service_DetailsEntity>>(); | List<Purchase_Service_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Service_DetailsEntity>>(); | ||||
//var code = entity.EnCode; | //var code = entity.EnCode; | ||||
PurchaseServiceIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
return Success("保存成功!"); | |||||
string id=PurchaseServiceIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
var json = new | |||||
{ | |||||
Id = id | |||||
}; | |||||
return Success(json); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 提交 | /// 提交 | ||||
@@ -129,8 +129,12 @@ namespace Learun.Application.WebApi | |||||
List<Purchase_Student_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Student_DetailsEntity>>(); | List<Purchase_Student_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Student_DetailsEntity>>(); | ||||
//var code = entity.EnCode; | //var code = entity.EnCode; | ||||
PurchaseStudentIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
return Success("保存成功!"); | |||||
string id=PurchaseStudentIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
var json = new | |||||
{ | |||||
Id = id | |||||
}; | |||||
return Success(json); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 提交 | /// 提交 | ||||
@@ -129,8 +129,12 @@ namespace Learun.Application.WebApi | |||||
//List<Purchase_Travel_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Travel_DetailsEntity>>(); | //List<Purchase_Travel_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Travel_DetailsEntity>>(); | ||||
//var code = entity.EnCode; | //var code = entity.EnCode; | ||||
PurchaseTravelIBLL.SaveEntity(parameter.keyValue, entity); | |||||
return Success("保存成功!"); | |||||
string id=PurchaseTravelIBLL.SaveEntity(parameter.keyValue, entity); | |||||
var json = new | |||||
{ | |||||
Id = id | |||||
}; | |||||
return Success(json); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 提交 | /// 提交 | ||||
@@ -129,8 +129,12 @@ namespace Learun.Application.WebApi | |||||
List<Purchase_Work_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Work_DetailsEntity>>(); | List<Purchase_Work_DetailsEntity> detailList = parameter.DetailList.ToObject<List<Purchase_Work_DetailsEntity>>(); | ||||
//var code = entity.EnCode; | //var code = entity.EnCode; | ||||
purchaseworkIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
return Success("保存成功!"); | |||||
string id=purchaseworkIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
var json = new | |||||
{ | |||||
Id = id | |||||
}; | |||||
return Success(json); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 提交 | /// 提交 | ||||
@@ -118,8 +118,12 @@ namespace Learun.Application.WebApi | |||||
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; | ||||
purchaseeduIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
return Success("保存成功!"); | |||||
string id=purchaseeduIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
var json = new | |||||
{ | |||||
Id = id | |||||
}; | |||||
return Success(json); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 提交 | /// 提交 | ||||
@@ -118,8 +118,12 @@ namespace Learun.Application.WebApi | |||||
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; | ||||
purchaseinfoIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
return Success("保存成功!"); | |||||
string id=purchaseinfoIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
var json = new | |||||
{ | |||||
Id = id | |||||
}; | |||||
return Success(json); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 提交 | /// 提交 | ||||
@@ -118,8 +118,12 @@ namespace Learun.Application.WebApi | |||||
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; | ||||
purchaselogisticIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
return Success("保存成功!"); | |||||
string id=purchaselogisticIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
var json = new | |||||
{ | |||||
Id = id | |||||
}; | |||||
return Success(json); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 提交 | /// 提交 | ||||
@@ -118,8 +118,12 @@ namespace Learun.Application.WebApi | |||||
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; | ||||
PurchaseOtherIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
return Success("保存成功!"); | |||||
string id=PurchaseOtherIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
var json = new | |||||
{ | |||||
Id = id | |||||
}; | |||||
return Success(json); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 提交 | /// 提交 | ||||
@@ -118,8 +118,12 @@ namespace Learun.Application.WebApi | |||||
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; | ||||
purchaseprintIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
return Success("保存成功!"); | |||||
string id= purchaseprintIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
var json = new | |||||
{ | |||||
Id = id | |||||
}; | |||||
return Success(json); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 提交 | /// 提交 | ||||
@@ -118,8 +118,12 @@ namespace Learun.Application.WebApi | |||||
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; | ||||
PurchaseServiceIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
return Success("保存成功!"); | |||||
string id=PurchaseServiceIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
var json = new | |||||
{ | |||||
Id = id | |||||
}; | |||||
return Success(json); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 提交 | /// 提交 | ||||
@@ -118,8 +118,12 @@ namespace Learun.Application.WebApi | |||||
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; | ||||
PurchaseStudentIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
return Success("保存成功!"); | |||||
string id=PurchaseStudentIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
var json = new | |||||
{ | |||||
Id = id | |||||
}; | |||||
return Success(json); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 提交 | /// 提交 | ||||
@@ -118,8 +118,12 @@ namespace Learun.Application.WebApi | |||||
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; | ||||
PurchaseTravelIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
return Success("保存成功!"); | |||||
string id=PurchaseTravelIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
var json = new | |||||
{ | |||||
Id = id | |||||
}; | |||||
return Success(json); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 提交 | /// 提交 | ||||
@@ -118,8 +118,12 @@ namespace Learun.Application.WebApi | |||||
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; | ||||
PurchaseWorkIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
return Success("保存成功!"); | |||||
string id=PurchaseWorkIBLL.SaveEntity(parameter.keyValue, entity, detailList); | |||||
var json = new | |||||
{ | |||||
Id = id | |||||
}; | |||||
return Success(json); | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 提交 | /// 提交 | ||||
@@ -195,11 +195,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void SaveEntity(string keyValue, Purchase_EduEntity entity,List<Purchase_Edu_DetailsEntity> purchase_Edu_DetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_EduEntity entity,List<Purchase_Edu_DetailsEntity> purchase_Edu_DetailsList) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
purchase_EduService.SaveEntity(keyValue, entity,purchase_Edu_DetailsList); | |||||
return purchase_EduService.SaveEntity(keyValue, entity,purchase_Edu_DetailsList); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -64,7 +64,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(string keyValue, Purchase_EduEntity entity,List<Purchase_Edu_DetailsEntity> purchase_Work_DetailsList); | |||||
string SaveEntity(string keyValue, Purchase_EduEntity entity,List<Purchase_Edu_DetailsEntity> purchase_Work_DetailsList); | |||||
#endregion | #endregion | ||||
@@ -275,7 +275,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
public void SaveEntity(string keyValue, Purchase_EduEntity entity,List<Purchase_Edu_DetailsEntity> purchase_Edu_DetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_EduEntity entity,List<Purchase_Edu_DetailsEntity> purchase_Edu_DetailsList) | |||||
{ | { | ||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | var db = this.BaseRepository("CollegeMIS").BeginTrans(); | ||||
try | try | ||||
@@ -318,6 +318,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
throw ExceptionEx.ThrowServiceException(ex); | throw ExceptionEx.ThrowServiceException(ex); | ||||
} | } | ||||
} | } | ||||
return entity.Id; | |||||
} | } | ||||
#endregion | #endregion | ||||
@@ -172,11 +172,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void SaveEntity(string keyValue, Purchase_Edu_ApplyEntity entity,List<Purchase_Edu_ApplydetailsEntity> purchase_Edu_applydetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_Edu_ApplyEntity entity,List<Purchase_Edu_ApplydetailsEntity> purchase_Edu_applydetailsList) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
purchase_Edu_ApplyService.SaveEntity(keyValue, entity,purchase_Edu_applydetailsList); | |||||
return purchase_Edu_ApplyService.SaveEntity(keyValue, entity,purchase_Edu_applydetailsList); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -58,7 +58,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(string keyValue, Purchase_Edu_ApplyEntity entity,List<Purchase_Edu_ApplydetailsEntity> purchase_Edu_applydetailsList); | |||||
string SaveEntity(string keyValue, Purchase_Edu_ApplyEntity entity,List<Purchase_Edu_ApplydetailsEntity> purchase_Edu_applydetailsList); | |||||
#endregion | #endregion | ||||
@@ -238,7 +238,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
public void SaveEntity(string keyValue, Purchase_Edu_ApplyEntity entity,List<Purchase_Edu_ApplydetailsEntity> Purchase_Edu_ApplydetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_Edu_ApplyEntity entity,List<Purchase_Edu_ApplydetailsEntity> Purchase_Edu_ApplydetailsList) | |||||
{ | { | ||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | var db = this.BaseRepository("CollegeMIS").BeginTrans(); | ||||
try | try | ||||
@@ -283,6 +283,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
throw ExceptionEx.ThrowServiceException(ex); | throw ExceptionEx.ThrowServiceException(ex); | ||||
} | } | ||||
} | } | ||||
return entity.Id; | |||||
} | } | ||||
#endregion | #endregion | ||||
@@ -171,11 +171,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void SaveEntity(string keyValue, Purchase_InfoEntity entity,List<Purchase_Info_DetailsEntity> purchase_Info_DetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_InfoEntity entity,List<Purchase_Info_DetailsEntity> purchase_Info_DetailsList) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
purchase_InfoService.SaveEntity(keyValue, entity,purchase_Info_DetailsList); | |||||
return purchase_InfoService.SaveEntity(keyValue, entity,purchase_Info_DetailsList); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -58,7 +58,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(string keyValue, Purchase_InfoEntity entity,List<Purchase_Info_DetailsEntity> purchase_Work_DetailsList); | |||||
string SaveEntity(string keyValue, Purchase_InfoEntity entity,List<Purchase_Info_DetailsEntity> purchase_Work_DetailsList); | |||||
#endregion | #endregion | ||||
@@ -224,7 +224,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
public void SaveEntity(string keyValue, Purchase_InfoEntity entity,List<Purchase_Info_DetailsEntity> purchase_Work_DetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_InfoEntity entity,List<Purchase_Info_DetailsEntity> purchase_Work_DetailsList) | |||||
{ | { | ||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | var db = this.BaseRepository("CollegeMIS").BeginTrans(); | ||||
try | try | ||||
@@ -267,6 +267,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
throw ExceptionEx.ThrowServiceException(ex); | throw ExceptionEx.ThrowServiceException(ex); | ||||
} | } | ||||
} | } | ||||
return entity.Id; | |||||
} | } | ||||
#endregion | #endregion | ||||
@@ -172,11 +172,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void SaveEntity(string keyValue, Purchase_Info_ApplyEntity entity,List<Purchase_Info_ApplydetailsEntity> Purchase_Info_ApplydetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_Info_ApplyEntity entity,List<Purchase_Info_ApplydetailsEntity> Purchase_Info_ApplydetailsList) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
Purchase_Info_ApplyService.SaveEntity(keyValue, entity,Purchase_Info_ApplydetailsList); | |||||
return Purchase_Info_ApplyService.SaveEntity(keyValue, entity,Purchase_Info_ApplydetailsList); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -58,7 +58,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(string keyValue, Purchase_Info_ApplyEntity entity,List<Purchase_Info_ApplydetailsEntity> Purchase_Info_ApplydetailsList); | |||||
string SaveEntity(string keyValue, Purchase_Info_ApplyEntity entity,List<Purchase_Info_ApplydetailsEntity> Purchase_Info_ApplydetailsList); | |||||
#endregion | #endregion | ||||
@@ -238,7 +238,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
public void SaveEntity(string keyValue, Purchase_Info_ApplyEntity entity,List<Purchase_Info_ApplydetailsEntity> Purchase_Info_ApplydetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_Info_ApplyEntity entity,List<Purchase_Info_ApplydetailsEntity> Purchase_Info_ApplydetailsList) | |||||
{ | { | ||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | var db = this.BaseRepository("CollegeMIS").BeginTrans(); | ||||
try | try | ||||
@@ -283,6 +283,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
throw ExceptionEx.ThrowServiceException(ex); | throw ExceptionEx.ThrowServiceException(ex); | ||||
} | } | ||||
} | } | ||||
return entity.Id; | |||||
} | } | ||||
#endregion | #endregion | ||||
@@ -171,11 +171,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void SaveEntity(string keyValue, Purchase_LogisticEntity entity,List<Purchase_Logistic_DetailsEntity> purchase_Logistic_DetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_LogisticEntity entity,List<Purchase_Logistic_DetailsEntity> purchase_Logistic_DetailsList) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
purchase_LogisticService.SaveEntity(keyValue, entity,purchase_Logistic_DetailsList); | |||||
return purchase_LogisticService.SaveEntity(keyValue, entity,purchase_Logistic_DetailsList); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -58,7 +58,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(string keyValue, Purchase_LogisticEntity entity,List<Purchase_Logistic_DetailsEntity> purchase_Work_DetailsList); | |||||
string SaveEntity(string keyValue, Purchase_LogisticEntity entity,List<Purchase_Logistic_DetailsEntity> purchase_Work_DetailsList); | |||||
#endregion | #endregion | ||||
@@ -224,7 +224,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
public void SaveEntity(string keyValue, Purchase_LogisticEntity entity,List<Purchase_Logistic_DetailsEntity> purchase_Work_DetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_LogisticEntity entity,List<Purchase_Logistic_DetailsEntity> purchase_Work_DetailsList) | |||||
{ | { | ||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | var db = this.BaseRepository("CollegeMIS").BeginTrans(); | ||||
try | try | ||||
@@ -267,6 +267,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
throw ExceptionEx.ThrowServiceException(ex); | throw ExceptionEx.ThrowServiceException(ex); | ||||
} | } | ||||
} | } | ||||
return entity.Id; | |||||
} | } | ||||
#endregion | #endregion | ||||
@@ -172,11 +172,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void SaveEntity(string keyValue, Purchase_Logistic_ApplyEntity entity,List<Purchase_Logistic_ApplydetailsEntity> Purchase_Logistic_ApplydetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_Logistic_ApplyEntity entity,List<Purchase_Logistic_ApplydetailsEntity> Purchase_Logistic_ApplydetailsList) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
Purchase_Logistic_ApplyService.SaveEntity(keyValue, entity,Purchase_Logistic_ApplydetailsList); | |||||
return Purchase_Logistic_ApplyService.SaveEntity(keyValue, entity,Purchase_Logistic_ApplydetailsList); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -58,7 +58,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(string keyValue, Purchase_Logistic_ApplyEntity entity,List<Purchase_Logistic_ApplydetailsEntity> Purchase_Logistic_ApplydetailsList); | |||||
string SaveEntity(string keyValue, Purchase_Logistic_ApplyEntity entity,List<Purchase_Logistic_ApplydetailsEntity> Purchase_Logistic_ApplydetailsList); | |||||
#endregion | #endregion | ||||
@@ -238,7 +238,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
public void SaveEntity(string keyValue, Purchase_Logistic_ApplyEntity entity,List<Purchase_Logistic_ApplydetailsEntity> Purchase_Logistic_ApplydetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_Logistic_ApplyEntity entity,List<Purchase_Logistic_ApplydetailsEntity> Purchase_Logistic_ApplydetailsList) | |||||
{ | { | ||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | var db = this.BaseRepository("CollegeMIS").BeginTrans(); | ||||
try | try | ||||
@@ -283,6 +283,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
throw ExceptionEx.ThrowServiceException(ex); | throw ExceptionEx.ThrowServiceException(ex); | ||||
} | } | ||||
} | } | ||||
return entity.Id; | |||||
} | } | ||||
#endregion | #endregion | ||||
@@ -171,11 +171,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void SaveEntity(string keyValue, Purchase_OtherEntity entity,List<Purchase_Other_DetailsEntity> purchase_Other_DetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_OtherEntity entity,List<Purchase_Other_DetailsEntity> purchase_Other_DetailsList) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
purchase_OtherService.SaveEntity(keyValue, entity,purchase_Other_DetailsList); | |||||
return purchase_OtherService.SaveEntity(keyValue, entity,purchase_Other_DetailsList); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -58,7 +58,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(string keyValue, Purchase_OtherEntity entity,List<Purchase_Other_DetailsEntity> purchase_Work_DetailsList); | |||||
string SaveEntity(string keyValue, Purchase_OtherEntity entity,List<Purchase_Other_DetailsEntity> purchase_Work_DetailsList); | |||||
#endregion | #endregion | ||||
@@ -224,7 +224,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
public void SaveEntity(string keyValue, Purchase_OtherEntity entity,List<Purchase_Other_DetailsEntity> purchase_Work_DetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_OtherEntity entity,List<Purchase_Other_DetailsEntity> purchase_Work_DetailsList) | |||||
{ | { | ||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | var db = this.BaseRepository("CollegeMIS").BeginTrans(); | ||||
try | try | ||||
@@ -267,6 +267,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
throw ExceptionEx.ThrowServiceException(ex); | throw ExceptionEx.ThrowServiceException(ex); | ||||
} | } | ||||
} | } | ||||
return entity.Id; | |||||
} | } | ||||
#endregion | #endregion | ||||
@@ -172,11 +172,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void SaveEntity(string keyValue, Purchase_Other_ApplyEntity entity,List<Purchase_Other_ApplydetailsEntity> Purchase_Other_ApplydetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_Other_ApplyEntity entity,List<Purchase_Other_ApplydetailsEntity> Purchase_Other_ApplydetailsList) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
Purchase_Other_ApplyService.SaveEntity(keyValue, entity,Purchase_Other_ApplydetailsList); | |||||
return Purchase_Other_ApplyService.SaveEntity(keyValue, entity,Purchase_Other_ApplydetailsList); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -58,7 +58,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(string keyValue, Purchase_Other_ApplyEntity entity,List<Purchase_Other_ApplydetailsEntity> Purchase_Other_ApplydetailsList); | |||||
string SaveEntity(string keyValue, Purchase_Other_ApplyEntity entity,List<Purchase_Other_ApplydetailsEntity> Purchase_Other_ApplydetailsList); | |||||
#endregion | #endregion | ||||
@@ -238,7 +238,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
public void SaveEntity(string keyValue, Purchase_Other_ApplyEntity entity,List<Purchase_Other_ApplydetailsEntity> Purchase_Other_ApplydetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_Other_ApplyEntity entity,List<Purchase_Other_ApplydetailsEntity> Purchase_Other_ApplydetailsList) | |||||
{ | { | ||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | var db = this.BaseRepository("CollegeMIS").BeginTrans(); | ||||
try | try | ||||
@@ -283,6 +283,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
throw ExceptionEx.ThrowServiceException(ex); | throw ExceptionEx.ThrowServiceException(ex); | ||||
} | } | ||||
} | } | ||||
return entity.Id; | |||||
} | } | ||||
#endregion | #endregion | ||||
@@ -171,11 +171,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void SaveEntity(string keyValue, Purchase_PrintEntity entity,List<Purchase_Print_DetailsEntity> purchase_Print_DetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_PrintEntity entity,List<Purchase_Print_DetailsEntity> purchase_Print_DetailsList) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
purchase_PrintService.SaveEntity(keyValue, entity,purchase_Print_DetailsList); | |||||
return purchase_PrintService.SaveEntity(keyValue, entity,purchase_Print_DetailsList); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -58,7 +58,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(string keyValue, Purchase_PrintEntity entity,List<Purchase_Print_DetailsEntity> purchase_Work_DetailsList); | |||||
string SaveEntity(string keyValue, Purchase_PrintEntity entity,List<Purchase_Print_DetailsEntity> purchase_Work_DetailsList); | |||||
#endregion | #endregion | ||||
@@ -224,7 +224,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
public void SaveEntity(string keyValue, Purchase_PrintEntity entity,List<Purchase_Print_DetailsEntity> purchase_Work_DetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_PrintEntity entity,List<Purchase_Print_DetailsEntity> purchase_Work_DetailsList) | |||||
{ | { | ||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | var db = this.BaseRepository("CollegeMIS").BeginTrans(); | ||||
try | try | ||||
@@ -267,6 +267,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
throw ExceptionEx.ThrowServiceException(ex); | throw ExceptionEx.ThrowServiceException(ex); | ||||
} | } | ||||
} | } | ||||
return entity.Id; | |||||
} | } | ||||
#endregion | #endregion | ||||
@@ -172,11 +172,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void SaveEntity(string keyValue, Purchase_Print_ApplyEntity entity,List<Purchase_Print_ApplydetailsEntity> Purchase_Print_ApplydetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_Print_ApplyEntity entity,List<Purchase_Print_ApplydetailsEntity> Purchase_Print_ApplydetailsList) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
Purchase_Print_ApplyService.SaveEntity(keyValue, entity,Purchase_Print_ApplydetailsList); | |||||
return Purchase_Print_ApplyService.SaveEntity(keyValue, entity,Purchase_Print_ApplydetailsList); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -58,7 +58,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(string keyValue, Purchase_Print_ApplyEntity entity,List<Purchase_Print_ApplydetailsEntity> Purchase_Print_ApplydetailsList); | |||||
string SaveEntity(string keyValue, Purchase_Print_ApplyEntity entity,List<Purchase_Print_ApplydetailsEntity> Purchase_Print_ApplydetailsList); | |||||
#endregion | #endregion | ||||
@@ -238,7 +238,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
public void SaveEntity(string keyValue, Purchase_Print_ApplyEntity entity,List<Purchase_Print_ApplydetailsEntity> Purchase_Print_ApplydetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_Print_ApplyEntity entity,List<Purchase_Print_ApplydetailsEntity> Purchase_Print_ApplydetailsList) | |||||
{ | { | ||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | var db = this.BaseRepository("CollegeMIS").BeginTrans(); | ||||
try | try | ||||
@@ -283,6 +283,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
throw ExceptionEx.ThrowServiceException(ex); | throw ExceptionEx.ThrowServiceException(ex); | ||||
} | } | ||||
} | } | ||||
return entity.Id; | |||||
} | } | ||||
#endregion | #endregion | ||||
@@ -195,11 +195,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void SaveEntity(string keyValue, Purchase_ServiceEntity entity,List<Purchase_Service_DetailsEntity> Purchase_Service_DetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_ServiceEntity entity,List<Purchase_Service_DetailsEntity> Purchase_Service_DetailsList) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
Purchase_ServiceService.SaveEntity(keyValue, entity,Purchase_Service_DetailsList); | |||||
return Purchase_ServiceService.SaveEntity(keyValue, entity,Purchase_Service_DetailsList); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -64,7 +64,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(string keyValue, Purchase_ServiceEntity entity,List<Purchase_Service_DetailsEntity> purchase_Work_DetailsList); | |||||
string SaveEntity(string keyValue, Purchase_ServiceEntity entity,List<Purchase_Service_DetailsEntity> purchase_Work_DetailsList); | |||||
#endregion | #endregion | ||||
@@ -275,7 +275,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
public void SaveEntity(string keyValue, Purchase_ServiceEntity entity,List<Purchase_Service_DetailsEntity> Purchase_Service_DetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_ServiceEntity entity,List<Purchase_Service_DetailsEntity> Purchase_Service_DetailsList) | |||||
{ | { | ||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | var db = this.BaseRepository("CollegeMIS").BeginTrans(); | ||||
try | try | ||||
@@ -318,6 +318,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
throw ExceptionEx.ThrowServiceException(ex); | throw ExceptionEx.ThrowServiceException(ex); | ||||
} | } | ||||
} | } | ||||
return entity.Id; | |||||
} | } | ||||
#endregion | #endregion | ||||
@@ -172,11 +172,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void SaveEntity(string keyValue, Purchase_Service_ApplyEntity entity,List<Purchase_Service_ApplydetailsEntity> Purchase_Service_applydetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_Service_ApplyEntity entity,List<Purchase_Service_ApplydetailsEntity> Purchase_Service_applydetailsList) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
Purchase_Service_ApplyService.SaveEntity(keyValue, entity,Purchase_Service_applydetailsList); | |||||
return Purchase_Service_ApplyService.SaveEntity(keyValue, entity,Purchase_Service_applydetailsList); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -58,7 +58,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(string keyValue, Purchase_Service_ApplyEntity entity,List<Purchase_Service_ApplydetailsEntity> Purchase_Service_applydetailsList); | |||||
string SaveEntity(string keyValue, Purchase_Service_ApplyEntity entity,List<Purchase_Service_ApplydetailsEntity> Purchase_Service_applydetailsList); | |||||
#endregion | #endregion | ||||
@@ -238,7 +238,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
public void SaveEntity(string keyValue, Purchase_Service_ApplyEntity entity,List<Purchase_Service_ApplydetailsEntity> Purchase_Service_ApplydetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_Service_ApplyEntity entity,List<Purchase_Service_ApplydetailsEntity> Purchase_Service_ApplydetailsList) | |||||
{ | { | ||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | var db = this.BaseRepository("CollegeMIS").BeginTrans(); | ||||
try | try | ||||
@@ -283,6 +283,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
throw ExceptionEx.ThrowServiceException(ex); | throw ExceptionEx.ThrowServiceException(ex); | ||||
} | } | ||||
} | } | ||||
return entity.Id; | |||||
} | } | ||||
#endregion | #endregion | ||||
@@ -171,11 +171,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void SaveEntity(string keyValue, Purchase_StudentEntity entity,List<Purchase_Student_DetailsEntity> purchase_Student_DetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_StudentEntity entity,List<Purchase_Student_DetailsEntity> purchase_Student_DetailsList) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
purchase_StudentService.SaveEntity(keyValue, entity,purchase_Student_DetailsList); | |||||
return purchase_StudentService.SaveEntity(keyValue, entity,purchase_Student_DetailsList); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -58,7 +58,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(string keyValue, Purchase_StudentEntity entity,List<Purchase_Student_DetailsEntity> purchase_Work_DetailsList); | |||||
string SaveEntity(string keyValue, Purchase_StudentEntity entity,List<Purchase_Student_DetailsEntity> purchase_Work_DetailsList); | |||||
#endregion | #endregion | ||||
@@ -224,7 +224,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
public void SaveEntity(string keyValue, Purchase_StudentEntity entity,List<Purchase_Student_DetailsEntity> purchase_Work_DetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_StudentEntity entity,List<Purchase_Student_DetailsEntity> purchase_Work_DetailsList) | |||||
{ | { | ||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | var db = this.BaseRepository("CollegeMIS").BeginTrans(); | ||||
try | try | ||||
@@ -267,6 +267,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
throw ExceptionEx.ThrowServiceException(ex); | throw ExceptionEx.ThrowServiceException(ex); | ||||
} | } | ||||
} | } | ||||
return entity.Id; | |||||
} | } | ||||
#endregion | #endregion | ||||
@@ -172,11 +172,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void SaveEntity(string keyValue, Purchase_Student_ApplyEntity entity,List<Purchase_Student_ApplydetailsEntity> Purchase_Student_ApplydetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_Student_ApplyEntity entity,List<Purchase_Student_ApplydetailsEntity> Purchase_Student_ApplydetailsList) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
Purchase_Student_ApplyService.SaveEntity(keyValue, entity,Purchase_Student_ApplydetailsList); | |||||
return Purchase_Student_ApplyService.SaveEntity(keyValue, entity,Purchase_Student_ApplydetailsList); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -58,7 +58,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(string keyValue, Purchase_Student_ApplyEntity entity,List<Purchase_Student_ApplydetailsEntity> Purchase_Student_ApplydetailsList); | |||||
string SaveEntity(string keyValue, Purchase_Student_ApplyEntity entity,List<Purchase_Student_ApplydetailsEntity> Purchase_Student_ApplydetailsList); | |||||
#endregion | #endregion | ||||
@@ -238,7 +238,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
public void SaveEntity(string keyValue, Purchase_Student_ApplyEntity entity,List<Purchase_Student_ApplydetailsEntity> Purchase_Student_ApplydetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_Student_ApplyEntity entity,List<Purchase_Student_ApplydetailsEntity> Purchase_Student_ApplydetailsList) | |||||
{ | { | ||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | var db = this.BaseRepository("CollegeMIS").BeginTrans(); | ||||
try | try | ||||
@@ -283,6 +283,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
throw ExceptionEx.ThrowServiceException(ex); | throw ExceptionEx.ThrowServiceException(ex); | ||||
} | } | ||||
} | } | ||||
return entity.Id; | |||||
} | } | ||||
#endregion | #endregion | ||||
@@ -149,11 +149,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void SaveEntity(string keyValue, Purchase_TravelEntity entity) | |||||
public string SaveEntity(string keyValue, Purchase_TravelEntity entity) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
Purchase_TravelService.SaveEntity(keyValue, entity); | |||||
return Purchase_TravelService.SaveEntity(keyValue, entity); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -53,7 +53,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(string keyValue, Purchase_TravelEntity entity); | |||||
string SaveEntity(string keyValue, Purchase_TravelEntity entity); | |||||
#endregion | #endregion | ||||
@@ -230,7 +230,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
public void SaveEntity(string keyValue, Purchase_TravelEntity entity) | |||||
public string SaveEntity(string keyValue, Purchase_TravelEntity entity) | |||||
{ | { | ||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | var db = this.BaseRepository("CollegeMIS").BeginTrans(); | ||||
try | try | ||||
@@ -262,6 +262,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
throw ExceptionEx.ThrowServiceException(ex); | throw ExceptionEx.ThrowServiceException(ex); | ||||
} | } | ||||
} | } | ||||
return entity.Id; | |||||
} | } | ||||
#endregion | #endregion | ||||
@@ -172,11 +172,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void SaveEntity(string keyValue, Purchase_Travel_ApplyEntity entity,List<Purchase_Travel_ApplydetailsEntity> Purchase_Travel_applydetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_Travel_ApplyEntity entity,List<Purchase_Travel_ApplydetailsEntity> Purchase_Travel_applydetailsList) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
Purchase_Travel_ApplyService.SaveEntity(keyValue, entity,Purchase_Travel_applydetailsList); | |||||
return Purchase_Travel_ApplyService.SaveEntity(keyValue, entity,Purchase_Travel_applydetailsList); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -58,7 +58,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(string keyValue, Purchase_Travel_ApplyEntity entity,List<Purchase_Travel_ApplydetailsEntity> Purchase_Travel_applydetailsList); | |||||
string SaveEntity(string keyValue, Purchase_Travel_ApplyEntity entity,List<Purchase_Travel_ApplydetailsEntity> Purchase_Travel_applydetailsList); | |||||
#endregion | #endregion | ||||
@@ -107,7 +107,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
string sql = "select a.*,b.Follows,b.Reason,b.starttime,b.endtime from Purchase_Travel_Applydetails a left join Purchase_Travel b on b.id=a.purchaseid where applyid='"+keyValue+"'"; | |||||
string sql = "select a.*,b.Follows,b.Reason,b.starttime,b.endtime,b.TravelAddress,b.Traveler from Purchase_Travel_Applydetails a left join Purchase_Travel b on b.id=a.purchaseid where applyid='" + keyValue+"'"; | |||||
var data = this.BaseRepository("CollegeMIS").FindList<Purchase_Travel_ApplydetailsEntity>(sql);// as List<Purchase_Travel_ApplydetailsEntity>; | var data = this.BaseRepository("CollegeMIS").FindList<Purchase_Travel_ApplydetailsEntity>(sql);// as List<Purchase_Travel_ApplydetailsEntity>; | ||||
//this.BaseRepository("CollegeMIS").FindList<Purchase_Travel_ApplydetailsEntity>(t => t.applyid == keyValue); | //this.BaseRepository("CollegeMIS").FindList<Purchase_Travel_ApplydetailsEntity>(t => t.applyid == keyValue); | ||||
return data; | return data; | ||||
@@ -238,7 +238,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
public void SaveEntity(string keyValue, Purchase_Travel_ApplyEntity entity,List<Purchase_Travel_ApplydetailsEntity> Purchase_Travel_ApplydetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_Travel_ApplyEntity entity,List<Purchase_Travel_ApplydetailsEntity> Purchase_Travel_ApplydetailsList) | |||||
{ | { | ||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | var db = this.BaseRepository("CollegeMIS").BeginTrans(); | ||||
try | try | ||||
@@ -283,6 +283,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
throw ExceptionEx.ThrowServiceException(ex); | throw ExceptionEx.ThrowServiceException(ex); | ||||
} | } | ||||
} | } | ||||
return entity.Id; | |||||
} | } | ||||
#endregion | #endregion | ||||
@@ -52,11 +52,15 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
[NotMapped] | [NotMapped] | ||||
public string Reason { set; get; } | public string Reason { set; get; } | ||||
[NotMapped] | [NotMapped] | ||||
public double Follow { set; get; } | |||||
public string Follows { set; get; } | |||||
[NotMapped] | [NotMapped] | ||||
public string Starttime { set; get; } | public string Starttime { set; get; } | ||||
[NotMapped] | [NotMapped] | ||||
public string Endtime { set; get; } | public string Endtime { set; get; } | ||||
[NotMapped] | |||||
public string TravelAddress { set; get; } | |||||
[NotMapped] | |||||
public string Traveler { set; get; } | |||||
} | } | ||||
} | } | ||||
@@ -171,11 +171,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void SaveEntity(string keyValue, Purchase_WorkEntity entity,List<Purchase_Work_DetailsEntity> purchase_Work_DetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_WorkEntity entity,List<Purchase_Work_DetailsEntity> purchase_Work_DetailsList) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
purchase_WorkService.SaveEntity(keyValue, entity,purchase_Work_DetailsList); | |||||
return purchase_WorkService.SaveEntity(keyValue, entity,purchase_Work_DetailsList); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -58,7 +58,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(string keyValue, Purchase_WorkEntity entity,List<Purchase_Work_DetailsEntity> purchase_Work_DetailsList); | |||||
string SaveEntity(string keyValue, Purchase_WorkEntity entity,List<Purchase_Work_DetailsEntity> purchase_Work_DetailsList); | |||||
#endregion | #endregion | ||||
@@ -224,7 +224,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
public void SaveEntity(string keyValue, Purchase_WorkEntity entity,List<Purchase_Work_DetailsEntity> purchase_Work_DetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_WorkEntity entity,List<Purchase_Work_DetailsEntity> purchase_Work_DetailsList) | |||||
{ | { | ||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | var db = this.BaseRepository("CollegeMIS").BeginTrans(); | ||||
try | try | ||||
@@ -267,6 +267,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
throw ExceptionEx.ThrowServiceException(ex); | throw ExceptionEx.ThrowServiceException(ex); | ||||
} | } | ||||
} | } | ||||
return entity.Id; | |||||
} | } | ||||
#endregion | #endregion | ||||
@@ -172,11 +172,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
/// <returns></returns> | /// <returns></returns> | ||||
public void SaveEntity(string keyValue, Purchase_Work_ApplyEntity entity,List<Purchase_Work_ApplydetailsEntity> Purchase_Work_ApplydetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_Work_ApplyEntity entity,List<Purchase_Work_ApplydetailsEntity> Purchase_Work_ApplydetailsList) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
Purchase_Work_ApplyService.SaveEntity(keyValue, entity,Purchase_Work_ApplydetailsList); | |||||
return Purchase_Work_ApplyService.SaveEntity(keyValue, entity,Purchase_Work_ApplydetailsList); | |||||
} | } | ||||
catch (Exception ex) | catch (Exception ex) | ||||
{ | { | ||||
@@ -58,7 +58,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
void SaveEntity(string keyValue, Purchase_Work_ApplyEntity entity,List<Purchase_Work_ApplydetailsEntity> Purchase_Work_ApplydetailsList); | |||||
string SaveEntity(string keyValue, Purchase_Work_ApplyEntity entity,List<Purchase_Work_ApplydetailsEntity> Purchase_Work_ApplydetailsList); | |||||
#endregion | #endregion | ||||
@@ -238,7 +238,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
/// </summary> | /// </summary> | ||||
/// <param name="keyValue">主键</param> | /// <param name="keyValue">主键</param> | ||||
/// <param name="entity">实体</param> | /// <param name="entity">实体</param> | ||||
public void SaveEntity(string keyValue, Purchase_Work_ApplyEntity entity,List<Purchase_Work_ApplydetailsEntity> Purchase_Work_ApplydetailsList) | |||||
public string SaveEntity(string keyValue, Purchase_Work_ApplyEntity entity,List<Purchase_Work_ApplydetailsEntity> Purchase_Work_ApplydetailsList) | |||||
{ | { | ||||
var db = this.BaseRepository("CollegeMIS").BeginTrans(); | var db = this.BaseRepository("CollegeMIS").BeginTrans(); | ||||
try | try | ||||
@@ -283,6 +283,7 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
throw ExceptionEx.ThrowServiceException(ex); | throw ExceptionEx.ThrowServiceException(ex); | ||||
} | } | ||||
} | } | ||||
return entity.Id; | |||||
} | } | ||||
#endregion | #endregion | ||||