/// <summary> /// Ham khoi tao gia tri mac dinh cho cac bien /// </summary> private void init() { _draw = Protector.Int(draw); _start = Protector.Int(start); _length = Protector.Int(length); sortName = string.IsNullOrEmpty(sortName) ? "NV_ID" : sortName; sortDir = string.IsNullOrEmpty(sortDir) ? "asc" : sortDir; _length = _length < 1 ? 10 : _length; _loginId = Protector.Int(loginId); fields = string.IsNullOrEmpty(fields) ? "" : fields; search = string.IsNullOrEmpty(search) ? "" : search; _ngayTuyenDungFrom = Protector.DateTime(ngayFrom, "yyyyMMdd", true); _ngayTuyenDungTo = Protector.DateTime(ngayTo, "yyyyMMdd", true); nhanVien = string.IsNullOrEmpty(nhanVien) ? "" : nhanVien; phongBan = string.IsNullOrEmpty(phongBan) ? "" : phongBan; duAn = string.IsNullOrEmpty(duAn) ? "" : duAn; chucVu = string.IsNullOrEmpty(chucVu) ? "" : chucVu; _dangLamViec = string.IsNullOrEmpty(dangLamViec) ? null : Protector.Bool(dangLamViec, true, true); maForm = string.IsNullOrEmpty(maForm) ? "" : maForm; maTrangThai = string.IsNullOrEmpty(maTrangThai) ? "" : maForm; }