yxj
2022-02-11 ac5f4b7a54c05086232babe4e858a09bc9e6bd89
生产订单扫码记录列表上传时间控制修改
2个文件已修改
15 ■■■■ 已修改文件
SCM/公用类/ClsPub1.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/报表/KF_PonderationBillMain_ICMOReport.cs 11 ●●●● 补丁 | 查看 | 原始文档 | 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.2.16/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
@@ -461,16 +461,15 @@
              
                //判断当前时间和上次生单时间,是否在30秒以上,如果没有到30秒则报错并返回,提示30秒后才能生单
                DateTime dxTime = DateTime.Now;//当前时间
                if (cmbTime != null || cmbTime != "")
                if (cmbTime != "没有找到!")
                {
                    int scTime = int.Parse(DateTime.Parse(cmbTime).ToString("ss"));//上次时间
                    int schtime = int.Parse(dxTime.ToString("ss")) - scTime;//时差
                    TimeSpan schtime = new TimeSpan(dxTime.Ticks - DateTime.Parse(cmbTime).Ticks);
                    //如果上次生单时间为空,或者超过30秒,则允许生单
                    if (schtime < 30)
                    if (schtime.TotalSeconds < 30)
                    {
                        MessageBox.Show("生成失败!原因:还需要" + (30 - schtime) + "秒后才能生单");
                        MessageBox.Show("生成失败!原因:还需要" + (30 - schtime.TotalSeconds) + "秒后才能生单");
                        return;
                    }
                }