/// <summary> /// 加载主界面 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OtherIn_Load(object sender, EventArgs e) { try { dTable = new DataTable(); inoutHelper = new InOutHelper(); //防止重复加载同一条商品信息 skuOuterIDList = new List <string>(); //显示当前入库日期 dateEditInTime.Text = DateTime.Now.ToShortDateString(); //显示到账时间 dateEditIncomeTime.Text = DateTime.Now.ToShortDateString(); textEditPayTerm.Text = "0"; //加载所有仓库 inoutHelper.LoadAllHouse(repositoryItemComboBoxOStockHouse); //加载付款方式 inoutHelper.GetPayType(comboPayType); inoutHelper.AddColumns(gcOtherInProduct, dTable); gvOtherInProduct.BestFitColumns(); } catch (Exception ex) { XtraMessageBox.Show(ex.Message, Constants.SYSTEM_PROMPT, MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// 加载界面 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SelledReturnIn_Load(object sender, EventArgs e) { try { inoutHelper = new InOutHelper(); dTable = new DataTable(); skuOuterIDList = new List <string>(); //显示当前入库日期 dateEditInTime.Text = DateTime.Now.ToShortDateString(); //加载展示信息 AddColumns(dTable); //从数据库获取并展示数据 List <Alading.Entity.View_RefundTradeStock> tradeRefundList = TradeRefundService.GetTradeRefundByView(c => c.LocalStatus == LocalTradeStatus.SentNotRate && c.IsRecieved == false); LoadTradeRefund(tradeRefundList); /*加载所有仓库*/ inoutHelper.LoadAllHouse(repositoryItemComboBoxStockHouse); gvReturnInProduct.BestFitColumns(); } catch (Exception ex) { XtraMessageBox.Show(ex.Message, Constants.SYSTEM_PROMPT, MessageBoxButtons.OK, MessageBoxIcon.Information); } }