feat(材料管理):增加调拨出库
This commit is contained in:
@@ -69,7 +69,7 @@ namespace FineUIPro.Web.CLGL
|
||||
|
||||
drpTypeInt.DataTextField = "Key";
|
||||
drpTypeInt.DataValueField = "Value";
|
||||
drpTypeInt.DataSource = TwConst.TypeIntMap.Where(x => x.Key.Contains("入库"));
|
||||
drpTypeInt.DataSource = TwConst.TypeIntMap.Where(x => x.Key.Contains("入库") && x.Value != (int)TwConst.TypeInt.调拨入库);
|
||||
drpTypeInt.DataBind();
|
||||
|
||||
drpCategory.DataTextField = "Key";
|
||||
@@ -160,6 +160,12 @@ namespace FineUIPro.Web.CLGL
|
||||
|
||||
private bool Save(string type, bool validateDetail)
|
||||
{
|
||||
var currentModel = string.IsNullOrEmpty(Id) ? null : TwInOutplanmasterService.GetById(Id);
|
||||
if (currentModel != null && currentModel.TypeInt == (int)TwConst.TypeInt.调拨入库)
|
||||
{
|
||||
Alert.ShowInTop("调拨入库申请不允许单独编辑!", MessageBoxIcon.Warning);
|
||||
return false;
|
||||
}
|
||||
if (!ValidateMaster())
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user