-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrm_ThongTinTaiKhoan.cs
81 lines (69 loc) · 2.46 KB
/
frm_ThongTinTaiKhoan.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace BTL
{
public partial class frm_ThongTinTaiKhoan : Form
{
public frm_ThongTinTaiKhoan()
{
InitializeComponent();
label1.BackColor = Color.Transparent;
label2.BackColor = Color.Transparent;
label3.BackColor = Color.Transparent;
label4.BackColor = Color.Transparent;
label5.BackColor = Color.Transparent;
label6.BackColor = Color.Transparent;
label7.BackColor = Color.Transparent;
label8.BackColor = Color.Transparent;
rbNam.BackColor = Color.Transparent;
rbNu.BackColor = Color.Transparent;
btnCapNhat.BackColor = Color.Transparent;
btnDoiMK.BackColor = Color.Transparent;
}
private DataTable _TT ;
public DataTable TT
{
get { return _TT; }
set { _TT = value; }
}
private void HienThiChiTietNhanVien()
{
//Lấy thông tin theo mã nv ở frm trước
//DataTable TT = ConnectSQL.ActNhanVien.ChiTietTheoMa(TT.Rows[0]["MaNV"].ToString());
if (TT.Rows.Count > 0)
{
txtMaNV.Text = ""+TT.Rows[0]["MaNV"];
txtTenNV.Text = "" + TT.Rows[0]["TenNhanVien"];
txtSDT.Text = "" + TT.Rows[0]["SoDT"];
txtDiaChi.Text = "" + TT.Rows[0]["DiaChi"];
txtTaiKhoan.Text = "" + TT.Rows[0]["TaiKhoan"];
txtChucVu.Text = "" + TT.Rows[0]["ChucVu"];
DateTime NgaySinh;
DateTime.TryParse("" + TT.Rows[0]["NgaySinh"], out NgaySinh);
dtpNgaySinh.Value = NgaySinh;
string GioiTinh = "" + TT.Rows[0]["GioiTinh"];
if (GioiTinh == "1") rbNam.Checked = true;
if (GioiTinh == "0") rbNu.Checked = true;
}
}
private void btnDoiMK_Click(object sender, EventArgs e)
{
frm_DoiMK frmdmk = new frm_DoiMK();
frmdmk.ShowDialog();
}
private void btnCapNhat_Click(object sender, EventArgs e)
{
}
private void frm_ThongTinTaiKhoan_Load(object sender, EventArgs e)
{
HienThiChiTietNhanVien();
}
}
}