SVN-Revision: r669
This commit is contained in:
wyf
2025-06-04 12:39:34 +00:00
parent 692f4c3100
commit 2f6119d602
+5 -5
View File
@@ -2788,18 +2788,18 @@ namespace Lskj.PubBill
MessageUtil.Show($"物料编码必填"); MessageUtil.Show($"物料编码必填");
return; return;
} }
ControlModel modeControlModel = ControlObj.ControlModels.Where(n => n.LabelText.Equals("文件分类")).FirstOrDefault(); ControlModel modeControlModel = ControlObj.ControlModels.Where(n => n.LabelText.Equals("上传模式")).FirstOrDefault();
string addMode = ControlObj.GetControlValue(modeControlModel); string addMode = ControlObj.GetControlValue(modeControlModel);
if (impRtnModel.ShowType.Equals("1")) if (impRtnModel.ShowType.Equals("1") && string.IsNullOrEmpty(addMode))
{ {
MessageUtil.Show($"上传模式必填"); MessageUtil.Show($"上传模式必填");
return; return;
} }
ControlModel sepciesNoControlModel = ControlObj.ControlModels.Where(n => n.LabelText.Equals("上传模式")).FirstOrDefault(); ControlModel sepciesNoControlModel = ControlObj.ControlModels.Where(n => n.LabelText.Equals("文件分类")).FirstOrDefault();
string sepciesNo = ControlObj.GetControlValue(sepciesNoControlModel); string sepciesNo = ControlObj.GetControlValue(sepciesNoControlModel);
if (impRtnModel.ShowType.Equals("1") || impRtnModel.ShowType.Equals("6")) if ((impRtnModel.ShowType.Equals("1") || impRtnModel.ShowType.Equals("6")) && string.IsNullOrEmpty(sepciesNo))
{ {
MessageUtil.Show($"节点编号必填必填"); MessageUtil.Show($"文件分类必填");
return; return;
} }
DataTable sourceTable = gcMain.gridControl.DataSourceTable(); DataTable sourceTable = gcMain.gridControl.DataSourceTable();