生产订单扫码记录列表上传时间控制,提示秒数取值改为显示一位小数位
2个文件已修改
12 ■■■■ 已修改文件
SCM/公用类/ClsPub1.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/报表/KF_PonderationBillMain_ICMOReport.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/¹«ÓÃÀà/ClsPub1.cs
@@ -15,13 +15,13 @@
        //public static string WEBSURL = "http://122.227.199.62:5050/WMSWEBS/WebService1.asmx";     //韩电    å¤–网              ï¼ˆä½œåºŸï¼‰
        //public static string WEBSURL = "http://192.168.10.60/WMSWEBS/WebService1.asmx";           //韩电    å†…网宁波(车间)(作废)
        public static string WEBSURL = "http://192.168.63.195/WEBS-WMS/WebService1.asmx";           //颜本地电脑
        //public static string WEBSURL = "http://192.168.63.195/WEBS-WMS/WebService1.asmx";           //颜本地电脑
        //public static string WEBSURL = "http://192.168.2.56/WEBS-WMS/WebService1.asmx";           //颜本地电脑(云络)
        //public static string WEBSURL = "http://192.168.10.61/WEB-WMS/WebService1.asmx";           //韩电    å†…网测试
        //public static string WEBSURL = "http://192.168.10.222/WMSWEBS/WebService1.asmx";          //韩电    MES服务器(内网)
        //public static string WEBSURL = "http://122.227.199.62:5058/WMSWEBS/WebService1.asmx";     //韩电    MES服务器(外网)
        public static string WEBSURL = "http://122.227.199.62:5058/WMSWEBS/WebService1.asmx";     //韩电    MES服务器(外网)
        public static long HOrgID = 0;
SCM/±¨±í/KF_PonderationBillMain_ICMOReport.cs
@@ -462,14 +462,14 @@
                //判断当前时间和上次生单时间,是否在30秒以上,如果没有到30秒则报错并返回,提示30秒后才能生单
                DateTime dxTime = DateTime.Now;//当前时间
                //如果上次生单时间为空,或者超过30秒,则允许生单
                if (cmbTime != "没有找到!")
                {
                    TimeSpan schtime = new TimeSpan(dxTime.Ticks - DateTime.Parse(cmbTime).Ticks);
                    TimeSpan schtime = new TimeSpan(dxTime.Ticks - DateTime.Parse(cmbTime).Ticks);  //时差
                    //如果上次生单时间为空,或者超过30秒,则允许生单
                    if (schtime.TotalSeconds < 30)
                    if (Math.Round(schtime.TotalSeconds,1) < 30)
                    {
                        MessageBox.Show("生成失败!原因:还需要" + (30 - schtime.TotalSeconds) + "秒后才能生单");
                        MessageBox.Show("生成失败!原因:还需要" + (30 - Math.Round(schtime.TotalSeconds, 1)) + "秒后才能生单");
                        return;
                    }
                }