Example #1
0
 public StorageMainView()
 {
     InitializeComponent();
     stockManaView   = new StockManaView("库存列表");
     storageView     = new StorageView("货位看板");
     stockOperteView = new StockOperateView("操作记录");
     ViewList.Add(stockManaView);
     ViewList.Add(storageView);
     ViewList.Add(stockOperteView);
     this.batchSetControl = new OutBatchSetView();
 }
Example #2
0
        public StorageMainView()
        {
            string dbSrc = ConfigurationManager.AppSettings["DBSource"];

            AsrsStorDBAcc.DbHelperSQL.SetConnstr(string.Format(@"{0}Initial Catalog=JKWMSDB;User ID=sa;Password=123456;", dbSrc));
            InitializeComponent();
            stockManaView   = new StockManaView("库存列表");
            storageView     = new StorageView("货位看板");
            stockOperteView = new StockOperateView("操作记录");
            ViewList.Add(stockManaView);
            ViewList.Add(storageView);
            ViewList.Add(stockOperteView);
            this.batchSetControl = new OutBatchSetView();
        }
Example #3
0
        /// <summary>
        /// 刷新库存看板页面
        /// </summary>
        public void RefreshStorageView()
        {
            Form storageForm = StorageMainView.GetViewByName("StorageView");

            if (storageForm == null)
            {
                return;
            }
            StorageView storageView = (StorageView)storageForm;

            if (storageView == null)
            {
                return;
            }
            storageView.RefreshData();
        }