fix:修改安装清单查询速度。
This commit is contained in:
@@ -474,18 +474,29 @@ namespace FineUIPro.Web.CLGL
|
||||
return;
|
||||
}
|
||||
string planId = Grid1.SelectedRowID;
|
||||
string message = TwOutputmasterService.RevokeGenOutMasterByPlanId(planId);
|
||||
if (string.IsNullOrEmpty(message))
|
||||
var planMaster = BLL.TwInOutplanmasterService.GetById(planId);
|
||||
switch (planMaster.State)
|
||||
{
|
||||
ShowNotify("撤销出库成功!", MessageBoxIcon.Success);
|
||||
BindGrid();
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop(message, MessageBoxIcon.Warning);
|
||||
return;
|
||||
case (int)TwConst.State.已审核:
|
||||
planMaster.State = (int)TwConst.State.待审核;
|
||||
planMaster.AuditMan = null;
|
||||
planMaster.AuditDate = null;
|
||||
TwInOutplanmasterService.Update(planMaster);
|
||||
BindGrid();
|
||||
ShowNotify("撤销审核成功!", MessageBoxIcon.Success);
|
||||
|
||||
}
|
||||
break;
|
||||
case (int)TwConst.State.已完成:
|
||||
TwOutputmasterService.RevokeGenOutMasterByPlanId(planId);
|
||||
BindGrid();
|
||||
ShowNotify("撤销出库单成功!", MessageBoxIcon.Success);
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
Alert.ShowInTop("请选择有效的计划!", MessageBoxIcon.Warning);
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user