private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         EmpService.findByEmpNoAndPassword(textBox1.Text, textBox2.Text);
         //if ((textBox1.Text.ToString() == "abc") || (textBox2.Text.ToString() == "abc"))
         {
             //MessageBox.Show("登录成功");
             this.Hide();
             new Frm任务S(EmpService.findEmpIdByJobnum(textBox1.Text), this).Show();
             //new Frm主界面(EmpService.findEmpIdByJobnum(textBox1.Text)).Show();
         }
     }
     catch
     {
         MessageBox.Show("工号或密码错误");
     }
 }