public void Update(short DepartmentId, string DepartmentCode, string DepartmentName, short?ParentId, byte Speciality, short IntOrder, string SDesc, int?DeptType, decimal?DeptFee, string LoaiTamUng, decimal?TienTamUng, string KieuKphong, int?KhoaCapcuu, string LoaiKhoa, int?UnitId, string NguoiTao, DateTime?NgayTao, string NguoiSua, DateTime?NgaySua, string PhongThien, string MaPhongStt, byte?HienThi) { LDepartmentss item = new LDepartmentss(); item.MarkOld(); item.IsLoaded = true; item.DepartmentId = DepartmentId; item.DepartmentCode = DepartmentCode; item.DepartmentName = DepartmentName; item.ParentId = ParentId; item.Speciality = Speciality; item.IntOrder = IntOrder; item.SDesc = SDesc; item.DeptType = DeptType; item.DeptFee = DeptFee; item.LoaiTamUng = LoaiTamUng; item.TienTamUng = TienTamUng; item.KieuKphong = KieuKphong; item.KhoaCapcuu = KhoaCapcuu; item.LoaiKhoa = LoaiKhoa; item.UnitId = UnitId; item.NguoiTao = NguoiTao; item.NgayTao = NgayTao; item.NguoiSua = NguoiSua; item.NgaySua = NgaySua; item.PhongThien = PhongThien; item.MaPhongStt = MaPhongStt; item.HienThi = HienThi; item.Save(UserName); }
public bool Destroy(object DepartmentId) { return(LDepartmentss.Destroy(DepartmentId) == 1); }
public bool Delete(object DepartmentId) { return(LDepartmentss.Delete(DepartmentId) == 1); }