private void GetData() { DataTable table = operationContract.ExecuteProQueryDetectFishery( PubClass.userInfo.ID, ((DateTime)dtpStartDate.SelectedDate).ToShortDateString(), ((DateTime)dtpEndDate.SelectedDate).ToShortDateString(), _province1.SelectedIndex < 1 ? "" : (_province1.SelectedItem as Label).Tag.ToString(), _city1.SelectedIndex < 1 ? "" : (_city1.SelectedItem as Label).Tag.ToString(), _region1.SelectedIndex < 1 ? "" : (_region1.SelectedItem as Label).Tag.ToString(), _source_company1.SelectedIndex < 1 ? "" : (_source_company1.SelectedItem as Label).Tag.ToString(), _detect_station.SelectedIndex < 1 ? "" : (_detect_station.SelectedItem as Label).Tag.ToString(), _detect_item1.SelectedIndex < 1 ? "" : (_detect_item1.SelectedItem as Label).Tag.ToString(), _detect_object1.SelectedIndex < 1 ? "" : (_detect_object1.SelectedItem as Label).Tag.ToString(), _detect_result1.SelectedIndex < 1 ? "" : (_detect_result1.SelectedItem as Label).Tag.ToString(), _detect_method.SelectedIndex < 1 ? "" : (_detect_method.SelectedItem as Label).Tag.ToString(), _detect_person1.SelectedIndex < 1 ? "" : (_detect_person1.SelectedItem as Label).Tag.ToString(), _detect_type.SelectedIndex < 1 ? "" : (_detect_type.SelectedItem as Label).Tag.ToString(), (_tableview.PageIndex - 1) * _tableview.RowMax, _tableview.RowMax); _tableview.Table = table; }