private void GetData() { string function = ""; switch (dept_type) { case "0": function = "p_warning_report_produce"; break; case "1": function = "p_warning_report_fishery"; break; case "2": function = "p_warning_report_animal"; break; default: break; } DataTable table = operationContract.ExecuteProWarningReport(function, PubClass.userInfo.ID, (DateTime)reportDate_kssj.SelectedDate, (DateTime)reportDate_jssj.SelectedDate, _detect_dept.SelectedIndex < 1? "": (_detect_dept.SelectedItem as Label).Tag.ToString(), item_id, review_id); _tableview.Table = table; current_table = table; }