提交 076b7d16 authored 作者: yangbinjay's avatar yangbinjay

批次管理里选择器件支持检索

上级 c0946aa7
...@@ -923,6 +923,7 @@ ...@@ -923,6 +923,7 @@
<Tips18>请先下电</Tips18> <Tips18>请先下电</Tips18>
<Tips19>请将校准后保存的文件,放置在安装文件夹!</Tips19> <Tips19>请将校准后保存的文件,放置在安装文件夹!</Tips19>
<Tips20>通道试验已完成,请先降温再下电:</Tips20> <Tips20>通道试验已完成,请先降温再下电:</Tips20>
<Tips21>通道正在运行中,如果要重新开始请先停止!</Tips21>
</RunSetting> </RunSetting>
<AutoTemper> <AutoTemper>
<Tips1>试验箱温度设置为#℃,是否继续</Tips1> <Tips1>试验箱温度设置为#℃,是否继续</Tips1>
......
...@@ -909,6 +909,7 @@ ...@@ -909,6 +909,7 @@
<Tips18>Please power off first</Tips18> <Tips18>Please power off first</Tips18>
<Tips19>Please place the files saved after calibration in the installation folder!</Tips19> <Tips19>Please place the files saved after calibration in the installation folder!</Tips19>
<Tips20>The channel test has been completed. Please cool down before turning off the power:</Tips20> <Tips20>The channel test has been completed. Please cool down before turning off the power:</Tips20>
<Tips21>The channel is currently running. If you want to restart, please stop first!</Tips21>
</RunSetting> </RunSetting>
<AutoTemper> <AutoTemper>
<Tips1>The temperature of the test chamber is set to #℃, whether to continue?</Tips1> <Tips1>The temperature of the test chamber is set to #℃, whether to continue?</Tips1>
......
...@@ -111,6 +111,7 @@ namespace GKHTRBC16P ...@@ -111,6 +111,7 @@ namespace GKHTRBC16P
this.Text = CalculationAo.ThisDevConfig.SoftName; this.Text = CalculationAo.ThisDevConfig.SoftName;
//SerialManager.CurrIntion(); //SerialManager.CurrIntion();
this.Size = new System.Drawing.Size(CalculationAo.ThisDevConfig.FWidth, CalculationAo.ThisDevConfig.FHeight); this.Size = new System.Drawing.Size(CalculationAo.ThisDevConfig.FWidth, CalculationAo.ThisDevConfig.FHeight);
//this.Size = Screen.PrimaryScreen.Bounds.Size;
this.StartPosition = FormStartPosition.WindowsDefaultLocation; this.StartPosition = FormStartPosition.WindowsDefaultLocation;
this.FormBorderStyle = FormBorderStyle.Fixed3D; this.FormBorderStyle = FormBorderStyle.Fixed3D;
//this.WindowState = FormWindowState.Maximized; //this.WindowState = FormWindowState.Maximized;
...@@ -389,7 +390,7 @@ namespace GKHTRBC16P ...@@ -389,7 +390,7 @@ namespace GKHTRBC16P
{ {
try try
{ {
PubMonirning.Instaion.DetectionDrive(); //PubMonirning.Instaion.DetectionDrive();
Thread.Sleep(1000); Thread.Sleep(1000);
} }
catch (Exception ex) catch (Exception ex)
......
...@@ -1535,7 +1535,7 @@ namespace GKHTRBC16P.FunMov ...@@ -1535,7 +1535,7 @@ namespace GKHTRBC16P.FunMov
// uiDataGridView1.Rows[e.RowIndex].Cells[5] = dataGridViewProgressBarCell; // uiDataGridView1.Rows[e.RowIndex].Cells[5] = dataGridViewProgressBarCell;
// uiDataGridView1.Rows[e.RowIndex].Cells[5].Value = ran.Next(1, 100); // uiDataGridView1.Rows[e.RowIndex].Cells[5].Value = ran.Next(1, 100);
// firstDatagrid++; // firstDatagrid++;
// } // }
// //if (e.ColumnIndex == 2) // //if (e.ColumnIndex == 2)
// //{ // //{
// // DataGridViewImageCell dataGridViewImageCell = new DataGridViewImageCell(); // // DataGridViewImageCell dataGridViewImageCell = new DataGridViewImageCell();
......
...@@ -298,6 +298,12 @@ ...@@ -298,6 +298,12 @@
<Compile Include="Helpm\BaseForm.Designer.cs"> <Compile Include="Helpm\BaseForm.Designer.cs">
<DependentUpon>BaseForm.cs</DependentUpon> <DependentUpon>BaseForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Helpm\FrmComTreeSelect.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Helpm\FrmComTreeSelect.Designer.cs">
<DependentUpon>FrmComTreeSelect.cs</DependentUpon>
</Compile>
<Compile Include="Helpm\Frm_BridgeData.cs"> <Compile Include="Helpm\Frm_BridgeData.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
...@@ -587,6 +593,9 @@ ...@@ -587,6 +593,9 @@
<EmbeddedResource Include="Helpm\DeviceCode.resx"> <EmbeddedResource Include="Helpm\DeviceCode.resx">
<DependentUpon>DeviceCode.cs</DependentUpon> <DependentUpon>DeviceCode.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Helpm\FrmComTreeSelect.resx">
<DependentUpon>FrmComTreeSelect.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Helpm\Frm_BridgeData.resx"> <EmbeddedResource Include="Helpm\Frm_BridgeData.resx">
<DependentUpon>Frm_BridgeData.cs</DependentUpon> <DependentUpon>Frm_BridgeData.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
......
namespace GKHTRBC16P.Helpm
{
partial class FrmComTreeSelect
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Com_Tree_DevId = new Sunny.UI.UITreeView();
this.uiTextBox1 = new Sunny.UI.UITextBox();
this.SuspendLayout();
//
// Com_Tree_DevId
//
this.Com_Tree_DevId.Dock = System.Windows.Forms.DockStyle.Bottom;
this.Com_Tree_DevId.FillColor = System.Drawing.Color.White;
this.Com_Tree_DevId.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.Com_Tree_DevId.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
this.Com_Tree_DevId.Location = new System.Drawing.Point(0, 28);
this.Com_Tree_DevId.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.Com_Tree_DevId.MinimumSize = new System.Drawing.Size(1, 1);
this.Com_Tree_DevId.Name = "Com_Tree_DevId";
this.Com_Tree_DevId.ShowText = false;
this.Com_Tree_DevId.Size = new System.Drawing.Size(272, 422);
this.Com_Tree_DevId.TabIndex = 0;
this.Com_Tree_DevId.Text = null;
this.Com_Tree_DevId.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
this.Com_Tree_DevId.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
this.Com_Tree_DevId.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Com_Tree_DevId_MouseDown);
this.Com_Tree_DevId.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.Com_Tree_DevId_NodeMouseClick);
this.Com_Tree_DevId.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.Com_Tree_DevId_NodeMouseDoubleClick);
//
// uiTextBox1
//
this.uiTextBox1.Cursor = System.Windows.Forms.Cursors.IBeam;
this.uiTextBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.uiTextBox1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.uiTextBox1.Location = new System.Drawing.Point(0, 0);
this.uiTextBox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.uiTextBox1.MinimumSize = new System.Drawing.Size(1, 16);
this.uiTextBox1.Name = "uiTextBox1";
this.uiTextBox1.ShowText = false;
this.uiTextBox1.Size = new System.Drawing.Size(272, 29);
this.uiTextBox1.TabIndex = 1;
this.uiTextBox1.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
this.uiTextBox1.Watermark = "";
this.uiTextBox1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
this.uiTextBox1.TextChanged += new System.EventHandler(this.uiTextBox1_TextChanged);
//
// FrmComTreeSelect
//
this.AllowShowTitle = false;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(272, 450);
this.Controls.Add(this.uiTextBox1);
this.Controls.Add(this.Com_Tree_DevId);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FrmComTreeSelect";
this.Padding = new System.Windows.Forms.Padding(0);
this.ShowTitle = false;
this.Text = "器件列表";
this.ZoomScaleRect = new System.Drawing.Rectangle(15, 15, 368, 450);
this.Load += new System.EventHandler(this.FrmComTreeSelect_Load);
this.ResumeLayout(false);
}
#endregion
private Sunny.UI.UITreeView Com_Tree_DevId;
private Sunny.UI.UITextBox uiTextBox1;
}
}
\ No newline at end of file
using GKHTRBC16P.Model;
using Sunny.UI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace GKHTRBC16P.Helpm
{
public partial class FrmComTreeSelect : UIForm
{
private List<Dev_Main> mainlist;
private List<Dev_Device> devicelist;
public TreeNode tree;
public FrmComTreeSelect(List<Dev_Device> devices,List<Dev_Main> mains, TreeNode uptree)
{
InitializeComponent();
//this.MaximizeBox = false;
//this.MinimizeBox = false;
//this.FormBoarderStyle = formb
Com_Tree_DevId.ShowText = true;
tree = null;
this.devicelist = devices;
this.mainlist = mains;
tree = uptree;
}
private void FrmComTreeSelect_Load(object sender, EventArgs e)
{
Com_Tree_DevId.Nodes.Clear();
foreach (var main in mainlist)
{
var treeNode = Com_Tree_DevId.Nodes.Add(main.Id.ToString(), main.DevName);
var devicelistwhere = devicelist.Where(x => x.MainId == main.Id).ToList();
foreach (var device in devicelistwhere)
{
treeNode.Nodes.Add((device.Id + 100000).ToString(), device.DevName);
}
treeNode.Expand();
}
Com_Tree_DevId.SelectedNode = null;
if(tree != null)
uiTextBox1.Text = tree.Text;
}
private void Com_Tree_DevId_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
{
//tree = e.Node;
//this.DialogResult = DialogResult.OK;
//this.Close();
}
private void Com_Tree_DevId_MouseClick(object sender, MouseEventArgs e)
{
}
private void Com_Tree_DevId_MouseDown(object sender, MouseEventArgs e)
{
//tree = Com_Tree_DevId.TreeView.SelectedNode;
//this.DialogResult = DialogResult.OK;
//this.Close();
}
private void Com_Tree_DevId_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
if (e.Node.Name.ToInt() < 100000)
return;
tree = null;
tree = e.Node;
this.DialogResult = DialogResult.OK;
//this.Close();
}
private void uiTextBox1_TextChanged(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(uiTextBox1.Text.Trim()))
{
foreach (TreeNode navn in Com_Tree_DevId.Nodes)
{
foreach (TreeNode navm in navn.Nodes)
{
if (navm.Text.Contains(uiTextBox1.Text.Trim()))
{
//navm.NodeFont = new Font(uiNavMenu1.Font, FontStyle.Bold);
navm.TreeView.SelectedNode = navm;
return;
}
else
{
navm.TreeView.SelectedNode = null;
}
}
}
}
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
...@@ -35,12 +35,7 @@ ...@@ -35,12 +35,7 @@
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
this.uiSplitContainer1 = new Sunny.UI.UISplitContainer(); this.uiSplitContainer1 = new Sunny.UI.UISplitContainer();
this.uiDataGridView1 = new Sunny.UI.UIDataGridView(); this.uiDataGridView1 = new Sunny.UI.UIDataGridView();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewImageColumn();
this.Column4 = new System.Windows.Forms.DataGridViewButtonColumn(); this.Column4 = new System.Windows.Forms.DataGridViewButtonColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.uiCom_PowerUnit = new Sunny.UI.UIComboBox(); this.uiCom_PowerUnit = new Sunny.UI.UIComboBox();
this.Com_OvenNo = new Sunny.UI.UITextBox(); this.Com_OvenNo = new Sunny.UI.UITextBox();
this.Com_PowerNo = new Sunny.UI.UITextBox(); this.Com_PowerNo = new Sunny.UI.UITextBox();
...@@ -66,11 +61,17 @@ ...@@ -66,11 +61,17 @@
this.uiLabel23 = new Sunny.UI.UILabel(); this.uiLabel23 = new Sunny.UI.UILabel();
this.uiLabel22 = new Sunny.UI.UILabel(); this.uiLabel22 = new Sunny.UI.UILabel();
this.uiLabel21 = new Sunny.UI.UILabel(); this.uiLabel21 = new Sunny.UI.UILabel();
this.Com_Tree_DevId = new Sunny.UI.UIComboTreeView(); this.Com_Tree_DevId = new Sunny.UI.UITextBox();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewImageColumn1 = new System.Windows.Forms.DataGridViewImageColumn();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column6 = new System.Windows.Forms.DataGridViewImageColumn();
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.uiSplitContainer1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.uiSplitContainer1)).BeginInit();
this.uiSplitContainer1.Panel1.SuspendLayout(); this.uiSplitContainer1.Panel1.SuspendLayout();
this.uiSplitContainer1.Panel2.SuspendLayout(); this.uiSplitContainer1.Panel2.SuspendLayout();
...@@ -94,6 +95,7 @@ ...@@ -94,6 +95,7 @@
// //
// uiSplitContainer1.Panel2 // uiSplitContainer1.Panel2
// //
this.uiSplitContainer1.Panel2.Controls.Add(this.Com_Tree_DevId);
this.uiSplitContainer1.Panel2.Controls.Add(this.uiCom_PowerUnit); this.uiSplitContainer1.Panel2.Controls.Add(this.uiCom_PowerUnit);
this.uiSplitContainer1.Panel2.Controls.Add(this.Com_OvenNo); this.uiSplitContainer1.Panel2.Controls.Add(this.Com_OvenNo);
this.uiSplitContainer1.Panel2.Controls.Add(this.Com_PowerNo); this.uiSplitContainer1.Panel2.Controls.Add(this.Com_PowerNo);
...@@ -114,7 +116,6 @@ ...@@ -114,7 +116,6 @@
this.uiSplitContainer1.Panel2.Controls.Add(this.uiLabel23); this.uiSplitContainer1.Panel2.Controls.Add(this.uiLabel23);
this.uiSplitContainer1.Panel2.Controls.Add(this.uiLabel22); this.uiSplitContainer1.Panel2.Controls.Add(this.uiLabel22);
this.uiSplitContainer1.Panel2.Controls.Add(this.uiLabel21); this.uiSplitContainer1.Panel2.Controls.Add(this.uiLabel21);
this.uiSplitContainer1.Panel2.Controls.Add(this.Com_Tree_DevId);
this.uiSplitContainer1.Size = new System.Drawing.Size(1021, 643); this.uiSplitContainer1.Size = new System.Drawing.Size(1021, 643);
this.uiSplitContainer1.SplitterDistance = 396; this.uiSplitContainer1.SplitterDistance = 396;
this.uiSplitContainer1.SplitterWidth = 11; this.uiSplitContainer1.SplitterWidth = 11;
...@@ -181,45 +182,6 @@ ...@@ -181,45 +182,6 @@
this.uiDataGridView1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0); this.uiDataGridView1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
this.uiDataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.uiDataGridView1_CellContentClick); this.uiDataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.uiDataGridView1_CellContentClick);
// //
// Column1
//
this.Column1.DataPropertyName = "Ids";
this.Column1.FillWeight = 23F;
this.Column1.HeaderText = "板号";
this.Column1.MinimumWidth = 6;
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
this.Column1.Width = 50;
//
// Column2
//
this.Column2.DataPropertyName = "BatchFileName";
this.Column2.FillWeight = 90F;
this.Column2.HeaderText = "批次信息";
this.Column2.MinimumWidth = 20;
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
this.Column2.Width = 150;
//
// Column3
//
this.Column3.DataPropertyName = "DevName";
this.Column3.FillWeight = 60F;
this.Column3.HeaderText = "器件名称";
this.Column3.MinimumWidth = 22;
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.Width = 80;
//
// Column6
//
this.Column6.HeaderText = "插板";
this.Column6.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom;
this.Column6.Name = "Column6";
this.Column6.ReadOnly = true;
this.Column6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.Column6.Width = 50;
//
// Column4 // Column4
// //
this.Column4.DataPropertyName = "Fundo"; this.Column4.DataPropertyName = "Fundo";
...@@ -230,16 +192,6 @@ ...@@ -230,16 +192,6 @@
this.Column4.ReadOnly = true; this.Column4.ReadOnly = true;
this.Column4.Width = 50; this.Column4.Width = 50;
// //
// Column5
//
this.Column5.DataPropertyName = "Id";
this.Column5.HeaderText = "Id";
this.Column5.MinimumWidth = 6;
this.Column5.Name = "Column5";
this.Column5.ReadOnly = true;
this.Column5.Visible = false;
this.Column5.Width = 125;
//
// uiCom_PowerUnit // uiCom_PowerUnit
// //
this.uiCom_PowerUnit.DataSource = null; this.uiCom_PowerUnit.DataSource = null;
...@@ -608,21 +560,27 @@ ...@@ -608,21 +560,27 @@
// //
// Com_Tree_DevId // Com_Tree_DevId
// //
this.Com_Tree_DevId.DropDownStyle = Sunny.UI.UIDropDownStyle.DropDownList; this.Com_Tree_DevId.ButtonFillColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
this.Com_Tree_DevId.FillColor = System.Drawing.Color.White; this.Com_Tree_DevId.ButtonForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(179)))), ((int)(((byte)(255)))));
this.Com_Tree_DevId.ButtonRectColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
this.Com_Tree_DevId.ButtonSymbol = 61702;
this.Com_Tree_DevId.Cursor = System.Windows.Forms.Cursors.IBeam;
this.Com_Tree_DevId.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.Com_Tree_DevId.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.Com_Tree_DevId.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.Com_Tree_DevId.Location = new System.Drawing.Point(175, 23); this.Com_Tree_DevId.Location = new System.Drawing.Point(175, 23);
this.Com_Tree_DevId.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.Com_Tree_DevId.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.Com_Tree_DevId.MinimumSize = new System.Drawing.Size(63, 0); this.Com_Tree_DevId.MinimumSize = new System.Drawing.Size(1, 16);
this.Com_Tree_DevId.Name = "Com_Tree_DevId"; this.Com_Tree_DevId.Name = "Com_Tree_DevId";
this.Com_Tree_DevId.Padding = new System.Windows.Forms.Padding(0, 0, 30, 2); this.Com_Tree_DevId.ReadOnly = true;
this.Com_Tree_DevId.ShowButton = true;
this.Com_Tree_DevId.ShowText = false;
this.Com_Tree_DevId.Size = new System.Drawing.Size(240, 29); this.Com_Tree_DevId.Size = new System.Drawing.Size(240, 29);
this.Com_Tree_DevId.TabIndex = 0; this.Com_Tree_DevId.Style = Sunny.UI.UIStyle.Custom;
this.Com_Tree_DevId.TabIndex = 1;
this.Com_Tree_DevId.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft; this.Com_Tree_DevId.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
this.Com_Tree_DevId.Watermark = ""; this.Com_Tree_DevId.Watermark = "";
this.Com_Tree_DevId.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0); this.Com_Tree_DevId.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
this.Com_Tree_DevId.NodeSelected += new Sunny.UI.UIComboTreeView.OnNodeSelected(this.Com_Tree_DevId_NodeSelected); this.Com_Tree_DevId.ButtonClick += new System.EventHandler(this.uiTextBox1_ButtonClick);
this.Com_Tree_DevId.TextChanged += new System.EventHandler(this.uiTextBox1_TextChanged);
// //
// dataGridViewTextBoxColumn1 // dataGridViewTextBoxColumn1
// //
...@@ -654,6 +612,14 @@ ...@@ -654,6 +612,14 @@
this.dataGridViewTextBoxColumn3.ReadOnly = true; this.dataGridViewTextBoxColumn3.ReadOnly = true;
this.dataGridViewTextBoxColumn3.Width = 120; this.dataGridViewTextBoxColumn3.Width = 120;
// //
// dataGridViewImageColumn1
//
this.dataGridViewImageColumn1.HeaderText = "插板";
this.dataGridViewImageColumn1.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom;
this.dataGridViewImageColumn1.Name = "dataGridViewImageColumn1";
this.dataGridViewImageColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.dataGridViewImageColumn1.Width = 50;
//
// dataGridViewTextBoxColumn4 // dataGridViewTextBoxColumn4
// //
this.dataGridViewTextBoxColumn4.DataPropertyName = "Id"; this.dataGridViewTextBoxColumn4.DataPropertyName = "Id";
...@@ -664,6 +630,55 @@ ...@@ -664,6 +630,55 @@
this.dataGridViewTextBoxColumn4.Visible = false; this.dataGridViewTextBoxColumn4.Visible = false;
this.dataGridViewTextBoxColumn4.Width = 125; this.dataGridViewTextBoxColumn4.Width = 125;
// //
// Column1
//
this.Column1.DataPropertyName = "Ids";
this.Column1.FillWeight = 23F;
this.Column1.HeaderText = "板号";
this.Column1.MinimumWidth = 6;
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
this.Column1.Width = 50;
//
// Column2
//
this.Column2.DataPropertyName = "BatchFileName";
this.Column2.FillWeight = 90F;
this.Column2.HeaderText = "批次信息";
this.Column2.MinimumWidth = 20;
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
this.Column2.Width = 150;
//
// Column3
//
this.Column3.DataPropertyName = "DevName";
this.Column3.FillWeight = 60F;
this.Column3.HeaderText = "器件名称";
this.Column3.MinimumWidth = 22;
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.Width = 80;
//
// Column6
//
this.Column6.HeaderText = "插板";
this.Column6.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom;
this.Column6.Name = "Column6";
this.Column6.ReadOnly = true;
this.Column6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.Column6.Width = 50;
//
// Column5
//
this.Column5.DataPropertyName = "Id";
this.Column5.HeaderText = "Id";
this.Column5.MinimumWidth = 6;
this.Column5.Name = "Column5";
this.Column5.ReadOnly = true;
this.Column5.Visible = false;
this.Column5.Width = 125;
//
// BatchManagement // BatchManagement
// //
this.AllowShowTitle = true; this.AllowShowTitle = true;
...@@ -713,7 +728,6 @@ ...@@ -713,7 +728,6 @@
private Sunny.UI.UILabel uiLabel23; private Sunny.UI.UILabel uiLabel23;
private Sunny.UI.UILabel uiLabel22; private Sunny.UI.UILabel uiLabel22;
private Sunny.UI.UILabel uiLabel21; private Sunny.UI.UILabel uiLabel21;
private Sunny.UI.UIComboTreeView Com_Tree_DevId;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
...@@ -728,5 +742,7 @@ ...@@ -728,5 +742,7 @@
private System.Windows.Forms.DataGridViewImageColumn Column6; private System.Windows.Forms.DataGridViewImageColumn Column6;
private System.Windows.Forms.DataGridViewButtonColumn Column4; private System.Windows.Forms.DataGridViewButtonColumn Column4;
private System.Windows.Forms.DataGridViewTextBoxColumn Column5; private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
private Sunny.UI.UITextBox Com_Tree_DevId;
private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn1;
} }
} }
\ No newline at end of file
...@@ -19,6 +19,9 @@ using Newtonsoft.Json; ...@@ -19,6 +19,9 @@ using Newtonsoft.Json;
using GKHTRBC16P.FunMov; using GKHTRBC16P.FunMov;
using GKHTRBC16P.Properties; using GKHTRBC16P.Properties;
using System.Threading; using System.Threading;
using GKHTRBC16P.Helpm;
using System.Web.UI.WebControls;
using System.Diagnostics;
namespace GKHTRBC16P.ToolLibrary namespace GKHTRBC16P.ToolLibrary
{ {
...@@ -36,6 +39,8 @@ namespace GKHTRBC16P.ToolLibrary ...@@ -36,6 +39,8 @@ namespace GKHTRBC16P.ToolLibrary
private DevCorrespondenceBll correspondenceBll = new DevCorrespondenceBll(); private DevCorrespondenceBll correspondenceBll = new DevCorrespondenceBll();
private ParamterTimeBll paramterTimeBll = new ParamterTimeBll(); private ParamterTimeBll paramterTimeBll = new ParamterTimeBll();
private CancellationTokenSource ctsoure; private CancellationTokenSource ctsoure;
private FrmComTreeSelect frmComTreeSelect;
public System.Windows.Forms.TreeNode treenode;
private int p_iRow = -1; //目前选中的通道 private int p_iRow = -1; //目前选中的通道
public BatchManagement() public BatchManagement()
...@@ -47,7 +52,7 @@ namespace GKHTRBC16P.ToolLibrary ...@@ -47,7 +52,7 @@ namespace GKHTRBC16P.ToolLibrary
{ {
uPublic.WriteLog("进入:" + this.Text); uPublic.WriteLog("进入:" + this.Text);
Test_Parm_Initialize(true); Test_Parm_Initialize(true);
Com_Tree_DevId.ShowText = true; //Com_Tree_DevId.ShowText = true;
MultiLanguage.LoadLanguage(this, CalculationAo.ThisDevConfig.Language); MultiLanguage.LoadLanguage(this, CalculationAo.ThisDevConfig.Language);
} }
public override void Final() public override void Final()
...@@ -97,28 +102,14 @@ namespace GKHTRBC16P.ToolLibrary ...@@ -97,28 +102,14 @@ namespace GKHTRBC16P.ToolLibrary
} }
uiDataGridView1.DataSource = parametersList; uiDataGridView1.DataSource = parametersList;
uiDataGridView1.Rows[0].Cells[0].Selected = true; uiDataGridView1.Rows[0].Cells[0].Selected = true;
//Com_Tree_DevId.Nodes.Clear(); Com_Tree_DevId.Text = "";
treenode = null;
mainBll = new MainBll(); mainBll = new MainBll();
deviceBll = new DeviceBll(); deviceBll = new DeviceBll();
devConfigBll = new DevConfigBll(); devConfigBll = new DevConfigBll();
mainlist = mainBll.GetList(); mainlist = mainBll.GetList();
devicelist = deviceBll.GetList(); devicelist = deviceBll.GetList();
if (Com_Tree_DevIdBool) treenode = null;
{
Com_Tree_DevId.Nodes.Clear();
foreach (var main in mainlist)
{
var treeNode = Com_Tree_DevId.Nodes.Add(main.Id.ToString(), main.DevName);
var devicelistwhere = devicelist.Where(x => x.MainId == main.Id).ToList();
foreach (var device in devicelistwhere)
{
treeNode.Nodes.Add((device.Id + 100000).ToString(), device.DevName);
}
treeNode.Expand();
}
Com_Tree_DevId.SelectedNode = null;
}
Resfulad(); Resfulad();
//Com_Tree_DevId.Nodes[0].ExpandAll(); //Com_Tree_DevId.Nodes[0].ExpandAll();
} }
...@@ -164,7 +155,7 @@ namespace GKHTRBC16P.ToolLibrary ...@@ -164,7 +155,7 @@ namespace GKHTRBC16P.ToolLibrary
this.uiDataGridView1.CurrentCell.Value.ToString() == "Del") this.uiDataGridView1.CurrentCell.Value.ToString() == "Del")
{ {
string titinfo = uPublic.Prompt("Tips2", "BatchManagement"); string titinfo = uPublic.Prompt("Tips2", "BatchManagement");
//Com_Tree_DevId_NodeSelected(sender, treenode);
if (UIMessageDialog.ShowMessageDialog(titinfo, UILocalize.AskTitle, showCancelButton: true, this.Style, false, base.TopMost)) if (UIMessageDialog.ShowMessageDialog(titinfo, UILocalize.AskTitle, showCancelButton: true, this.Style, false, base.TopMost))
{ {
if (thiscum.Ishtrb == 0) if (thiscum.Ishtrb == 0)
...@@ -217,10 +208,10 @@ namespace GKHTRBC16P.ToolLibrary ...@@ -217,10 +208,10 @@ namespace GKHTRBC16P.ToolLibrary
Com_OvenNo.Text = thiscum.OvenNo; Com_OvenNo.Text = thiscum.OvenNo;
//Radio_Ishtrb.Checked = thiscum.Ishtrb.ToBool(); //Radio_Ishtrb.Checked = thiscum.Ishtrb.ToBool();
uiCom_PowerUnit.Text = thiscum.PowerUnit; uiCom_PowerUnit.Text = thiscum.PowerUnit;
TreeNode treeNode = new TreeNode(); treenode = new System.Windows.Forms.TreeNode();
treeNode.Name = (thiscum.DeviceId + 100000).ToString(); treenode.Name = (thiscum.DeviceId + 100000).ToString();
treeNode.Text = thiscum.DevName; treenode.Text = thiscum.DevName;
Com_Tree_DevId_NodeSelected(sender, treeNode); Com_Tree_DevId_NodeSelected(sender, treenode);
//Com_Tree_DevId.TreeView.SelectedNode = new TreeNode(thiscum.DevName); //Com_Tree_DevId.TreeView.SelectedNode = new TreeNode(thiscum.DevName);
//Com_Tree_DevId.TreeView.SelectedNode.Name = (thiscum.DeviceId + 100000).ToString(); //Com_Tree_DevId.TreeView.SelectedNode.Name = (thiscum.DeviceId + 100000).ToString();
//Com_Tree_DevId.TreeView.SelectedNode.Text = Com_Tree_DevId.Text = thiscum.DevName; //Com_Tree_DevId.TreeView.SelectedNode.Text = Com_Tree_DevId.Text = thiscum.DevName;
...@@ -268,37 +259,38 @@ namespace GKHTRBC16P.ToolLibrary ...@@ -268,37 +259,38 @@ namespace GKHTRBC16P.ToolLibrary
} }
} }
private void Com_Tree_DevId_NodeSelected(object sender, TreeNode node) private void Com_Tree_DevId_NodeSelected(object sender, System.Windows.Forms.TreeNode node)
{ {
int SDevId = Convert.ToInt32(node.Name); int SDevId = Convert.ToInt32(node.Name);
//Com_Tree_DevId.Text = node.Text; Com_Tree_DevId.Text = treenode.Text;
//Com_Tree_DevId.Name = node.Name; ////Com_Tree_DevId.Text = node.Text;
foreach (TreeNode item in Com_Tree_DevId.Nodes) ////Com_Tree_DevId.Name = node.Name;
//foreach (TreeNode item in Com_Tree_DevId.Nodes)
//{
// foreach (TreeNode m in item.Nodes)
// {
// if (node.Name == m.Name)
// {
// m.Checked = true;
// Com_Tree_DevId.SelectedNode = m;
// }
// }
//}
if (SDevId > 100000)
{ {
foreach (TreeNode m in item.Nodes)
var model = devicelist.Where(x => x.Id == SDevId - 100000).FirstOrDefault();
if (model != null)
{ {
if (node.Name == m.Name) Txt_TestTime.Text = model.AgingTime.ToString();
{ var mparid = Convert.ToInt32(this.uiDataGridView1.CurrentRow.Cells[0].Value.ToString());
m.Checked = true; //txt_BatchFileName.Text = "D" + DateTime.Now.ToString("yyyyMMddHHmmss") + "_" + mparid;
Com_Tree_DevId.SelectedNode = m; //if (CalculationAo.ThisDevConfig.Isbridge == 0)
} // Txt_BatchName.Text = "batch" + DateTime.Now.ToString("yyyyMMddHHmmss") + "_" + mparid;
//else
// Txt_BatchName.Text = "bridg" + DateTime.Now.ToString("yyyyMMddHHmmss") + "_" + mparid;
} }
}
if (SDevId > 100000)
{
var model = devicelist.Where(x => x.Id == SDevId - 100000).FirstOrDefault();
if (model != null)
{
Txt_TestTime.Text = model.AgingTime.ToString();
var mparid = Convert.ToInt32(this.uiDataGridView1.CurrentRow.Cells[0].Value.ToString());
//txt_BatchFileName.Text = "D" + DateTime.Now.ToString("yyyyMMddHHmmss") + "_" + mparid;
//if (CalculationAo.ThisDevConfig.Isbridge == 0)
// Txt_BatchName.Text = "batch" + DateTime.Now.ToString("yyyyMMddHHmmss") + "_" + mparid;
//else
// Txt_BatchName.Text = "bridg" + DateTime.Now.ToString("yyyyMMddHHmmss") + "_" + mparid;
}
} }
else else
{ {
...@@ -332,12 +324,12 @@ namespace GKHTRBC16P.ToolLibrary ...@@ -332,12 +324,12 @@ namespace GKHTRBC16P.ToolLibrary
ShowErrorTip(uPublic.Prompt("Tips4", "BatchManagement"), 1000); ShowErrorTip(uPublic.Prompt("Tips4", "BatchManagement"), 1000);
return; return;
} }
if (Com_Tree_DevId.SelectedNode == null) if (treenode.Text == null)
{ {
ShowErrorTip(uPublic.Prompt("Tips6", "BatchManagement"), 1000); ShowErrorTip(uPublic.Prompt("Tips6", "BatchManagement"), 1000);
return; return;
} }
var com_index = Convert.ToInt32(Com_Tree_DevId.SelectedNode.Name) - 100000; var com_index = Convert.ToInt32(treenode.Name) - 100000;
if (com_index <= 0) if (com_index <= 0)
{ {
ShowErrorTip(uPublic.Prompt("Tips6", "BatchManagement"), 1000); ShowErrorTip(uPublic.Prompt("Tips6", "BatchManagement"), 1000);
...@@ -438,8 +430,8 @@ namespace GKHTRBC16P.ToolLibrary ...@@ -438,8 +430,8 @@ namespace GKHTRBC16P.ToolLibrary
{ {
newHead[j] = strheader[j]; newHead[j] = strheader[j];
} }
string dir = CalculationAo.ThisDevConfig.AutoSavePath + thiscum.BatchFileName + ".csv";//".xlsx"; string dir = CalculationAo.ThisDevConfig.AutoSavePath + thiscum.BatchFileName + ".csv";//".xlsx";//Com_Tree_DevId.SelectedNode.Text
CsvFileUtility.Docmentnotes(dir, thiscum.LotInfo, thiscum.BoardInfo, uiCom_PowerUnit.Text, thiscum.BatchFileName, Com_Tree_DevId.SelectedNode.Text, thiscum.Id, model.EleUpper, model.BackVol, newHead.Length, newHead); CsvFileUtility.Docmentnotes(dir, thiscum.LotInfo, thiscum.BoardInfo, uiCom_PowerUnit.Text, thiscum.BatchFileName, Com_Tree_DevId.Text, thiscum.Id, model.EleUpper, model.BackVol, newHead.Length, newHead);
} }
else else
{ {
...@@ -453,7 +445,7 @@ namespace GKHTRBC16P.ToolLibrary ...@@ -453,7 +445,7 @@ namespace GKHTRBC16P.ToolLibrary
newHead[j] = strheader[j]; newHead[j] = strheader[j];
} }
string dir = CalculationAo.ThisDevConfig.AutoSavePath + thiscum.BatchFileName + ".csv";//".xlsx"; string dir = CalculationAo.ThisDevConfig.AutoSavePath + thiscum.BatchFileName + ".csv";//".xlsx";
CsvFileUtility.Docmentnotes(dir, thiscum.LotInfo, thiscum.BoardInfo, uiCom_PowerUnit.Text, thiscum.BatchFileName, Com_Tree_DevId.SelectedNode.Text, thiscum.Id, model.EleUpper, model.BackVol, newHead.Length, newHead); CsvFileUtility.Docmentnotes(dir, thiscum.LotInfo, thiscum.BoardInfo, uiCom_PowerUnit.Text, thiscum.BatchFileName, Com_Tree_DevId.Text, thiscum.Id, model.EleUpper, model.BackVol, newHead.Length, newHead);
} }
result = testParmBll.Add(thiscum); result = testParmBll.Add(thiscum);
SetAlarmStation(thiscum); SetAlarmStation(thiscum);
...@@ -557,5 +549,46 @@ namespace GKHTRBC16P.ToolLibrary ...@@ -557,5 +549,46 @@ namespace GKHTRBC16P.ToolLibrary
CalculationAo.HTRBOT[ChangeID, 12] = 0; CalculationAo.HTRBOT[ChangeID, 12] = 0;
} }
} }
private void uiTextBox1_TextChanged(object sender, EventArgs e)
{
}
private void uiTextBox1_ButtonClick(object sender, EventArgs e)
{
try
{
var mparid = Convert.ToInt32(this.uiDataGridView1.CurrentRow.Cells[0].Value.ToString());
var thiscum = test_ParametersList.Where(x => x.Id == mparid).FirstOrDefault();
if (thiscum == null)
{
frmComTreeSelect = new FrmComTreeSelect(devicelist, mainlist, treenode);
frmComTreeSelect.ShowInTaskbar = false;
frmComTreeSelect.Owner = this;
frmComTreeSelect.StartPosition = FormStartPosition.Manual;
frmComTreeSelect.Width = Com_Tree_DevId.Width;
Point relativePoint = new Point(Com_Tree_DevId.Location.X + Com_Tree_DevId.Width+165, Com_Tree_DevId.Location.Y+36);
Point screenPoint = this.PointToScreen(relativePoint);
frmComTreeSelect.Location = screenPoint;
//frmComTreeSelect.Location = new Point(Com_Tree_DevId.Location.X + Com_Tree_DevId.Width, Com_Tree_DevId.Location.Y);
//Com_Tree_DevId.PointToClient(frmComTreeSelect.StartPosition)
frmComTreeSelect.Render();
frmComTreeSelect.ShowDialog();
if (frmComTreeSelect.DialogResult == DialogResult.OK)
{
treenode = frmComTreeSelect.tree;
Com_Tree_DevId.Text = treenode.Text;
//UIMessageTip.ShowOk("ok!");
}
frmComTreeSelect.Dispose();
}
}
catch (Exception ex)
{
LogisTrac.WriteLog(this.GetType(), ex);
ShowErrorTip(ex.Message);
}
}
} }
} }
e32dd1bb0ae9e71baddffb2d78d2f4bd54d2cda07cdff49dc508045fcc0e814c 643ac0afc784de3c5fddf0cf7af9563f87d358bfbd2f016c40aa4c7c3883cc7e
...@@ -372,3 +372,4 @@ E:\CustomerRbGb\GK-HTRB-C16P-gaokun\GK-HTRB-GB\GKHTRBC16P\obj\Debug\GKHTRBC16P.c ...@@ -372,3 +372,4 @@ E:\CustomerRbGb\GK-HTRB-C16P-gaokun\GK-HTRB-GB\GKHTRBC16P\obj\Debug\GKHTRBC16P.c
E:\CustomerRbGb\GK-HTRB-C16P-gaokun\GK-HTRB-GB\GKHTRBC16P\obj\Debug\GKHTRBC16P.exe E:\CustomerRbGb\GK-HTRB-C16P-gaokun\GK-HTRB-GB\GKHTRBC16P\obj\Debug\GKHTRBC16P.exe
E:\CustomerRbGb\GK-HTRB-C16P-gaokun\GK-HTRB-GB\GKHTRBC16P\obj\Debug\GKHTRBC16P.pdb E:\CustomerRbGb\GK-HTRB-C16P-gaokun\GK-HTRB-GB\GKHTRBC16P\obj\Debug\GKHTRBC16P.pdb
E:\CustomerRbGb\GK-HTRB-C16P-gaokun\GK-HTRB-GB\GKHTRBC16P\obj\Debug\GKHTRBC16P.Jurisdiction.FrmSysData.resources E:\CustomerRbGb\GK-HTRB-C16P-gaokun\GK-HTRB-GB\GKHTRBC16P\obj\Debug\GKHTRBC16P.Jurisdiction.FrmSysData.resources
E:\CustomerRbGb\GK-HTRB-C16P-gaokun\GK-HTRB-GB\GKHTRBC16P\obj\Debug\GKHTRBC16P.Helpm.FrmComTreeSelect.resources
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论