Пример #1
0
        private void btn_query_zg_Click(object sender, EventArgs e)
        {
            string strzx = "";//查询轧线

            if (this.icbo_zx4.SelectedIndex > 0)
            {
                strzx = this.icbo_zx4.Properties.Items[this.icbo_zx4.SelectedIndex].Value.ToString().Trim();
            }

            string isKP = "N";

            if (rbtn_zg.SelectedIndex == 1)
            {
                isKP = "Y";
            }
            else if (rbtn_zg.SelectedIndex == 2)
            {
                isKP = "YP";
            }
            else
            {
                isKP = "N";
            }

            dtzg = bll_order.GetZGPCOrder(this.txt_gz4.Text.Trim(), this.txt_bz4.Text.Trim(), strzx, isKP);

            this.gridControl1.DataSource = dtzg;
            this.gridView1.OptionsView.ColumnAutoWidth  = false;
            this.gridView1.OptionsSelection.MultiSelect = true;
            gridView1.OptionsSelection.MultiSelectMode  = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect;
            SetGridViewRowNum.SetRowNum(gridView1);
            this.gridView1.BestFitColumns();
        }