You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
2.8 KiB
91 lines
2.8 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Data.Linq;
|
|
using System.Linq;
|
|
using System.Drawing;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using DevExpress.XtraEditors;
|
|
using DevExpress.XtraGrid.Views.BandedGrid;
|
|
using DevExpress.XtraGrid.Columns;
|
|
using DevExpress.XtraGrid;
|
|
using System.IO;
|
|
using System.Threading;
|
|
using ICSSoft.Base.Language.Tool;
|
|
using ICSSoft.Base.Config.AppConfig;
|
|
using ICSSoft.Base.UserControl.MessageControl;
|
|
using ICSSoft.Base.Config.DBHelper;
|
|
using ICSSoft.Base.Report.Filter;
|
|
using ICSSoft.Base.UserControl.FormControl;
|
|
using ICSSoft.Base.Report.GridReport;
|
|
using ICSSoft.Base.ReferForm.AppReferForm;
|
|
using ICSSoft.Frame.Data.BLL;
|
|
|
|
namespace ICSSoft.Frame.APP
|
|
{
|
|
public partial class FormTREEVIEW : DevExpress.XtraEditors.XtraForm
|
|
{
|
|
string ID;
|
|
string BOMVER;
|
|
string WORKPOINT;
|
|
public FormTREEVIEW(string Id,string bomver,string workpoint)
|
|
{
|
|
ID = Id;
|
|
BOMVER = bomver;
|
|
WORKPOINT = workpoint;
|
|
InitializeComponent();
|
|
this.MaximumSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
|
|
this.WindowState = FormWindowState.Maximized;
|
|
|
|
}
|
|
|
|
private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
|
|
{
|
|
|
|
if (e.Node.Name == "OPBOMNODE")
|
|
{
|
|
FormICSOPBOM f = new FormICSOPBOM();
|
|
f.TopLevel = false;
|
|
f.FormBorderStyle = FormBorderStyle.None;
|
|
f.WindowState = FormWindowState.Maximized;
|
|
panel1.Controls.Add(f);
|
|
f.Show();
|
|
}
|
|
if (e.Node.Name == "OPBOMDETAILNODE")
|
|
{
|
|
FormICSOPBOMDETAIL f = new FormICSOPBOMDETAIL();
|
|
f.TopLevel = false;
|
|
f.FormBorderStyle = FormBorderStyle.None;
|
|
f.WindowState = FormWindowState.Maximized;
|
|
panel1.Controls.Add(f);
|
|
f.Show();
|
|
|
|
}
|
|
if (e.Node.Name == "SBOMNODE")
|
|
{
|
|
FormICSOPBOMDETAILAdd f = new FormICSOPBOMDETAILAdd();
|
|
f.TopLevel = false;
|
|
f.FormBorderStyle = FormBorderStyle.None;
|
|
f.WindowState = FormWindowState.Maximized;
|
|
panel1.Controls.Add(f);
|
|
f.Show();
|
|
}
|
|
if (e.Node.Name == "BOMNODE")
|
|
{
|
|
FormICSOPSBOMAdd f = new FormICSOPSBOMAdd();
|
|
f.TopLevel = false;
|
|
f.FormBorderStyle = FormBorderStyle.None;
|
|
f.WindowState = FormWindowState.Maximized;
|
|
panel1.Controls.Add(f);
|
|
f.Show();
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|