Esempio n. 1
0
        public Page1ViewModel()
        {
            TransferJobs          = materialDB.GetAll <Transfer_Job>();
            this.CreateJobCommand = new DelegateCommand();
            this.CreateJobCommand.ExecuteAction = new Action <object>(this.CreateJob);

            this.RefreshCommand = new DelegateCommand();
            this.RefreshCommand.ExecuteAction = new Action <object>(this.Refresh);
        }
Esempio n. 2
0
        public void TestMethod1()
        {
            MaterialDB materialDB = new MaterialDB();
            var        list       = materialDB.GetAll <Material>();

            foreach (var item in list)
            {
                Console.WriteLine(item);
            }
        }
Esempio n. 3
0
        public Page2ViewModel()
        {
            //获取数据
            //      Materials = materialDB.GetAll<Material>();

            Positions = materialDB.GetAll <Position>();
            ContainersByPositionId = materialDB.GetAllByPositionId <Container>();
            //     Racks = materialDB.GetAll<Rack>();
            //       TransferJobs = materialDB.GetAll<Transfer_Job>();
            //      Containers = materialDB.GetAll<Container>();
            //命令操作
            this.FindCommand = new DelegateCommand();
            this.FindCommand.ExecuteAction = new Action <object>(FindByid);

            //选中行事件
            string id = SelectItemData.id;

            if (id != null)
            {
                MaterialsById = materialDB.GetByid <Material>(id);
            }
        }