feat(材料管理):增加调拨出库
This commit is contained in:
@@ -444,6 +444,11 @@ namespace FineUIPro.Web.CLGL
|
||||
{
|
||||
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
|
||||
var model = BLL.TwInOutplanmasterService.GetById(rowID);
|
||||
if (!string.IsNullOrEmpty(model.TransferBatchId) && model.State != (int)TwConst.State.待提交)
|
||||
{
|
||||
Alert.ShowInTop("已提交的调拨申请不允许单独删除!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (model.State == (int)TwConst.State.已审核 || model.State == (int)TwConst.State.已完成)
|
||||
{
|
||||
Alert.ShowInTop("请选择有效的计划!", MessageBoxIcon.Warning);
|
||||
@@ -530,7 +535,10 @@ namespace FineUIPro.Web.CLGL
|
||||
}
|
||||
string planId = Grid1.SelectedRowID;
|
||||
var planMaster = BLL.TwInOutplanmasterService.GetById(planId);
|
||||
if (planMaster.State == (int)TwConst.State.待提交 && (planMaster.TypeInt == (int)TwConst.TypeInt.散件出库 || planMaster.TypeInt == (int)TwConst.TypeInt.其他出库))
|
||||
if (planMaster.State == (int)TwConst.State.待提交 &&
|
||||
(planMaster.TypeInt == (int)TwConst.TypeInt.散件出库 ||
|
||||
planMaster.TypeInt == (int)TwConst.TypeInt.其他出库 ||
|
||||
planMaster.TypeInt == (int)TwConst.TypeInt.调拨出库))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("OutPlanMasterEdit.aspx?UnitWorkId={0}&Id={1} ", tvControlItem.SelectedNodeID, planId, "新增 - ")));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user