生产订单扫码记录列表模块生单功能,两次点击间隔由30秒改为40秒
1个文件已修改
8 ■■■■ 已修改文件
SCM/报表/KF_PonderationBillMain_ICMOReport.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/±¨±í/KF_PonderationBillMain_ICMOReport.cs
@@ -459,17 +459,17 @@
                //先从本地文件ini获取上次生单时间  
                string cmbTime =Pub_Class.ClsIni.ReadIni("sdTime", "cmb5", Pub_Class.ClsPub.AppPath + @"\" + "ControlInfo.ini");
              
                //判断当前时间和上次生单时间,是否在30秒以上,如果没有到30秒则报错并返回,提示30秒后才能生单
                //判断当前时间和上次生单时间,是否在40秒以上,如果没有到40秒则报错并返回,提示40秒后才能生单
                DateTime dxTime = DateTime.Now;//当前时间
                //如果上次生单时间为空,或者超过30秒,则允许生单
                //如果上次生单时间为空,或者超过40秒,则允许生单
                if (cmbTime != "没有找到!")
                {
                    TimeSpan schtime = new TimeSpan(dxTime.Ticks - DateTime.Parse(cmbTime).Ticks);  //时差
                    if (Math.Round(schtime.TotalSeconds,1) < 30)
                    if (Math.Round(schtime.TotalSeconds,1) < 40)
                    {
                        MessageBox.Show("生成失败!原因:还需要" + (30 - Math.Round(schtime.TotalSeconds, 1)) + "秒后才能生单");
                        MessageBox.Show("生成失败!原因:还需要" + (40 - Math.Round(schtime.TotalSeconds, 1)) + "秒后才能生单");
                        return;
                    }
                }