feat(材料管理):增加调拨出库
This commit is contained in:
@@ -171,6 +171,11 @@ namespace FineUIPro.Web.CLGL
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
var model = BLL.TwInOutplanmasterService.GetById(rowID);
|
||||
if (!string.IsNullOrEmpty(model.TransferBatchId))
|
||||
{
|
||||
Alert.ShowInTop("已提交的调拨申请不允许单独删除!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (model.State == (int)TwConst.State.已审核 || model.State == (int)TwConst.State.已完成)
|
||||
{
|
||||
Alert.ShowInTop("请选择有效的计划!", MessageBoxIcon.Warning);
|
||||
@@ -200,6 +205,11 @@ namespace FineUIPro.Web.CLGL
|
||||
}
|
||||
string ID = Grid1.SelectedRowID;
|
||||
var model = BLL.TwInOutplanmasterService.GetById(ID);
|
||||
if (model != null && model.TypeInt == (int)TwConst.TypeInt.调拨入库)
|
||||
{
|
||||
Alert.ShowInTop("调拨入库申请由调拨出库申请配对生成,不允许单独编辑!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (model != null) ///已上报时不能删除
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("InPlanMasterApplyEdit.aspx?Id={0}", ID, "编辑 - ")));
|
||||
|
||||
Reference in New Issue
Block a user