public string GetStaffInfoDatas() { StaffInfoService service = new StaffInfoService(); DataTable dt = service.GetStaffInfo(); string[] column = { "ID", "Name", "Sex", "PhoneNumber" }; string result = DataGridJsonParser.DataTableToJson(dt, column); return(result); }
public static string GetStaffInfoWithDataGridFormat(string organizationId, string searchName, string searchId, string searchTeamName) { DataTable dt = StaffInfoService.GetStaffInfo(organizationId, searchName, searchId, searchTeamName); return(DataGridJsonParser.DataTableToJson(dt)); }