示例#1
0
        private void BOMView(object sender, EventArgs e)
        {
            DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(typeof(LoadWaitForm));

            var displayForm = new DisplayChangeParts();

            displayForm.bomId = bomId;
            displayForm.ShowDialog();

            DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm();
        }
示例#2
0
        private void BOMItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            switch (e.Item.Name)
            {
            case "btnViewBOMItem":
                var messageForm = new CheckBOMMessage
                {
                    bom = productStructService.GetBOMById(Convert.ToInt32(_id))
                          //bom = _list.Find(bom => bom.Id == Convert.ToInt32(_id))
                };
                messageForm.ShowDialog();
                break;

            case "btnConfigBOMItem":
                var projectForm = new BOMDeploy();
                projectForm.bom_id = Convert.ToInt32(_id);
                projectForm.ShowDialog();
                break;

            case "btnBrowseBOMItem":
                //DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(typeof(LoadWaitForm));
                var displayForm = new DisplayChangeParts();
                displayForm.bomId = bomId;
                displayForm.ShowDialog();
                //DevExpress.XtraSplashScreen.SplashScreenManager.CloseForm();
                break;

            case "btnEditBOMItem":
                var createForm = new CreateProjectBOM();
                createForm.bom  = productStructService.GetBOMById(Convert.ToInt32(_id));
                createForm.Text = "编辑计划BOM";
                createForm.ShowDialog();
                break;

            case "btnDelBOMItem":
                break;
            }
        }