private void btn_query_Click(object sender, EventArgs e) { try { WaitingFrom.ShowWait(""); string C_SFPJ = ""; if (rbtn_sfpj.SelectedIndex == 0) { C_SFPJ = ""; } else if (rbtn_sfpj.SelectedIndex == 1) { C_SFPJ = "N"; } else { C_SFPJ = "Y"; } int n_sfqr = rbtn_sfqr.SelectedIndex; //是否确认 int sfwc = rbtn_sfwc.SelectedIndex; //是否完成 string c_line_no = ""; if (icbo_line.SelectedIndex >= 0) { c_line_no = icbo_line.Properties.Items[icbo_line.SelectedIndex].Value.ToString(); } string c_type = ""; if (rbtn_type.SelectedIndex >= 1) { c_type = rbtn_type.Properties.Items[this.rbtn_type.SelectedIndex].Description; } DataTable dt = bll_order.GetPlanZX_Query(dte_Begin.DateTime, dte_End.DateTime, txt_gz1.Text.Trim(), txt_zxbz1.Text.Trim(), txt_gg_min.Text.Trim(), "", txt_order_no.Text.Trim(), C_SFPJ, sfwc, n_sfqr, c_line_no, c_type); this.gridControl1.DataSource = dt; this.gridView1.OptionsView.ColumnAutoWidth = false; this.gridView1.OptionsSelection.MultiSelect = true; SetGridViewRowNum.SetRowNum(gridView1); this.gridView1.BestFitColumns(); WaitingFrom.CloseWait(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }