Esempio n. 1
0
        /// <summary>
        /// name: Tan
        /// content: them bang cham cong
        /// </summary>
        public Boolean themChamCong(eChamCong chamcong)
        {
            try
            {
                ChamCongNhanVien cc = new ChamCongNhanVien();
                cc.maNhanVien   = chamcong.Nhanvien.manhanVien;
                cc.maCongViec   = chamcong.CongViec.MaCongViec;
                cc.soNgayCong   = chamcong.NgayCong;
                cc.ngayChamCong = chamcong.Daytime;
                cc.luong        = (decimal)chamcong.Luong;

                db.ChamCongNhanViens.InsertOnSubmit(cc);
                db.SubmitChanges();
                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
 /// <summary>
 /// name: Tan
 /// content: them bang cham cong
 /// </summary>
 public Boolean themChamCong(eChamCong cc)
 {
     return(dalChamCong.themChamCong(cc));
 }