Exemple #1
0
        private void AddNhatKy(string hanhDong)
        {
            SystemLogDTO nk = new SystemLogDTO();

            nk.NguoiDung = username;
            nk.MayTinh   = System.Environment.MachineName;
            nk.ThoiGian  = DateTime.Now;
            nk.ChucNang  = TenChucNang;
            nk.HanhDong  = hanhDong;

            //ThemNhatKyHeThong(nk);
        }
Exemple #2
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            var frmLogin = new frmLogin();

            skin();
            frmLogin.ShowDialog();

            SystemLogDTO c = new SystemLogDTO();

            c.ChucNang  = "Hệ Thống";
            c.HanhDong  = "Đăng Nhập";
            c.MayTinh   = System.Environment.MachineName;
            c.NguoiDung = username;
            c.ThoiGian  = DateTime.Now;

            lstNhatKyFinal.Add(c);
        }