1
This commit is contained in:
@@ -280,17 +280,28 @@ namespace FineUIPro.Web.CLGL
|
||||
}
|
||||
string planId = Grid1.SelectedRowID;
|
||||
var planMaster = BLL.TwInOutplanmasterService.GetById(planId);
|
||||
if (planMaster.State != (int)TwConst.State.已完成)
|
||||
switch (planMaster.State)
|
||||
{
|
||||
Alert.ShowInTop("请选择有效的计划!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
TwInputmasterService.RevokeGenInMasterByPlanId(planId);
|
||||
BindGrid();
|
||||
ShowNotify("撤销入库单成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
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.已完成:
|
||||
TwInputmasterService.RevokeGenInMasterByPlanId(planId);
|
||||
BindGrid();
|
||||
ShowNotify("撤销入库单成功!", MessageBoxIcon.Success);
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
Alert.ShowInTop("请选择有效的计划!", MessageBoxIcon.Warning);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnSearch_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user