public FormBoPhan() { InitializeComponent(); themOrSua = 1; boPhanBUS = new BoPhanBUS(); BP = new BoPhanO(); }
public FormBoPhan(int themOrSua, BoPhanO bp) { InitializeComponent(); this.themOrSua = themOrSua; boPhanBUS = new BoPhanBUS(); BP = new BoPhanO(); BP = bp; }
public bool CapNhatBoPhan(ref string err, BoPhanO bp) { return(conn.MyExecuteNonQuery("proSuaBoPhan", CommandType.StoredProcedure, ref err, new SqlParameter("@MaBoPhan", bp.MaBoPhan), new SqlParameter("@TenBoPhan", bp.TenBoPhan), new SqlParameter("@GhiChu", bp.GhiChu), new SqlParameter("@ConQuanLy", bp.ConQuanLy) )); }
public bool XoaBoPhan(ref string err, BoPhanO bp) { return(conn.MyExecuteNonQuery("proXoaBoPhan", CommandType.StoredProcedure, ref err, new SqlParameter("@MaBoPhan", bp.MaBoPhan))); }
public UCBoPhan() { InitializeComponent(); boPhanBUS = new BoPhanBUS(); bp = new BoPhanO(); }
public bool XoaBoPhanBUS(ref string err, BoPhanO bp) { return(boPhanDAO.XoaBoPhan(ref err, bp)); }
public bool CapNhatBoPhanBUS(ref string err, BoPhanO bp) { return(boPhanDAO.CapNhatBoPhan(ref err, bp)); }
public bool ThemBoPhanBUS(ref string err, BoPhanO bp) { return(boPhanDAO.ThemBoPhan(ref err, bp)); }