public bool Destroy(object StaffId) { return(LStaff.Destroy(StaffId) == 1); }
public void Insert(string StaffCode, string StaffName, short DepartmentId, int?ParentId, short StaffTypeId, short RankId, string Uid, byte?Status, string SDesc, decimal SpecMoney, byte?Actived, int?CanSign, string NguoiTao, DateTime?NgayTao, string NguoiSua, DateTime?NgaySua, byte?ChoPhepChuyenGoi, byte?ChoPhepDchinhTtoan, byte?ChoPhepHuyKhoat, byte?ChoPhepKhoat, byte?ChoPhepNvien, byte?ChoPhepNhapTheBhyt, byte?ChoPhepSuaDlieu, byte?ChoPhepChonBly, byte?ChoPhepDieuChinhBg, string MaQuyen, int?SoThuTu, byte?ChoMGiam) { LStaff item = new LStaff(); item.StaffCode = StaffCode; item.StaffName = StaffName; item.DepartmentId = DepartmentId; item.ParentId = ParentId; item.StaffTypeId = StaffTypeId; item.RankId = RankId; item.Uid = Uid; item.Status = Status; item.SDesc = SDesc; item.SpecMoney = SpecMoney; item.Actived = Actived; item.CanSign = CanSign; item.NguoiTao = NguoiTao; item.NgayTao = NgayTao; item.NguoiSua = NguoiSua; item.NgaySua = NgaySua; item.ChoPhepChuyenGoi = ChoPhepChuyenGoi; item.ChoPhepDchinhTtoan = ChoPhepDchinhTtoan; item.ChoPhepHuyKhoat = ChoPhepHuyKhoat; item.ChoPhepKhoat = ChoPhepKhoat; item.ChoPhepNvien = ChoPhepNvien; item.ChoPhepNhapTheBhyt = ChoPhepNhapTheBhyt; item.ChoPhepSuaDlieu = ChoPhepSuaDlieu; item.ChoPhepChonBly = ChoPhepChonBly; item.ChoPhepDieuChinhBg = ChoPhepDieuChinhBg; item.MaQuyen = MaQuyen; item.SoThuTu = SoThuTu; item.ChoMGiam = ChoMGiam; item.Save(UserName); }
public bool Delete(object StaffId) { return(LStaff.Delete(StaffId) == 1); }