Exemple #1
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            //조회 버튼
            try
            {
                SupplierVO vo = new SupplierVO();
                //vo.order_state = "O_COMPLETE";
                vo.start_date = dtpStartDate.Value.ToShortDateString();
                vo.end_date   = dtpEndDate.Value.ToShortDateString();

                if (cboCompany.Text != "선택")
                {
                    vo.company_name = cboCompany.Text;
                }

                if (txtOrderID.Text != "")
                {
                    vo.order_id = txtOrderID.Text;
                }
                PurchasingService service = new PurchasingService();

                dt = service.GetOrderList(vo);

                dataGridView1.DataSource = dt;
            }
            catch (Exception err)
            {
                LoggingUtility.GetLoggingUtility(err.Message, Level.Error);
            }
        }
Exemple #2
0
        private void OrderDialog_Load(object sender, EventArgs e)
        {
            SetDataGridCompany();
            SetDataGridOrdering();

            PurchasingService service = new PurchasingService();

            try
            {
                DataSet ds = service.GetOrderList(planID);
                dgvOrdering.DataSource = ds.Tables[0];
                dgvCompany.DataSource  = ds.Tables[1];
            }
            catch (Exception err)
            {
                LoggingUtility.GetLoggingUtility(err.Message, Level.Error);
            }


            //SetRowNumber(dgvCompany);
        }