Beispiel #1
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            dataGridView1.Columns.Clear();
            BORDB_VO vo = new BORDB_VO();

            vo.product_name = txtItem.Text;
            if (cboProcess.Text == "미선택")
            {
                vo.common_name = "";
            }
            else
            {
                vo.common_name = cboProcess.Text;
            }
            vo.m_name = txtFacility.Text;

            List <BORDB_VO> list = service.BOR_Search(vo);

            if (list == null)
            {
                return;
            }
            else
            {
                dataGridView1.DataSource = null;
                dgvColumnSet();
                dataGridView1.DataSource = list;
            }

            if (dataGridView1.Rows.Count <= 0)
            {
                SetBottomStatusLabel("조회에 실패하였습니다. 다시 시도하여 주십시오.");
            }
            else
            {
                SetBottomStatusLabel("조회가 완료되었습니다.");
            }
        }