Ejemplo n.º 1
0
 private void EditProjectBOM(object sender, EventArgs e)
 {
     var createForm = new CreateProjectBOM();
     //if (_list.Count > 0)
     createForm.bom = productStructService.GetBOMById(Convert.ToInt32(_id));
     createForm.Text = "编辑计划BOM";
     createForm.ShowDialog();
 }
Ejemplo n.º 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;
     }
 }
Ejemplo n.º 3
0
 private void AddProjectBOM(object sender, EventArgs e)
 {
     var bomForm = new CreateProjectBOM();
     bomForm.ShowDialog();
 }