1
This commit is contained in:
@@ -229,6 +229,8 @@ namespace FineUIPro.Web.CLGL
|
||||
else
|
||||
{
|
||||
planMaster.State = (int)TwConst.State.已审核;
|
||||
planMaster.AuditMan=this.CurrUser.PersonId;
|
||||
planMaster.AuditDate = DateTime.Now;
|
||||
TwInOutplanmasterService.Update(planMaster);
|
||||
ShowNotify("审核通过!", MessageBoxIcon.Success);
|
||||
BindGrid();
|
||||
@@ -244,21 +246,31 @@ namespace FineUIPro.Web.CLGL
|
||||
}
|
||||
string planId = Grid1.SelectedRowID;
|
||||
var planMaster = BLL.TwInOutplanmasterService.GetById(planId);
|
||||
if ( planMaster.State != (int)TwConst.State.已审核)
|
||||
if (planMaster.State != (int)TwConst.State.已审核)
|
||||
{
|
||||
Alert.ShowInTop("请选择有效的计划!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
TwInputmasterService.GenInMasterByPlanId(planId);
|
||||
BindGrid();
|
||||
ShowNotify("生成入库单成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("InPlanMasterEdit.aspx?Id={0}", Grid1.SelectedRowID, "编辑 - ")));
|
||||
|
||||
}
|
||||
//if ( planMaster.State != (int)TwConst.State.已审核)
|
||||
//{
|
||||
// Alert.ShowInTop("请选择有效的计划!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// TwInputmasterService.GenInMasterByPlanId(planId);
|
||||
// BindGrid();
|
||||
// ShowNotify("生成入库单成功!", MessageBoxIcon.Success);
|
||||
//}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
protected void btnRevokeGenInMaster_Click(object sender, EventArgs e)
|
||||
protected void btnRevokeGenInMaster_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user