|
|
@@ -47,6 +47,7 @@ public class MesClient extends JFrame {
|
|
|
public static String mes_server_ip = ""; // 服务器IP地址
|
|
|
public static int mes_heart_icon_cycle = 1;
|
|
|
public static String mes_line_sn = ""; // 产线编号
|
|
|
+ public static String login_title = "MES管理系统"; // 登录页顶部标题,来自配置文件
|
|
|
public static int mes_device_heartbeat_minutes = 5; // 设备状态上报间隔(分钟)
|
|
|
/** 免扫码、自动允许启动、不采数不提交的工位集合(来自 mes.auto_allow_stations) */
|
|
|
public static Set<String> autoAllowStations = new HashSet<>();
|
|
|
@@ -215,6 +216,12 @@ public class MesClient extends JFrame {
|
|
|
mes_plc_ip = pro.getProperty("mes.plc_ip", "192.168.1.1");
|
|
|
mes_server_ip = pro.getProperty("mes.server_ip");
|
|
|
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);
|
|
|
try {
|
|
|
mes_device_heartbeat_minutes = Integer.parseInt(pro.getProperty("mes.device.heartbeat.minutes", "5").trim());
|
|
|
@@ -849,7 +856,7 @@ public class MesClient extends JFrame {
|
|
|
|
|
|
public MesClient() {
|
|
|
setIconImage(Toolkit.getDefaultToolkit().getImage(MesClient.class.getResource("/bg/logo.png")));
|
|
|
- setTitle("MES系统115客户端:" + mes_gw1 + (isDualStation() ? " / " + mes_gw2 : "")
|
|
|
+ setTitle("MES系统BE14客户端:" + mes_gw1 + (isDualStation() ? " / " + mes_gw2 : "")
|
|
|
+ " - " + mes_gw_des);
|
|
|
// setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
|
setBounds(0, 0, 1024, 768);
|