| | |
| | | //public const string SqlConnStr = "Data Source=10.0.2.9;Initial Catalog=HX_LimsSys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;"; |
| | | //public const string SqlConnStr = "Data Source=.;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;"; |
| | | //public const string SqlConnStr = "Data Source=.;Initial Catalog=HX_LimsSys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;";//chæµè¯ |
| | | public const string SqlConnStr = "Data Source=47.96.97.237,15127;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;";//YLæµè¯ |
| | | //public const string SqlConnStr = "Data Source=47.96.97.237,15127;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;";//YLæµè¯ |
| | | public const string SqlConnStr = "Data Source=10.11.18.195;Initial Catalog=HX_LMESsys_test;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;"; //æ¯è«å° |
| | | //public const string SqlConnStr = "Data Source=192.168.0.245;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;";//å¸
å¨ |
| | | //public const string SqlConnStr = "Data Source=192.168.1.250;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;";//ä¹ä¸ |
| | | //public const string SqlConnStr = "Data Source=192.168.1.251;Initial Catalog=HX_LMESsys;Persist Security Info=True;User ID=HX_USER;Password=lc@841022;";//ä¹ä¸æµè¯ |
| | |
| | | //æ¡å½¢ç åè½¦æ¹æ³ |
| | | function txtHBarCode_KeyDown(HBarCode) { |
| | | |
| | | HBarCode = HBarCode.substr(23,(HBarCode.length - 23)); |
| | | //HBarCode = HBarCode.substr(23,(HBarCode.length - 23)); |
| | | var sWhere = " and æ¡å½¢ç ='" + HBarCode +"' order by å¶åæ¥æ desc" |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | |
| | | //çäº§èµæº |
| | | case "BM": |
| | | case "SS": |
| | | case "10": |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HSourceID": data.HItemID, |
| | | "HSourceName": data.HName, |
| | |
| | | "HMouldName": data.模å
·åç§°, |
| | | "HMouldModel": data.模å
·åå·, |
| | | "HQty": 1, |
| | | }); |
| | | break; |
| | | case "CMR": |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HSourceID": data.HItemID, |
| | | "HSourceName": data.HName, |
| | | }); |
| | | break; |
| | | } |
| | |
| | | |
| | | if (BillNoType5.length == 8) { |
| | | BillNoType5 = BillNoType5.substr(0, 4) + "-" + BillNoType5.substr(4, 2) + "-" + BillNoType5.substr(6, 2); |
| | | } |
| | | |
| | | if (isValidDate(BillNoType5)) { |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | |
| | | "HICMOEntryID": data.HICMOEntryID |
| | | }); |
| | | } |
| | | |
| | | switch (BillNoType5) { |
| | | //æµè½¬å¡ |
| | | case "GXLX": |
| | | form.val("formData", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HProcExchBillNo": data.åæ®å·, |
| | | "HProcExchInterID": data.hmainid, |
| | | "HProcExchEntryID": data.HEntryID, |
| | | "HICMOBillNo": data.ä»»å¡åå·, |
| | | "HICMOInterID": data.hicmointerid, |
| | | "HICMOEntryID": data.HICMOEntryID |
| | | }); |
| | | break; |
| | | } |
| | | |
| | | |
| | | |
| | | $("#HBarCode").val(""); |
| | | layer.close(index); |
| | |
| | | </html> |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | base: '../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index' //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'laydate', 'table', 'element'], function () { |