Exemple #1
0
        public UserLoginPanel(int type)
        {
            InitializeComponent();
            this.SetSepartor(false);
            loginSuccessType = type;
            if (type == 0)
            {
                this.userLoginWithMoviePanel1.Visible = false;
                this.StopOpertionTime();
                this.SetOperationTime(100);
            }
            else
            {
                this.userLoginWithMoviePanel1.Visible = true;
                this.StopOpertionTime();
                this.SetOperationTime(100);
            }

            this.KeyDown += new KeyEventHandler(UserLoginPanel_KeyDown);
            HiPiaoTerminal.ConfigModel.SystemConfig config = FT.Commons.Cache.StaticCacheManager.GetConfig <SystemConfig>();
            if (config.UseRfid)
            {
                this.panelUseRfid.Location = new Point(this.panelUseKey.Location.X, this.panelUseKey.Location.Y);
                this.panelUseRfid.Visible  = true;
            }
            else
            {
                this.panelUseRfid.Visible = false;
            }
            this.panelUseKey.Visible = false;
        }
Exemple #2
0
 public void LoadHtml()
 {
     //GlobalTools.RegistUpdateUnOperationTime(UpdateUnOperationTime);
     this.webBrowser1.ScriptErrorsSuppressed = true;
     //this.webBrowser1.
     //this.webBrowser1.sc
     ConfigModel.SystemConfig config = FT.Commons.Cache.StaticCacheManager.GetConfig <SystemConfig>();
     this.webBrowser1.Navigate(config.TastUrl);
 }
Exemple #3
0
        private void UserLoginPanel_Load(object sender, EventArgs e)
        {
            // GlobalTools.RegistUpdateUnOperationTime(null);

            //this.FindForm().AcceptButton = this.btnLogin;
            this.txtUserName.Focus();
            ConfigModel.SystemConfig config = FT.Commons.Cache.StaticCacheManager.GetConfig <ConfigModel.SystemConfig>();
            if (config.UseRfid)
            {
                this.timerReadCard.Start();
            }
        }
Exemple #4
0
 private void txtPwd_Enter(object sender, EventArgs e)
 {
     HiPiaoTerminal.ConfigModel.SystemConfig config = FT.Commons.Cache.StaticCacheManager.GetConfig <SystemConfig>();
     if (config.UseHardwareKeyboard)
     {
         this.panelUseKey.Visible = true;
     }
     else
     {
         this.panelUseKey.Visible = false;
     }
     this.panelUseRfid.Visible = false;
 }
Exemple #5
0
        public static DialogResult Pop(Control panel, int type)
        {
            GlobalTools.StopFullTimer();
            ConfigModel.SystemConfig config = FT.Commons.Cache.StaticCacheManager.GetConfig <ConfigModel.SystemConfig>();
            if (config.UseVirtualKeyboard)
            {
#if DEBUG
                Console.WriteLine("Pop方法开始隐藏小键盘");
#endif
                GlobalTools.HideAllKeyBoard();
            }
            if (config.UseMaskPanel)
            {
                return(PopMask(panel, type));
            }
            else
            {
                return(PopUnMask(panel, type));
            }
        }