예제 #1
0
        private void GetData()
        {
            string function = "";

            switch (dept_type)
            {
            case "0": function = "p_warning_info_produce";
                break;

            case "1": function = "p_warning_info_fishery";
                break;

            case "2": function = "p_warning_info_animal";
                break;

            default: break;
            }

            DataTable table = operationService.ExecuteProWarningInfo(function, PubClass.userInfo.ID,
                                                                     (_tableview.PageIndex - 1) * _tableview.RowMax,
                                                                     _tableview.RowMax);

            _tableview.Table = table;
            current_table    = table;

            string sum = "";

            if (table.Rows.Count != 0)
            {
                sum            = table.Rows[0][10].ToString();
                _sj.Visibility = Visibility.Visible;
                _hj.Visibility = Visibility.Visible;
                _title.Text    = sum;
            }

            _tableview.PageIndex = 1;
        }