20250704 委托单退回
This commit is contained in:
@@ -1032,7 +1032,7 @@ namespace FineUIPro.Web.HJGL.PointTrust
|
||||
protected void btnBack_Click(object sender, EventArgs e)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
string trustBatchId = string.Empty;
|
||||
//string trustBatchId = string.Empty;
|
||||
var lists = this.Grid1.SelectedRowIDArray;
|
||||
if (lists.Count() > 0)
|
||||
{
|
||||
@@ -1047,8 +1047,10 @@ namespace FineUIPro.Web.HJGL.PointTrust
|
||||
var batchTrustItem = (from x in db.HJGL_Batch_BatchTrustItem where x.PointBatchItemId == pointBatchItemId select x).FirstOrDefault();
|
||||
if (batchTrustItem != null)
|
||||
{
|
||||
trustBatchId = batchTrustItem.TrustBatchId;
|
||||
BLL.Batch_BatchTrustItemService.DeleteTrustItemByTrustBatchItemId(batchTrustItem.TrustBatchItemId);
|
||||
//trustBatchId = batchTrustItem.TrustBatchId;
|
||||
BLL.Batch_BatchTrustItemService.DeleteTrustItemByTrustBatchId(batchTrustItem.TrustBatchId);
|
||||
BLL.Batch_BatchTrustService.DeleteBatchTrustById(batchTrustItem.TrustBatchId);
|
||||
//BLL.Batch_BatchTrustItemService.DeleteTrustItemByTrustBatchItemId(batchTrustItem.TrustBatchItemId);
|
||||
}
|
||||
|
||||
//修改点口中的委托状态
|
||||
@@ -1071,11 +1073,11 @@ namespace FineUIPro.Web.HJGL.PointTrust
|
||||
}
|
||||
}
|
||||
|
||||
var trustItemList = BLL.Batch_BatchTrustItemService.GetBatchTrustItemByTrustBatchId(trustBatchId);
|
||||
if (trustItemList.Count == 0)
|
||||
{
|
||||
BLL.Batch_BatchTrustService.DeleteBatchTrustById(trustBatchId);
|
||||
}
|
||||
//var trustItemList = BLL.Batch_BatchTrustItemService.GetBatchTrustItemByTrustBatchId(trustBatchId);
|
||||
//if (trustItemList.Count == 0)
|
||||
//{
|
||||
// BLL.Batch_BatchTrustService.DeleteBatchTrustById(trustBatchId);
|
||||
//}
|
||||
PageInfo();
|
||||
BindGrid();
|
||||
ShowNotify("退回成功!", MessageBoxIcon.Success);
|
||||
|
||||
Reference in New Issue
Block a user