private void �ŷ�ToolStripMenuItem_Click(object sender, EventArgs e) { WorkShopWorkerData wwdform = new WorkShopWorkerData(); wwdform.MdiParent = this; wwdform.Show(); }
/// <summary> /// ������LISTVIEW˫���¼� /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void treeView1_DoubleClick_1(object sender, EventArgs e) { #region ��·���ݲ�ѯ���� //�����СƱ if (treeView1.SelectedNode.Name == "DesignSpoolOverView") { foreach (Form form in this.MdiChildren) { if (form.Text == "���СƱ����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } SpoolGeneralViewForm sgvf = new SpoolGeneralViewForm(); sgvf.Text = "���СƱ����"; sgvf.MdiParent = this; sgvf.Show(); SearchtoolStripButton3.Enabled = true; } else if (treeView1.SelectedNode.Name == "ECDRAWINGREPORT") { foreach (Form form in this.MdiChildren) { if (form.Text == "��Ŀͼֽ����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } ECDrawingReportFrm ecreport = new ECDrawingReportFrm(); ecreport.Text = "��Ŀͼֽ����"; ecreport.MdiParent = this; ecreport.Show(); } else if (treeView1.SelectedNode.Name == "FrontPageUpdate") { foreach (Form form in this.MdiChildren) { if (form.Text == "���·���") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } InsertBlob insertFrom = new InsertBlob(); insertFrom.MdiParent = this; insertFrom.Show(); } if (treeView1.SelectedNode.Name == "ValveOverView") { foreach (Form form in this.MdiChildren) { if (form.Text == "������Ϣ����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } SpoolGeneralViewForm sgvf = new SpoolGeneralViewForm(); sgvf.Text = "������Ϣ����"; sgvf.MdiParent = this; sgvf.Show(); SearchtoolStripButton3.Enabled = true; } //�ӹ�СƱ else if (treeView1.SelectedNode.Name == "MachineSpoolOverView") { foreach (Form form in this.MdiChildren) { if (form.Text == "�ӹ�СƱ����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } SpoolGeneralViewForm sgvf = new SpoolGeneralViewForm(); sgvf.Text = "�ӹ�СƱ����"; sgvf.MdiParent = this; sgvf.Show(); SearchtoolStripButton3.Enabled = true; } //��ʱͳ��СƱ else if (treeView1.SelectedNode.Name == "NormHour") { foreach (Form form in this.MdiChildren) { if (form.Text == "�ܼӹ���ʱ����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } SpoolGeneralViewForm sgvf = new SpoolGeneralViewForm(); sgvf.Text = "�ܼӹ���ʱ����"; sgvf.MdiParent = this; sgvf.Show(); SearchtoolStripButton3.Enabled = true; } //���ʼ�СƱ else if (treeView1.SelectedNode.Name == "QCSpoolOverView") { foreach (Form form in this.MdiChildren) { if (form.Text == "�ʼ�СƱ����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } SpoolGeneralViewForm sgvf = new SpoolGeneralViewForm(); sgvf.Text = "�ʼ�СƱ����"; sgvf.MdiParent = this; sgvf.Show(); SearchtoolStripButton3.Enabled = true; } //���Ѿ�ͨ���ʼ��СƱ else if (treeView1.SelectedNode.Name == "QCCheckedOverView") { foreach (Form form in this.MdiChildren) { if (form.Text == "����ͨ��СƱ����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } SpoolGeneralViewForm sgvf = new SpoolGeneralViewForm(); sgvf.Text = "����ͨ��СƱ����"; sgvf.MdiParent = this; sgvf.Show(); SearchtoolStripButton3.Enabled = true; } //������Ϣ���� else if (treeView1.SelectedNode.Name == "MaterialOverView") { foreach (Form form in this.MdiChildren) { if (form.Text == "������Ϣ����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } SpoolGeneralViewForm sgvf = new SpoolGeneralViewForm(); sgvf.Text = "������Ϣ����"; sgvf.MdiParent = this; sgvf.Show(); SearchtoolStripButton3.Enabled = true; } //���Ӽ���Ϣ���� else if (treeView1.SelectedNode.Name == "ConnectorOverView") { foreach (Form form in this.MdiChildren) { if (form.Text == "���Ӽ���Ϣ����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } SpoolGeneralViewForm sgvf = new SpoolGeneralViewForm(); sgvf.Text = "���Ӽ���Ϣ����"; sgvf.MdiParent = this; sgvf.Show(); SearchtoolStripButton3.Enabled = true; } //�ӹ���Ϣ���� else if (treeView1.SelectedNode.Name == "MachineOverView") { foreach (Form form in this.MdiChildren) { if (form.Text == "�ӹ���Ϣ����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } SpoolGeneralViewForm sgvf = new SpoolGeneralViewForm(); sgvf.Text = "�ӹ���Ϣ����"; sgvf.MdiParent = this; sgvf.Show(); SearchtoolStripButton3.Enabled = true; } //������Ϣ���� else if (treeView1.SelectedNode.Name == "WeldOverView") { foreach (Form form in this.MdiChildren) { if (form.Text == "������Ϣ����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } SpoolGeneralViewForm sgvf = new SpoolGeneralViewForm(); sgvf.Text = "������Ϣ����"; sgvf.MdiParent = this; sgvf.Show(); SearchtoolStripButton3.Enabled = true; } ///��·ͳ�� else if (treeView1.SelectedNode.Name == "PipeStatistics") { foreach (Form form in this.MdiChildren) { if (form.Text == "��·ͳ����Ϣ") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } SpoolGeneralViewForm sgvf = new SpoolGeneralViewForm(); sgvf.Text = "��·ͳ����Ϣ"; sgvf.MdiParent = this; sgvf.Show(); SearchtoolStripButton3.Enabled = true; } ///��·����ͳ�� else if (treeView1.SelectedNode.Name == "PartStatistics") { foreach (Form form in this.MdiChildren) { if (form.Text == "��·����ͳ����Ϣ") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } SpoolGeneralViewForm sgvf = new SpoolGeneralViewForm(); sgvf.Text = "��·����ͳ����Ϣ"; sgvf.MdiParent=this; sgvf.Show(); SearchtoolStripButton3.Enabled = true; } //��Ŀ����ͳ�� else if (treeView1.SelectedNode.Name == "ProgressInfo") { foreach (Form form in this.MdiChildren) { if (form.Text == "��Ŀ��·���ȷ���") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } ProgressStatistics psform = new ProgressStatistics(); psform.Text = "��Ŀ��·���ȷ���"; psform.MdiParent = this; psform.Show(); this.toolStrip1.Items[0].Enabled = false; } //������������� if (treeView1.SelectedNode.Name == "MaterialRequirement") { foreach (Form form in this.MdiChildren) { if (form.Text == "�����������") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } BatchSheet bsform = new BatchSheet(); bsform.MdiParent = this; bsform.Show(); SearchtoolStripButton3.Enabled = false; } if (treeView1.SelectedNode.Name == "AddNewWorker") { foreach (Form form in this.MdiChildren) { if (form.Text == "��ӳ�����Ա������Ϣ") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } WorkShopWorkerData wwdform = new WorkShopWorkerData(); wwdform.MdiParent = this; wwdform.Show(); SearchtoolStripButton3.Enabled = false; } //��Ŀͼֽ���� else if (treeView1.SelectedNode.Name == "PROJECTDRAWINGOVERVIEW") { foreach (Form form in this.MdiChildren) { if (form.Text == "��Ŀͼֽ�Ÿ���") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } PROJECTDRAWINGINFO pdform = new PROJECTDRAWINGINFO(); pdform.Text = "��Ŀͼֽ�Ÿ���"; pdform.MdiParent = this; pdform.Show(); this.toolStrip1.Items[0].Enabled = false; } //�ѷ�ͼֽ���϶���� else if (treeView1.SelectedNode.Name == "MATERIALRATION") { foreach (Form form in this.MdiChildren) { if (form.Text == "�ѷ�ͼֽ���϶����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } SpoolGeneralViewForm sgvf = new SpoolGeneralViewForm(); sgvf.Text = "�ѷ�ͼֽ���϶����"; sgvf.MdiParent = this; sgvf.Show(); SearchtoolStripButton3.Enabled = true; } #endregion #region ��̨����ά������ else if (treeView1.SelectedNode.Name == "Bend") { foreach (Form form in this.MdiChildren) { if (form.Text == "��ͷ�б�") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } DataMaintenanceForm dmf = new DataMaintenanceForm(); dmf.Text = "��ͷ�б�"; dmf.MdiParent = this; dmf.Show(); } else if (treeView1.SelectedNode.Name == "Cabin") { foreach (Form form in this.MdiChildren) { if (form.Text == "�����б�") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } DataMaintenanceForm dmf = new DataMaintenanceForm(); dmf.Text = "�����б�"; dmf.MdiParent = this; dmf.Show(); } else if (treeView1.SelectedNode.Name == "Connector") { foreach (Form form in this.MdiChildren) { if (form.Text == "���Ӽ��б�") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } DataMaintenanceForm dmf = new DataMaintenanceForm(); dmf.Text = "���Ӽ��б�"; dmf.MdiParent = this; dmf.Show(); } else if (treeView1.SelectedNode.Name == "ElbowMaterial") { foreach (Form form in this.MdiChildren) { if (form.Text == "��ͷ���϶����б�") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } DataMaintenanceForm dmf = new DataMaintenanceForm(); dmf.Text = "��ͷ���϶����б�"; dmf.MdiParent = this; dmf.Show(); } else if (treeView1.SelectedNode.Name == "PSTAD") { foreach (Form form in this.MdiChildren) { if (form.Text == "��ģ�б�") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } DataMaintenanceForm dmf = new DataMaintenanceForm(); dmf.Text = "��ģ�б�"; dmf.MdiParent = this; dmf.Show(); } else if (treeView1.SelectedNode.Name == "SocketElbow") { foreach (Form form in this.MdiChildren) { if (form.Text == "�н���ͷ�б�") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } DataMaintenanceForm dmf = new DataMaintenanceForm(); dmf.Text = "�н���ͷ�б�"; dmf.MdiParent = this; dmf.Show(); } else if (treeView1.SelectedNode.Name == "Surface") { foreach (Form form in this.MdiChildren) { if (form.Text == "���洦���б�") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } DataMaintenanceForm dmf = new DataMaintenanceForm(); dmf.Text = "���洦���б�"; dmf.MdiParent = this; dmf.Show(); } else if (treeView1.SelectedNode.Name == "System") { foreach (Form form in this.MdiChildren) { if (form.Text == "ϵͳ�б�") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } DataMaintenanceForm dmf = new DataMaintenanceForm(); dmf.Text = "ϵͳ�б�"; dmf.MdiParent = this; dmf.Show(); } else if (treeView1.SelectedNode.Name == "Approver") { foreach (Form form in this.MdiChildren) { if (form.Text == "������б�") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } DataMaintenanceForm dmf = new DataMaintenanceForm(); dmf.Text = "������б�"; dmf.MdiParent = this; dmf.Show(); } else if (treeView1.SelectedNode.Name == "BAITINGNORM_METALPIPE") { foreach (Form form in this.MdiChildren) { if (form.Text == "�����������ʱ�䶨���б�") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } DataMaintenanceForm dmf = new DataMaintenanceForm(); dmf.Text = "�����������ʱ�䶨���б�"; dmf.MdiParent = this; dmf.Show(); } else if (treeView1.SelectedNode.Name == "BAITINGNORM_PEPPH") { foreach (Form form in this.MdiChildren) { if (form.Text == "PE&PPH�ܹ�ʱ�����б�") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } DataMaintenanceForm dmf = new DataMaintenanceForm(); dmf.Text = "PE&PPH�ܹ�ʱ�����б�"; dmf.MdiParent = this; dmf.Show(); } else if (treeView1.SelectedNode.Name == "BEVEL_HOUR_NORM") { foreach (Form form in this.MdiChildren) { if (form.Text == "�¿ڼӹ�ʱ�䶨���б�") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } DataMaintenanceForm dmf = new DataMaintenanceForm(); dmf.Text = "�¿ڼӹ�ʱ�䶨���б�"; dmf.MdiParent = this; dmf.Show(); } else if (treeView1.SelectedNode.Name == "ELBOW_HOUR_NORM") { foreach (Form form in this.MdiChildren) { if (form.Text == "���ʱ�䶨���б�") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } DataMaintenanceForm dmf = new DataMaintenanceForm(); dmf.Text = "���ʱ�䶨���б�"; dmf.MdiParent = this; dmf.Show(); } else if (treeView1.SelectedNode.Name == "PIPECHECKING_HOUR_NORM") { foreach (Form form in this.MdiChildren) { if (form.Text == "У��ʱ�䶨���б�") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } DataMaintenanceForm dmf = new DataMaintenanceForm(); dmf.Text = "У��ʱ�䶨���б�"; dmf.MdiParent = this; dmf.Show(); } #endregion #region ����ƻ� else if (treeView1.SelectedNode.Name == "WorkShopPlan") { foreach (Form form in this.MdiChildren) { if (form.Text == "����ƻ�") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } WorkShopPlan wspfrm = new WorkShopPlan(); wspfrm.Text = "����ƻ�"; wspfrm.MdiParent = this; wspfrm.Show(); } else if (treeView1.SelectedNode.Name == "WorkShopPlanDetails") { foreach (Form form in this.MdiChildren) { if (form.Text == "����ƻ���ϸ") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } WorkShopPlanDetail wspdfrm = new WorkShopPlanDetail(); wspdfrm.Text = "����ƻ���ϸ"; wspdfrm.MdiParent = this; wspdfrm.Show(); } #endregion else if (treeView1.SelectedNode.Name == "MaterialManagement") { foreach (Form form in this.MdiChildren) { if (form.Text == "������Ϣ����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } inventoryFrm inventoryform = new inventoryFrm(); inventoryform.Text = "������Ϣ����"; inventoryform.MdiParent = this; inventoryform.Show(); } #region �����·�� else if (treeView1.SelectedNode.Name == "SpoolTrace") { foreach (Form form in this.MdiChildren) { if (form.Text == "��·��") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } WShopSPlTrace tracefrm = new WShopSPlTrace(); tracefrm.Text = "��·��"; tracefrm.MdiParent = this; tracefrm.Show(); } else if (treeView1.SelectedNode.Name == "MaterialTreaceability") { foreach (Form form in this.MdiChildren) { if (form.Text == "���鵥��Ϣ") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } MaterialTraceabilityFrm traceabilityFrm = new MaterialTraceabilityFrm(); traceabilityFrm.Text = "���鵥��Ϣ"; traceabilityFrm.MdiParent = this; traceabilityFrm.Show(); } else if (treeView1.SelectedNode.Name == "ModifyStatistics") { foreach (Form form in this.MdiChildren) { if (form.Text == "��ǰ��������Ϣ") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } ModifyStatisticsFrm msFrm = new ModifyStatisticsFrm(); msFrm.Text = "��ǰ��������Ϣ"; msFrm.MdiParent = this; msFrm.Show(); } #endregion #region ���乤ʱ����� else if (treeView1.SelectedNode.Name == "MaterialPreparation") { foreach (Form form in this.MdiChildren) { if (form.Text == "���Ϲ�ʱ����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } WShopManHour manhourfrm = new WShopManHour(); manhourfrm.Text = "���Ϲ�ʱ����"; manhourfrm.MdiParent = this; manhourfrm.Show(); } else if (treeView1.SelectedNode.Name == "MaterialAssembly") { foreach (Form form in this.MdiChildren) { if (form.Text == "װ�乤ʱ����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } WShopManHour manhourfrm = new WShopManHour(); manhourfrm.Text = "װ�乤ʱ����"; manhourfrm.MdiParent = this; manhourfrm.Show(); } else if (treeView1.SelectedNode.Name == "MaterialWeld") { foreach (Form form in this.MdiChildren) { if (form.Text == "���ӹ�ʱ����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } WShopManHour manhourfrm = new WShopManHour(); manhourfrm.Text = "���ӹ�ʱ����"; manhourfrm.MdiParent = this; manhourfrm.Show(); } else if (treeView1.SelectedNode.Name == "MaterialQC") { foreach (Form form in this.MdiChildren) { if (form.Text == "���鹤ʱ����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } WShopManHour manhourfrm = new WShopManHour(); manhourfrm.Text = "���鹤ʱ����"; manhourfrm.MdiParent = this; manhourfrm.Show(); } else if (treeView1.SelectedNode.Name == "MaterialTransport") { foreach (Form form in this.MdiChildren) { if (form.Text == "�ϳ���ʱ����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } WShopManHour manhourfrm = new WShopManHour(); manhourfrm.Text = "�ϳ���ʱ����"; manhourfrm.MdiParent = this; manhourfrm.Show(); } else if (treeView1.SelectedNode.Name == "MaterialPressTest") { foreach (Form form in this.MdiChildren) { if (form.Text == "ѹ�����鹤ʱ����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } WShopManHour manhourfrm = new WShopManHour(); manhourfrm.Text = "ѹ�����鹤ʱ����"; manhourfrm.MdiParent = this; manhourfrm.Show(); } else if (treeView1.SelectedNode.Name == "NormalPipeWT") { foreach (Form form in this.MdiChildren) { if (form.Text == "��̼ͨ�ֹ�(ͭ��)����ͨ����ֹ��ܹ�ʱ����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } NormalPipeWorkingTime normalWTfrm = new NormalPipeWorkingTime(); normalWTfrm.Text = "��̼ͨ�ֹ�(ͭ��)����ͨ����ֹ��ܹ�ʱ����"; normalWTfrm.MdiParent = this; normalWTfrm.Show(); } #endregion #region ECDMS�û�������Ϣ else if (treeView1.SelectedNode.Name == "ImportComments") { foreach (Form form in this.MdiChildren) { if (form.Text == "���������Ϣ�������") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } DetailInfo.ECDMS.ImportComment commentform = new ECDMS.ImportComment(); commentform.Text = "���������Ϣ�������"; commentform.MdiParent = this; commentform.Show(); } else if (treeView1.SelectedNode.Name == "ImportDrawingPlan") { foreach (Form form in this.MdiChildren) { if (form.Text == "ͼֽ��ͼֽ�ƻ�����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } ImportDrawingPlanFrm importDrawPlanfrom = new ImportDrawingPlanFrm(); importDrawPlanfrom.Text = "ͼֽ��ͼֽ�ƻ�����"; importDrawPlanfrom.MdiParent = this; importDrawPlanfrom.Show(); } else if (treeView1.SelectedNode.Name == "ImportEquipment") { foreach (Form form in this.MdiChildren) { if (form.Text == "�豸����") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } ImportEquipmentFrm importEquipmentform = new ImportEquipmentFrm(); importEquipmentform.Text = "�豸����"; importEquipmentform.MdiParent = this; importEquipmentform.Show(); } else if (treeView1.SelectedNode.Name == "CablesVolume") { foreach (Form form in this.MdiChildren) { if (form.Text == "���²�") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } CablesVolumeFrm cablesform = new CablesVolumeFrm(); cablesform.Text = "���²�"; cablesform.MdiParent = this; cablesform.Show(); } else if (treeView1.SelectedNode.Name == "ImportCable") { foreach (Form form in this.MdiChildren) { if (form.Text == "���µ���") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } DetailInfo.ECDMS.ProjectDrawingCableFrm pdcable = new ECDMS.ProjectDrawingCableFrm(); pdcable.Text = "���µ���"; pdcable.MdiParent = this; pdcable.Show(); } #endregion #region ECDMS�û����Ϲ�����Ϣ else if (treeView1.SelectedNode.Name == "MatParaSet") { foreach (Form form in this.MdiChildren) { if (form.Text == "����Ԥ��") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } M_Estimate matreqadd = new M_Estimate(); matreqadd.MdiParent = this; matreqadd.Text = "����Ԥ��"; matreqadd.Show(); } else if (treeView1.SelectedNode.Name == "MatParaSummary") { foreach (Form form in this.MdiChildren) { if (form.Text == "����Ԥ������") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } frmPartParaSet matreqadd = new frmPartParaSet(); matreqadd.MdiParent = this; matreqadd.Text = "����Ԥ������"; matreqadd.Show(); } else if (treeView1.SelectedNode.Name == "MatParaConfirm") { foreach (Form form in this.MdiChildren) { if (form.Text == "����Ԥ��ȷ��") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } frmPartParaConfirm matreqadd = new frmPartParaConfirm(); matreqadd.MdiParent = this; matreqadd.Text = "����Ԥ��ȷ��"; matreqadd.Show(); } else if (treeView1.SelectedNode.Name == "MatRequire") { foreach (Form form in this.MdiChildren) { if (form.Text == "��������ҳ��") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } MaterialManage.MaterialRequireAdd matreqadd = new MaterialManage.MaterialRequireAdd("0","1"); matreqadd.MdiParent = this; matreqadd.Text = "��������ҳ��"; matreqadd.Show(); } else if (treeView1.SelectedNode.Name == "ERPCode_Manage") { foreach (Form form in this.MdiChildren) { if (form.Text == "�������") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } frmPartAdd matadd = new frmPartAdd(); matadd.MdiParent = this; matadd.Text = "�������"; matadd.Show(); } else if (treeView1.SelectedNode.Name == "ConvertMSS") { foreach (Form form in this.MdiChildren) { if (form.Text == "ת������ʽMSS") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } ConvertStandard matadd = new ConvertStandard(); matadd.MdiParent = this; matadd.Text = "ת������ʽMSS"; matadd.Show(); } else if (treeView1.SelectedNode.Name == "ERP_Inventory") { foreach (Form form in this.MdiChildren) { if (form.Text == "��Ŀ����ѯ") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } frmPartInventory matadd = new frmPartInventory(); matadd.MdiParent = this; matadd.Text = "��Ŀ����ѯ"; matadd.Show(); } else if (treeView1.SelectedNode.Name == "MatReqSummary") { foreach (Form form in this.MdiChildren) { if (form.Text == "MEO��ѯ������") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } MaterialManage.MaterialRequireQuery matadd = new MaterialManage.MaterialRequireQuery(); matadd.MdiParent = this; matadd.Text = "MEO��ѯ������"; matadd.Show(); } else if (treeView1.SelectedNode.Name == "MatRation") { foreach (Form form in this.MdiChildren) { if (form.Text == "�����·�ҳ��") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } MaterialManage.MaterialRation matadd = new MaterialManage.MaterialRation("0","1"); matadd.MdiParent = this; matadd.Text = "�����·�ҳ��"; matadd.Show(); } #endregion #region �ܼӹ�����ϸ�� else if (treeView1.SelectedNode.Name == "MaterialBlankingInfo") { foreach (Form form in this.MdiChildren) { if (form.Text == "������Ϣ") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } MachinningInfoFrm machineInfoFrm = new MachinningInfoFrm(); machineInfoFrm.Text = "������Ϣ"; machineInfoFrm.MdiParent = this; machineInfoFrm.Show(); } else if (treeView1.SelectedNode.Name == "MaterialAssembleInfo") { foreach (Form form in this.MdiChildren) { if (form.Text == "װ����Ϣ") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } MachinningInfoFrm machineInfoFrm = new MachinningInfoFrm(); machineInfoFrm.Text = "װ����Ϣ"; machineInfoFrm.MdiParent = this; machineInfoFrm.Show(); } else if (treeView1.SelectedNode.Name == "MaterialWeldInfo") { foreach (Form form in this.MdiChildren) { if (form.Text == "������Ϣ") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } MachinningInfoFrm machineInfoFrm = new MachinningInfoFrm(); machineInfoFrm.Text = "������Ϣ"; machineInfoFrm.MdiParent = this; machineInfoFrm.Show(); } else if (treeView1.SelectedNode.Name == "MaterialQCInfo") { foreach (Form form in this.MdiChildren) { if (form.Text == "������Ϣ") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } MachinningInfoFrm machineInfoFrm = new MachinningInfoFrm(); machineInfoFrm.Text = "������Ϣ"; machineInfoFrm.MdiParent = this; machineInfoFrm.Show(); } else if (treeView1.SelectedNode.Name == "MaterialTreatmentInfo") { foreach (Form form in this.MdiChildren) { if (form.Text == "������Ϣ") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } MachinningInfoFrm machineInfoFrm = new MachinningInfoFrm(); machineInfoFrm.Text = "������Ϣ"; machineInfoFrm.MdiParent = this; machineInfoFrm.Show(); } else if (treeView1.SelectedNode.Name == "MaterialRecieveInfo") { foreach (Form form in this.MdiChildren) { if (form.Text == "�ϳ�������Ϣ") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } MachinningInfoFrm machineInfoFrm = new MachinningInfoFrm(); machineInfoFrm.Text = "�ϳ�������Ϣ"; machineInfoFrm.MdiParent = this; machineInfoFrm.Show(); } else if (treeView1.SelectedNode.Name == "MaterialDeliveryInfo") { foreach (Form form in this.MdiChildren) { if (form.Text == "������Ϣ") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } MachinningInfoFrm machineInfoFrm = new MachinningInfoFrm(); machineInfoFrm.Text = "������Ϣ"; machineInfoFrm.MdiParent = this; machineInfoFrm.Show(); } else if (treeView1.SelectedNode.Name == "MaterialSetInfo") { foreach (Form form in this.MdiChildren) { if (form.Text == "��װ��Ϣ") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } MachinningInfoFrm machineInfoFrm = new MachinningInfoFrm(); machineInfoFrm.Text = "��װ��Ϣ"; machineInfoFrm.MdiParent = this; machineInfoFrm.Show(); } else if (treeView1.SelectedNode.Name == "MaterialTrayClass") { foreach (Form form in this.MdiChildren) { if (form.Text == "���̼�������Ϣ") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } MachinningInfoFrm machineInfoFrm = new MachinningInfoFrm(); machineInfoFrm.Text = "���̼�������Ϣ"; machineInfoFrm.MdiParent = this; machineInfoFrm.Show(); } else if (treeView1.SelectedNode.Name == "SpoolReportCollection") { foreach (Form form in this.MdiChildren) { if (form.Text == "��·�������") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } SpoolReportFrm spoolreportFrm = new SpoolReportFrm(); spoolreportFrm.Text = "��·�������"; spoolreportFrm.MdiParent = this; spoolreportFrm.Show(); } else if (treeView1.SelectedNode.Name == "MaterialReports") { foreach (Form form in this.MdiChildren) { if (form.Text == "���ϱ������") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } MaterialReportsFrm materialreportFrm = new MaterialReportsFrm(); materialreportFrm.Text = "���ϱ������"; materialreportFrm.MdiParent = this; materialreportFrm.Show(); } else if (treeView1.SelectedNode.Name == "MDrawingInfo") { foreach (Form form in this.MdiChildren) { if (form.Text == "��ɾ����Ϣ") { if (form.WindowState == FormWindowState.Minimized) { form.WindowState = FormWindowState.Normal; } form.Activate(); return; } } ModifyDelInfoFrm mdelfrm = new ModifyDelInfoFrm(); mdelfrm.Text = "��ɾ����Ϣ"; mdelfrm.MdiParent = this; mdelfrm.Show(); } #endregion }