public void start() { try { app = ohxc.winform.App.WindownApplication.getInstance(); registerEvent(); this.users = users; grid_UserAcc.ItemsSource = app.ObjCacheManager.GetUsers(); List <UASUSRGRP> user_grps = app.ObjCacheManager.GetUserGroups(); grid_UserGroup.ItemsSource = user_grps; //UA_Group.combo_Content.ItemsSource = app.ObjCacheManager.GetUserGroups(); UA_Group.combo_Content.Items.Clear(); //GA_Group.combo_Content.Items.Clear(); foreach (UASUSRGRP ugrp in user_grps) { UA_Group.combo_Content.Items.Add(ugrp.USER_GRP); //GA_Group.combo_Content.Items.Add(ugrp.USER_GRP); } refresh_grid_UserAcc(); refresh_UserGrp(); } catch (Exception ex) { logger.Error(ex, "Exception"); } }
//*******************公用參數設定******************* public uc_TabSystemControl() { InitializeComponent(); initUI(); off_Button_Click(); offline_Button_Click(); app = ohxc.winform.App.WindownApplication.getInstance(); //app.ObjCacheManager.ConnectionInfoUpdate += ObjCacheManager_ConnectionInfo_update; }
private void Window_Loaded(object sender, RoutedEventArgs e) { try { txt_UserID.Focus(); //將游標指定在密碼位置 app = ohxc.winform.App.WindownApplication.getInstance(); registerEvent(); System.Windows.Input.InputMethod.SetIsInputMethodEnabled(txt_UserID, false); //設置IME和輸入是否可以是中文 //app.ObjCacheManager.PortStationUpdateComplete += ObjCacheManager_PortStationUpdateComplete; } catch (Exception ex) { logger.Error(ex, "Exception"); } }
public void initUI() { try { app = ohxc.winform.App.WindownApplication.getInstance(); start(); } catch (Exception ex) { logger.Error(ex, "Exception"); } }
public void initUI(string cmd_id) { try { app = ohxc.winform.App.WindownApplication.getInstance(); mcs_cmd_id = cmd_id; registerEvent(); } catch (Exception ex) { logger.Error(ex, "Exception"); } }
public void start() { try { app = ohxc.winform.App.WindownApplication.getInstance(); start(app.ObjCacheManager.GetSegments()); registerEvent(); } catch (Exception ex) { logger.Error(ex, "Exception"); } }
public void start() { try { app = ohxc.winform.App.WindownApplication.getInstance(); AlarmBLL = app.AlarmBLL; //將Vh ID加入 Combobox List <string> vh_ids = app.VehicleBLL.cache.GetVEHICLEs().Select(vh => vh.VEHICLE_ID).ToList(); List <string> maintain_device_ids = app.ObjCacheManager.GetMaintainDevice(). Select(maintain_eq => maintain_eq.EQPT_ID). ToList(); cb_VehicleIDs.Items.Add(""); vh_ids.ForEach(vh_id => cb_VehicleIDs.Items.Add(vh_id)); maintain_device_ids.ForEach(maintain_eq_id => cb_VehicleIDs.Items.Add(maintain_eq_id)); //registerEvent(); } catch (Exception ex) { logger.Error(ex, "Exception"); } }
private void Window_Loaded(object sender, RoutedEventArgs e) { try { app = ohxc.winform.App.WindownApplication.getInstance(); //TODO //系統無USER登入時,不允許開啟密碼變更介面 if (!UASUtility.isLogin(app)) { return; } //app = ohxc.winform.App.WindownApplication.getInstance(); txt_UserID.Text = app.LoginUserID; //顯示當前登入者ID old_password_box.Focus(); //將游標指定在密碼位置 System.Windows.Input.InputMethod.SetIsInputMethodEnabled(txt_UserID, false); //設置IME和輸入是否可以是中文 //app = ohxc.winform.App.WindownApplication.getInstance(); registerEvent(); } catch (Exception ex) { logger.Error(ex, "Exception"); } }