SVN-Revision: r279
This commit is contained in:
tdx
2025-02-21 06:52:01 +00:00
parent ba85d23227
commit b46e9f1c0d
8 changed files with 27 additions and 513 deletions
@@ -1,59 +0,0 @@
namespace Lskj.Control
{
partial class AutoGridLookUp
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.fProperties = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit();
this.autoGridPopup1 = new Lskj.Control.AutoGridPopup();
((System.ComponentModel.ISupportInitialize)(this.fProperties)).BeginInit();
this.SuspendLayout();
//
// fProperties
//
this.fProperties.AutoHeight = false;
this.fProperties.Name = "fProperties";
//
// autoGridPopup1
//
this.autoGridPopup1.AddVisible = false;
this.autoGridPopup1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.autoGridPopup1.Location = new System.Drawing.Point(0, 0);
this.autoGridPopup1.Name = "autoGridPopup1";
this.autoGridPopup1.Size = new System.Drawing.Size(260, 198);
this.autoGridPopup1.TabIndex = 0;
((System.ComponentModel.ISupportInitialize)(this.fProperties)).EndInit();
this.ResumeLayout(false);
}
#endregion
private DevExpress.XtraEditors.Repository.RepositoryItemTextEdit fProperties;
private AutoGridPopup autoGridPopup1;
}
}
@@ -1,28 +1,24 @@
using System; using DevExpress.Utils.Menu;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using DevExpress.XtraEditors; using DevExpress.XtraEditors;
using System.Drawing;
using DevExpress.XtraGrid.Views.Grid;
using System.Windows.Forms;
using System.Data;
using DevExpress.XtraGrid.Columns; using DevExpress.XtraGrid.Columns;
using DevExpress.XtraGrid.Menu;
using DevExpress.XtraGrid.Views.Grid;
using Lskj.Business;
using Lskj.Business.Impl; using Lskj.Business.Impl;
using Lskj.Control.Model; using Lskj.Control.Model;
using System.Threading;
using Lskj.Util;
using System.Text.RegularExpressions;
using Lskj.Data;
using DevExpress.XtraGrid.Menu;
using DevExpress.Utils.Menu;
using System.Data.SqlClient;
using Lskj.Business;
using Lskj.Model;
using Lskj.Core; using Lskj.Core;
using System.Threading.Tasks; using Lskj.Data;
using Lskj.Model;
using Lskj.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading;
using System.Windows.Forms;
namespace Lskj.Control namespace Lskj.Control
{ {
@@ -284,8 +280,7 @@ namespace Lskj.Control
/// <summary> /// <summary>
/// 是否是主页模块搜索框 /// 是否是主页模块搜索框
/// </summary> /// </summary>
public bool IsHomepage=false; public bool IsHomepage = false;
/// <summary> /// <summary>
/// <para>说明:隐藏弹出框</para> /// <para>说明:隐藏弹出框</para>
@@ -338,10 +333,9 @@ namespace Lskj.Control
public AutoGridLookUp() public AutoGridLookUp()
{ {
InitializeComponent();
InitializePopup(); InitializePopup();
InitializeEvent(); InitializeEvent();
//this.Properties.Buttons[0].Kind = DevExpress.XtraEditors.Controls.ButtonPredefines.Down; this.Disposed += OnDisposed;
} }
/// <summary> /// <summary>
@@ -356,7 +350,6 @@ namespace Lskj.Control
private void InitializeEvent() private void InitializeEvent()
{ {
//this.Disposed += new EventHandler(OnAutoGridLookUp_Disposed);
this.GotFocus += new EventHandler(OnAutoGridLookUpGotFocus); this.GotFocus += new EventHandler(OnAutoGridLookUpGotFocus);
this.LostFocus += new EventHandler(OnAutoGridLookUpLostFocus); this.LostFocus += new EventHandler(OnAutoGridLookUpLostFocus);
this.KeyUp += new KeyEventHandler(OnAutoGridLookUpKeyUp); this.KeyUp += new KeyEventHandler(OnAutoGridLookUpKeyUp);
@@ -369,10 +362,7 @@ namespace Lskj.Control
this._popup.GridControlObj.LostFocus += new EventHandler(OnAutoGridLookUpLostFocus); this._popup.GridControlObj.LostFocus += new EventHandler(OnAutoGridLookUpLostFocus);
this._popup.OnGridViewMouseClick += new EventHandler(OnPopupGridViewMouseClick); this._popup.OnGridViewMouseClick += new EventHandler(OnPopupGridViewMouseClick);
this._popup.OnGridViewEnter += new KeyEventHandler(OnPopupGridViewEnter); this._popup.OnGridViewEnter += new KeyEventHandler(OnPopupGridViewEnter);
} }
/// <summary> /// <summary>
/// <para>说明:初始化弹出框</para> /// <para>说明:初始化弹出框</para>
/// <para>创建人:龚宇超</para> /// <para>创建人:龚宇超</para>
@@ -1001,7 +991,8 @@ namespace Lskj.Control
foreach (DataColumn dcol in table.Columns) foreach (DataColumn dcol in table.Columns)
{ {
if ((dcol.ColumnName.Substring(0, 1) != "_") && (dcol.ColumnName.ToLower() != ValueField.ToLower()) && (dcol.ColumnName.ToLower() != TextMember.ToLower()) && (dcol.ColumnName.ToLower() != RemarkField.ToLower()) && ((int)dcol.ColumnName[0] > 127)) string lowerColumnName = dcol.ColumnName.ToLower();
if ((lowerColumnName.Substring(0, 1) != "_") && !lowerColumnName.Equals(ValueField, StringComparison.OrdinalIgnoreCase) && !lowerColumnName.Equals(TextMember, StringComparison.OrdinalIgnoreCase) && !lowerColumnName.Equals(RemarkField, StringComparison.OrdinalIgnoreCase) && ((int)dcol.ColumnName[0] > 127))
{ {
GridColumn otherColumn = new GridColumn(); GridColumn otherColumn = new GridColumn();
otherColumn.Name = otherColumn.FieldName = otherColumn.Caption = dcol.ColumnName; otherColumn.Name = otherColumn.FieldName = otherColumn.Caption = dcol.ColumnName;
@@ -1033,7 +1024,7 @@ namespace Lskj.Control
try try
{ {
AutoGridPopup popupObj = obj as AutoGridPopup; AutoGridPopup popupObj = obj as AutoGridPopup;
string[] columnsWidth = Model != null&&Model.LookUpFieldsWidth!=null ? Model.LookUpFieldsWidth.Trim().TrimEnd(',').Split(',') : null; string[] columnsWidth = Model != null && Model.LookUpFieldsWidth != null ? Model.LookUpFieldsWidth.Trim().TrimEnd(',').Split(',') : null;
if (Model != null && !string.IsNullOrWhiteSpace(Model.LookUpFieldsWidth) && columnsWidth.Length > 0) if (Model != null && !string.IsNullOrWhiteSpace(Model.LookUpFieldsWidth) && columnsWidth.Length > 0)
{ {
if (this.InvokeRequired) if (this.InvokeRequired)
@@ -1367,19 +1358,15 @@ namespace Lskj.Control
BoolValue = true; BoolValue = true;
break; break;
} }
} }
return BoolValue; return BoolValue;
} }
catch (Exception ex) catch (Exception ex)
{ {
return false; return false;
} }
} }
/// <summary> /// <summary>
/// 值改变时刷新 /// 值改变时刷新
/// </summary> /// </summary>
@@ -1406,7 +1393,6 @@ namespace Lskj.Control
// EditValue = this.Text; // EditValue = this.Text;
//} //}
this.PopShowFlag = true; this.PopShowFlag = true;
} }
private void HandPopupSqlValueNew(object searchText) private void HandPopupSqlValueNew(object searchText)
@@ -1509,10 +1495,8 @@ namespace Lskj.Control
} }
} }
} }
sqlValue = ControlObj.ReplaceControlValue(sourceSql.Replace("#", "")); sqlValue = ControlObj.ReplaceControlValue(sourceSql.Replace("#", ""));
} }
if (!this._working) if (!this._working)
{ {
Thread thread = new Thread(new ParameterizedThreadStart(RefreshPopupDataSourceNew)); Thread thread = new Thread(new ParameterizedThreadStart(RefreshPopupDataSourceNew));
@@ -1555,14 +1539,12 @@ namespace Lskj.Control
} }
} }
DateTime endTime = DateTime.Now; DateTime endTime = DateTime.Now;
if (this._queryQueue.Count > 0) if (this._queryQueue.Count > 0)
{ {
// 在检索过程中还存在输入数据,则拿最后一次数据在进行匹配一次 // 在检索过程中还存在输入数据,则拿最后一次数据在进行匹配一次
Thread thread = new Thread(new ParameterizedThreadStart(RefreshPopupDataSourceNew)); Thread thread = new Thread(new ParameterizedThreadStart(RefreshPopupDataSourceNew));
thread.IsBackground = true; thread.IsBackground = true;
thread.Start(this._queryQueue.Last()); thread.Start(this._queryQueue.Last());
this._queryQueue.Clear(); this._queryQueue.Clear();
} }
else else
@@ -1570,23 +1552,4 @@ namespace Lskj.Control
if (this.InvokeRequired) if (this.InvokeRequired)
{ {
this.Invoke(new EventHandler(delegate this.Invoke(new EventHandler(delegate
{
int second = Convert.ToInt32((endTime - beginTime).TotalSeconds);
string tipMsg = "数据筛选完成.";
this.Popup.LabelObj.Text = second > 0 ? string.Format(tipMsg + "(耗时{0}秒)", second) : tipMsg;
this.Popup.GridControlObj.DataSource = table;
//this.DataSourceTable = table.Copy();
this._working = false;
this.CalcFormAndGrid(true);
}));
}
}
}
catch (Exception ex)
{
}
}
}
}
@@ -1,126 +0,0 @@
<?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>
<metadata name="autoGridPopup1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
</root>
@@ -1,47 +0,0 @@
namespace Lskj.Control
{
partial class AutoGridRevLookUp
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.autoGridRevPopup = new Lskj.Control.AutoGridRevPopup();
this.SuspendLayout();
//
// autoGridRevPopup
//
this.autoGridRevPopup.AddVisible = false;
this.autoGridRevPopup.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.autoGridRevPopup.Location = new System.Drawing.Point(0, 0);
this.autoGridRevPopup.Name = "autoGridRevPopup";
this.autoGridRevPopup.Size = new System.Drawing.Size(260, 198);
this.autoGridRevPopup.TabIndex = 0;
this.ResumeLayout(false);
}
#endregion
private AutoGridRevPopup autoGridRevPopup;
}
}
@@ -317,9 +317,9 @@ namespace Lskj.Control
public event EventHandler OnPopupClosed; public event EventHandler OnPopupClosed;
public AutoGridRevLookUp() public AutoGridRevLookUp()
{ {
InitializeComponent();
InitializePopup(); InitializePopup();
InitializeEvent(); InitializeEvent();
this.Disposed += OnDisposed;
} }
/// <summary> /// <summary>
/// <para>说明:初始化事件</para> /// <para>说明:初始化事件</para>
@@ -342,6 +342,7 @@ namespace Lskj.Control
this._popup.OnGridViewMouseClick += new EventHandler(OnPopupGridViewMouseClick); this._popup.OnGridViewMouseClick += new EventHandler(OnPopupGridViewMouseClick);
this._popup.OnGridViewEnter += new KeyEventHandler(OnPopupGridViewEnter); this._popup.OnGridViewEnter += new KeyEventHandler(OnPopupGridViewEnter);
} }
/// <summary> /// <summary>
/// <para>说明:初始化弹出框</para> /// <para>说明:初始化弹出框</para>
/// <para>创建人:龚宇超</para> /// <para>创建人:龚宇超</para>
@@ -1160,31 +1161,6 @@ namespace Lskj.Control
} }
//this.ShowPopup(); //this.ShowPopup();
} }
/// <summary>
/// <para>说明:释放时清理数据源</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-16 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
private void OnAutoGridLookUp_Disposed(object sender, EventArgs e)
{
if (this.DataSourceTable != null)
{
this.DataSourceTable.Clear();
this.DataSourceTable.Dispose();
}
if (this.DataSource != null)
{
this.DataSource = null;
}
GC.Collect();
}
/// <summary> /// <summary>
/// <para>说明:判断输入的是否是中文</para> /// <para>说明:判断输入的是否是中文</para>
/// <para>创建人:龚宇超</para> /// <para>创建人:龚宇超</para>
@@ -1410,30 +1386,4 @@ namespace Lskj.Control
{ {
int second = Convert.ToInt32((endTime - beginTime).TotalSeconds); int second = Convert.ToInt32((endTime - beginTime).TotalSeconds);
string tipMsg = "数据筛选完成."; string tipMsg = "数据筛选完成.";
this.Popup.LabelObj.Text = second > 0 ? string.Format(tipMsg + "(耗时{0}秒)", second) : tipMsg; this.Popup.LabelObj.Text =
this.Popup.GridControlObj.DataSource = table;
this._working = false;
//this.CalcFormAndGrid();
}));
}
}
}
catch (Exception ex)
{
}
}
/// <summary>
/// 搜索回调
/// </summary>
public void SearchCallBack()
{
this.HidePopup();
if (this.OnSearchCallBack != null)
{
OnSearchCallBack(this, null);
}
}
}
}
@@ -1,126 +0,0 @@
<?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>
<metadata name="autoGridRevPopup.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
</root>
@@ -1,36 +0,0 @@
namespace Lskj.Control
{
partial class AutoTreeLookUp
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
}
#endregion
}
}
@@ -327,9 +327,9 @@ namespace Lskj.Control
public AutoTreeLookUp() public AutoTreeLookUp()
{ {
InitializeComponent();
InitializePopup(); InitializePopup();
InitializeEvent(); InitializeEvent();
this.Disposed += OnDisposed;
} }
/// <summary> /// <summary>
@@ -343,7 +343,6 @@ namespace Lskj.Control
/// </summary> /// </summary>
private void InitializeEvent() private void InitializeEvent()
{ {
this.Disposed += new EventHandler(OnAutoTreeLookUp_Disposed);
this.MouseDown += new MouseEventHandler(OnAutoGridLookUpGotFocus); this.MouseDown += new MouseEventHandler(OnAutoGridLookUpGotFocus);
this.LostFocus += new EventHandler(OnAutoGridLookUpLostFocus); this.LostFocus += new EventHandler(OnAutoGridLookUpLostFocus);
this.KeyUp += new KeyEventHandler(OnAutoGridLookUpKeyUp); this.KeyUp += new KeyEventHandler(OnAutoGridLookUpKeyUp);
@@ -751,8 +750,4 @@ namespace Lskj.Control
/// <para>修改备注:</para> /// <para>修改备注:</para>
/// <para>版本:1.0</para> /// <para>版本:1.0</para>
/// </summary> /// </summary>
/// <param name="sender">The source of the event.</param> /// <param name="sender">The so
/// <param name="e">The <see cref="KeyEvnentArgs"/> instance containing the event data.</param>
protected void OnAutoGridLookUpKeyUp(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Ent