Thiết kế giao diện

Một phần của tài liệu (Luận văn đại học thương mại) thiết kế cơ sở dữ liệu cho hệ thống quản lý nhân sự tại công ty TNHH giải pháp phần mềm gia linh (Trang 52 - 60)

CHƯƠNG 2 : CƠ SỞ LÝ LUẬN VỀ THIẾT KẾ CSDL QUẢN LÝ NHÂN SỰ

4.3. Thiết kế giao diện

Câu 6: Hiển thị thơng tin nhân viên có số cơng làm lớn nhất trong tháng 1

4.3. Thiết kế giao diệnNhân Viên Nhân Viên

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; using System.Data.SqlClient; namespace QuanLyNhanSu {

public partial class QLNhanVien : Form {

public QLNhanVien() {

InitializeComponent(); }

private void HienThi () {

SqlConnection ht = new SqlConnection(@"Data Source=DESKTOP- ENV5Q8C\SQLEXPRESS;Initial Catalog=QuanLy_NhanSu;Integrated Security=True");

ht.Open();

string sql = "select * from NHANVIEN";

SqlCommand cmd = new SqlCommand(sql, ht); SqlDataAdapter com = new SqlDataAdapter(cmd); DataTable table = new DataTable();

com.Fill(table);

}

private void QLNhanVien_Load(object sender, EventArgs e) { HienThi(); } } } Phịng Ban

Hình 4.5: Giao diện chức năng quản lý Phịng Ban

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;

using System.Data.SqlClient; namespace QuanLyNhanSu {

public partial class QuanLyPhongBan : Form {

public QuanLyPhongBan() {

InitializeComponent(); }

private void HienThi() {

SqlConnection ht = new SqlConnection(@"Data Source=DESKTOP- ENV5Q8C\SQLEXPRESS;Initial Catalog=QuanLy_NhanSu;Integrated Security=True");

ht.Open();

string sql = "select * from PHONGBAN"; SqlCommand cmd = new SqlCommand(sql, ht); SqlDataAdapter com = new SqlDataAdapter(cmd); DataTable table = new DataTable();

com.Fill(table);

DsPB.DataSource = table; }

private void QuanLyPhongBan_Load(object sender, EventArgs e) {

HienThi(); }

} }

Dự Án Hình 4.6: Giao diện Dự án 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; using System.Data.SqlClient; namespace QuanLyNhanSu {

public partial class QuanLyDuAn : Form {

{

InitializeComponent(); }

private void HienThi() {

SqlConnection ht = new SqlConnection(@"Data Source=DESKTOP- ENV5Q8C\SQLEXPRESS;Initial Catalog=QuanLy_NhanSu;Integrated Security=True");

ht.Open();

string sql = "select D.*, C.MaNV, C.TGBD, C.TGKT from DUAN D INNER JOIN ChiTietDuAn C ON D.MaDA = C.MaDA ";

SqlCommand cmd = new SqlCommand(sql, ht); SqlDataAdapter com = new SqlDataAdapter(cmd); DataTable table = new DataTable();

com.Fill(table);

DsDA.DataSource = table; }

private void QuanLyDuAn_Load(object sender, EventArgs e) { HienThi(); }

}

TimeSheet

Hình 4.7: Giao diện Timesheet

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; using System.Data.SqlClient; namespace QuanLyNhanSu {

public partial class QLTimeSheet : Form {

public QLTimeSheet() {

InitializeComponent(); }

private void HienThi() {

SqlConnection ht = new SqlConnection(@"Data Source=DESKTOP- ENV5Q8C\SQLEXPRESS;Initial Catalog=QuanLy_NhanSu;Integrated Security=True");

ht.Open();

string sql = "select t.*, c.MaNV, c.Thoigianvao, c.Thoigianra, c.Ngay from TIMESHEET t INNER JOIN ChiTietTimeSheet c ON t.MaTimeSheet = c.

MaTimeSheet";

SqlCommand cmd = new SqlCommand(sql, ht); SqlDataAdapter com = new SqlDataAdapter(cmd); DataTable table = new DataTable();

DsTS.DataSource = table; }

private void QLTimeSheet_Load(object sender, EventArgs e) { HienThi(); } } } Báo cáo

Hình 4.8: Giao diện Báo CáoXem chi tiết báo cáo Xem chi tiết báo cáo

Hình 4.9: Giao diện chi tiết Báo Cáo Dự án

4.4. Một số đề xuất cho việc thiết kế CSDL cho hệ thống quản lý nhân sự cho côngty TNHH Giải pháp phần mềm Gia Linh

Một phần của tài liệu (Luận văn đại học thương mại) thiết kế cơ sở dữ liệu cho hệ thống quản lý nhân sự tại công ty TNHH giải pháp phần mềm gia linh (Trang 52 - 60)

Tải bản đầy đủ (PDF)

(62 trang)