sql=$@"SELECT * FROM {request.ViewName} WHERE AllotId = @AllotId and {search} LIMIT {(request.PageIndex-1)*request.PageSize},{request.PageSize}; ";
sql=$@"SELECT * FROM {request.ViewName} WHERE AllotId = @AllotId and {search}ORDER BY HospitalId,Year,Month,ABS(DIFF) DESC LIMIT {(request.PageIndex-1)*request.PageSize},{request.PageSize}; ";