/// <summary>
        /// 刷新DataGridView
        /// </summary>
        void RefreshDataGridView()
        {
            DataTable dt = m_findSellIn.GetAllBill(CE_MarketingType.入库.ToString(),
                                                   dateTimePicker1.Value.ToShortDateString(),
                                                   dateTimePicker2.Value.ToShortDateString(),
                                                   cmbDJ_ZT.Text,
                                                   out m_err);

            if (dt == null)
            {
                MessageDialog.ShowErrorMessage(m_err);
                return;
            }

            dgv_Show.DataSource = dt;

            string error = null;

            Hashtable hsTable = new Hashtable();

            hsTable.Add("@BillNo", DBNull.Value);

            DataTable tempTable = GlobalObject.DatabaseServer.QueryInfoPro("S_Marketing_GreenLightInfo", hsTable, out error);

            _List_BillNo = DataSetHelper.ColumnsToList_Distinct(tempTable, "单据号");
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 刷新DataGridView
        /// </summary>
        void RefreshDataGridView()
        {
            DataTable dt = m_findSellIn.GetAllBill(CE_MarketingType.退货.ToString(),
                                                   dateTimePicker1.Value.ToShortDateString(),
                                                   dateTimePicker2.Value.ToShortDateString(),
                                                   cmbDJ_ZT.Text,
                                                   out m_err);

            if (dt == null)
            {
                MessageDialog.ShowErrorMessage(m_err);
                return;
            }

            dgv_Show.DataSource = dt;
        }