yusijie
2023-08-31 5530b31dcec7fb07f1f742f6fdb0dd06c559497e
Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-API
1个文件已修改
11 ■■■■■ 已修改文件
WarM/条码打印/Sc_ICMOToBarCode.cs 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WarM/ÌõÂë´òÓ¡/Sc_ICMOToBarCode.cs
@@ -992,8 +992,17 @@
                        //箱号生成规则  æ—¥æœŸ +  æœºå° + ç­æ¬¡ +  ç‰©æ–™   åªè¦èŽ·å–æœ€å¤§çš„æµæ°´å·
                        string sBoxYear;
                        string sBoxPeriod;
                        string sBoxDay;
                        DateTime HBoxDate = DBUtility.ClsPub.isDate(DBUtility.ClsPub.GetServerDate(0));
                        sBoxYear = HBoxDate.Year.ToString().Substring(2, 2);
                        sBoxPeriod = "0" +  HBoxDate.Month.ToString();
                        sBoxPeriod = HPeriod.Substring(HPeriod.Length - 2, 2);
                        sBoxDay = "0" + HBoxDate.Day.ToString();
                        sBoxDay = HDay.Substring(HDay.Length - 2, 2);
                        HJT = DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[Fun_GetCol("设备")].Value);
                        HXH = HYear + HPeriod + HDay + HBC + HJT + HMaterNumber;
                        HXH = sBoxYear + sBoxPeriod + sBoxDay + HBC + HJT + HMaterNumber;
                        Ds99 = oCn.RunProcReturn("exec h_p_WMS_GetMaxNo '" + HXH + "'", "h_p_WMS_GetMaxNo");    //获取最大流水号
                        LSH3 = ClsPub.isLong(Ds99.Tables[0].Rows[0][0]) + 1;
                        LSH4 = LSH3.ToString();