示例#1
0
 private void login_Load(object sender, EventArgs e)
 {
     Program.Globals.SeverIp = ConfigurationManager.AppSettings["SeverIp"];
     GetConfigure();
     if (loginCount == 0)
     {
         if (UserFunction.PingHost(Program.Globals.SeverIp))
         {
             IsUpate();
         }
         else
         {
             MessageBox.Show("服务器连接中断,请检查。");
         }
     }
 }
示例#2
0
        private void Add_users_Load(object sender, EventArgs e)
        {
            if (!UserFunction.PingHost(Program.Globals.SeverIp))
            {
                MessageBox.Show("网络中断");
                return;
            }
            dgvUsers.DataSource = dmc.select_user();
            string condiction = "and inputstr like '" + tbPinyin.Text.Trim() + "%'";

            dataGridView1.DataSource = his.GetHisUser(condiction);
            //DataSet pj_set = new DataSet();
            //DataTable pj_table = new DataTable();
            //pj_set = bll.Select_PJ();
            //pj_table = pj_set.Tables[0];
            //foreach (DataRow myrow in pj_table.Rows)
            //{
            //    cmbPosition.Items.Add(myrow[1]);
            //}
            //cmbPosition.SelectedIndex = 0;
            //cmbType.SelectedIndex = 0;
        }