From 5408616fd72786b63cfe69a7426c3fb499b6962b Mon Sep 17 00:00:00 2001 From: bklLiudl <673013083@qq.com> Date: 星期四, 17 十月 2024 18:49:04 +0800 Subject: [PATCH] Merge branch 'Liudl' --- Wms/Wms/Controllers/SysController.cs | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Wms/Wms/Controllers/SysController.cs b/Wms/Wms/Controllers/SysController.cs index 24560ea..a77e393 100644 --- a/Wms/Wms/Controllers/SysController.cs +++ b/Wms/Wms/Controllers/SysController.cs @@ -1374,17 +1374,21 @@ { throw new Exception("褰撳墠鏄剧ず鐨勬潯鐮佷笉鏄渶鏂版潯鐮侊紝璇烽噸鏂版坊鍔�"); } - string str = model.PalletNo.Substring(3, 5); - string remove = model.PalletNo.Substring(0, 3); + string str = model.PalletNo.Substring(2, 6); + string remove = model.PalletNo.Substring(0, 2); int sibelius = Convert.ToInt16(str); for (int i = 0; i < model.GroupCount; i++) { + if (sibelius>999999) + { + throw new Exception("鎵樼洏缁勪腑宸叉湁鎵樼洏鐮佷綅鏁板凡杈句笂绾�"); + } if (i != 0) { sibelius += 1; } - string code = remove + Convert.ToString(sibelius).PadLeft(5, '0'); + string code = remove + Convert.ToString(sibelius).PadLeft(6, '0'); for (int j = 0; j < model.SameCount; j++) { var re = BarcodeHelper.GetCodeBarBase64(code, 80, 50); -- Gitblit v1.8.0