예제 #1
0
 private void btnUserSearch_Click(object sender, EventArgs e)
 {
     /*string Search_User = "******" + txtIDSearch.Text.ToString() + "' and _User.Emp_Status = 'EMP'";
      * OracleDataAdapter daSearch = new OracleDataAdapter(Search_User, con);
      * DataTable dtSearch = new DataTable();
      * daSearch.Fill(dtSearch);
      *
      * if (dtSearch.Rows.Count > 0)
      * {
      *  txtUserID.Text = dtSearch.Rows[0]["ID"].ToString();
      *  txtUserName.Text = dtSearch.Rows[0]["Name"].ToString();
      *  txtPhone.Text = dtSearch.Rows[0]["Phone"].ToString();
      *  txtMail.Text = dtSearch.Rows[0]["Mail"].ToString();
      *  txtDept.Text = dtSearch.Rows[0]["Dept"].ToString();
      *  chkOSP.Checked = Convert.ToBoolean(dtSearch.Rows[0]["OSP"]);
      *  btnUpdate.Enabled = false;
      * }
      * else
      * {
      *  MessageBox.Show("Chua co du lieu hoac nguoi dung da nghi viec!", "Thong bao", MessageBoxButtons.OK, MessageBoxIcon.Information);
      *  btnUpdate.Enabled = true;
      * }*/
     update.SearchUser(txtIDSearch, txtUserID, txtUserName, txtPhone, txtMail, txtDept, chkOSP, btnUpdate);
 }
예제 #2
0
 private void btnUserSearch_Click(object sender, EventArgs e)
 {
     update.SearchUser(txtIDSearch, txtUserID2, txtUser_Name, txtPhone, txtMail, txtDept, chkOSP, btnUpdate);
 }
예제 #3
0
 private void btnSearchUser_Click(object sender, EventArgs e)
 {
     UserFunc.SearchUser(txtIDSearch, txtUserID, txtUserName, txtPhone, txtMail, txtDept, chkOSP, btnUpdate);
 }