|
@@ -39,6 +39,7 @@ public class MesClient extends JFrame {
|
|
|
public static int mes_heart_beat_cycle = 10; // 心跳周期
|
|
public static int mes_heart_beat_cycle = 10; // 心跳周期
|
|
|
public static int mes_heart_icon_cycle = 1;
|
|
public static int mes_heart_icon_cycle = 1;
|
|
|
public static String mes_line_sn = ""; // 产线编号
|
|
public static String mes_line_sn = ""; // 产线编号
|
|
|
|
|
+ public static String login_title = "MES管理系统"; // 登录页顶部标题,来自配置文件
|
|
|
|
|
|
|
|
public static boolean mes_shield_flag = false; // MES 屏蔽标志
|
|
public static boolean mes_shield_flag = false; // MES 屏蔽标志
|
|
|
|
|
|
|
@@ -253,6 +254,12 @@ public class MesClient extends JFrame {
|
|
|
mes_tcp_port = Integer.parseInt(pro.getProperty("mes.tcp_port"));
|
|
mes_tcp_port = Integer.parseInt(pro.getProperty("mes.tcp_port"));
|
|
|
mes_heart_beat_cycle = Integer.parseInt(pro.getProperty("mes.heart_beat_cycle"));
|
|
mes_heart_beat_cycle = Integer.parseInt(pro.getProperty("mes.heart_beat_cycle"));
|
|
|
mes_line_sn = pro.getProperty("mes.line_sn");
|
|
mes_line_sn = pro.getProperty("mes.line_sn");
|
|
|
|
|
+ String loginTitleFromCfg = pro.getProperty("mes.login.title");
|
|
|
|
|
+ if (loginTitleFromCfg == null) {
|
|
|
|
|
+ login_title = "MES管理系统";
|
|
|
|
|
+ } else {
|
|
|
|
|
+ login_title = loginTitleFromCfg.trim();
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
mes_gw_des = OprnoUtil.getGwDes(mes_line_sn,mes_gw);
|
|
mes_gw_des = OprnoUtil.getGwDes(mes_line_sn,mes_gw);
|
|
|
|
|
|
|
@@ -744,7 +751,7 @@ public class MesClient extends JFrame {
|
|
|
public static int lastSelectedIndex = 0;
|
|
public static int lastSelectedIndex = 0;
|
|
|
public MesClient() {
|
|
public MesClient() {
|
|
|
setIconImage(Toolkit.getDefaultToolkit().getImage(MesClient.class.getResource("/bg/logo.png")));
|
|
setIconImage(Toolkit.getDefaultToolkit().getImage(MesClient.class.getResource("/bg/logo.png")));
|
|
|
- setTitle("MES系统客户端:HEV-"+mes_gw + "- " + mes_gw_des);
|
|
|
|
|
|
|
+ setTitle("MES系统客户端:BE14-"+mes_gw + "- " + mes_gw_des);
|
|
|
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
|
setBounds(0, 0, 1024, 768);
|
|
setBounds(0, 0, 1024, 768);
|
|
|
|
|
|