Esempio n. 1
0
        private void SelectParts(object sender, EventArgs e)
        {
            var fileForm = new SelectExistingFile {
                TopLevel = false, FormBorderStyle = FormBorderStyle.None
            };
            var gridView = (GridView)fileForm.gridControl1.MainView;

            MaterialGridView           = gridView;
            gridView.RowClick         += MaterialListRowClik;
            bmReferMaterial.ItemClick += ReferMaterailItemClik;
            BindPageTab(xtraTabPage18, fileForm);
            fileForm.Show();
        }
Esempio n. 2
0
        /// <summary>
        /// 添加同级或下级
        /// </summary>
        private void BOMStructAddByMaterial(int _parentId)
        {
            var materialForm = new SelectExistingFile();

            materialForm.ShowDialog();
            if (materialForm.DialogResult == DialogResult.OK)
            {
                var id    = Convert.ToInt32(focus_node.GetValue("Id"));
                var parts = materialForm.parts;
                var m     = new BOM_Struct {
                    Id = id + 1, Parent_Id = _parentId, Material_Id = Convert.ToInt32(parts[0])
                };
                structList.Add(m);
                TreeDataBind(structList, treeList1);
            }
        }
Esempio n. 3
0
        /// <summary>
        /// 选择根件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SelectRootParts(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            if (ProductStructureManage_ProjectBOMDeploy_CreateProjtctBOM_SelectParts_CheckEdit.Checked)
            {
                var selectForm = new SelectExistingFile();
                selectForm.ShowDialog();

                if (selectForm.DialogResult != DialogResult.OK)
                {
                    return;
                }
                bom.Parent_Id        = Convert.ToInt32(selectForm.parts[0]);
                txtRootPartNo.Text   = selectForm.parts[1];
                txtRootPartName.Text = selectForm.parts[2];
            }
            else
            {
                //var materialForm = new AddMaterialInfor();
                //materialForm.ShowDialog();
            }
        }
Esempio n. 4
0
 private void SelectParts(object sender, EventArgs e)
 {
     var fileForm = new SelectExistingFile { TopLevel = false, FormBorderStyle = FormBorderStyle.None };
     var gridView = (GridView)fileForm.gridControl1.MainView;
     MaterialGridView = gridView;
     gridView.RowClick += MaterialListRowClik;
     bmReferMaterial.ItemClick += ReferMaterailItemClik;
     BindPageTab(xtraTabPage18, fileForm);
     fileForm.Show();
 }
Esempio n. 5
0
 /// <summary>
 /// 添加同级或下级
 /// </summary>
 private void BOMStructAddByMaterial(int _parentId)
 {
     var materialForm = new SelectExistingFile();
     materialForm.ShowDialog();
     if (materialForm.DialogResult == DialogResult.OK)
     {
         var id = Convert.ToInt32(focus_node.GetValue("Id"));
         var parts = materialForm.parts;
         var m = new BOM_Struct { Id = id + 1, Parent_Id = _parentId, Material_Id = Convert.ToInt32(parts[0]) };
         structList.Add(m);
         TreeDataBind(structList, treeList1);
     }
 }
Esempio n. 6
0
        /// <summary>
        /// 选择根件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SelectRootParts(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            if (ProductStructureManage_ProjectBOMDeploy_CreateProjtctBOM_SelectParts_CheckEdit.Checked)
            {
                var selectForm = new SelectExistingFile();
                selectForm.ShowDialog();

                if (selectForm.DialogResult != DialogResult.OK) return;
                bom.Parent_Id = Convert.ToInt32(selectForm.parts[0]);
                txtRootPartNo.Text = selectForm.parts[1];
                txtRootPartName.Text = selectForm.parts[2];
            }
            else
            {
                //var materialForm = new AddMaterialInfor();
                //materialForm.ShowDialog();
            }
        }