コード例 #1
0
        /// <summary>
        /// 加载界面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ProductSoldOut_Load(object sender, EventArgs e)
        {
            try
            {
                dTable      = new DataTable();
                inoutHelper = new InOutHelper();
                //防止重复加载同一条商品信息
                skuOuterIDList = new List <string>();

                //显示当前入库日期
                dateEditOutTime.Text = DateTime.Now.ToShortDateString();
                //到账日期
                dateEditIncomeTime.Text = DateTime.Now.ToShortDateString();
                //账期
                textEditPayTerm.Text = "0";

                //加载所有仓库
                inoutHelper.LoadAllHouse(repositoryItemComboBoxStockHouse);
                //加载付款方式
                inoutHelper.GetPayType(comboPayType);
                inoutHelper.AddTaxColumns(gcProSoldOut, dTable);
                gvProSoldOut.BestFitColumns();
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(ex.Message, Constants.SYSTEM_PROMPT, MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }