예제 #1
0
        private void sbtnSelect_Click(object sender, EventArgs e)
        {
            string paramStoreHouseID = string.Empty;
            string ProductId         = txtProductID.Text;
            string ProductName       = txtProductName.Text;

            if (checkBox1.Checked == true)
            {
                paramStoreHouseID = combStoreHouse_ID.SelectedValue.ToString();
            }
            DataTable       dt = new DataTable();
            BUStockOutOrder myBUStockOutOrder = new BUStockOutOrder();

            dt = myBUStockOutOrder.GetStockInfo(paramStoreHouseID, string.Empty, ProductId, ProductName);
            this.gdcInfo.DataSource = dt;
        }
예제 #2
0
        private void sbtnSelect_Click(object sender, EventArgs e)
        {
            try
            {
                string paramTime_1   = dateTimePicker1.Value.ToString("yyyy-MM-dd 00:00:00");
                string paramTime_2   = dateTimePicker2.Value.ToString("yyyy-MM-dd 23:59:59");
                string paramCustomer = string.Empty;
                if (checkBox1.Checked == true)
                {
                    paramCustomer = combCustomer.SelectedValue.ToString();
                }

                DataTable       dt = new DataTable();
                BUStockOutOrder myBUStockOutOrder = new BUStockOutOrder();
                dt = myBUStockOutOrder.GetStockOutInfo(paramTime_1, paramTime_2, paramCustomer);
                this.gdCInvent.DataSource = dt;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }