public ActionResult GetGridJson(MedicalExpenseReportParam pagination) { if (string.IsNullOrWhiteSpace(pagination.OrganizationCode)) { var loginInfo = OperatorProvider.Provider.GetCurrent(); var user = userApp.GetForm(loginInfo.UserId); if (!string.IsNullOrWhiteSpace(user.F_HisUserId)) { var userBase = _webServiceBasicService.GetUserBaseInfo(user.F_HisUserId); pagination.OrganizationCode = userBase.OrganizationCode; } } var patientInfo = _hisSqlRepository.MedicalExpenseReport(pagination); pagination.records = patientInfo.Keys.FirstOrDefault(); var data = new { rows = patientInfo.Values.FirstOrDefault(), total = pagination.total, page = pagination.Page, records = pagination.records }; return(Content(data.ToJson())); }