예제 #1
0
        /// <summary>
        /// 选择商品
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barBtnSoldOutSelectPro_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            try
            {
                int oldRowCount = gvProSoldOut.RowCount;
                //用于存放从 选择商品 选择的StockProduct
                DataTable       table = new DataTable();
                ProductSelected ps    = new ProductSelected(table, null);
                ps.ShowDialog();

                //传递数据
                inoutHelper.SetColumnsValue(dTable, table, skuOuterIDList);
                inoutHelper.DisPlayTax(oldRowCount, gvProSoldOut, gcTaxCode, gcTax);
                //gcProSoldOut.DataSource = dTable.DefaultView;
                gvProSoldOut.BestFitColumns();
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(ex.Message, Constants.SYSTEM_PROMPT, MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }