Esempio n. 1
0
 private void M_qfyh_Click(object sender, EventArgs e)
 {
     if (common_file.common_app.message_box_show_select(common_file.common_app.message_title, "是否要重新登录系统?") == true)
     {
         if (M_qfyh.Enabled == true)
         {
             Yhgl.YH_login YH_login_new = new Hotel_app.Yhgl.YH_login("zx");
             YH_login_new.cB_syzd.Text    = common_file.common_app.syzd;
             YH_login_new.cB_syzd.Enabled = false;
             if (YH_login_new.ShowDialog() == DialogResult.OK)
             {
                 set_tsl();//设置状态栏
                 common_file.common_roles.set_menu_is_visible(menuStrip1, common_file.common_app.user_type);
             }
         }
     }
     else
     {
         //this.Close();
     }
 }
Esempio n. 2
0
        private void Fmain_Load(object sender, EventArgs e)
        {
            xtraTabbedMdiManager1.MdiParent = true ? this : null;
            common_form.Fmain_new           = this;
            Qskyd_www_open = common_file.common_app.Qskyd_www_open;
            this.Visible   = false;

            #region 写入系统启动目录,并进行验证检查
            string MThtPath = Application.StartupPath;
            try
            {
                common_file.Common_initalSystem.SaveConfig("XmlSystemInfo.xml", "System_path", "aaa");
                Yhgl.YH_login YH_login_new = new Hotel_app.Yhgl.YH_login("zc");
                if (YH_login_new.ShowDialog() == DialogResult.OK)
                {
                    this.Visible = true;
                    //common_file.common_form.Fmain_new = this;
                    M_ftll_Click(sender, e);
                    set_tsl();
                    common_file.common_roles.set_menu_is_visible(menuStrip1, common_file.common_app.user_type);
                    if (Qskyd_www_open == true)
                    {
                        this.timer_GetYdzxData.Enabled  = true;
                        this.timer_GetYdzxData.Interval = 1000 * 60 * int.Parse(Common_initalSystem.ReadNameValueSectionValue("qyinfo", "ydzxPopTime"));
                    }
                }
                else
                {
                    this.Close();
                }
            }
            catch (Exception ee)
            {
                MessageBox.Show(ee.ToString());
            }

            #endregion
        }