diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs
index 514b595..a64834e 100644
--- a/RbFreqStandMeasure/Properties/Resources.Designer.cs
+++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs
@@ -83,6 +83,16 @@
///
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
///
+ internal static System.Drawing.Bitmap bg_dev_list {
+ get {
+ object obj = ResourceManager.GetObject("bg_dev_list", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
internal static System.Drawing.Bitmap bg_dev_tested {
get {
object obj = ResourceManager.GetObject("bg_dev_tested", resourceCulture);
diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs
index 514b595..a64834e 100644
--- a/RbFreqStandMeasure/Properties/Resources.Designer.cs
+++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs
@@ -83,6 +83,16 @@
///
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
///
+ internal static System.Drawing.Bitmap bg_dev_list {
+ get {
+ object obj = ResourceManager.GetObject("bg_dev_list", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
internal static System.Drawing.Bitmap bg_dev_tested {
get {
object obj = ResourceManager.GetObject("bg_dev_tested", resourceCulture);
diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx
index 49bcc21..e13b334 100644
--- a/RbFreqStandMeasure/Properties/Resources.resx
+++ b/RbFreqStandMeasure/Properties/Resources.resx
@@ -118,11 +118,8 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
-
- ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -133,8 +130,11 @@
..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -151,8 +151,11 @@
..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -163,8 +166,8 @@
..\res\images\bg_banner.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -178,19 +181,19 @@
..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
-
- ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\bg_dev_list.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
\ No newline at end of file
diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs
index 514b595..a64834e 100644
--- a/RbFreqStandMeasure/Properties/Resources.Designer.cs
+++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs
@@ -83,6 +83,16 @@
///
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
///
+ internal static System.Drawing.Bitmap bg_dev_list {
+ get {
+ object obj = ResourceManager.GetObject("bg_dev_list", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
internal static System.Drawing.Bitmap bg_dev_tested {
get {
object obj = ResourceManager.GetObject("bg_dev_tested", resourceCulture);
diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx
index 49bcc21..e13b334 100644
--- a/RbFreqStandMeasure/Properties/Resources.resx
+++ b/RbFreqStandMeasure/Properties/Resources.resx
@@ -118,11 +118,8 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
-
- ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -133,8 +130,11 @@
..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -151,8 +151,11 @@
..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -163,8 +166,8 @@
..\res\images\bg_banner.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -178,19 +181,19 @@
..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
-
- ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\bg_dev_list.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 6665ea0..a948f74 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -304,6 +304,9 @@
+
+
+
diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs
index 514b595..a64834e 100644
--- a/RbFreqStandMeasure/Properties/Resources.Designer.cs
+++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs
@@ -83,6 +83,16 @@
///
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
///
+ internal static System.Drawing.Bitmap bg_dev_list {
+ get {
+ object obj = ResourceManager.GetObject("bg_dev_list", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
internal static System.Drawing.Bitmap bg_dev_tested {
get {
object obj = ResourceManager.GetObject("bg_dev_tested", resourceCulture);
diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx
index 49bcc21..e13b334 100644
--- a/RbFreqStandMeasure/Properties/Resources.resx
+++ b/RbFreqStandMeasure/Properties/Resources.resx
@@ -118,11 +118,8 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
-
- ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -133,8 +130,11 @@
..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -151,8 +151,11 @@
..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -163,8 +166,8 @@
..\res\images\bg_banner.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -178,19 +181,19 @@
..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
-
- ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\bg_dev_list.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 6665ea0..a948f74 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -304,6 +304,9 @@
+
+
+
diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs
index bcd9479..ceb9056 100644
--- a/RbFreqStandMeasure/home/HomeCtrlForm.cs
+++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs
@@ -28,14 +28,14 @@
private void HomeCtrlForm_Load(object sender, EventArgs e)
{
// 初始化表格标题栏
- this.InitTableDevList();
+ InitTableDevList();
// 加载待检测列表
- this.LoadDevToBeTested();
+ LoadDevToBeTested();
// 初始化各通道样式
- this.InitTableChannel();
- this.LoadChannelStatus();
+ InitTableChannel();
+ LoadChannelStatus();
}
private void InitTableDevList()
@@ -434,8 +434,8 @@
private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
- int rowIndex = this.tableToBeTested.CurrentCell.RowIndex;
- int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex;
+ int rowIndex = tableToBeTested.CurrentCell.RowIndex;
+ int colIndex = tableToBeTested.CurrentCell.ColumnIndex;
if (colIndex == 6)
{
SetDevTestDlg devTestDlg = new SetDevTestDlg();
diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs
index 514b595..a64834e 100644
--- a/RbFreqStandMeasure/Properties/Resources.Designer.cs
+++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs
@@ -83,6 +83,16 @@
///
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
///
+ internal static System.Drawing.Bitmap bg_dev_list {
+ get {
+ object obj = ResourceManager.GetObject("bg_dev_list", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
internal static System.Drawing.Bitmap bg_dev_tested {
get {
object obj = ResourceManager.GetObject("bg_dev_tested", resourceCulture);
diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx
index 49bcc21..e13b334 100644
--- a/RbFreqStandMeasure/Properties/Resources.resx
+++ b/RbFreqStandMeasure/Properties/Resources.resx
@@ -118,11 +118,8 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
-
- ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -133,8 +130,11 @@
..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -151,8 +151,11 @@
..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -163,8 +166,8 @@
..\res\images\bg_banner.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -178,19 +181,19 @@
..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
-
- ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\bg_dev_list.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 6665ea0..a948f74 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -304,6 +304,9 @@
+
+
+
diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs
index bcd9479..ceb9056 100644
--- a/RbFreqStandMeasure/home/HomeCtrlForm.cs
+++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs
@@ -28,14 +28,14 @@
private void HomeCtrlForm_Load(object sender, EventArgs e)
{
// 初始化表格标题栏
- this.InitTableDevList();
+ InitTableDevList();
// 加载待检测列表
- this.LoadDevToBeTested();
+ LoadDevToBeTested();
// 初始化各通道样式
- this.InitTableChannel();
- this.LoadChannelStatus();
+ InitTableChannel();
+ LoadChannelStatus();
}
private void InitTableDevList()
@@ -434,8 +434,8 @@
private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
- int rowIndex = this.tableToBeTested.CurrentCell.RowIndex;
- int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex;
+ int rowIndex = tableToBeTested.CurrentCell.RowIndex;
+ int colIndex = tableToBeTested.CurrentCell.ColumnIndex;
if (colIndex == 6)
{
SetDevTestDlg devTestDlg = new SetDevTestDlg();
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
index 8bdbee9..c512020 100644
--- a/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
@@ -30,293 +30,494 @@
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.labelDevNo = new System.Windows.Forms.Label();
+ this.labelDevType = new System.Windows.Forms.Label();
+ this.inputCustomComp = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.labelCustomComp = new System.Windows.Forms.Label();
+ this.labelDevName = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
- this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
- this.iptDevType = new DevComponents.DotNetBar.Controls.TextBoxX();
- this.iptDevName = new DevComponents.DotNetBar.Controls.TextBoxX();
- this.textBoxDropDown1 = new DevComponents.DotNetBar.Controls.TextBoxDropDown();
- this.dataGridViewX1 = new DevComponents.DotNetBar.Controls.DataGridViewX();
- this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.btnDelDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
- this.btnEditDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
- this.btnAddDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
- this.line1 = new DevComponents.DotNetBar.Controls.Line();
- this.panelEx1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX1)).BeginInit();
+ this.inputCustomName = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.inputDevNo = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.inputDevType = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.inputDevName = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.label2 = new System.Windows.Forms.Label();
+ this.comboBoxEx1 = new DevComponents.DotNetBar.Controls.ComboBoxEx();
+ this.All = new DevComponents.Editors.ComboItem();
+ this.toBeTested = new DevComponents.Editors.ComboItem();
+ this.testing = new DevComponents.Editors.ComboItem();
+ this.tested = new DevComponents.Editors.ComboItem();
+ this.tableDevList = new System.Windows.Forms.DataGridView();
+ this.roundButton5 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.roundButton4 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.roundButton3 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.roundButton2 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.roundButton1 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.btnQuery = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.panel1.SuspendLayout();
+ this.panel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.tableDevList)).BeginInit();
this.SuspendLayout();
//
+ // panel1
+ //
+ this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_list;
+ this.panel1.Controls.Add(this.tableDevList);
+ this.panel1.Controls.Add(this.panel2);
+ this.panel1.Location = new System.Drawing.Point(10, 5);
+ this.panel1.Margin = new System.Windows.Forms.Padding(0);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(1004, 642);
+ this.panel1.TabIndex = 14;
+ //
+ // panel2
+ //
+ this.panel2.BackColor = System.Drawing.Color.Transparent;
+ this.panel2.Controls.Add(this.roundButton5);
+ this.panel2.Controls.Add(this.roundButton4);
+ this.panel2.Controls.Add(this.roundButton3);
+ this.panel2.Controls.Add(this.comboBoxEx1);
+ this.panel2.Controls.Add(this.label2);
+ this.panel2.Controls.Add(this.roundButton2);
+ this.panel2.Controls.Add(this.roundButton1);
+ this.panel2.Controls.Add(this.btnQuery);
+ this.panel2.Controls.Add(this.inputDevName);
+ this.panel2.Controls.Add(this.inputDevType);
+ this.panel2.Controls.Add(this.inputDevNo);
+ this.panel2.Controls.Add(this.inputCustomName);
+ this.panel2.Controls.Add(this.label1);
+ this.panel2.Controls.Add(this.labelDevNo);
+ this.panel2.Controls.Add(this.labelDevType);
+ this.panel2.Controls.Add(this.inputCustomComp);
+ this.panel2.Controls.Add(this.labelCustomComp);
+ this.panel2.Controls.Add(this.labelDevName);
+ this.panel2.Location = new System.Drawing.Point(20, 20);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(964, 80);
+ this.panel2.TabIndex = 1;
+ //
+ // labelDevNo
+ //
+ this.labelDevNo.AutoSize = true;
+ this.labelDevNo.BackColor = System.Drawing.Color.Transparent;
+ this.labelDevNo.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.labelDevNo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.labelDevNo.Location = new System.Drawing.Point(440, 5);
+ this.labelDevNo.Margin = new System.Windows.Forms.Padding(0);
+ this.labelDevNo.Name = "labelDevNo";
+ this.labelDevNo.Size = new System.Drawing.Size(74, 21);
+ this.labelDevNo.TabIndex = 4;
+ this.labelDevNo.Text = "仪器编号";
+ //
+ // labelDevType
+ //
+ this.labelDevType.AutoSize = true;
+ this.labelDevType.BackColor = System.Drawing.Color.Transparent;
+ this.labelDevType.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.labelDevType.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.labelDevType.Location = new System.Drawing.Point(220, 5);
+ this.labelDevType.Margin = new System.Windows.Forms.Padding(0);
+ this.labelDevType.Name = "labelDevType";
+ this.labelDevType.Size = new System.Drawing.Size(74, 21);
+ this.labelDevType.TabIndex = 4;
+ this.labelDevType.Text = "仪器型号";
+ //
+ // inputCustomComp
+ //
+ //
+ //
+ //
+ this.inputCustomComp.Border.Class = "TextBoxBorder";
+ this.inputCustomComp.Border.CornerDiameter = 5;
+ this.inputCustomComp.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputCustomComp.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputCustomComp.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputCustomComp.Location = new System.Drawing.Point(80, 40);
+ this.inputCustomComp.Margin = new System.Windows.Forms.Padding(0);
+ this.inputCustomComp.Name = "inputCustomComp";
+ this.inputCustomComp.PreventEnterBeep = true;
+ this.inputCustomComp.Size = new System.Drawing.Size(120, 30);
+ this.inputCustomComp.TabIndex = 3;
+ this.inputCustomComp.Text = "请输入单位名称";
+ //
+ // labelCustomComp
+ //
+ this.labelCustomComp.AutoSize = true;
+ this.labelCustomComp.BackColor = System.Drawing.Color.Transparent;
+ this.labelCustomComp.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.labelCustomComp.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.labelCustomComp.Location = new System.Drawing.Point(0, 45);
+ this.labelCustomComp.Margin = new System.Windows.Forms.Padding(0);
+ this.labelCustomComp.Name = "labelCustomComp";
+ this.labelCustomComp.Size = new System.Drawing.Size(74, 21);
+ this.labelCustomComp.TabIndex = 0;
+ this.labelCustomComp.Text = "客户单位";
+ //
+ // labelDevName
+ //
+ this.labelDevName.AutoSize = true;
+ this.labelDevName.BackColor = System.Drawing.Color.Transparent;
+ this.labelDevName.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.labelDevName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.labelDevName.Location = new System.Drawing.Point(0, 5);
+ this.labelDevName.Margin = new System.Windows.Forms.Padding(0);
+ this.labelDevName.Name = "labelDevName";
+ this.labelDevName.Size = new System.Drawing.Size(74, 21);
+ this.labelDevName.TabIndex = 0;
+ this.labelDevName.Text = "仪器名称";
+ //
// label1
//
this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(21, 12);
+ this.label1.BackColor = System.Drawing.Color.Transparent;
+ this.label1.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.label1.Location = new System.Drawing.Point(220, 45);
+ this.label1.Margin = new System.Windows.Forms.Padding(0);
this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(77, 12);
- this.label1.TabIndex = 0;
- this.label1.Text = "送检仪器管理";
+ this.label1.Size = new System.Drawing.Size(74, 21);
+ this.label1.TabIndex = 5;
+ this.label1.Text = "客户名称";
//
- // panelEx1
- //
- this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control;
- this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.panelEx1.Controls.Add(this.textBoxDropDown1);
- this.panelEx1.Controls.Add(this.iptDevName);
- this.panelEx1.Controls.Add(this.iptDevType);
- this.panelEx1.Controls.Add(this.btnDelDev);
- this.panelEx1.Controls.Add(this.btnEditDev);
- this.panelEx1.Controls.Add(this.btnAddDev);
- this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty;
- this.panelEx1.Location = new System.Drawing.Point(3, 57);
- this.panelEx1.Name = "panelEx1";
- this.panelEx1.Size = new System.Drawing.Size(994, 59);
- this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center;
- this.panelEx1.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
- this.panelEx1.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
- this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
- this.panelEx1.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
- this.panelEx1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
- this.panelEx1.Style.GradientAngle = 90;
- this.panelEx1.TabIndex = 5;
- //
- // iptDevType
+ // inputCustomName
//
//
//
//
- this.iptDevType.Border.Class = "TextBoxBorder";
- this.iptDevType.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.iptDevType.Location = new System.Drawing.Point(21, 21);
- this.iptDevType.Name = "iptDevType";
- this.iptDevType.PreventEnterBeep = true;
- this.iptDevType.Size = new System.Drawing.Size(100, 21);
- this.iptDevType.TabIndex = 4;
+ this.inputCustomName.Border.Class = "TextBoxBorder";
+ this.inputCustomName.Border.CornerDiameter = 5;
+ this.inputCustomName.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputCustomName.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputCustomName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputCustomName.Location = new System.Drawing.Point(300, 40);
+ this.inputCustomName.Margin = new System.Windows.Forms.Padding(0);
+ this.inputCustomName.Name = "inputCustomName";
+ this.inputCustomName.PreventEnterBeep = true;
+ this.inputCustomName.Size = new System.Drawing.Size(120, 30);
+ this.inputCustomName.TabIndex = 6;
+ this.inputCustomName.Text = "请输入客户名称";
//
- // iptDevName
+ // inputDevNo
//
//
//
//
- this.iptDevName.Border.Class = "TextBoxBorder";
- this.iptDevName.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.iptDevName.Location = new System.Drawing.Point(142, 21);
- this.iptDevName.Name = "iptDevName";
- this.iptDevName.PreventEnterBeep = true;
- this.iptDevName.Size = new System.Drawing.Size(100, 21);
- this.iptDevName.TabIndex = 4;
+ this.inputDevNo.Border.Class = "TextBoxBorder";
+ this.inputDevNo.Border.CornerDiameter = 5;
+ this.inputDevNo.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputDevNo.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputDevNo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputDevNo.Location = new System.Drawing.Point(520, 0);
+ this.inputDevNo.Margin = new System.Windows.Forms.Padding(0);
+ this.inputDevNo.Name = "inputDevNo";
+ this.inputDevNo.PreventEnterBeep = true;
+ this.inputDevNo.Size = new System.Drawing.Size(120, 30);
+ this.inputDevNo.TabIndex = 7;
+ this.inputDevNo.Text = "请输入仪器编号";
//
- // textBoxDropDown1
+ // inputDevType
//
//
//
//
- this.textBoxDropDown1.BackgroundStyle.Class = "TextBoxBorder";
- this.textBoxDropDown1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.textBoxDropDown1.ButtonDropDown.Visible = true;
- this.textBoxDropDown1.Location = new System.Drawing.Point(273, 21);
- this.textBoxDropDown1.Name = "textBoxDropDown1";
- this.textBoxDropDown1.Size = new System.Drawing.Size(122, 20);
- this.textBoxDropDown1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.textBoxDropDown1.TabIndex = 9;
- this.textBoxDropDown1.Text = "";
+ this.inputDevType.Border.Class = "TextBoxBorder";
+ this.inputDevType.Border.CornerDiameter = 5;
+ this.inputDevType.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputDevType.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputDevType.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputDevType.Location = new System.Drawing.Point(300, 0);
+ this.inputDevType.Margin = new System.Windows.Forms.Padding(0);
+ this.inputDevType.Name = "inputDevType";
+ this.inputDevType.PreventEnterBeep = true;
+ this.inputDevType.Size = new System.Drawing.Size(120, 30);
+ this.inputDevType.TabIndex = 8;
+ this.inputDevType.Text = "请输入仪器型号";
//
- // dataGridViewX1
+ // inputDevName
//
- this.dataGridViewX1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dataGridViewX1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.Column1,
- this.Column2,
- this.Column3,
- this.Column4,
- this.Column5,
- this.Column6,
- this.Column7,
- this.Column8,
- this.Column9,
- this.Column10});
- dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.dataGridViewX1.DefaultCellStyle = dataGridViewCellStyle1;
- this.dataGridViewX1.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
- this.dataGridViewX1.Location = new System.Drawing.Point(3, 155);
- this.dataGridViewX1.Name = "dataGridViewX1";
- this.dataGridViewX1.RowTemplate.Height = 23;
- this.dataGridViewX1.Size = new System.Drawing.Size(994, 444);
- this.dataGridViewX1.TabIndex = 9;
//
- // Column1
//
- this.Column1.HeaderText = "登记日期";
- this.Column1.Name = "Column1";
//
- // Column2
+ this.inputDevName.Border.Class = "TextBoxBorder";
+ this.inputDevName.Border.CornerDiameter = 5;
+ this.inputDevName.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputDevName.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputDevName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputDevName.Location = new System.Drawing.Point(80, 0);
+ this.inputDevName.Margin = new System.Windows.Forms.Padding(0);
+ this.inputDevName.Name = "inputDevName";
+ this.inputDevName.PreventEnterBeep = true;
+ this.inputDevName.Size = new System.Drawing.Size(120, 30);
+ this.inputDevName.TabIndex = 9;
+ this.inputDevName.Text = "请输入仪器名称";
//
- this.Column2.HeaderText = "仪器型号";
- this.Column2.Name = "Column2";
+ // label2
//
- // Column3
+ this.label2.AutoSize = true;
+ this.label2.BackColor = System.Drawing.Color.Transparent;
+ this.label2.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.label2.Location = new System.Drawing.Point(440, 45);
+ this.label2.Margin = new System.Windows.Forms.Padding(0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(74, 21);
+ this.label2.TabIndex = 11;
+ this.label2.Text = "仪器状态";
//
- this.Column3.HeaderText = "仪器编号";
- this.Column3.Name = "Column3";
+ // comboBoxEx1
//
- // Column4
+ this.comboBoxEx1.DisplayMember = "Text";
+ this.comboBoxEx1.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
+ this.comboBoxEx1.FormattingEnabled = true;
+ this.comboBoxEx1.ItemHeight = 15;
+ this.comboBoxEx1.Items.AddRange(new object[] {
+ this.All,
+ this.toBeTested,
+ this.testing,
+ this.tested});
+ this.comboBoxEx1.Location = new System.Drawing.Point(520, 45);
+ this.comboBoxEx1.Margin = new System.Windows.Forms.Padding(0);
+ this.comboBoxEx1.Name = "comboBoxEx1";
+ this.comboBoxEx1.Size = new System.Drawing.Size(120, 21);
+ this.comboBoxEx1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.comboBoxEx1.TabIndex = 2;
//
- this.Column4.HeaderText = "客户单位";
- this.Column4.Name = "Column4";
+ // All
//
- // Column5
+ this.All.Text = "全部";
//
- this.Column5.HeaderText = "检测状态";
- this.Column5.Name = "Column5";
+ // toBeTested
//
- // Column6
+ this.toBeTested.Text = "已检";
//
- this.Column6.HeaderText = "频率稳定度";
- this.Column6.Name = "Column6";
+ // testing
//
- // Column7
+ this.testing.Text = "检测中";
//
- this.Column7.HeaderText = "频率准确度";
- this.Column7.Name = "Column7";
+ // tested
//
- // Column8
+ this.tested.Text = "待检";
//
- this.Column8.HeaderText = "开机特性";
- this.Column8.Name = "Column8";
+ // tableDevList
//
- // Column9
+ this.tableDevList.AllowUserToAddRows = false;
+ this.tableDevList.AllowUserToDeleteRows = false;
+ this.tableDevList.AllowUserToResizeColumns = false;
+ this.tableDevList.AllowUserToResizeRows = false;
+ dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238)))));
+ dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ dataGridViewCellStyle1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238)))));
+ dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.tableDevList.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ this.tableDevList.BackgroundColor = System.Drawing.Color.White;
+ this.tableDevList.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ this.tableDevList.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
+ this.tableDevList.ColumnHeadersHeight = 40;
+ this.tableDevList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+ this.tableDevList.Location = new System.Drawing.Point(20, 120);
+ this.tableDevList.Margin = new System.Windows.Forms.Padding(0);
+ this.tableDevList.Name = "tableDevList";
+ this.tableDevList.RowHeadersVisible = false;
+ this.tableDevList.RowHeadersWidth = 30;
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle2.BackColor = System.Drawing.Color.White;
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ dataGridViewCellStyle2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ dataGridViewCellStyle2.NullValue = "-";
+ dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.White;
+ dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.tableDevList.RowsDefaultCellStyle = dataGridViewCellStyle2;
+ this.tableDevList.RowTemplate.Height = 40;
+ this.tableDevList.Size = new System.Drawing.Size(964, 440);
+ this.tableDevList.TabIndex = 2;
//
- this.Column9.HeaderText = "日老化率";
- this.Column9.Name = "Column9";
+ // roundButton5
//
- // Column10
+ this.roundButton5.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton5.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton5.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton5.FlatAppearance.BorderSize = 0;
+ this.roundButton5.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton5.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton5.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton5.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242)))));
+ this.roundButton5.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton5.Location = new System.Drawing.Point(870, 40);
+ this.roundButton5.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton5.Name = "roundButton5";
+ this.roundButton5.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton5.PressForeColor = System.Drawing.Color.White;
+ this.roundButton5.Radius = 5;
+ this.roundButton5.Size = new System.Drawing.Size(75, 30);
+ this.roundButton5.TabIndex = 14;
+ this.roundButton5.Text = "导出";
+ this.roundButton5.UseVisualStyleBackColor = true;
//
- this.Column10.HeaderText = "频率计数器范围及灵敏度";
- this.Column10.Name = "Column10";
+ // roundButton4
//
- // btnDelDev
+ this.roundButton4.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton4.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton4.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton4.FlatAppearance.BorderSize = 0;
+ this.roundButton4.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton4.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton4.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton4.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242)))));
+ this.roundButton4.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton4.Location = new System.Drawing.Point(785, 40);
+ this.roundButton4.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton4.Name = "roundButton4";
+ this.roundButton4.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton4.PressForeColor = System.Drawing.Color.White;
+ this.roundButton4.Radius = 5;
+ this.roundButton4.Size = new System.Drawing.Size(75, 30);
+ this.roundButton4.TabIndex = 13;
+ this.roundButton4.Text = "详情";
+ this.roundButton4.UseVisualStyleBackColor = true;
//
- this.btnDelDev.EnterBackColor = System.Drawing.Color.Blue;
- this.btnDelDev.EnterForeColor = System.Drawing.Color.White;
- this.btnDelDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
- this.btnDelDev.FlatAppearance.BorderSize = 0;
- this.btnDelDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
- this.btnDelDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
- this.btnDelDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.btnDelDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
- this.btnDelDev.HoverForeColor = System.Drawing.Color.White;
- this.btnDelDev.Location = new System.Drawing.Point(639, 15);
- this.btnDelDev.Name = "btnDelDev";
- this.btnDelDev.PressBackColor = System.Drawing.Color.DarkBlue;
- this.btnDelDev.PressForeColor = System.Drawing.Color.White;
- this.btnDelDev.Radius = 18;
- this.btnDelDev.Size = new System.Drawing.Size(75, 28);
- this.btnDelDev.TabIndex = 3;
- this.btnDelDev.Text = "删除";
- this.btnDelDev.UseVisualStyleBackColor = true;
+ // roundButton3
//
- // btnEditDev
+ this.roundButton3.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton3.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton3.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton3.FlatAppearance.BorderSize = 0;
+ this.roundButton3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton3.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton3.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(0)))), ((int)(((byte)(18)))));
+ this.roundButton3.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton3.Location = new System.Drawing.Point(700, 40);
+ this.roundButton3.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton3.Name = "roundButton3";
+ this.roundButton3.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton3.PressForeColor = System.Drawing.Color.White;
+ this.roundButton3.Radius = 5;
+ this.roundButton3.Size = new System.Drawing.Size(75, 30);
+ this.roundButton3.TabIndex = 12;
+ this.roundButton3.Text = "删除";
+ this.roundButton3.UseVisualStyleBackColor = true;
//
- this.btnEditDev.EnterBackColor = System.Drawing.Color.Blue;
- this.btnEditDev.EnterForeColor = System.Drawing.Color.White;
- this.btnEditDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
- this.btnEditDev.FlatAppearance.BorderSize = 0;
- this.btnEditDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
- this.btnEditDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
- this.btnEditDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.btnEditDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
- this.btnEditDev.HoverForeColor = System.Drawing.Color.White;
- this.btnEditDev.Location = new System.Drawing.Point(546, 15);
- this.btnEditDev.Name = "btnEditDev";
- this.btnEditDev.PressBackColor = System.Drawing.Color.DarkBlue;
- this.btnEditDev.PressForeColor = System.Drawing.Color.White;
- this.btnEditDev.Radius = 18;
- this.btnEditDev.Size = new System.Drawing.Size(75, 28);
- this.btnEditDev.TabIndex = 3;
- this.btnEditDev.Text = "编辑";
- this.btnEditDev.UseVisualStyleBackColor = true;
+ // roundButton2
//
- // btnAddDev
+ this.roundButton2.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton2.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton2.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton2.FlatAppearance.BorderSize = 0;
+ this.roundButton2.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton2.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton2.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton2.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));
+ this.roundButton2.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton2.Location = new System.Drawing.Point(870, 0);
+ this.roundButton2.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton2.Name = "roundButton2";
+ this.roundButton2.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton2.PressForeColor = System.Drawing.Color.White;
+ this.roundButton2.Radius = 5;
+ this.roundButton2.Size = new System.Drawing.Size(75, 30);
+ this.roundButton2.TabIndex = 10;
+ this.roundButton2.Text = "修改";
+ this.roundButton2.UseVisualStyleBackColor = true;
//
- this.btnAddDev.EnterBackColor = System.Drawing.Color.Blue;
- this.btnAddDev.EnterForeColor = System.Drawing.Color.White;
- this.btnAddDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
- this.btnAddDev.FlatAppearance.BorderSize = 0;
- this.btnAddDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
- this.btnAddDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
- this.btnAddDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.btnAddDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
- this.btnAddDev.HoverForeColor = System.Drawing.Color.White;
- this.btnAddDev.Location = new System.Drawing.Point(455, 15);
- this.btnAddDev.Name = "btnAddDev";
- this.btnAddDev.PressBackColor = System.Drawing.Color.DarkBlue;
- this.btnAddDev.PressForeColor = System.Drawing.Color.White;
- this.btnAddDev.Radius = 18;
- this.btnAddDev.Size = new System.Drawing.Size(75, 28);
- this.btnAddDev.TabIndex = 3;
- this.btnAddDev.Text = "添加";
- this.btnAddDev.UseVisualStyleBackColor = true;
- this.btnAddDev.Click += new System.EventHandler(this.btnAddDev_Click);
+ // roundButton1
//
- // line1
+ this.roundButton1.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton1.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton1.FlatAppearance.BorderSize = 0;
+ this.roundButton1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton1.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(47)))), ((int)(((byte)(111)))), ((int)(((byte)(198)))));
+ this.roundButton1.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton1.Location = new System.Drawing.Point(785, 0);
+ this.roundButton1.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton1.Name = "roundButton1";
+ this.roundButton1.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton1.PressForeColor = System.Drawing.Color.White;
+ this.roundButton1.Radius = 5;
+ this.roundButton1.Size = new System.Drawing.Size(75, 30);
+ this.roundButton1.TabIndex = 10;
+ this.roundButton1.Text = "添加";
+ this.roundButton1.UseVisualStyleBackColor = true;
//
- this.line1.Location = new System.Drawing.Point(4, 28);
- this.line1.Name = "line1";
- this.line1.Size = new System.Drawing.Size(993, 23);
- this.line1.TabIndex = 10;
- this.line1.Text = "line1";
+ // btnQuery
+ //
+ this.btnQuery.EnterBackColor = System.Drawing.Color.Blue;
+ this.btnQuery.EnterForeColor = System.Drawing.Color.White;
+ this.btnQuery.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.btnQuery.FlatAppearance.BorderSize = 0;
+ this.btnQuery.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.btnQuery.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.btnQuery.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnQuery.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.btnQuery.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
+ this.btnQuery.HoverForeColor = System.Drawing.Color.White;
+ this.btnQuery.Location = new System.Drawing.Point(700, 0);
+ this.btnQuery.Margin = new System.Windows.Forms.Padding(0);
+ this.btnQuery.Name = "btnQuery";
+ this.btnQuery.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.btnQuery.PressForeColor = System.Drawing.Color.White;
+ this.btnQuery.Radius = 5;
+ this.btnQuery.Size = new System.Drawing.Size(75, 30);
+ this.btnQuery.TabIndex = 10;
+ this.btnQuery.Text = "查询";
+ this.btnQuery.UseVisualStyleBackColor = true;
//
// InfoCtrlForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.line1);
- this.Controls.Add(this.dataGridViewX1);
- this.Controls.Add(this.panelEx1);
- this.Controls.Add(this.label1);
+ this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238)))));
+ this.Controls.Add(this.panel1);
this.Margin = new System.Windows.Forms.Padding(0);
this.Name = "InfoCtrlForm";
- this.Size = new System.Drawing.Size(1000, 640);
- this.panelEx1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX1)).EndInit();
+ this.Size = new System.Drawing.Size(1024, 654);
+ this.panel1.ResumeLayout(false);
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.tableDevList)).EndInit();
this.ResumeLayout(false);
- this.PerformLayout();
}
#endregion
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Label labelDevName;
+ private System.Windows.Forms.Panel panel2;
+ private System.Windows.Forms.Label labelDevType;
+ private System.Windows.Forms.Label labelDevNo;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputCustomComp;
+ private System.Windows.Forms.Label labelCustomComp;
private System.Windows.Forms.Label label1;
- private RoundButton btnAddDev;
- private DevComponents.DotNetBar.PanelEx panelEx1;
- private DevComponents.DotNetBar.Controls.TextBoxX iptDevType;
- private DevComponents.DotNetBar.Controls.TextBoxX iptDevName;
- private DevComponents.DotNetBar.Controls.TextBoxDropDown textBoxDropDown1;
- private RoundButton btnDelDev;
- private RoundButton btnEditDev;
- private DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX1;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
- private DevComponents.DotNetBar.Controls.Line line1;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputCustomName;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputDevNo;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputDevType;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputDevName;
+ private RoundButton btnQuery;
+ private System.Windows.Forms.Label label2;
+ private DevComponents.DotNetBar.Controls.ComboBoxEx comboBoxEx1;
+ private DevComponents.Editors.ComboItem All;
+ private DevComponents.Editors.ComboItem toBeTested;
+ private DevComponents.Editors.ComboItem testing;
+ private DevComponents.Editors.ComboItem tested;
+ private RoundButton roundButton2;
+ private RoundButton roundButton1;
+ private RoundButton roundButton3;
+ private RoundButton roundButton4;
+ private RoundButton roundButton5;
+ private System.Windows.Forms.DataGridView tableDevList;
}
}
diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs
index 514b595..a64834e 100644
--- a/RbFreqStandMeasure/Properties/Resources.Designer.cs
+++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs
@@ -83,6 +83,16 @@
///
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
///
+ internal static System.Drawing.Bitmap bg_dev_list {
+ get {
+ object obj = ResourceManager.GetObject("bg_dev_list", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
internal static System.Drawing.Bitmap bg_dev_tested {
get {
object obj = ResourceManager.GetObject("bg_dev_tested", resourceCulture);
diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx
index 49bcc21..e13b334 100644
--- a/RbFreqStandMeasure/Properties/Resources.resx
+++ b/RbFreqStandMeasure/Properties/Resources.resx
@@ -118,11 +118,8 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
-
- ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -133,8 +130,11 @@
..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -151,8 +151,11 @@
..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -163,8 +166,8 @@
..\res\images\bg_banner.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -178,19 +181,19 @@
..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
-
- ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\bg_dev_list.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 6665ea0..a948f74 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -304,6 +304,9 @@
+
+
+
diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs
index bcd9479..ceb9056 100644
--- a/RbFreqStandMeasure/home/HomeCtrlForm.cs
+++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs
@@ -28,14 +28,14 @@
private void HomeCtrlForm_Load(object sender, EventArgs e)
{
// 初始化表格标题栏
- this.InitTableDevList();
+ InitTableDevList();
// 加载待检测列表
- this.LoadDevToBeTested();
+ LoadDevToBeTested();
// 初始化各通道样式
- this.InitTableChannel();
- this.LoadChannelStatus();
+ InitTableChannel();
+ LoadChannelStatus();
}
private void InitTableDevList()
@@ -434,8 +434,8 @@
private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
- int rowIndex = this.tableToBeTested.CurrentCell.RowIndex;
- int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex;
+ int rowIndex = tableToBeTested.CurrentCell.RowIndex;
+ int colIndex = tableToBeTested.CurrentCell.ColumnIndex;
if (colIndex == 6)
{
SetDevTestDlg devTestDlg = new SetDevTestDlg();
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
index 8bdbee9..c512020 100644
--- a/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
@@ -30,293 +30,494 @@
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.labelDevNo = new System.Windows.Forms.Label();
+ this.labelDevType = new System.Windows.Forms.Label();
+ this.inputCustomComp = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.labelCustomComp = new System.Windows.Forms.Label();
+ this.labelDevName = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
- this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
- this.iptDevType = new DevComponents.DotNetBar.Controls.TextBoxX();
- this.iptDevName = new DevComponents.DotNetBar.Controls.TextBoxX();
- this.textBoxDropDown1 = new DevComponents.DotNetBar.Controls.TextBoxDropDown();
- this.dataGridViewX1 = new DevComponents.DotNetBar.Controls.DataGridViewX();
- this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.btnDelDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
- this.btnEditDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
- this.btnAddDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
- this.line1 = new DevComponents.DotNetBar.Controls.Line();
- this.panelEx1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX1)).BeginInit();
+ this.inputCustomName = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.inputDevNo = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.inputDevType = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.inputDevName = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.label2 = new System.Windows.Forms.Label();
+ this.comboBoxEx1 = new DevComponents.DotNetBar.Controls.ComboBoxEx();
+ this.All = new DevComponents.Editors.ComboItem();
+ this.toBeTested = new DevComponents.Editors.ComboItem();
+ this.testing = new DevComponents.Editors.ComboItem();
+ this.tested = new DevComponents.Editors.ComboItem();
+ this.tableDevList = new System.Windows.Forms.DataGridView();
+ this.roundButton5 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.roundButton4 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.roundButton3 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.roundButton2 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.roundButton1 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.btnQuery = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.panel1.SuspendLayout();
+ this.panel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.tableDevList)).BeginInit();
this.SuspendLayout();
//
+ // panel1
+ //
+ this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_list;
+ this.panel1.Controls.Add(this.tableDevList);
+ this.panel1.Controls.Add(this.panel2);
+ this.panel1.Location = new System.Drawing.Point(10, 5);
+ this.panel1.Margin = new System.Windows.Forms.Padding(0);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(1004, 642);
+ this.panel1.TabIndex = 14;
+ //
+ // panel2
+ //
+ this.panel2.BackColor = System.Drawing.Color.Transparent;
+ this.panel2.Controls.Add(this.roundButton5);
+ this.panel2.Controls.Add(this.roundButton4);
+ this.panel2.Controls.Add(this.roundButton3);
+ this.panel2.Controls.Add(this.comboBoxEx1);
+ this.panel2.Controls.Add(this.label2);
+ this.panel2.Controls.Add(this.roundButton2);
+ this.panel2.Controls.Add(this.roundButton1);
+ this.panel2.Controls.Add(this.btnQuery);
+ this.panel2.Controls.Add(this.inputDevName);
+ this.panel2.Controls.Add(this.inputDevType);
+ this.panel2.Controls.Add(this.inputDevNo);
+ this.panel2.Controls.Add(this.inputCustomName);
+ this.panel2.Controls.Add(this.label1);
+ this.panel2.Controls.Add(this.labelDevNo);
+ this.panel2.Controls.Add(this.labelDevType);
+ this.panel2.Controls.Add(this.inputCustomComp);
+ this.panel2.Controls.Add(this.labelCustomComp);
+ this.panel2.Controls.Add(this.labelDevName);
+ this.panel2.Location = new System.Drawing.Point(20, 20);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(964, 80);
+ this.panel2.TabIndex = 1;
+ //
+ // labelDevNo
+ //
+ this.labelDevNo.AutoSize = true;
+ this.labelDevNo.BackColor = System.Drawing.Color.Transparent;
+ this.labelDevNo.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.labelDevNo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.labelDevNo.Location = new System.Drawing.Point(440, 5);
+ this.labelDevNo.Margin = new System.Windows.Forms.Padding(0);
+ this.labelDevNo.Name = "labelDevNo";
+ this.labelDevNo.Size = new System.Drawing.Size(74, 21);
+ this.labelDevNo.TabIndex = 4;
+ this.labelDevNo.Text = "仪器编号";
+ //
+ // labelDevType
+ //
+ this.labelDevType.AutoSize = true;
+ this.labelDevType.BackColor = System.Drawing.Color.Transparent;
+ this.labelDevType.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.labelDevType.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.labelDevType.Location = new System.Drawing.Point(220, 5);
+ this.labelDevType.Margin = new System.Windows.Forms.Padding(0);
+ this.labelDevType.Name = "labelDevType";
+ this.labelDevType.Size = new System.Drawing.Size(74, 21);
+ this.labelDevType.TabIndex = 4;
+ this.labelDevType.Text = "仪器型号";
+ //
+ // inputCustomComp
+ //
+ //
+ //
+ //
+ this.inputCustomComp.Border.Class = "TextBoxBorder";
+ this.inputCustomComp.Border.CornerDiameter = 5;
+ this.inputCustomComp.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputCustomComp.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputCustomComp.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputCustomComp.Location = new System.Drawing.Point(80, 40);
+ this.inputCustomComp.Margin = new System.Windows.Forms.Padding(0);
+ this.inputCustomComp.Name = "inputCustomComp";
+ this.inputCustomComp.PreventEnterBeep = true;
+ this.inputCustomComp.Size = new System.Drawing.Size(120, 30);
+ this.inputCustomComp.TabIndex = 3;
+ this.inputCustomComp.Text = "请输入单位名称";
+ //
+ // labelCustomComp
+ //
+ this.labelCustomComp.AutoSize = true;
+ this.labelCustomComp.BackColor = System.Drawing.Color.Transparent;
+ this.labelCustomComp.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.labelCustomComp.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.labelCustomComp.Location = new System.Drawing.Point(0, 45);
+ this.labelCustomComp.Margin = new System.Windows.Forms.Padding(0);
+ this.labelCustomComp.Name = "labelCustomComp";
+ this.labelCustomComp.Size = new System.Drawing.Size(74, 21);
+ this.labelCustomComp.TabIndex = 0;
+ this.labelCustomComp.Text = "客户单位";
+ //
+ // labelDevName
+ //
+ this.labelDevName.AutoSize = true;
+ this.labelDevName.BackColor = System.Drawing.Color.Transparent;
+ this.labelDevName.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.labelDevName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.labelDevName.Location = new System.Drawing.Point(0, 5);
+ this.labelDevName.Margin = new System.Windows.Forms.Padding(0);
+ this.labelDevName.Name = "labelDevName";
+ this.labelDevName.Size = new System.Drawing.Size(74, 21);
+ this.labelDevName.TabIndex = 0;
+ this.labelDevName.Text = "仪器名称";
+ //
// label1
//
this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(21, 12);
+ this.label1.BackColor = System.Drawing.Color.Transparent;
+ this.label1.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.label1.Location = new System.Drawing.Point(220, 45);
+ this.label1.Margin = new System.Windows.Forms.Padding(0);
this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(77, 12);
- this.label1.TabIndex = 0;
- this.label1.Text = "送检仪器管理";
+ this.label1.Size = new System.Drawing.Size(74, 21);
+ this.label1.TabIndex = 5;
+ this.label1.Text = "客户名称";
//
- // panelEx1
- //
- this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control;
- this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.panelEx1.Controls.Add(this.textBoxDropDown1);
- this.panelEx1.Controls.Add(this.iptDevName);
- this.panelEx1.Controls.Add(this.iptDevType);
- this.panelEx1.Controls.Add(this.btnDelDev);
- this.panelEx1.Controls.Add(this.btnEditDev);
- this.panelEx1.Controls.Add(this.btnAddDev);
- this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty;
- this.panelEx1.Location = new System.Drawing.Point(3, 57);
- this.panelEx1.Name = "panelEx1";
- this.panelEx1.Size = new System.Drawing.Size(994, 59);
- this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center;
- this.panelEx1.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
- this.panelEx1.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
- this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
- this.panelEx1.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
- this.panelEx1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
- this.panelEx1.Style.GradientAngle = 90;
- this.panelEx1.TabIndex = 5;
- //
- // iptDevType
+ // inputCustomName
//
//
//
//
- this.iptDevType.Border.Class = "TextBoxBorder";
- this.iptDevType.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.iptDevType.Location = new System.Drawing.Point(21, 21);
- this.iptDevType.Name = "iptDevType";
- this.iptDevType.PreventEnterBeep = true;
- this.iptDevType.Size = new System.Drawing.Size(100, 21);
- this.iptDevType.TabIndex = 4;
+ this.inputCustomName.Border.Class = "TextBoxBorder";
+ this.inputCustomName.Border.CornerDiameter = 5;
+ this.inputCustomName.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputCustomName.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputCustomName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputCustomName.Location = new System.Drawing.Point(300, 40);
+ this.inputCustomName.Margin = new System.Windows.Forms.Padding(0);
+ this.inputCustomName.Name = "inputCustomName";
+ this.inputCustomName.PreventEnterBeep = true;
+ this.inputCustomName.Size = new System.Drawing.Size(120, 30);
+ this.inputCustomName.TabIndex = 6;
+ this.inputCustomName.Text = "请输入客户名称";
//
- // iptDevName
+ // inputDevNo
//
//
//
//
- this.iptDevName.Border.Class = "TextBoxBorder";
- this.iptDevName.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.iptDevName.Location = new System.Drawing.Point(142, 21);
- this.iptDevName.Name = "iptDevName";
- this.iptDevName.PreventEnterBeep = true;
- this.iptDevName.Size = new System.Drawing.Size(100, 21);
- this.iptDevName.TabIndex = 4;
+ this.inputDevNo.Border.Class = "TextBoxBorder";
+ this.inputDevNo.Border.CornerDiameter = 5;
+ this.inputDevNo.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputDevNo.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputDevNo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputDevNo.Location = new System.Drawing.Point(520, 0);
+ this.inputDevNo.Margin = new System.Windows.Forms.Padding(0);
+ this.inputDevNo.Name = "inputDevNo";
+ this.inputDevNo.PreventEnterBeep = true;
+ this.inputDevNo.Size = new System.Drawing.Size(120, 30);
+ this.inputDevNo.TabIndex = 7;
+ this.inputDevNo.Text = "请输入仪器编号";
//
- // textBoxDropDown1
+ // inputDevType
//
//
//
//
- this.textBoxDropDown1.BackgroundStyle.Class = "TextBoxBorder";
- this.textBoxDropDown1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.textBoxDropDown1.ButtonDropDown.Visible = true;
- this.textBoxDropDown1.Location = new System.Drawing.Point(273, 21);
- this.textBoxDropDown1.Name = "textBoxDropDown1";
- this.textBoxDropDown1.Size = new System.Drawing.Size(122, 20);
- this.textBoxDropDown1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.textBoxDropDown1.TabIndex = 9;
- this.textBoxDropDown1.Text = "";
+ this.inputDevType.Border.Class = "TextBoxBorder";
+ this.inputDevType.Border.CornerDiameter = 5;
+ this.inputDevType.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputDevType.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputDevType.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputDevType.Location = new System.Drawing.Point(300, 0);
+ this.inputDevType.Margin = new System.Windows.Forms.Padding(0);
+ this.inputDevType.Name = "inputDevType";
+ this.inputDevType.PreventEnterBeep = true;
+ this.inputDevType.Size = new System.Drawing.Size(120, 30);
+ this.inputDevType.TabIndex = 8;
+ this.inputDevType.Text = "请输入仪器型号";
//
- // dataGridViewX1
+ // inputDevName
//
- this.dataGridViewX1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dataGridViewX1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.Column1,
- this.Column2,
- this.Column3,
- this.Column4,
- this.Column5,
- this.Column6,
- this.Column7,
- this.Column8,
- this.Column9,
- this.Column10});
- dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.dataGridViewX1.DefaultCellStyle = dataGridViewCellStyle1;
- this.dataGridViewX1.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
- this.dataGridViewX1.Location = new System.Drawing.Point(3, 155);
- this.dataGridViewX1.Name = "dataGridViewX1";
- this.dataGridViewX1.RowTemplate.Height = 23;
- this.dataGridViewX1.Size = new System.Drawing.Size(994, 444);
- this.dataGridViewX1.TabIndex = 9;
//
- // Column1
//
- this.Column1.HeaderText = "登记日期";
- this.Column1.Name = "Column1";
//
- // Column2
+ this.inputDevName.Border.Class = "TextBoxBorder";
+ this.inputDevName.Border.CornerDiameter = 5;
+ this.inputDevName.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputDevName.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputDevName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputDevName.Location = new System.Drawing.Point(80, 0);
+ this.inputDevName.Margin = new System.Windows.Forms.Padding(0);
+ this.inputDevName.Name = "inputDevName";
+ this.inputDevName.PreventEnterBeep = true;
+ this.inputDevName.Size = new System.Drawing.Size(120, 30);
+ this.inputDevName.TabIndex = 9;
+ this.inputDevName.Text = "请输入仪器名称";
//
- this.Column2.HeaderText = "仪器型号";
- this.Column2.Name = "Column2";
+ // label2
//
- // Column3
+ this.label2.AutoSize = true;
+ this.label2.BackColor = System.Drawing.Color.Transparent;
+ this.label2.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.label2.Location = new System.Drawing.Point(440, 45);
+ this.label2.Margin = new System.Windows.Forms.Padding(0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(74, 21);
+ this.label2.TabIndex = 11;
+ this.label2.Text = "仪器状态";
//
- this.Column3.HeaderText = "仪器编号";
- this.Column3.Name = "Column3";
+ // comboBoxEx1
//
- // Column4
+ this.comboBoxEx1.DisplayMember = "Text";
+ this.comboBoxEx1.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
+ this.comboBoxEx1.FormattingEnabled = true;
+ this.comboBoxEx1.ItemHeight = 15;
+ this.comboBoxEx1.Items.AddRange(new object[] {
+ this.All,
+ this.toBeTested,
+ this.testing,
+ this.tested});
+ this.comboBoxEx1.Location = new System.Drawing.Point(520, 45);
+ this.comboBoxEx1.Margin = new System.Windows.Forms.Padding(0);
+ this.comboBoxEx1.Name = "comboBoxEx1";
+ this.comboBoxEx1.Size = new System.Drawing.Size(120, 21);
+ this.comboBoxEx1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.comboBoxEx1.TabIndex = 2;
//
- this.Column4.HeaderText = "客户单位";
- this.Column4.Name = "Column4";
+ // All
//
- // Column5
+ this.All.Text = "全部";
//
- this.Column5.HeaderText = "检测状态";
- this.Column5.Name = "Column5";
+ // toBeTested
//
- // Column6
+ this.toBeTested.Text = "已检";
//
- this.Column6.HeaderText = "频率稳定度";
- this.Column6.Name = "Column6";
+ // testing
//
- // Column7
+ this.testing.Text = "检测中";
//
- this.Column7.HeaderText = "频率准确度";
- this.Column7.Name = "Column7";
+ // tested
//
- // Column8
+ this.tested.Text = "待检";
//
- this.Column8.HeaderText = "开机特性";
- this.Column8.Name = "Column8";
+ // tableDevList
//
- // Column9
+ this.tableDevList.AllowUserToAddRows = false;
+ this.tableDevList.AllowUserToDeleteRows = false;
+ this.tableDevList.AllowUserToResizeColumns = false;
+ this.tableDevList.AllowUserToResizeRows = false;
+ dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238)))));
+ dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ dataGridViewCellStyle1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238)))));
+ dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.tableDevList.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ this.tableDevList.BackgroundColor = System.Drawing.Color.White;
+ this.tableDevList.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ this.tableDevList.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
+ this.tableDevList.ColumnHeadersHeight = 40;
+ this.tableDevList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+ this.tableDevList.Location = new System.Drawing.Point(20, 120);
+ this.tableDevList.Margin = new System.Windows.Forms.Padding(0);
+ this.tableDevList.Name = "tableDevList";
+ this.tableDevList.RowHeadersVisible = false;
+ this.tableDevList.RowHeadersWidth = 30;
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle2.BackColor = System.Drawing.Color.White;
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ dataGridViewCellStyle2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ dataGridViewCellStyle2.NullValue = "-";
+ dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.White;
+ dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.tableDevList.RowsDefaultCellStyle = dataGridViewCellStyle2;
+ this.tableDevList.RowTemplate.Height = 40;
+ this.tableDevList.Size = new System.Drawing.Size(964, 440);
+ this.tableDevList.TabIndex = 2;
//
- this.Column9.HeaderText = "日老化率";
- this.Column9.Name = "Column9";
+ // roundButton5
//
- // Column10
+ this.roundButton5.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton5.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton5.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton5.FlatAppearance.BorderSize = 0;
+ this.roundButton5.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton5.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton5.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton5.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242)))));
+ this.roundButton5.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton5.Location = new System.Drawing.Point(870, 40);
+ this.roundButton5.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton5.Name = "roundButton5";
+ this.roundButton5.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton5.PressForeColor = System.Drawing.Color.White;
+ this.roundButton5.Radius = 5;
+ this.roundButton5.Size = new System.Drawing.Size(75, 30);
+ this.roundButton5.TabIndex = 14;
+ this.roundButton5.Text = "导出";
+ this.roundButton5.UseVisualStyleBackColor = true;
//
- this.Column10.HeaderText = "频率计数器范围及灵敏度";
- this.Column10.Name = "Column10";
+ // roundButton4
//
- // btnDelDev
+ this.roundButton4.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton4.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton4.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton4.FlatAppearance.BorderSize = 0;
+ this.roundButton4.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton4.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton4.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton4.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242)))));
+ this.roundButton4.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton4.Location = new System.Drawing.Point(785, 40);
+ this.roundButton4.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton4.Name = "roundButton4";
+ this.roundButton4.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton4.PressForeColor = System.Drawing.Color.White;
+ this.roundButton4.Radius = 5;
+ this.roundButton4.Size = new System.Drawing.Size(75, 30);
+ this.roundButton4.TabIndex = 13;
+ this.roundButton4.Text = "详情";
+ this.roundButton4.UseVisualStyleBackColor = true;
//
- this.btnDelDev.EnterBackColor = System.Drawing.Color.Blue;
- this.btnDelDev.EnterForeColor = System.Drawing.Color.White;
- this.btnDelDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
- this.btnDelDev.FlatAppearance.BorderSize = 0;
- this.btnDelDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
- this.btnDelDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
- this.btnDelDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.btnDelDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
- this.btnDelDev.HoverForeColor = System.Drawing.Color.White;
- this.btnDelDev.Location = new System.Drawing.Point(639, 15);
- this.btnDelDev.Name = "btnDelDev";
- this.btnDelDev.PressBackColor = System.Drawing.Color.DarkBlue;
- this.btnDelDev.PressForeColor = System.Drawing.Color.White;
- this.btnDelDev.Radius = 18;
- this.btnDelDev.Size = new System.Drawing.Size(75, 28);
- this.btnDelDev.TabIndex = 3;
- this.btnDelDev.Text = "删除";
- this.btnDelDev.UseVisualStyleBackColor = true;
+ // roundButton3
//
- // btnEditDev
+ this.roundButton3.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton3.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton3.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton3.FlatAppearance.BorderSize = 0;
+ this.roundButton3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton3.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton3.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(0)))), ((int)(((byte)(18)))));
+ this.roundButton3.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton3.Location = new System.Drawing.Point(700, 40);
+ this.roundButton3.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton3.Name = "roundButton3";
+ this.roundButton3.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton3.PressForeColor = System.Drawing.Color.White;
+ this.roundButton3.Radius = 5;
+ this.roundButton3.Size = new System.Drawing.Size(75, 30);
+ this.roundButton3.TabIndex = 12;
+ this.roundButton3.Text = "删除";
+ this.roundButton3.UseVisualStyleBackColor = true;
//
- this.btnEditDev.EnterBackColor = System.Drawing.Color.Blue;
- this.btnEditDev.EnterForeColor = System.Drawing.Color.White;
- this.btnEditDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
- this.btnEditDev.FlatAppearance.BorderSize = 0;
- this.btnEditDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
- this.btnEditDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
- this.btnEditDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.btnEditDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
- this.btnEditDev.HoverForeColor = System.Drawing.Color.White;
- this.btnEditDev.Location = new System.Drawing.Point(546, 15);
- this.btnEditDev.Name = "btnEditDev";
- this.btnEditDev.PressBackColor = System.Drawing.Color.DarkBlue;
- this.btnEditDev.PressForeColor = System.Drawing.Color.White;
- this.btnEditDev.Radius = 18;
- this.btnEditDev.Size = new System.Drawing.Size(75, 28);
- this.btnEditDev.TabIndex = 3;
- this.btnEditDev.Text = "编辑";
- this.btnEditDev.UseVisualStyleBackColor = true;
+ // roundButton2
//
- // btnAddDev
+ this.roundButton2.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton2.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton2.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton2.FlatAppearance.BorderSize = 0;
+ this.roundButton2.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton2.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton2.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton2.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));
+ this.roundButton2.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton2.Location = new System.Drawing.Point(870, 0);
+ this.roundButton2.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton2.Name = "roundButton2";
+ this.roundButton2.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton2.PressForeColor = System.Drawing.Color.White;
+ this.roundButton2.Radius = 5;
+ this.roundButton2.Size = new System.Drawing.Size(75, 30);
+ this.roundButton2.TabIndex = 10;
+ this.roundButton2.Text = "修改";
+ this.roundButton2.UseVisualStyleBackColor = true;
//
- this.btnAddDev.EnterBackColor = System.Drawing.Color.Blue;
- this.btnAddDev.EnterForeColor = System.Drawing.Color.White;
- this.btnAddDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
- this.btnAddDev.FlatAppearance.BorderSize = 0;
- this.btnAddDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
- this.btnAddDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
- this.btnAddDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.btnAddDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
- this.btnAddDev.HoverForeColor = System.Drawing.Color.White;
- this.btnAddDev.Location = new System.Drawing.Point(455, 15);
- this.btnAddDev.Name = "btnAddDev";
- this.btnAddDev.PressBackColor = System.Drawing.Color.DarkBlue;
- this.btnAddDev.PressForeColor = System.Drawing.Color.White;
- this.btnAddDev.Radius = 18;
- this.btnAddDev.Size = new System.Drawing.Size(75, 28);
- this.btnAddDev.TabIndex = 3;
- this.btnAddDev.Text = "添加";
- this.btnAddDev.UseVisualStyleBackColor = true;
- this.btnAddDev.Click += new System.EventHandler(this.btnAddDev_Click);
+ // roundButton1
//
- // line1
+ this.roundButton1.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton1.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton1.FlatAppearance.BorderSize = 0;
+ this.roundButton1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton1.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(47)))), ((int)(((byte)(111)))), ((int)(((byte)(198)))));
+ this.roundButton1.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton1.Location = new System.Drawing.Point(785, 0);
+ this.roundButton1.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton1.Name = "roundButton1";
+ this.roundButton1.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton1.PressForeColor = System.Drawing.Color.White;
+ this.roundButton1.Radius = 5;
+ this.roundButton1.Size = new System.Drawing.Size(75, 30);
+ this.roundButton1.TabIndex = 10;
+ this.roundButton1.Text = "添加";
+ this.roundButton1.UseVisualStyleBackColor = true;
//
- this.line1.Location = new System.Drawing.Point(4, 28);
- this.line1.Name = "line1";
- this.line1.Size = new System.Drawing.Size(993, 23);
- this.line1.TabIndex = 10;
- this.line1.Text = "line1";
+ // btnQuery
+ //
+ this.btnQuery.EnterBackColor = System.Drawing.Color.Blue;
+ this.btnQuery.EnterForeColor = System.Drawing.Color.White;
+ this.btnQuery.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.btnQuery.FlatAppearance.BorderSize = 0;
+ this.btnQuery.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.btnQuery.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.btnQuery.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnQuery.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.btnQuery.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
+ this.btnQuery.HoverForeColor = System.Drawing.Color.White;
+ this.btnQuery.Location = new System.Drawing.Point(700, 0);
+ this.btnQuery.Margin = new System.Windows.Forms.Padding(0);
+ this.btnQuery.Name = "btnQuery";
+ this.btnQuery.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.btnQuery.PressForeColor = System.Drawing.Color.White;
+ this.btnQuery.Radius = 5;
+ this.btnQuery.Size = new System.Drawing.Size(75, 30);
+ this.btnQuery.TabIndex = 10;
+ this.btnQuery.Text = "查询";
+ this.btnQuery.UseVisualStyleBackColor = true;
//
// InfoCtrlForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.line1);
- this.Controls.Add(this.dataGridViewX1);
- this.Controls.Add(this.panelEx1);
- this.Controls.Add(this.label1);
+ this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238)))));
+ this.Controls.Add(this.panel1);
this.Margin = new System.Windows.Forms.Padding(0);
this.Name = "InfoCtrlForm";
- this.Size = new System.Drawing.Size(1000, 640);
- this.panelEx1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX1)).EndInit();
+ this.Size = new System.Drawing.Size(1024, 654);
+ this.panel1.ResumeLayout(false);
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.tableDevList)).EndInit();
this.ResumeLayout(false);
- this.PerformLayout();
}
#endregion
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Label labelDevName;
+ private System.Windows.Forms.Panel panel2;
+ private System.Windows.Forms.Label labelDevType;
+ private System.Windows.Forms.Label labelDevNo;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputCustomComp;
+ private System.Windows.Forms.Label labelCustomComp;
private System.Windows.Forms.Label label1;
- private RoundButton btnAddDev;
- private DevComponents.DotNetBar.PanelEx panelEx1;
- private DevComponents.DotNetBar.Controls.TextBoxX iptDevType;
- private DevComponents.DotNetBar.Controls.TextBoxX iptDevName;
- private DevComponents.DotNetBar.Controls.TextBoxDropDown textBoxDropDown1;
- private RoundButton btnDelDev;
- private RoundButton btnEditDev;
- private DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX1;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
- private DevComponents.DotNetBar.Controls.Line line1;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputCustomName;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputDevNo;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputDevType;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputDevName;
+ private RoundButton btnQuery;
+ private System.Windows.Forms.Label label2;
+ private DevComponents.DotNetBar.Controls.ComboBoxEx comboBoxEx1;
+ private DevComponents.Editors.ComboItem All;
+ private DevComponents.Editors.ComboItem toBeTested;
+ private DevComponents.Editors.ComboItem testing;
+ private DevComponents.Editors.ComboItem tested;
+ private RoundButton roundButton2;
+ private RoundButton roundButton1;
+ private RoundButton roundButton3;
+ private RoundButton roundButton4;
+ private RoundButton roundButton5;
+ private System.Windows.Forms.DataGridView tableDevList;
}
}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.cs b/RbFreqStandMeasure/info/InfoCtrlForm.cs
index 8df7e6c..bea9626 100644
--- a/RbFreqStandMeasure/info/InfoCtrlForm.cs
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.cs
@@ -11,16 +11,197 @@
{
public partial class InfoCtrlForm : UserControl
{
+ private DataTable devList = null;
+
+ #region 样式常量定影
+ private readonly Color titleBackColor = Color.FromArgb(232, 234, 238); // #e8eaee
+ private readonly Color tableForeColor = Color.FromArgb(51, 51, 51); // #333333
+ private readonly Font titleFont = new Font("微软雅黑", 14F, FontStyle.Regular, GraphicsUnit.Pixel, 134);
+ #endregion
+
public InfoCtrlForm()
{
InitializeComponent();
+
+ // 初始化表格并加载数据
+ InitTableDevList();
+ LoadDevList();
}
- // 送检仪器登记页面
- private void btnAddDev_Click(object sender, EventArgs e)
+ private void InitTableDevList()
{
- AddDevDlg addDev = new AddDevDlg();
- addDev.ShowDialog();
+ tableDevList.Columns.Clear();
+ tableDevList.Rows.Clear();
+
+ // 添加标题栏
+ Panel tableHeader = new Panel
+ {
+ BackColor = tableForeColor,
+ Size = new Size(964, 40),
+ Location = new Point(0, 0)
+ };
+ tableHeader.BackColor = titleBackColor;
+ tableDevList.Controls.Add(tableHeader);
+
+ // 序号
+ Label colNo = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "序号",
+ Location = new Point(0, 0),
+ Size = new Size(80, 40)
+ };
+ tableDevList.Controls.Add(colNo);
+ colNo.BringToFront();
+
+ // 登记时间
+ Label colRegTime = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "登记时间",
+ Location = new Point(80, 0),
+ Size = new Size(164, 40)
+ };
+ tableDevList.Controls.Add(colRegTime);
+ colRegTime.BringToFront();
+
+ // 仪器名称
+ Label colDevName = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "仪器名称",
+ Location = new Point(244, 0),
+ Size = new Size(120, 40)
+ };
+ tableDevList.Controls.Add(colDevName);
+ colDevName.BringToFront();
+
+ // 仪器型号
+ Label colDevType = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "仪器类型",
+ Location = new Point(354, 0),
+ Size = new Size(120, 40)
+ };
+ tableDevList.Controls.Add(colDevType);
+ colDevType.BringToFront();
+
+ // 仪器编号
+ Label colDevNo = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "仪器编号",
+ Location = new Point(484, 0),
+ Size = new Size(120, 40)
+ };
+ tableDevList.Controls.Add(colDevNo);
+ colDevNo.BringToFront();
+
+ // 客户名称
+ Label colCustomName = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "客户名称",
+ Location = new Point(604, 0),
+ Size = new Size(120, 40)
+ };
+ tableDevList.Controls.Add(colCustomName);
+ colCustomName.BringToFront();
+
+ // 设备状态
+ Label colDevStatus = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "设备状态",
+ Location = new Point(724, 0),
+ Size = new Size(120, 40)
+ };
+ tableDevList.Controls.Add(colDevStatus);
+ colDevStatus.BringToFront();
+
+ // 通道号
+ Label colChannelNo = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "通道号",
+ Location = new Point(844, 0),
+ Size = new Size(120, 40)
+ };
+ tableDevList.Controls.Add(colChannelNo);
+ colChannelNo.BringToFront();
+ }
+
+ private void LoadDevList()
+ {
+ devList = new DataTable();
+
+ devList.Columns.Add("index", Type.GetType("System.String"));
+ devList.Columns.Add("regTime", Type.GetType("System.DateTime"));
+ devList.Columns.Add("devName", Type.GetType("System.String"));
+ devList.Columns.Add("devType", Type.GetType("System.String"));
+ devList.Columns.Add("devNo", Type.GetType("System.String"));
+ devList.Columns.Add("customName", Type.GetType("System.String"));
+ devList.Columns.Add("status", Type.GetType("System.String"));
+ devList.Columns.Add("channelNo", Type.GetType("System.String"));
+
+ devList.Rows.Add("1", DateTime.Now, "SF2001-1", "通用计数器", "00001", "李涛", "检测中", "1");
+ devList.Rows.Add("2", DateTime.Now, "SF2001-2", "通用计数器", "00002", "李涛", "检完", "");
+ devList.Rows.Add("3", DateTime.Now, "SF2001-3", "通用计数器", "00003", "李涛", "检完", "");
+ devList.Rows.Add("4", DateTime.Now, "SF2001-4", "通用计数器", "00004", "李涛", "待检", "");
+
+ tableDevList.DataSource = devList;
+
+ // width=964px
+ tableDevList.Columns[0].Width = 80;
+ tableDevList.Columns[1].Width = 164;
+ tableDevList.Columns[2].Width = 120;
+ tableDevList.Columns[3].Width = 120;
+ tableDevList.Columns[4].Width = 120;
+ tableDevList.Columns[5].Width = 120;
+ tableDevList.Columns[6].Width = 120;
+ tableDevList.Columns[7].Width = 120;
+
+ tableDevList.Columns[0].ReadOnly = true;
+ tableDevList.Columns[1].ReadOnly = true;
+ tableDevList.Columns[2].ReadOnly = true;
+ tableDevList.Columns[3].ReadOnly = true;
+ tableDevList.Columns[4].ReadOnly = true;
+ tableDevList.Columns[5].ReadOnly = true;
+ tableDevList.Columns[6].ReadOnly = true;
+ tableDevList.Columns[7].ReadOnly = true;
}
}
}
diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs
index 514b595..a64834e 100644
--- a/RbFreqStandMeasure/Properties/Resources.Designer.cs
+++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs
@@ -83,6 +83,16 @@
///
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
///
+ internal static System.Drawing.Bitmap bg_dev_list {
+ get {
+ object obj = ResourceManager.GetObject("bg_dev_list", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
internal static System.Drawing.Bitmap bg_dev_tested {
get {
object obj = ResourceManager.GetObject("bg_dev_tested", resourceCulture);
diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx
index 49bcc21..e13b334 100644
--- a/RbFreqStandMeasure/Properties/Resources.resx
+++ b/RbFreqStandMeasure/Properties/Resources.resx
@@ -118,11 +118,8 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
-
- ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -133,8 +130,11 @@
..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -151,8 +151,11 @@
..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -163,8 +166,8 @@
..\res\images\bg_banner.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -178,19 +181,19 @@
..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
-
- ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\bg_dev_list.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 6665ea0..a948f74 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -304,6 +304,9 @@
+
+
+
diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs
index bcd9479..ceb9056 100644
--- a/RbFreqStandMeasure/home/HomeCtrlForm.cs
+++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs
@@ -28,14 +28,14 @@
private void HomeCtrlForm_Load(object sender, EventArgs e)
{
// 初始化表格标题栏
- this.InitTableDevList();
+ InitTableDevList();
// 加载待检测列表
- this.LoadDevToBeTested();
+ LoadDevToBeTested();
// 初始化各通道样式
- this.InitTableChannel();
- this.LoadChannelStatus();
+ InitTableChannel();
+ LoadChannelStatus();
}
private void InitTableDevList()
@@ -434,8 +434,8 @@
private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
- int rowIndex = this.tableToBeTested.CurrentCell.RowIndex;
- int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex;
+ int rowIndex = tableToBeTested.CurrentCell.RowIndex;
+ int colIndex = tableToBeTested.CurrentCell.ColumnIndex;
if (colIndex == 6)
{
SetDevTestDlg devTestDlg = new SetDevTestDlg();
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
index 8bdbee9..c512020 100644
--- a/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
@@ -30,293 +30,494 @@
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.labelDevNo = new System.Windows.Forms.Label();
+ this.labelDevType = new System.Windows.Forms.Label();
+ this.inputCustomComp = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.labelCustomComp = new System.Windows.Forms.Label();
+ this.labelDevName = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
- this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
- this.iptDevType = new DevComponents.DotNetBar.Controls.TextBoxX();
- this.iptDevName = new DevComponents.DotNetBar.Controls.TextBoxX();
- this.textBoxDropDown1 = new DevComponents.DotNetBar.Controls.TextBoxDropDown();
- this.dataGridViewX1 = new DevComponents.DotNetBar.Controls.DataGridViewX();
- this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.btnDelDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
- this.btnEditDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
- this.btnAddDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
- this.line1 = new DevComponents.DotNetBar.Controls.Line();
- this.panelEx1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX1)).BeginInit();
+ this.inputCustomName = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.inputDevNo = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.inputDevType = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.inputDevName = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.label2 = new System.Windows.Forms.Label();
+ this.comboBoxEx1 = new DevComponents.DotNetBar.Controls.ComboBoxEx();
+ this.All = new DevComponents.Editors.ComboItem();
+ this.toBeTested = new DevComponents.Editors.ComboItem();
+ this.testing = new DevComponents.Editors.ComboItem();
+ this.tested = new DevComponents.Editors.ComboItem();
+ this.tableDevList = new System.Windows.Forms.DataGridView();
+ this.roundButton5 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.roundButton4 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.roundButton3 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.roundButton2 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.roundButton1 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.btnQuery = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.panel1.SuspendLayout();
+ this.panel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.tableDevList)).BeginInit();
this.SuspendLayout();
//
+ // panel1
+ //
+ this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_list;
+ this.panel1.Controls.Add(this.tableDevList);
+ this.panel1.Controls.Add(this.panel2);
+ this.panel1.Location = new System.Drawing.Point(10, 5);
+ this.panel1.Margin = new System.Windows.Forms.Padding(0);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(1004, 642);
+ this.panel1.TabIndex = 14;
+ //
+ // panel2
+ //
+ this.panel2.BackColor = System.Drawing.Color.Transparent;
+ this.panel2.Controls.Add(this.roundButton5);
+ this.panel2.Controls.Add(this.roundButton4);
+ this.panel2.Controls.Add(this.roundButton3);
+ this.panel2.Controls.Add(this.comboBoxEx1);
+ this.panel2.Controls.Add(this.label2);
+ this.panel2.Controls.Add(this.roundButton2);
+ this.panel2.Controls.Add(this.roundButton1);
+ this.panel2.Controls.Add(this.btnQuery);
+ this.panel2.Controls.Add(this.inputDevName);
+ this.panel2.Controls.Add(this.inputDevType);
+ this.panel2.Controls.Add(this.inputDevNo);
+ this.panel2.Controls.Add(this.inputCustomName);
+ this.panel2.Controls.Add(this.label1);
+ this.panel2.Controls.Add(this.labelDevNo);
+ this.panel2.Controls.Add(this.labelDevType);
+ this.panel2.Controls.Add(this.inputCustomComp);
+ this.panel2.Controls.Add(this.labelCustomComp);
+ this.panel2.Controls.Add(this.labelDevName);
+ this.panel2.Location = new System.Drawing.Point(20, 20);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(964, 80);
+ this.panel2.TabIndex = 1;
+ //
+ // labelDevNo
+ //
+ this.labelDevNo.AutoSize = true;
+ this.labelDevNo.BackColor = System.Drawing.Color.Transparent;
+ this.labelDevNo.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.labelDevNo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.labelDevNo.Location = new System.Drawing.Point(440, 5);
+ this.labelDevNo.Margin = new System.Windows.Forms.Padding(0);
+ this.labelDevNo.Name = "labelDevNo";
+ this.labelDevNo.Size = new System.Drawing.Size(74, 21);
+ this.labelDevNo.TabIndex = 4;
+ this.labelDevNo.Text = "仪器编号";
+ //
+ // labelDevType
+ //
+ this.labelDevType.AutoSize = true;
+ this.labelDevType.BackColor = System.Drawing.Color.Transparent;
+ this.labelDevType.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.labelDevType.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.labelDevType.Location = new System.Drawing.Point(220, 5);
+ this.labelDevType.Margin = new System.Windows.Forms.Padding(0);
+ this.labelDevType.Name = "labelDevType";
+ this.labelDevType.Size = new System.Drawing.Size(74, 21);
+ this.labelDevType.TabIndex = 4;
+ this.labelDevType.Text = "仪器型号";
+ //
+ // inputCustomComp
+ //
+ //
+ //
+ //
+ this.inputCustomComp.Border.Class = "TextBoxBorder";
+ this.inputCustomComp.Border.CornerDiameter = 5;
+ this.inputCustomComp.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputCustomComp.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputCustomComp.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputCustomComp.Location = new System.Drawing.Point(80, 40);
+ this.inputCustomComp.Margin = new System.Windows.Forms.Padding(0);
+ this.inputCustomComp.Name = "inputCustomComp";
+ this.inputCustomComp.PreventEnterBeep = true;
+ this.inputCustomComp.Size = new System.Drawing.Size(120, 30);
+ this.inputCustomComp.TabIndex = 3;
+ this.inputCustomComp.Text = "请输入单位名称";
+ //
+ // labelCustomComp
+ //
+ this.labelCustomComp.AutoSize = true;
+ this.labelCustomComp.BackColor = System.Drawing.Color.Transparent;
+ this.labelCustomComp.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.labelCustomComp.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.labelCustomComp.Location = new System.Drawing.Point(0, 45);
+ this.labelCustomComp.Margin = new System.Windows.Forms.Padding(0);
+ this.labelCustomComp.Name = "labelCustomComp";
+ this.labelCustomComp.Size = new System.Drawing.Size(74, 21);
+ this.labelCustomComp.TabIndex = 0;
+ this.labelCustomComp.Text = "客户单位";
+ //
+ // labelDevName
+ //
+ this.labelDevName.AutoSize = true;
+ this.labelDevName.BackColor = System.Drawing.Color.Transparent;
+ this.labelDevName.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.labelDevName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.labelDevName.Location = new System.Drawing.Point(0, 5);
+ this.labelDevName.Margin = new System.Windows.Forms.Padding(0);
+ this.labelDevName.Name = "labelDevName";
+ this.labelDevName.Size = new System.Drawing.Size(74, 21);
+ this.labelDevName.TabIndex = 0;
+ this.labelDevName.Text = "仪器名称";
+ //
// label1
//
this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(21, 12);
+ this.label1.BackColor = System.Drawing.Color.Transparent;
+ this.label1.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.label1.Location = new System.Drawing.Point(220, 45);
+ this.label1.Margin = new System.Windows.Forms.Padding(0);
this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(77, 12);
- this.label1.TabIndex = 0;
- this.label1.Text = "送检仪器管理";
+ this.label1.Size = new System.Drawing.Size(74, 21);
+ this.label1.TabIndex = 5;
+ this.label1.Text = "客户名称";
//
- // panelEx1
- //
- this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control;
- this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.panelEx1.Controls.Add(this.textBoxDropDown1);
- this.panelEx1.Controls.Add(this.iptDevName);
- this.panelEx1.Controls.Add(this.iptDevType);
- this.panelEx1.Controls.Add(this.btnDelDev);
- this.panelEx1.Controls.Add(this.btnEditDev);
- this.panelEx1.Controls.Add(this.btnAddDev);
- this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty;
- this.panelEx1.Location = new System.Drawing.Point(3, 57);
- this.panelEx1.Name = "panelEx1";
- this.panelEx1.Size = new System.Drawing.Size(994, 59);
- this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center;
- this.panelEx1.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
- this.panelEx1.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
- this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
- this.panelEx1.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
- this.panelEx1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
- this.panelEx1.Style.GradientAngle = 90;
- this.panelEx1.TabIndex = 5;
- //
- // iptDevType
+ // inputCustomName
//
//
//
//
- this.iptDevType.Border.Class = "TextBoxBorder";
- this.iptDevType.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.iptDevType.Location = new System.Drawing.Point(21, 21);
- this.iptDevType.Name = "iptDevType";
- this.iptDevType.PreventEnterBeep = true;
- this.iptDevType.Size = new System.Drawing.Size(100, 21);
- this.iptDevType.TabIndex = 4;
+ this.inputCustomName.Border.Class = "TextBoxBorder";
+ this.inputCustomName.Border.CornerDiameter = 5;
+ this.inputCustomName.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputCustomName.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputCustomName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputCustomName.Location = new System.Drawing.Point(300, 40);
+ this.inputCustomName.Margin = new System.Windows.Forms.Padding(0);
+ this.inputCustomName.Name = "inputCustomName";
+ this.inputCustomName.PreventEnterBeep = true;
+ this.inputCustomName.Size = new System.Drawing.Size(120, 30);
+ this.inputCustomName.TabIndex = 6;
+ this.inputCustomName.Text = "请输入客户名称";
//
- // iptDevName
+ // inputDevNo
//
//
//
//
- this.iptDevName.Border.Class = "TextBoxBorder";
- this.iptDevName.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.iptDevName.Location = new System.Drawing.Point(142, 21);
- this.iptDevName.Name = "iptDevName";
- this.iptDevName.PreventEnterBeep = true;
- this.iptDevName.Size = new System.Drawing.Size(100, 21);
- this.iptDevName.TabIndex = 4;
+ this.inputDevNo.Border.Class = "TextBoxBorder";
+ this.inputDevNo.Border.CornerDiameter = 5;
+ this.inputDevNo.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputDevNo.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputDevNo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputDevNo.Location = new System.Drawing.Point(520, 0);
+ this.inputDevNo.Margin = new System.Windows.Forms.Padding(0);
+ this.inputDevNo.Name = "inputDevNo";
+ this.inputDevNo.PreventEnterBeep = true;
+ this.inputDevNo.Size = new System.Drawing.Size(120, 30);
+ this.inputDevNo.TabIndex = 7;
+ this.inputDevNo.Text = "请输入仪器编号";
//
- // textBoxDropDown1
+ // inputDevType
//
//
//
//
- this.textBoxDropDown1.BackgroundStyle.Class = "TextBoxBorder";
- this.textBoxDropDown1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.textBoxDropDown1.ButtonDropDown.Visible = true;
- this.textBoxDropDown1.Location = new System.Drawing.Point(273, 21);
- this.textBoxDropDown1.Name = "textBoxDropDown1";
- this.textBoxDropDown1.Size = new System.Drawing.Size(122, 20);
- this.textBoxDropDown1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.textBoxDropDown1.TabIndex = 9;
- this.textBoxDropDown1.Text = "";
+ this.inputDevType.Border.Class = "TextBoxBorder";
+ this.inputDevType.Border.CornerDiameter = 5;
+ this.inputDevType.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputDevType.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputDevType.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputDevType.Location = new System.Drawing.Point(300, 0);
+ this.inputDevType.Margin = new System.Windows.Forms.Padding(0);
+ this.inputDevType.Name = "inputDevType";
+ this.inputDevType.PreventEnterBeep = true;
+ this.inputDevType.Size = new System.Drawing.Size(120, 30);
+ this.inputDevType.TabIndex = 8;
+ this.inputDevType.Text = "请输入仪器型号";
//
- // dataGridViewX1
+ // inputDevName
//
- this.dataGridViewX1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dataGridViewX1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.Column1,
- this.Column2,
- this.Column3,
- this.Column4,
- this.Column5,
- this.Column6,
- this.Column7,
- this.Column8,
- this.Column9,
- this.Column10});
- dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.dataGridViewX1.DefaultCellStyle = dataGridViewCellStyle1;
- this.dataGridViewX1.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
- this.dataGridViewX1.Location = new System.Drawing.Point(3, 155);
- this.dataGridViewX1.Name = "dataGridViewX1";
- this.dataGridViewX1.RowTemplate.Height = 23;
- this.dataGridViewX1.Size = new System.Drawing.Size(994, 444);
- this.dataGridViewX1.TabIndex = 9;
//
- // Column1
//
- this.Column1.HeaderText = "登记日期";
- this.Column1.Name = "Column1";
//
- // Column2
+ this.inputDevName.Border.Class = "TextBoxBorder";
+ this.inputDevName.Border.CornerDiameter = 5;
+ this.inputDevName.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputDevName.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputDevName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputDevName.Location = new System.Drawing.Point(80, 0);
+ this.inputDevName.Margin = new System.Windows.Forms.Padding(0);
+ this.inputDevName.Name = "inputDevName";
+ this.inputDevName.PreventEnterBeep = true;
+ this.inputDevName.Size = new System.Drawing.Size(120, 30);
+ this.inputDevName.TabIndex = 9;
+ this.inputDevName.Text = "请输入仪器名称";
//
- this.Column2.HeaderText = "仪器型号";
- this.Column2.Name = "Column2";
+ // label2
//
- // Column3
+ this.label2.AutoSize = true;
+ this.label2.BackColor = System.Drawing.Color.Transparent;
+ this.label2.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.label2.Location = new System.Drawing.Point(440, 45);
+ this.label2.Margin = new System.Windows.Forms.Padding(0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(74, 21);
+ this.label2.TabIndex = 11;
+ this.label2.Text = "仪器状态";
//
- this.Column3.HeaderText = "仪器编号";
- this.Column3.Name = "Column3";
+ // comboBoxEx1
//
- // Column4
+ this.comboBoxEx1.DisplayMember = "Text";
+ this.comboBoxEx1.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
+ this.comboBoxEx1.FormattingEnabled = true;
+ this.comboBoxEx1.ItemHeight = 15;
+ this.comboBoxEx1.Items.AddRange(new object[] {
+ this.All,
+ this.toBeTested,
+ this.testing,
+ this.tested});
+ this.comboBoxEx1.Location = new System.Drawing.Point(520, 45);
+ this.comboBoxEx1.Margin = new System.Windows.Forms.Padding(0);
+ this.comboBoxEx1.Name = "comboBoxEx1";
+ this.comboBoxEx1.Size = new System.Drawing.Size(120, 21);
+ this.comboBoxEx1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.comboBoxEx1.TabIndex = 2;
//
- this.Column4.HeaderText = "客户单位";
- this.Column4.Name = "Column4";
+ // All
//
- // Column5
+ this.All.Text = "全部";
//
- this.Column5.HeaderText = "检测状态";
- this.Column5.Name = "Column5";
+ // toBeTested
//
- // Column6
+ this.toBeTested.Text = "已检";
//
- this.Column6.HeaderText = "频率稳定度";
- this.Column6.Name = "Column6";
+ // testing
//
- // Column7
+ this.testing.Text = "检测中";
//
- this.Column7.HeaderText = "频率准确度";
- this.Column7.Name = "Column7";
+ // tested
//
- // Column8
+ this.tested.Text = "待检";
//
- this.Column8.HeaderText = "开机特性";
- this.Column8.Name = "Column8";
+ // tableDevList
//
- // Column9
+ this.tableDevList.AllowUserToAddRows = false;
+ this.tableDevList.AllowUserToDeleteRows = false;
+ this.tableDevList.AllowUserToResizeColumns = false;
+ this.tableDevList.AllowUserToResizeRows = false;
+ dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238)))));
+ dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ dataGridViewCellStyle1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238)))));
+ dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.tableDevList.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ this.tableDevList.BackgroundColor = System.Drawing.Color.White;
+ this.tableDevList.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ this.tableDevList.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
+ this.tableDevList.ColumnHeadersHeight = 40;
+ this.tableDevList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+ this.tableDevList.Location = new System.Drawing.Point(20, 120);
+ this.tableDevList.Margin = new System.Windows.Forms.Padding(0);
+ this.tableDevList.Name = "tableDevList";
+ this.tableDevList.RowHeadersVisible = false;
+ this.tableDevList.RowHeadersWidth = 30;
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle2.BackColor = System.Drawing.Color.White;
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ dataGridViewCellStyle2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ dataGridViewCellStyle2.NullValue = "-";
+ dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.White;
+ dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.tableDevList.RowsDefaultCellStyle = dataGridViewCellStyle2;
+ this.tableDevList.RowTemplate.Height = 40;
+ this.tableDevList.Size = new System.Drawing.Size(964, 440);
+ this.tableDevList.TabIndex = 2;
//
- this.Column9.HeaderText = "日老化率";
- this.Column9.Name = "Column9";
+ // roundButton5
//
- // Column10
+ this.roundButton5.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton5.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton5.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton5.FlatAppearance.BorderSize = 0;
+ this.roundButton5.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton5.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton5.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton5.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242)))));
+ this.roundButton5.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton5.Location = new System.Drawing.Point(870, 40);
+ this.roundButton5.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton5.Name = "roundButton5";
+ this.roundButton5.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton5.PressForeColor = System.Drawing.Color.White;
+ this.roundButton5.Radius = 5;
+ this.roundButton5.Size = new System.Drawing.Size(75, 30);
+ this.roundButton5.TabIndex = 14;
+ this.roundButton5.Text = "导出";
+ this.roundButton5.UseVisualStyleBackColor = true;
//
- this.Column10.HeaderText = "频率计数器范围及灵敏度";
- this.Column10.Name = "Column10";
+ // roundButton4
//
- // btnDelDev
+ this.roundButton4.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton4.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton4.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton4.FlatAppearance.BorderSize = 0;
+ this.roundButton4.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton4.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton4.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton4.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242)))));
+ this.roundButton4.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton4.Location = new System.Drawing.Point(785, 40);
+ this.roundButton4.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton4.Name = "roundButton4";
+ this.roundButton4.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton4.PressForeColor = System.Drawing.Color.White;
+ this.roundButton4.Radius = 5;
+ this.roundButton4.Size = new System.Drawing.Size(75, 30);
+ this.roundButton4.TabIndex = 13;
+ this.roundButton4.Text = "详情";
+ this.roundButton4.UseVisualStyleBackColor = true;
//
- this.btnDelDev.EnterBackColor = System.Drawing.Color.Blue;
- this.btnDelDev.EnterForeColor = System.Drawing.Color.White;
- this.btnDelDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
- this.btnDelDev.FlatAppearance.BorderSize = 0;
- this.btnDelDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
- this.btnDelDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
- this.btnDelDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.btnDelDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
- this.btnDelDev.HoverForeColor = System.Drawing.Color.White;
- this.btnDelDev.Location = new System.Drawing.Point(639, 15);
- this.btnDelDev.Name = "btnDelDev";
- this.btnDelDev.PressBackColor = System.Drawing.Color.DarkBlue;
- this.btnDelDev.PressForeColor = System.Drawing.Color.White;
- this.btnDelDev.Radius = 18;
- this.btnDelDev.Size = new System.Drawing.Size(75, 28);
- this.btnDelDev.TabIndex = 3;
- this.btnDelDev.Text = "删除";
- this.btnDelDev.UseVisualStyleBackColor = true;
+ // roundButton3
//
- // btnEditDev
+ this.roundButton3.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton3.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton3.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton3.FlatAppearance.BorderSize = 0;
+ this.roundButton3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton3.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton3.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(0)))), ((int)(((byte)(18)))));
+ this.roundButton3.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton3.Location = new System.Drawing.Point(700, 40);
+ this.roundButton3.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton3.Name = "roundButton3";
+ this.roundButton3.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton3.PressForeColor = System.Drawing.Color.White;
+ this.roundButton3.Radius = 5;
+ this.roundButton3.Size = new System.Drawing.Size(75, 30);
+ this.roundButton3.TabIndex = 12;
+ this.roundButton3.Text = "删除";
+ this.roundButton3.UseVisualStyleBackColor = true;
//
- this.btnEditDev.EnterBackColor = System.Drawing.Color.Blue;
- this.btnEditDev.EnterForeColor = System.Drawing.Color.White;
- this.btnEditDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
- this.btnEditDev.FlatAppearance.BorderSize = 0;
- this.btnEditDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
- this.btnEditDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
- this.btnEditDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.btnEditDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
- this.btnEditDev.HoverForeColor = System.Drawing.Color.White;
- this.btnEditDev.Location = new System.Drawing.Point(546, 15);
- this.btnEditDev.Name = "btnEditDev";
- this.btnEditDev.PressBackColor = System.Drawing.Color.DarkBlue;
- this.btnEditDev.PressForeColor = System.Drawing.Color.White;
- this.btnEditDev.Radius = 18;
- this.btnEditDev.Size = new System.Drawing.Size(75, 28);
- this.btnEditDev.TabIndex = 3;
- this.btnEditDev.Text = "编辑";
- this.btnEditDev.UseVisualStyleBackColor = true;
+ // roundButton2
//
- // btnAddDev
+ this.roundButton2.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton2.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton2.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton2.FlatAppearance.BorderSize = 0;
+ this.roundButton2.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton2.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton2.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton2.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));
+ this.roundButton2.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton2.Location = new System.Drawing.Point(870, 0);
+ this.roundButton2.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton2.Name = "roundButton2";
+ this.roundButton2.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton2.PressForeColor = System.Drawing.Color.White;
+ this.roundButton2.Radius = 5;
+ this.roundButton2.Size = new System.Drawing.Size(75, 30);
+ this.roundButton2.TabIndex = 10;
+ this.roundButton2.Text = "修改";
+ this.roundButton2.UseVisualStyleBackColor = true;
//
- this.btnAddDev.EnterBackColor = System.Drawing.Color.Blue;
- this.btnAddDev.EnterForeColor = System.Drawing.Color.White;
- this.btnAddDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
- this.btnAddDev.FlatAppearance.BorderSize = 0;
- this.btnAddDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
- this.btnAddDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
- this.btnAddDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.btnAddDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
- this.btnAddDev.HoverForeColor = System.Drawing.Color.White;
- this.btnAddDev.Location = new System.Drawing.Point(455, 15);
- this.btnAddDev.Name = "btnAddDev";
- this.btnAddDev.PressBackColor = System.Drawing.Color.DarkBlue;
- this.btnAddDev.PressForeColor = System.Drawing.Color.White;
- this.btnAddDev.Radius = 18;
- this.btnAddDev.Size = new System.Drawing.Size(75, 28);
- this.btnAddDev.TabIndex = 3;
- this.btnAddDev.Text = "添加";
- this.btnAddDev.UseVisualStyleBackColor = true;
- this.btnAddDev.Click += new System.EventHandler(this.btnAddDev_Click);
+ // roundButton1
//
- // line1
+ this.roundButton1.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton1.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton1.FlatAppearance.BorderSize = 0;
+ this.roundButton1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton1.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(47)))), ((int)(((byte)(111)))), ((int)(((byte)(198)))));
+ this.roundButton1.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton1.Location = new System.Drawing.Point(785, 0);
+ this.roundButton1.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton1.Name = "roundButton1";
+ this.roundButton1.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton1.PressForeColor = System.Drawing.Color.White;
+ this.roundButton1.Radius = 5;
+ this.roundButton1.Size = new System.Drawing.Size(75, 30);
+ this.roundButton1.TabIndex = 10;
+ this.roundButton1.Text = "添加";
+ this.roundButton1.UseVisualStyleBackColor = true;
//
- this.line1.Location = new System.Drawing.Point(4, 28);
- this.line1.Name = "line1";
- this.line1.Size = new System.Drawing.Size(993, 23);
- this.line1.TabIndex = 10;
- this.line1.Text = "line1";
+ // btnQuery
+ //
+ this.btnQuery.EnterBackColor = System.Drawing.Color.Blue;
+ this.btnQuery.EnterForeColor = System.Drawing.Color.White;
+ this.btnQuery.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.btnQuery.FlatAppearance.BorderSize = 0;
+ this.btnQuery.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.btnQuery.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.btnQuery.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnQuery.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.btnQuery.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
+ this.btnQuery.HoverForeColor = System.Drawing.Color.White;
+ this.btnQuery.Location = new System.Drawing.Point(700, 0);
+ this.btnQuery.Margin = new System.Windows.Forms.Padding(0);
+ this.btnQuery.Name = "btnQuery";
+ this.btnQuery.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.btnQuery.PressForeColor = System.Drawing.Color.White;
+ this.btnQuery.Radius = 5;
+ this.btnQuery.Size = new System.Drawing.Size(75, 30);
+ this.btnQuery.TabIndex = 10;
+ this.btnQuery.Text = "查询";
+ this.btnQuery.UseVisualStyleBackColor = true;
//
// InfoCtrlForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.line1);
- this.Controls.Add(this.dataGridViewX1);
- this.Controls.Add(this.panelEx1);
- this.Controls.Add(this.label1);
+ this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238)))));
+ this.Controls.Add(this.panel1);
this.Margin = new System.Windows.Forms.Padding(0);
this.Name = "InfoCtrlForm";
- this.Size = new System.Drawing.Size(1000, 640);
- this.panelEx1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX1)).EndInit();
+ this.Size = new System.Drawing.Size(1024, 654);
+ this.panel1.ResumeLayout(false);
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.tableDevList)).EndInit();
this.ResumeLayout(false);
- this.PerformLayout();
}
#endregion
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Label labelDevName;
+ private System.Windows.Forms.Panel panel2;
+ private System.Windows.Forms.Label labelDevType;
+ private System.Windows.Forms.Label labelDevNo;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputCustomComp;
+ private System.Windows.Forms.Label labelCustomComp;
private System.Windows.Forms.Label label1;
- private RoundButton btnAddDev;
- private DevComponents.DotNetBar.PanelEx panelEx1;
- private DevComponents.DotNetBar.Controls.TextBoxX iptDevType;
- private DevComponents.DotNetBar.Controls.TextBoxX iptDevName;
- private DevComponents.DotNetBar.Controls.TextBoxDropDown textBoxDropDown1;
- private RoundButton btnDelDev;
- private RoundButton btnEditDev;
- private DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX1;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
- private DevComponents.DotNetBar.Controls.Line line1;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputCustomName;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputDevNo;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputDevType;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputDevName;
+ private RoundButton btnQuery;
+ private System.Windows.Forms.Label label2;
+ private DevComponents.DotNetBar.Controls.ComboBoxEx comboBoxEx1;
+ private DevComponents.Editors.ComboItem All;
+ private DevComponents.Editors.ComboItem toBeTested;
+ private DevComponents.Editors.ComboItem testing;
+ private DevComponents.Editors.ComboItem tested;
+ private RoundButton roundButton2;
+ private RoundButton roundButton1;
+ private RoundButton roundButton3;
+ private RoundButton roundButton4;
+ private RoundButton roundButton5;
+ private System.Windows.Forms.DataGridView tableDevList;
}
}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.cs b/RbFreqStandMeasure/info/InfoCtrlForm.cs
index 8df7e6c..bea9626 100644
--- a/RbFreqStandMeasure/info/InfoCtrlForm.cs
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.cs
@@ -11,16 +11,197 @@
{
public partial class InfoCtrlForm : UserControl
{
+ private DataTable devList = null;
+
+ #region 样式常量定影
+ private readonly Color titleBackColor = Color.FromArgb(232, 234, 238); // #e8eaee
+ private readonly Color tableForeColor = Color.FromArgb(51, 51, 51); // #333333
+ private readonly Font titleFont = new Font("微软雅黑", 14F, FontStyle.Regular, GraphicsUnit.Pixel, 134);
+ #endregion
+
public InfoCtrlForm()
{
InitializeComponent();
+
+ // 初始化表格并加载数据
+ InitTableDevList();
+ LoadDevList();
}
- // 送检仪器登记页面
- private void btnAddDev_Click(object sender, EventArgs e)
+ private void InitTableDevList()
{
- AddDevDlg addDev = new AddDevDlg();
- addDev.ShowDialog();
+ tableDevList.Columns.Clear();
+ tableDevList.Rows.Clear();
+
+ // 添加标题栏
+ Panel tableHeader = new Panel
+ {
+ BackColor = tableForeColor,
+ Size = new Size(964, 40),
+ Location = new Point(0, 0)
+ };
+ tableHeader.BackColor = titleBackColor;
+ tableDevList.Controls.Add(tableHeader);
+
+ // 序号
+ Label colNo = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "序号",
+ Location = new Point(0, 0),
+ Size = new Size(80, 40)
+ };
+ tableDevList.Controls.Add(colNo);
+ colNo.BringToFront();
+
+ // 登记时间
+ Label colRegTime = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "登记时间",
+ Location = new Point(80, 0),
+ Size = new Size(164, 40)
+ };
+ tableDevList.Controls.Add(colRegTime);
+ colRegTime.BringToFront();
+
+ // 仪器名称
+ Label colDevName = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "仪器名称",
+ Location = new Point(244, 0),
+ Size = new Size(120, 40)
+ };
+ tableDevList.Controls.Add(colDevName);
+ colDevName.BringToFront();
+
+ // 仪器型号
+ Label colDevType = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "仪器类型",
+ Location = new Point(354, 0),
+ Size = new Size(120, 40)
+ };
+ tableDevList.Controls.Add(colDevType);
+ colDevType.BringToFront();
+
+ // 仪器编号
+ Label colDevNo = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "仪器编号",
+ Location = new Point(484, 0),
+ Size = new Size(120, 40)
+ };
+ tableDevList.Controls.Add(colDevNo);
+ colDevNo.BringToFront();
+
+ // 客户名称
+ Label colCustomName = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "客户名称",
+ Location = new Point(604, 0),
+ Size = new Size(120, 40)
+ };
+ tableDevList.Controls.Add(colCustomName);
+ colCustomName.BringToFront();
+
+ // 设备状态
+ Label colDevStatus = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "设备状态",
+ Location = new Point(724, 0),
+ Size = new Size(120, 40)
+ };
+ tableDevList.Controls.Add(colDevStatus);
+ colDevStatus.BringToFront();
+
+ // 通道号
+ Label colChannelNo = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "通道号",
+ Location = new Point(844, 0),
+ Size = new Size(120, 40)
+ };
+ tableDevList.Controls.Add(colChannelNo);
+ colChannelNo.BringToFront();
+ }
+
+ private void LoadDevList()
+ {
+ devList = new DataTable();
+
+ devList.Columns.Add("index", Type.GetType("System.String"));
+ devList.Columns.Add("regTime", Type.GetType("System.DateTime"));
+ devList.Columns.Add("devName", Type.GetType("System.String"));
+ devList.Columns.Add("devType", Type.GetType("System.String"));
+ devList.Columns.Add("devNo", Type.GetType("System.String"));
+ devList.Columns.Add("customName", Type.GetType("System.String"));
+ devList.Columns.Add("status", Type.GetType("System.String"));
+ devList.Columns.Add("channelNo", Type.GetType("System.String"));
+
+ devList.Rows.Add("1", DateTime.Now, "SF2001-1", "通用计数器", "00001", "李涛", "检测中", "1");
+ devList.Rows.Add("2", DateTime.Now, "SF2001-2", "通用计数器", "00002", "李涛", "检完", "");
+ devList.Rows.Add("3", DateTime.Now, "SF2001-3", "通用计数器", "00003", "李涛", "检完", "");
+ devList.Rows.Add("4", DateTime.Now, "SF2001-4", "通用计数器", "00004", "李涛", "待检", "");
+
+ tableDevList.DataSource = devList;
+
+ // width=964px
+ tableDevList.Columns[0].Width = 80;
+ tableDevList.Columns[1].Width = 164;
+ tableDevList.Columns[2].Width = 120;
+ tableDevList.Columns[3].Width = 120;
+ tableDevList.Columns[4].Width = 120;
+ tableDevList.Columns[5].Width = 120;
+ tableDevList.Columns[6].Width = 120;
+ tableDevList.Columns[7].Width = 120;
+
+ tableDevList.Columns[0].ReadOnly = true;
+ tableDevList.Columns[1].ReadOnly = true;
+ tableDevList.Columns[2].ReadOnly = true;
+ tableDevList.Columns[3].ReadOnly = true;
+ tableDevList.Columns[4].ReadOnly = true;
+ tableDevList.Columns[5].ReadOnly = true;
+ tableDevList.Columns[6].ReadOnly = true;
+ tableDevList.Columns[7].ReadOnly = true;
}
}
}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.resx b/RbFreqStandMeasure/info/InfoCtrlForm.resx
index 40cec2f..1af7de1 100644
--- a/RbFreqStandMeasure/info/InfoCtrlForm.resx
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.resx
@@ -117,34 +117,4 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
\ No newline at end of file
diff --git a/RbFreqStandMeasure/Properties/Resources.Designer.cs b/RbFreqStandMeasure/Properties/Resources.Designer.cs
index 514b595..a64834e 100644
--- a/RbFreqStandMeasure/Properties/Resources.Designer.cs
+++ b/RbFreqStandMeasure/Properties/Resources.Designer.cs
@@ -83,6 +83,16 @@
///
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
///
+ internal static System.Drawing.Bitmap bg_dev_list {
+ get {
+ object obj = ResourceManager.GetObject("bg_dev_list", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// 查找 System.Drawing.Bitmap 类型的本地化资源。
+ ///
internal static System.Drawing.Bitmap bg_dev_tested {
get {
object obj = ResourceManager.GetObject("bg_dev_tested", resourceCulture);
diff --git a/RbFreqStandMeasure/Properties/Resources.resx b/RbFreqStandMeasure/Properties/Resources.resx
index 49bcc21..e13b334 100644
--- a/RbFreqStandMeasure/Properties/Resources.resx
+++ b/RbFreqStandMeasure/Properties/Resources.resx
@@ -118,11 +118,8 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
-
- ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_counter_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -133,8 +130,11 @@
..\res\images\icon_status_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_home_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -151,8 +151,11 @@
..\res\images\icon_data.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\bg_dev_channel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\bg_status_time.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -163,8 +166,8 @@
..\res\images\bg_banner.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\bg_status_base.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\bg_dev_tested.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
@@ -178,19 +181,19 @@
..\res\images\icon_measure.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_setting.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_setting_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_data_selected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\icon_home.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+
+ ..\res\images\bg_white_shadow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\res\images\icon_min.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
- ..\res\images\icon_page_next.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
-
- ..\res\images\icon_page_pre.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\res\images\bg_dev_list.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 6665ea0..a948f74 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -304,6 +304,9 @@
+
+
+
diff --git a/RbFreqStandMeasure/home/HomeCtrlForm.cs b/RbFreqStandMeasure/home/HomeCtrlForm.cs
index bcd9479..ceb9056 100644
--- a/RbFreqStandMeasure/home/HomeCtrlForm.cs
+++ b/RbFreqStandMeasure/home/HomeCtrlForm.cs
@@ -28,14 +28,14 @@
private void HomeCtrlForm_Load(object sender, EventArgs e)
{
// 初始化表格标题栏
- this.InitTableDevList();
+ InitTableDevList();
// 加载待检测列表
- this.LoadDevToBeTested();
+ LoadDevToBeTested();
// 初始化各通道样式
- this.InitTableChannel();
- this.LoadChannelStatus();
+ InitTableChannel();
+ LoadChannelStatus();
}
private void InitTableDevList()
@@ -434,8 +434,8 @@
private void tableToBeTested_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
- int rowIndex = this.tableToBeTested.CurrentCell.RowIndex;
- int colIndex = this.tableToBeTested.CurrentCell.ColumnIndex;
+ int rowIndex = tableToBeTested.CurrentCell.RowIndex;
+ int colIndex = tableToBeTested.CurrentCell.ColumnIndex;
if (colIndex == 6)
{
SetDevTestDlg devTestDlg = new SetDevTestDlg();
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
index 8bdbee9..c512020 100644
--- a/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.Designer.cs
@@ -30,293 +30,494 @@
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+ this.panel1 = new System.Windows.Forms.Panel();
+ this.panel2 = new System.Windows.Forms.Panel();
+ this.labelDevNo = new System.Windows.Forms.Label();
+ this.labelDevType = new System.Windows.Forms.Label();
+ this.inputCustomComp = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.labelCustomComp = new System.Windows.Forms.Label();
+ this.labelDevName = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
- this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
- this.iptDevType = new DevComponents.DotNetBar.Controls.TextBoxX();
- this.iptDevName = new DevComponents.DotNetBar.Controls.TextBoxX();
- this.textBoxDropDown1 = new DevComponents.DotNetBar.Controls.TextBoxDropDown();
- this.dataGridViewX1 = new DevComponents.DotNetBar.Controls.DataGridViewX();
- this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Column10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.btnDelDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
- this.btnEditDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
- this.btnAddDev = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
- this.line1 = new DevComponents.DotNetBar.Controls.Line();
- this.panelEx1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX1)).BeginInit();
+ this.inputCustomName = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.inputDevNo = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.inputDevType = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.inputDevName = new DevComponents.DotNetBar.Controls.TextBoxX();
+ this.label2 = new System.Windows.Forms.Label();
+ this.comboBoxEx1 = new DevComponents.DotNetBar.Controls.ComboBoxEx();
+ this.All = new DevComponents.Editors.ComboItem();
+ this.toBeTested = new DevComponents.Editors.ComboItem();
+ this.testing = new DevComponents.Editors.ComboItem();
+ this.tested = new DevComponents.Editors.ComboItem();
+ this.tableDevList = new System.Windows.Forms.DataGridView();
+ this.roundButton5 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.roundButton4 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.roundButton3 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.roundButton2 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.roundButton1 = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.btnQuery = new Casic.Birmm.RbFreqStandMeasure.RoundButton();
+ this.panel1.SuspendLayout();
+ this.panel2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.tableDevList)).BeginInit();
this.SuspendLayout();
//
+ // panel1
+ //
+ this.panel1.BackgroundImage = global::Casic.Birmm.RbFreqStandMeasure.Properties.Resources.bg_dev_list;
+ this.panel1.Controls.Add(this.tableDevList);
+ this.panel1.Controls.Add(this.panel2);
+ this.panel1.Location = new System.Drawing.Point(10, 5);
+ this.panel1.Margin = new System.Windows.Forms.Padding(0);
+ this.panel1.Name = "panel1";
+ this.panel1.Size = new System.Drawing.Size(1004, 642);
+ this.panel1.TabIndex = 14;
+ //
+ // panel2
+ //
+ this.panel2.BackColor = System.Drawing.Color.Transparent;
+ this.panel2.Controls.Add(this.roundButton5);
+ this.panel2.Controls.Add(this.roundButton4);
+ this.panel2.Controls.Add(this.roundButton3);
+ this.panel2.Controls.Add(this.comboBoxEx1);
+ this.panel2.Controls.Add(this.label2);
+ this.panel2.Controls.Add(this.roundButton2);
+ this.panel2.Controls.Add(this.roundButton1);
+ this.panel2.Controls.Add(this.btnQuery);
+ this.panel2.Controls.Add(this.inputDevName);
+ this.panel2.Controls.Add(this.inputDevType);
+ this.panel2.Controls.Add(this.inputDevNo);
+ this.panel2.Controls.Add(this.inputCustomName);
+ this.panel2.Controls.Add(this.label1);
+ this.panel2.Controls.Add(this.labelDevNo);
+ this.panel2.Controls.Add(this.labelDevType);
+ this.panel2.Controls.Add(this.inputCustomComp);
+ this.panel2.Controls.Add(this.labelCustomComp);
+ this.panel2.Controls.Add(this.labelDevName);
+ this.panel2.Location = new System.Drawing.Point(20, 20);
+ this.panel2.Name = "panel2";
+ this.panel2.Size = new System.Drawing.Size(964, 80);
+ this.panel2.TabIndex = 1;
+ //
+ // labelDevNo
+ //
+ this.labelDevNo.AutoSize = true;
+ this.labelDevNo.BackColor = System.Drawing.Color.Transparent;
+ this.labelDevNo.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.labelDevNo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.labelDevNo.Location = new System.Drawing.Point(440, 5);
+ this.labelDevNo.Margin = new System.Windows.Forms.Padding(0);
+ this.labelDevNo.Name = "labelDevNo";
+ this.labelDevNo.Size = new System.Drawing.Size(74, 21);
+ this.labelDevNo.TabIndex = 4;
+ this.labelDevNo.Text = "仪器编号";
+ //
+ // labelDevType
+ //
+ this.labelDevType.AutoSize = true;
+ this.labelDevType.BackColor = System.Drawing.Color.Transparent;
+ this.labelDevType.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.labelDevType.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.labelDevType.Location = new System.Drawing.Point(220, 5);
+ this.labelDevType.Margin = new System.Windows.Forms.Padding(0);
+ this.labelDevType.Name = "labelDevType";
+ this.labelDevType.Size = new System.Drawing.Size(74, 21);
+ this.labelDevType.TabIndex = 4;
+ this.labelDevType.Text = "仪器型号";
+ //
+ // inputCustomComp
+ //
+ //
+ //
+ //
+ this.inputCustomComp.Border.Class = "TextBoxBorder";
+ this.inputCustomComp.Border.CornerDiameter = 5;
+ this.inputCustomComp.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputCustomComp.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputCustomComp.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputCustomComp.Location = new System.Drawing.Point(80, 40);
+ this.inputCustomComp.Margin = new System.Windows.Forms.Padding(0);
+ this.inputCustomComp.Name = "inputCustomComp";
+ this.inputCustomComp.PreventEnterBeep = true;
+ this.inputCustomComp.Size = new System.Drawing.Size(120, 30);
+ this.inputCustomComp.TabIndex = 3;
+ this.inputCustomComp.Text = "请输入单位名称";
+ //
+ // labelCustomComp
+ //
+ this.labelCustomComp.AutoSize = true;
+ this.labelCustomComp.BackColor = System.Drawing.Color.Transparent;
+ this.labelCustomComp.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.labelCustomComp.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.labelCustomComp.Location = new System.Drawing.Point(0, 45);
+ this.labelCustomComp.Margin = new System.Windows.Forms.Padding(0);
+ this.labelCustomComp.Name = "labelCustomComp";
+ this.labelCustomComp.Size = new System.Drawing.Size(74, 21);
+ this.labelCustomComp.TabIndex = 0;
+ this.labelCustomComp.Text = "客户单位";
+ //
+ // labelDevName
+ //
+ this.labelDevName.AutoSize = true;
+ this.labelDevName.BackColor = System.Drawing.Color.Transparent;
+ this.labelDevName.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.labelDevName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.labelDevName.Location = new System.Drawing.Point(0, 5);
+ this.labelDevName.Margin = new System.Windows.Forms.Padding(0);
+ this.labelDevName.Name = "labelDevName";
+ this.labelDevName.Size = new System.Drawing.Size(74, 21);
+ this.labelDevName.TabIndex = 0;
+ this.labelDevName.Text = "仪器名称";
+ //
// label1
//
this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(21, 12);
+ this.label1.BackColor = System.Drawing.Color.Transparent;
+ this.label1.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.label1.Location = new System.Drawing.Point(220, 45);
+ this.label1.Margin = new System.Windows.Forms.Padding(0);
this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(77, 12);
- this.label1.TabIndex = 0;
- this.label1.Text = "送检仪器管理";
+ this.label1.Size = new System.Drawing.Size(74, 21);
+ this.label1.TabIndex = 5;
+ this.label1.Text = "客户名称";
//
- // panelEx1
- //
- this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control;
- this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.panelEx1.Controls.Add(this.textBoxDropDown1);
- this.panelEx1.Controls.Add(this.iptDevName);
- this.panelEx1.Controls.Add(this.iptDevType);
- this.panelEx1.Controls.Add(this.btnDelDev);
- this.panelEx1.Controls.Add(this.btnEditDev);
- this.panelEx1.Controls.Add(this.btnAddDev);
- this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty;
- this.panelEx1.Location = new System.Drawing.Point(3, 57);
- this.panelEx1.Name = "panelEx1";
- this.panelEx1.Size = new System.Drawing.Size(994, 59);
- this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center;
- this.panelEx1.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
- this.panelEx1.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
- this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
- this.panelEx1.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
- this.panelEx1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
- this.panelEx1.Style.GradientAngle = 90;
- this.panelEx1.TabIndex = 5;
- //
- // iptDevType
+ // inputCustomName
//
//
//
//
- this.iptDevType.Border.Class = "TextBoxBorder";
- this.iptDevType.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.iptDevType.Location = new System.Drawing.Point(21, 21);
- this.iptDevType.Name = "iptDevType";
- this.iptDevType.PreventEnterBeep = true;
- this.iptDevType.Size = new System.Drawing.Size(100, 21);
- this.iptDevType.TabIndex = 4;
+ this.inputCustomName.Border.Class = "TextBoxBorder";
+ this.inputCustomName.Border.CornerDiameter = 5;
+ this.inputCustomName.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputCustomName.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputCustomName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputCustomName.Location = new System.Drawing.Point(300, 40);
+ this.inputCustomName.Margin = new System.Windows.Forms.Padding(0);
+ this.inputCustomName.Name = "inputCustomName";
+ this.inputCustomName.PreventEnterBeep = true;
+ this.inputCustomName.Size = new System.Drawing.Size(120, 30);
+ this.inputCustomName.TabIndex = 6;
+ this.inputCustomName.Text = "请输入客户名称";
//
- // iptDevName
+ // inputDevNo
//
//
//
//
- this.iptDevName.Border.Class = "TextBoxBorder";
- this.iptDevName.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.iptDevName.Location = new System.Drawing.Point(142, 21);
- this.iptDevName.Name = "iptDevName";
- this.iptDevName.PreventEnterBeep = true;
- this.iptDevName.Size = new System.Drawing.Size(100, 21);
- this.iptDevName.TabIndex = 4;
+ this.inputDevNo.Border.Class = "TextBoxBorder";
+ this.inputDevNo.Border.CornerDiameter = 5;
+ this.inputDevNo.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputDevNo.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputDevNo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputDevNo.Location = new System.Drawing.Point(520, 0);
+ this.inputDevNo.Margin = new System.Windows.Forms.Padding(0);
+ this.inputDevNo.Name = "inputDevNo";
+ this.inputDevNo.PreventEnterBeep = true;
+ this.inputDevNo.Size = new System.Drawing.Size(120, 30);
+ this.inputDevNo.TabIndex = 7;
+ this.inputDevNo.Text = "请输入仪器编号";
//
- // textBoxDropDown1
+ // inputDevType
//
//
//
//
- this.textBoxDropDown1.BackgroundStyle.Class = "TextBoxBorder";
- this.textBoxDropDown1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
- this.textBoxDropDown1.ButtonDropDown.Visible = true;
- this.textBoxDropDown1.Location = new System.Drawing.Point(273, 21);
- this.textBoxDropDown1.Name = "textBoxDropDown1";
- this.textBoxDropDown1.Size = new System.Drawing.Size(122, 20);
- this.textBoxDropDown1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
- this.textBoxDropDown1.TabIndex = 9;
- this.textBoxDropDown1.Text = "";
+ this.inputDevType.Border.Class = "TextBoxBorder";
+ this.inputDevType.Border.CornerDiameter = 5;
+ this.inputDevType.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputDevType.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputDevType.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputDevType.Location = new System.Drawing.Point(300, 0);
+ this.inputDevType.Margin = new System.Windows.Forms.Padding(0);
+ this.inputDevType.Name = "inputDevType";
+ this.inputDevType.PreventEnterBeep = true;
+ this.inputDevType.Size = new System.Drawing.Size(120, 30);
+ this.inputDevType.TabIndex = 8;
+ this.inputDevType.Text = "请输入仪器型号";
//
- // dataGridViewX1
+ // inputDevName
//
- this.dataGridViewX1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dataGridViewX1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.Column1,
- this.Column2,
- this.Column3,
- this.Column4,
- this.Column5,
- this.Column6,
- this.Column7,
- this.Column8,
- this.Column9,
- this.Column10});
- dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
- dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.dataGridViewX1.DefaultCellStyle = dataGridViewCellStyle1;
- this.dataGridViewX1.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
- this.dataGridViewX1.Location = new System.Drawing.Point(3, 155);
- this.dataGridViewX1.Name = "dataGridViewX1";
- this.dataGridViewX1.RowTemplate.Height = 23;
- this.dataGridViewX1.Size = new System.Drawing.Size(994, 444);
- this.dataGridViewX1.TabIndex = 9;
//
- // Column1
//
- this.Column1.HeaderText = "登记日期";
- this.Column1.Name = "Column1";
//
- // Column2
+ this.inputDevName.Border.Class = "TextBoxBorder";
+ this.inputDevName.Border.CornerDiameter = 5;
+ this.inputDevName.Border.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
+ this.inputDevName.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.inputDevName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
+ this.inputDevName.Location = new System.Drawing.Point(80, 0);
+ this.inputDevName.Margin = new System.Windows.Forms.Padding(0);
+ this.inputDevName.Name = "inputDevName";
+ this.inputDevName.PreventEnterBeep = true;
+ this.inputDevName.Size = new System.Drawing.Size(120, 30);
+ this.inputDevName.TabIndex = 9;
+ this.inputDevName.Text = "请输入仪器名称";
//
- this.Column2.HeaderText = "仪器型号";
- this.Column2.Name = "Column2";
+ // label2
//
- // Column3
+ this.label2.AutoSize = true;
+ this.label2.BackColor = System.Drawing.Color.Transparent;
+ this.label2.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ this.label2.Location = new System.Drawing.Point(440, 45);
+ this.label2.Margin = new System.Windows.Forms.Padding(0);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(74, 21);
+ this.label2.TabIndex = 11;
+ this.label2.Text = "仪器状态";
//
- this.Column3.HeaderText = "仪器编号";
- this.Column3.Name = "Column3";
+ // comboBoxEx1
//
- // Column4
+ this.comboBoxEx1.DisplayMember = "Text";
+ this.comboBoxEx1.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
+ this.comboBoxEx1.FormattingEnabled = true;
+ this.comboBoxEx1.ItemHeight = 15;
+ this.comboBoxEx1.Items.AddRange(new object[] {
+ this.All,
+ this.toBeTested,
+ this.testing,
+ this.tested});
+ this.comboBoxEx1.Location = new System.Drawing.Point(520, 45);
+ this.comboBoxEx1.Margin = new System.Windows.Forms.Padding(0);
+ this.comboBoxEx1.Name = "comboBoxEx1";
+ this.comboBoxEx1.Size = new System.Drawing.Size(120, 21);
+ this.comboBoxEx1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
+ this.comboBoxEx1.TabIndex = 2;
//
- this.Column4.HeaderText = "客户单位";
- this.Column4.Name = "Column4";
+ // All
//
- // Column5
+ this.All.Text = "全部";
//
- this.Column5.HeaderText = "检测状态";
- this.Column5.Name = "Column5";
+ // toBeTested
//
- // Column6
+ this.toBeTested.Text = "已检";
//
- this.Column6.HeaderText = "频率稳定度";
- this.Column6.Name = "Column6";
+ // testing
//
- // Column7
+ this.testing.Text = "检测中";
//
- this.Column7.HeaderText = "频率准确度";
- this.Column7.Name = "Column7";
+ // tested
//
- // Column8
+ this.tested.Text = "待检";
//
- this.Column8.HeaderText = "开机特性";
- this.Column8.Name = "Column8";
+ // tableDevList
//
- // Column9
+ this.tableDevList.AllowUserToAddRows = false;
+ this.tableDevList.AllowUserToDeleteRows = false;
+ this.tableDevList.AllowUserToResizeColumns = false;
+ this.tableDevList.AllowUserToResizeRows = false;
+ dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238)))));
+ dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ dataGridViewCellStyle1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238)))));
+ dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.tableDevList.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ this.tableDevList.BackgroundColor = System.Drawing.Color.White;
+ this.tableDevList.BorderStyle = System.Windows.Forms.BorderStyle.None;
+ this.tableDevList.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
+ this.tableDevList.ColumnHeadersHeight = 40;
+ this.tableDevList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+ this.tableDevList.Location = new System.Drawing.Point(20, 120);
+ this.tableDevList.Margin = new System.Windows.Forms.Padding(0);
+ this.tableDevList.Name = "tableDevList";
+ this.tableDevList.RowHeadersVisible = false;
+ this.tableDevList.RowHeadersWidth = 30;
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle2.BackColor = System.Drawing.Color.White;
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ dataGridViewCellStyle2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ dataGridViewCellStyle2.NullValue = "-";
+ dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.White;
+ dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.tableDevList.RowsDefaultCellStyle = dataGridViewCellStyle2;
+ this.tableDevList.RowTemplate.Height = 40;
+ this.tableDevList.Size = new System.Drawing.Size(964, 440);
+ this.tableDevList.TabIndex = 2;
//
- this.Column9.HeaderText = "日老化率";
- this.Column9.Name = "Column9";
+ // roundButton5
//
- // Column10
+ this.roundButton5.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton5.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton5.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton5.FlatAppearance.BorderSize = 0;
+ this.roundButton5.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton5.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton5.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton5.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242)))));
+ this.roundButton5.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton5.Location = new System.Drawing.Point(870, 40);
+ this.roundButton5.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton5.Name = "roundButton5";
+ this.roundButton5.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton5.PressForeColor = System.Drawing.Color.White;
+ this.roundButton5.Radius = 5;
+ this.roundButton5.Size = new System.Drawing.Size(75, 30);
+ this.roundButton5.TabIndex = 14;
+ this.roundButton5.Text = "导出";
+ this.roundButton5.UseVisualStyleBackColor = true;
//
- this.Column10.HeaderText = "频率计数器范围及灵敏度";
- this.Column10.Name = "Column10";
+ // roundButton4
//
- // btnDelDev
+ this.roundButton4.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton4.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton4.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton4.FlatAppearance.BorderSize = 0;
+ this.roundButton4.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton4.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton4.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton4.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(86)))), ((int)(((byte)(163)))), ((int)(((byte)(242)))));
+ this.roundButton4.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton4.Location = new System.Drawing.Point(785, 40);
+ this.roundButton4.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton4.Name = "roundButton4";
+ this.roundButton4.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton4.PressForeColor = System.Drawing.Color.White;
+ this.roundButton4.Radius = 5;
+ this.roundButton4.Size = new System.Drawing.Size(75, 30);
+ this.roundButton4.TabIndex = 13;
+ this.roundButton4.Text = "详情";
+ this.roundButton4.UseVisualStyleBackColor = true;
//
- this.btnDelDev.EnterBackColor = System.Drawing.Color.Blue;
- this.btnDelDev.EnterForeColor = System.Drawing.Color.White;
- this.btnDelDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
- this.btnDelDev.FlatAppearance.BorderSize = 0;
- this.btnDelDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
- this.btnDelDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
- this.btnDelDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.btnDelDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
- this.btnDelDev.HoverForeColor = System.Drawing.Color.White;
- this.btnDelDev.Location = new System.Drawing.Point(639, 15);
- this.btnDelDev.Name = "btnDelDev";
- this.btnDelDev.PressBackColor = System.Drawing.Color.DarkBlue;
- this.btnDelDev.PressForeColor = System.Drawing.Color.White;
- this.btnDelDev.Radius = 18;
- this.btnDelDev.Size = new System.Drawing.Size(75, 28);
- this.btnDelDev.TabIndex = 3;
- this.btnDelDev.Text = "删除";
- this.btnDelDev.UseVisualStyleBackColor = true;
+ // roundButton3
//
- // btnEditDev
+ this.roundButton3.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton3.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton3.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton3.FlatAppearance.BorderSize = 0;
+ this.roundButton3.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton3.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton3.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton3.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(0)))), ((int)(((byte)(18)))));
+ this.roundButton3.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton3.Location = new System.Drawing.Point(700, 40);
+ this.roundButton3.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton3.Name = "roundButton3";
+ this.roundButton3.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton3.PressForeColor = System.Drawing.Color.White;
+ this.roundButton3.Radius = 5;
+ this.roundButton3.Size = new System.Drawing.Size(75, 30);
+ this.roundButton3.TabIndex = 12;
+ this.roundButton3.Text = "删除";
+ this.roundButton3.UseVisualStyleBackColor = true;
//
- this.btnEditDev.EnterBackColor = System.Drawing.Color.Blue;
- this.btnEditDev.EnterForeColor = System.Drawing.Color.White;
- this.btnEditDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
- this.btnEditDev.FlatAppearance.BorderSize = 0;
- this.btnEditDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
- this.btnEditDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
- this.btnEditDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.btnEditDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
- this.btnEditDev.HoverForeColor = System.Drawing.Color.White;
- this.btnEditDev.Location = new System.Drawing.Point(546, 15);
- this.btnEditDev.Name = "btnEditDev";
- this.btnEditDev.PressBackColor = System.Drawing.Color.DarkBlue;
- this.btnEditDev.PressForeColor = System.Drawing.Color.White;
- this.btnEditDev.Radius = 18;
- this.btnEditDev.Size = new System.Drawing.Size(75, 28);
- this.btnEditDev.TabIndex = 3;
- this.btnEditDev.Text = "编辑";
- this.btnEditDev.UseVisualStyleBackColor = true;
+ // roundButton2
//
- // btnAddDev
+ this.roundButton2.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton2.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton2.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton2.FlatAppearance.BorderSize = 0;
+ this.roundButton2.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton2.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton2.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton2.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));
+ this.roundButton2.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton2.Location = new System.Drawing.Point(870, 0);
+ this.roundButton2.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton2.Name = "roundButton2";
+ this.roundButton2.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton2.PressForeColor = System.Drawing.Color.White;
+ this.roundButton2.Radius = 5;
+ this.roundButton2.Size = new System.Drawing.Size(75, 30);
+ this.roundButton2.TabIndex = 10;
+ this.roundButton2.Text = "修改";
+ this.roundButton2.UseVisualStyleBackColor = true;
//
- this.btnAddDev.EnterBackColor = System.Drawing.Color.Blue;
- this.btnAddDev.EnterForeColor = System.Drawing.Color.White;
- this.btnAddDev.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
- this.btnAddDev.FlatAppearance.BorderSize = 0;
- this.btnAddDev.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
- this.btnAddDev.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
- this.btnAddDev.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.btnAddDev.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
- this.btnAddDev.HoverForeColor = System.Drawing.Color.White;
- this.btnAddDev.Location = new System.Drawing.Point(455, 15);
- this.btnAddDev.Name = "btnAddDev";
- this.btnAddDev.PressBackColor = System.Drawing.Color.DarkBlue;
- this.btnAddDev.PressForeColor = System.Drawing.Color.White;
- this.btnAddDev.Radius = 18;
- this.btnAddDev.Size = new System.Drawing.Size(75, 28);
- this.btnAddDev.TabIndex = 3;
- this.btnAddDev.Text = "添加";
- this.btnAddDev.UseVisualStyleBackColor = true;
- this.btnAddDev.Click += new System.EventHandler(this.btnAddDev_Click);
+ // roundButton1
//
- // line1
+ this.roundButton1.EnterBackColor = System.Drawing.Color.Blue;
+ this.roundButton1.EnterForeColor = System.Drawing.Color.White;
+ this.roundButton1.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.roundButton1.FlatAppearance.BorderSize = 0;
+ this.roundButton1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.roundButton1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.roundButton1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.roundButton1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.roundButton1.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(47)))), ((int)(((byte)(111)))), ((int)(((byte)(198)))));
+ this.roundButton1.HoverForeColor = System.Drawing.Color.White;
+ this.roundButton1.Location = new System.Drawing.Point(785, 0);
+ this.roundButton1.Margin = new System.Windows.Forms.Padding(0);
+ this.roundButton1.Name = "roundButton1";
+ this.roundButton1.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.roundButton1.PressForeColor = System.Drawing.Color.White;
+ this.roundButton1.Radius = 5;
+ this.roundButton1.Size = new System.Drawing.Size(75, 30);
+ this.roundButton1.TabIndex = 10;
+ this.roundButton1.Text = "添加";
+ this.roundButton1.UseVisualStyleBackColor = true;
//
- this.line1.Location = new System.Drawing.Point(4, 28);
- this.line1.Name = "line1";
- this.line1.Size = new System.Drawing.Size(993, 23);
- this.line1.TabIndex = 10;
- this.line1.Text = "line1";
+ // btnQuery
+ //
+ this.btnQuery.EnterBackColor = System.Drawing.Color.Blue;
+ this.btnQuery.EnterForeColor = System.Drawing.Color.White;
+ this.btnQuery.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
+ this.btnQuery.FlatAppearance.BorderSize = 0;
+ this.btnQuery.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Transparent;
+ this.btnQuery.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Transparent;
+ this.btnQuery.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.btnQuery.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel, ((byte)(134)));
+ this.btnQuery.HoverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(153)))), ((int)(((byte)(68)))));
+ this.btnQuery.HoverForeColor = System.Drawing.Color.White;
+ this.btnQuery.Location = new System.Drawing.Point(700, 0);
+ this.btnQuery.Margin = new System.Windows.Forms.Padding(0);
+ this.btnQuery.Name = "btnQuery";
+ this.btnQuery.PressBackColor = System.Drawing.Color.DarkBlue;
+ this.btnQuery.PressForeColor = System.Drawing.Color.White;
+ this.btnQuery.Radius = 5;
+ this.btnQuery.Size = new System.Drawing.Size(75, 30);
+ this.btnQuery.TabIndex = 10;
+ this.btnQuery.Text = "查询";
+ this.btnQuery.UseVisualStyleBackColor = true;
//
// InfoCtrlForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.Controls.Add(this.line1);
- this.Controls.Add(this.dataGridViewX1);
- this.Controls.Add(this.panelEx1);
- this.Controls.Add(this.label1);
+ this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(234)))), ((int)(((byte)(238)))));
+ this.Controls.Add(this.panel1);
this.Margin = new System.Windows.Forms.Padding(0);
this.Name = "InfoCtrlForm";
- this.Size = new System.Drawing.Size(1000, 640);
- this.panelEx1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.dataGridViewX1)).EndInit();
+ this.Size = new System.Drawing.Size(1024, 654);
+ this.panel1.ResumeLayout(false);
+ this.panel2.ResumeLayout(false);
+ this.panel2.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.tableDevList)).EndInit();
this.ResumeLayout(false);
- this.PerformLayout();
}
#endregion
+ private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Label labelDevName;
+ private System.Windows.Forms.Panel panel2;
+ private System.Windows.Forms.Label labelDevType;
+ private System.Windows.Forms.Label labelDevNo;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputCustomComp;
+ private System.Windows.Forms.Label labelCustomComp;
private System.Windows.Forms.Label label1;
- private RoundButton btnAddDev;
- private DevComponents.DotNetBar.PanelEx panelEx1;
- private DevComponents.DotNetBar.Controls.TextBoxX iptDevType;
- private DevComponents.DotNetBar.Controls.TextBoxX iptDevName;
- private DevComponents.DotNetBar.Controls.TextBoxDropDown textBoxDropDown1;
- private RoundButton btnDelDev;
- private RoundButton btnEditDev;
- private DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX1;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column9;
- private System.Windows.Forms.DataGridViewTextBoxColumn Column10;
- private DevComponents.DotNetBar.Controls.Line line1;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputCustomName;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputDevNo;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputDevType;
+ private DevComponents.DotNetBar.Controls.TextBoxX inputDevName;
+ private RoundButton btnQuery;
+ private System.Windows.Forms.Label label2;
+ private DevComponents.DotNetBar.Controls.ComboBoxEx comboBoxEx1;
+ private DevComponents.Editors.ComboItem All;
+ private DevComponents.Editors.ComboItem toBeTested;
+ private DevComponents.Editors.ComboItem testing;
+ private DevComponents.Editors.ComboItem tested;
+ private RoundButton roundButton2;
+ private RoundButton roundButton1;
+ private RoundButton roundButton3;
+ private RoundButton roundButton4;
+ private RoundButton roundButton5;
+ private System.Windows.Forms.DataGridView tableDevList;
}
}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.cs b/RbFreqStandMeasure/info/InfoCtrlForm.cs
index 8df7e6c..bea9626 100644
--- a/RbFreqStandMeasure/info/InfoCtrlForm.cs
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.cs
@@ -11,16 +11,197 @@
{
public partial class InfoCtrlForm : UserControl
{
+ private DataTable devList = null;
+
+ #region 样式常量定影
+ private readonly Color titleBackColor = Color.FromArgb(232, 234, 238); // #e8eaee
+ private readonly Color tableForeColor = Color.FromArgb(51, 51, 51); // #333333
+ private readonly Font titleFont = new Font("微软雅黑", 14F, FontStyle.Regular, GraphicsUnit.Pixel, 134);
+ #endregion
+
public InfoCtrlForm()
{
InitializeComponent();
+
+ // 初始化表格并加载数据
+ InitTableDevList();
+ LoadDevList();
}
- // 送检仪器登记页面
- private void btnAddDev_Click(object sender, EventArgs e)
+ private void InitTableDevList()
{
- AddDevDlg addDev = new AddDevDlg();
- addDev.ShowDialog();
+ tableDevList.Columns.Clear();
+ tableDevList.Rows.Clear();
+
+ // 添加标题栏
+ Panel tableHeader = new Panel
+ {
+ BackColor = tableForeColor,
+ Size = new Size(964, 40),
+ Location = new Point(0, 0)
+ };
+ tableHeader.BackColor = titleBackColor;
+ tableDevList.Controls.Add(tableHeader);
+
+ // 序号
+ Label colNo = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "序号",
+ Location = new Point(0, 0),
+ Size = new Size(80, 40)
+ };
+ tableDevList.Controls.Add(colNo);
+ colNo.BringToFront();
+
+ // 登记时间
+ Label colRegTime = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "登记时间",
+ Location = new Point(80, 0),
+ Size = new Size(164, 40)
+ };
+ tableDevList.Controls.Add(colRegTime);
+ colRegTime.BringToFront();
+
+ // 仪器名称
+ Label colDevName = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "仪器名称",
+ Location = new Point(244, 0),
+ Size = new Size(120, 40)
+ };
+ tableDevList.Controls.Add(colDevName);
+ colDevName.BringToFront();
+
+ // 仪器型号
+ Label colDevType = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "仪器类型",
+ Location = new Point(354, 0),
+ Size = new Size(120, 40)
+ };
+ tableDevList.Controls.Add(colDevType);
+ colDevType.BringToFront();
+
+ // 仪器编号
+ Label colDevNo = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "仪器编号",
+ Location = new Point(484, 0),
+ Size = new Size(120, 40)
+ };
+ tableDevList.Controls.Add(colDevNo);
+ colDevNo.BringToFront();
+
+ // 客户名称
+ Label colCustomName = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "客户名称",
+ Location = new Point(604, 0),
+ Size = new Size(120, 40)
+ };
+ tableDevList.Controls.Add(colCustomName);
+ colCustomName.BringToFront();
+
+ // 设备状态
+ Label colDevStatus = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "设备状态",
+ Location = new Point(724, 0),
+ Size = new Size(120, 40)
+ };
+ tableDevList.Controls.Add(colDevStatus);
+ colDevStatus.BringToFront();
+
+ // 通道号
+ Label colChannelNo = new Label
+ {
+ Font = titleFont,
+ ForeColor = tableForeColor,
+ TextAlign = ContentAlignment.MiddleCenter,
+ BackColor = titleBackColor,
+ AutoSize = false,
+ Text = "通道号",
+ Location = new Point(844, 0),
+ Size = new Size(120, 40)
+ };
+ tableDevList.Controls.Add(colChannelNo);
+ colChannelNo.BringToFront();
+ }
+
+ private void LoadDevList()
+ {
+ devList = new DataTable();
+
+ devList.Columns.Add("index", Type.GetType("System.String"));
+ devList.Columns.Add("regTime", Type.GetType("System.DateTime"));
+ devList.Columns.Add("devName", Type.GetType("System.String"));
+ devList.Columns.Add("devType", Type.GetType("System.String"));
+ devList.Columns.Add("devNo", Type.GetType("System.String"));
+ devList.Columns.Add("customName", Type.GetType("System.String"));
+ devList.Columns.Add("status", Type.GetType("System.String"));
+ devList.Columns.Add("channelNo", Type.GetType("System.String"));
+
+ devList.Rows.Add("1", DateTime.Now, "SF2001-1", "通用计数器", "00001", "李涛", "检测中", "1");
+ devList.Rows.Add("2", DateTime.Now, "SF2001-2", "通用计数器", "00002", "李涛", "检完", "");
+ devList.Rows.Add("3", DateTime.Now, "SF2001-3", "通用计数器", "00003", "李涛", "检完", "");
+ devList.Rows.Add("4", DateTime.Now, "SF2001-4", "通用计数器", "00004", "李涛", "待检", "");
+
+ tableDevList.DataSource = devList;
+
+ // width=964px
+ tableDevList.Columns[0].Width = 80;
+ tableDevList.Columns[1].Width = 164;
+ tableDevList.Columns[2].Width = 120;
+ tableDevList.Columns[3].Width = 120;
+ tableDevList.Columns[4].Width = 120;
+ tableDevList.Columns[5].Width = 120;
+ tableDevList.Columns[6].Width = 120;
+ tableDevList.Columns[7].Width = 120;
+
+ tableDevList.Columns[0].ReadOnly = true;
+ tableDevList.Columns[1].ReadOnly = true;
+ tableDevList.Columns[2].ReadOnly = true;
+ tableDevList.Columns[3].ReadOnly = true;
+ tableDevList.Columns[4].ReadOnly = true;
+ tableDevList.Columns[5].ReadOnly = true;
+ tableDevList.Columns[6].ReadOnly = true;
+ tableDevList.Columns[7].ReadOnly = true;
}
}
}
diff --git a/RbFreqStandMeasure/info/InfoCtrlForm.resx b/RbFreqStandMeasure/info/InfoCtrlForm.resx
index 40cec2f..1af7de1 100644
--- a/RbFreqStandMeasure/info/InfoCtrlForm.resx
+++ b/RbFreqStandMeasure/info/InfoCtrlForm.resx
@@ -117,34 +117,4 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
-
- True
-
\ No newline at end of file
diff --git a/RbFreqStandMeasure/res/images/bg_dev_list.png b/RbFreqStandMeasure/res/images/bg_dev_list.png
new file mode 100644
index 0000000..f089b0b
--- /dev/null
+++ b/RbFreqStandMeasure/res/images/bg_dev_list.png
Binary files differ