diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 047e4a9..9b85898 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,32 +29,139 @@
///
private void InitializeComponent()
{
- this.panel1 = new System.Windows.Forms.Panel();
+ this.panelBanner = new System.Windows.Forms.Panel();
+ this.labelTitle = new System.Windows.Forms.Label();
+ this.panelMenu = new System.Windows.Forms.Panel();
+ this.btnDevStatus = new System.Windows.Forms.Button();
+ this.btnInfoMan = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.btnDataMan = new System.Windows.Forms.Button();
+ this.btnSetting = new System.Windows.Forms.Button();
+ this.panelMain = new System.Windows.Forms.Panel();
+ this.panelBanner.SuspendLayout();
+ this.panelMenu.SuspendLayout();
this.SuspendLayout();
//
- // panel1
+ // panelBanner
//
- this.panel1.Location = new System.Drawing.Point(13, 13);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(983, 100);
- this.panel1.TabIndex = 0;
+ this.panelBanner.Controls.Add(this.labelTitle);
+ this.panelBanner.Location = new System.Drawing.Point(4, 0);
+ this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
+ this.panelBanner.Name = "panelBanner";
+ this.panelBanner.Size = new System.Drawing.Size(1000, 64);
+ this.panelBanner.TabIndex = 0;
+ //
+ // labelTitle
+ //
+ this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelTitle.Location = new System.Drawing.Point(0, 0);
+ this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
+ this.labelTitle.Name = "labelTitle";
+ this.labelTitle.Size = new System.Drawing.Size(1000, 64);
+ this.labelTitle.TabIndex = 0;
+ this.labelTitle.Text = "铷原子频标比对测量软件";
+ this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // panelMenu
+ //
+ this.panelMenu.Controls.Add(this.btnSetting);
+ this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnMeasure);
+ this.panelMenu.Controls.Add(this.btnInfoMan);
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMenu.Name = "panelMenu";
+ this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.TabIndex = 1;
+ //
+ // btnDevStatus
+ //
+ this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Name = "btnDevStatus";
+ this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.TabIndex = 0;
+ this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.UseVisualStyleBackColor = true;
+ //
+ // btnInfoMan
+ //
+ this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Name = "btnInfoMan";
+ this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.TabIndex = 0;
+ this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.UseVisualStyleBackColor = true;
+ this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(435, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(75, 50);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量检测";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // btnDataMan
+ //
+ this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Name = "btnDataMan";
+ this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.TabIndex = 0;
+ this.btnDataMan.Text = "数据管理";
+ this.btnDataMan.UseVisualStyleBackColor = true;
+ //
+ // btnSetting
+ //
+ this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Name = "btnSetting";
+ this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.TabIndex = 0;
+ this.btnSetting.Text = "系统设置";
+ this.btnSetting.UseVisualStyleBackColor = true;
+ this.btnSetting.Click += new System.EventHandler(this.btnSetting_Click);
+ //
+ // panelMain
+ //
+ this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMain.Name = "panelMain";
+ this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.TabIndex = 2;
//
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
- this.Controls.Add(this.panel1);
+ this.Controls.Add(this.panelMain);
+ this.Controls.Add(this.panelMenu);
+ this.Controls.Add(this.panelBanner);
+ this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
+ this.panelBanner.ResumeLayout(false);
+ this.panelMenu.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
- private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Panel panelBanner;
+ private System.Windows.Forms.Label labelTitle;
+ private System.Windows.Forms.Panel panelMenu;
+ private System.Windows.Forms.Button btnSetting;
+ private System.Windows.Forms.Button btnDataMan;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Button btnInfoMan;
+ private System.Windows.Forms.Button btnDevStatus;
+ private System.Windows.Forms.Panel panelMain;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 047e4a9..9b85898 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,32 +29,139 @@
///
private void InitializeComponent()
{
- this.panel1 = new System.Windows.Forms.Panel();
+ this.panelBanner = new System.Windows.Forms.Panel();
+ this.labelTitle = new System.Windows.Forms.Label();
+ this.panelMenu = new System.Windows.Forms.Panel();
+ this.btnDevStatus = new System.Windows.Forms.Button();
+ this.btnInfoMan = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.btnDataMan = new System.Windows.Forms.Button();
+ this.btnSetting = new System.Windows.Forms.Button();
+ this.panelMain = new System.Windows.Forms.Panel();
+ this.panelBanner.SuspendLayout();
+ this.panelMenu.SuspendLayout();
this.SuspendLayout();
//
- // panel1
+ // panelBanner
//
- this.panel1.Location = new System.Drawing.Point(13, 13);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(983, 100);
- this.panel1.TabIndex = 0;
+ this.panelBanner.Controls.Add(this.labelTitle);
+ this.panelBanner.Location = new System.Drawing.Point(4, 0);
+ this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
+ this.panelBanner.Name = "panelBanner";
+ this.panelBanner.Size = new System.Drawing.Size(1000, 64);
+ this.panelBanner.TabIndex = 0;
+ //
+ // labelTitle
+ //
+ this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelTitle.Location = new System.Drawing.Point(0, 0);
+ this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
+ this.labelTitle.Name = "labelTitle";
+ this.labelTitle.Size = new System.Drawing.Size(1000, 64);
+ this.labelTitle.TabIndex = 0;
+ this.labelTitle.Text = "铷原子频标比对测量软件";
+ this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // panelMenu
+ //
+ this.panelMenu.Controls.Add(this.btnSetting);
+ this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnMeasure);
+ this.panelMenu.Controls.Add(this.btnInfoMan);
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMenu.Name = "panelMenu";
+ this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.TabIndex = 1;
+ //
+ // btnDevStatus
+ //
+ this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Name = "btnDevStatus";
+ this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.TabIndex = 0;
+ this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.UseVisualStyleBackColor = true;
+ //
+ // btnInfoMan
+ //
+ this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Name = "btnInfoMan";
+ this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.TabIndex = 0;
+ this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.UseVisualStyleBackColor = true;
+ this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(435, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(75, 50);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量检测";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // btnDataMan
+ //
+ this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Name = "btnDataMan";
+ this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.TabIndex = 0;
+ this.btnDataMan.Text = "数据管理";
+ this.btnDataMan.UseVisualStyleBackColor = true;
+ //
+ // btnSetting
+ //
+ this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Name = "btnSetting";
+ this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.TabIndex = 0;
+ this.btnSetting.Text = "系统设置";
+ this.btnSetting.UseVisualStyleBackColor = true;
+ this.btnSetting.Click += new System.EventHandler(this.btnSetting_Click);
+ //
+ // panelMain
+ //
+ this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMain.Name = "panelMain";
+ this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.TabIndex = 2;
//
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
- this.Controls.Add(this.panel1);
+ this.Controls.Add(this.panelMain);
+ this.Controls.Add(this.panelMenu);
+ this.Controls.Add(this.panelBanner);
+ this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
+ this.panelBanner.ResumeLayout(false);
+ this.panelMenu.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
- private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Panel panelBanner;
+ private System.Windows.Forms.Label labelTitle;
+ private System.Windows.Forms.Panel panelMenu;
+ private System.Windows.Forms.Button btnSetting;
+ private System.Windows.Forms.Button btnDataMan;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Button btnInfoMan;
+ private System.Windows.Forms.Button btnDevStatus;
+ private System.Windows.Forms.Panel panelMain;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index e4904c4..05d2ddb 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -1,4 +1,6 @@
using Casic.Birmm.RbFreqStandMeasure.Db;
+using Casic.Birmm.RbFreqStandMeasure.info;
+using Casic.Birmm.RbFreqStandMeasure.setting;
using Casic.Birmm.RbFreqStandMeasure.Tools;
using System;
using System.Collections.Generic;
@@ -21,6 +23,7 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -36,5 +39,25 @@
return;
}
}
+
+ private void btnInfoMan_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ InfoManForm infoForm = new InfoManForm();
+ infoForm.Show();
+ this.panelMain.Controls.Add(infoForm);
+ }
+
+ private void btnSetting_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ SettingForm settingForm = new SettingForm();
+ settingForm.Show();
+ this.panelMain.Controls.Add(settingForm);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 047e4a9..9b85898 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,32 +29,139 @@
///
private void InitializeComponent()
{
- this.panel1 = new System.Windows.Forms.Panel();
+ this.panelBanner = new System.Windows.Forms.Panel();
+ this.labelTitle = new System.Windows.Forms.Label();
+ this.panelMenu = new System.Windows.Forms.Panel();
+ this.btnDevStatus = new System.Windows.Forms.Button();
+ this.btnInfoMan = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.btnDataMan = new System.Windows.Forms.Button();
+ this.btnSetting = new System.Windows.Forms.Button();
+ this.panelMain = new System.Windows.Forms.Panel();
+ this.panelBanner.SuspendLayout();
+ this.panelMenu.SuspendLayout();
this.SuspendLayout();
//
- // panel1
+ // panelBanner
//
- this.panel1.Location = new System.Drawing.Point(13, 13);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(983, 100);
- this.panel1.TabIndex = 0;
+ this.panelBanner.Controls.Add(this.labelTitle);
+ this.panelBanner.Location = new System.Drawing.Point(4, 0);
+ this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
+ this.panelBanner.Name = "panelBanner";
+ this.panelBanner.Size = new System.Drawing.Size(1000, 64);
+ this.panelBanner.TabIndex = 0;
+ //
+ // labelTitle
+ //
+ this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelTitle.Location = new System.Drawing.Point(0, 0);
+ this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
+ this.labelTitle.Name = "labelTitle";
+ this.labelTitle.Size = new System.Drawing.Size(1000, 64);
+ this.labelTitle.TabIndex = 0;
+ this.labelTitle.Text = "铷原子频标比对测量软件";
+ this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // panelMenu
+ //
+ this.panelMenu.Controls.Add(this.btnSetting);
+ this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnMeasure);
+ this.panelMenu.Controls.Add(this.btnInfoMan);
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMenu.Name = "panelMenu";
+ this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.TabIndex = 1;
+ //
+ // btnDevStatus
+ //
+ this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Name = "btnDevStatus";
+ this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.TabIndex = 0;
+ this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.UseVisualStyleBackColor = true;
+ //
+ // btnInfoMan
+ //
+ this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Name = "btnInfoMan";
+ this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.TabIndex = 0;
+ this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.UseVisualStyleBackColor = true;
+ this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(435, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(75, 50);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量检测";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // btnDataMan
+ //
+ this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Name = "btnDataMan";
+ this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.TabIndex = 0;
+ this.btnDataMan.Text = "数据管理";
+ this.btnDataMan.UseVisualStyleBackColor = true;
+ //
+ // btnSetting
+ //
+ this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Name = "btnSetting";
+ this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.TabIndex = 0;
+ this.btnSetting.Text = "系统设置";
+ this.btnSetting.UseVisualStyleBackColor = true;
+ this.btnSetting.Click += new System.EventHandler(this.btnSetting_Click);
+ //
+ // panelMain
+ //
+ this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMain.Name = "panelMain";
+ this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.TabIndex = 2;
//
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
- this.Controls.Add(this.panel1);
+ this.Controls.Add(this.panelMain);
+ this.Controls.Add(this.panelMenu);
+ this.Controls.Add(this.panelBanner);
+ this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
+ this.panelBanner.ResumeLayout(false);
+ this.panelMenu.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
- private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Panel panelBanner;
+ private System.Windows.Forms.Label labelTitle;
+ private System.Windows.Forms.Panel panelMenu;
+ private System.Windows.Forms.Button btnSetting;
+ private System.Windows.Forms.Button btnDataMan;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Button btnInfoMan;
+ private System.Windows.Forms.Button btnDevStatus;
+ private System.Windows.Forms.Panel panelMain;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index e4904c4..05d2ddb 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -1,4 +1,6 @@
using Casic.Birmm.RbFreqStandMeasure.Db;
+using Casic.Birmm.RbFreqStandMeasure.info;
+using Casic.Birmm.RbFreqStandMeasure.setting;
using Casic.Birmm.RbFreqStandMeasure.Tools;
using System;
using System.Collections.Generic;
@@ -21,6 +23,7 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -36,5 +39,25 @@
return;
}
}
+
+ private void btnInfoMan_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ InfoManForm infoForm = new InfoManForm();
+ infoForm.Show();
+ this.panelMain.Controls.Add(infoForm);
+ }
+
+ private void btnSetting_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ SettingForm settingForm = new SettingForm();
+ settingForm.Show();
+ this.panelMain.Controls.Add(settingForm);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 5402e0d..388c97e 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -8,7 +8,7 @@
{F9A73B92-70CF-4F91-B58B-E461A180A75C}
WinExe
Casic.Birmm.RbFreqStandMeasure
- Casic.Birmm.RbFreqStandMeasure
+ RbFreqStandMeasure
v4.0
512
true
@@ -86,7 +86,14 @@
+
+
+ UserControl
+
+
+ InfoManForm.cs
+
Form
@@ -95,8 +102,17 @@
+
+ UserControl
+
+
+ SettingForm.cs
+
+
+ InfoManForm.cs
+
RbFreqStandMeasure.cs
@@ -110,6 +126,9 @@
Resources.resx
True
+
+ SettingForm.cs
+
@@ -129,6 +148,9 @@
false
+
+
+
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 047e4a9..9b85898 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,32 +29,139 @@
///
private void InitializeComponent()
{
- this.panel1 = new System.Windows.Forms.Panel();
+ this.panelBanner = new System.Windows.Forms.Panel();
+ this.labelTitle = new System.Windows.Forms.Label();
+ this.panelMenu = new System.Windows.Forms.Panel();
+ this.btnDevStatus = new System.Windows.Forms.Button();
+ this.btnInfoMan = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.btnDataMan = new System.Windows.Forms.Button();
+ this.btnSetting = new System.Windows.Forms.Button();
+ this.panelMain = new System.Windows.Forms.Panel();
+ this.panelBanner.SuspendLayout();
+ this.panelMenu.SuspendLayout();
this.SuspendLayout();
//
- // panel1
+ // panelBanner
//
- this.panel1.Location = new System.Drawing.Point(13, 13);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(983, 100);
- this.panel1.TabIndex = 0;
+ this.panelBanner.Controls.Add(this.labelTitle);
+ this.panelBanner.Location = new System.Drawing.Point(4, 0);
+ this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
+ this.panelBanner.Name = "panelBanner";
+ this.panelBanner.Size = new System.Drawing.Size(1000, 64);
+ this.panelBanner.TabIndex = 0;
+ //
+ // labelTitle
+ //
+ this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelTitle.Location = new System.Drawing.Point(0, 0);
+ this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
+ this.labelTitle.Name = "labelTitle";
+ this.labelTitle.Size = new System.Drawing.Size(1000, 64);
+ this.labelTitle.TabIndex = 0;
+ this.labelTitle.Text = "铷原子频标比对测量软件";
+ this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // panelMenu
+ //
+ this.panelMenu.Controls.Add(this.btnSetting);
+ this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnMeasure);
+ this.panelMenu.Controls.Add(this.btnInfoMan);
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMenu.Name = "panelMenu";
+ this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.TabIndex = 1;
+ //
+ // btnDevStatus
+ //
+ this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Name = "btnDevStatus";
+ this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.TabIndex = 0;
+ this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.UseVisualStyleBackColor = true;
+ //
+ // btnInfoMan
+ //
+ this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Name = "btnInfoMan";
+ this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.TabIndex = 0;
+ this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.UseVisualStyleBackColor = true;
+ this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(435, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(75, 50);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量检测";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // btnDataMan
+ //
+ this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Name = "btnDataMan";
+ this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.TabIndex = 0;
+ this.btnDataMan.Text = "数据管理";
+ this.btnDataMan.UseVisualStyleBackColor = true;
+ //
+ // btnSetting
+ //
+ this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Name = "btnSetting";
+ this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.TabIndex = 0;
+ this.btnSetting.Text = "系统设置";
+ this.btnSetting.UseVisualStyleBackColor = true;
+ this.btnSetting.Click += new System.EventHandler(this.btnSetting_Click);
+ //
+ // panelMain
+ //
+ this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMain.Name = "panelMain";
+ this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.TabIndex = 2;
//
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
- this.Controls.Add(this.panel1);
+ this.Controls.Add(this.panelMain);
+ this.Controls.Add(this.panelMenu);
+ this.Controls.Add(this.panelBanner);
+ this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
+ this.panelBanner.ResumeLayout(false);
+ this.panelMenu.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
- private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Panel panelBanner;
+ private System.Windows.Forms.Label labelTitle;
+ private System.Windows.Forms.Panel panelMenu;
+ private System.Windows.Forms.Button btnSetting;
+ private System.Windows.Forms.Button btnDataMan;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Button btnInfoMan;
+ private System.Windows.Forms.Button btnDevStatus;
+ private System.Windows.Forms.Panel panelMain;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index e4904c4..05d2ddb 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -1,4 +1,6 @@
using Casic.Birmm.RbFreqStandMeasure.Db;
+using Casic.Birmm.RbFreqStandMeasure.info;
+using Casic.Birmm.RbFreqStandMeasure.setting;
using Casic.Birmm.RbFreqStandMeasure.Tools;
using System;
using System.Collections.Generic;
@@ -21,6 +23,7 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -36,5 +39,25 @@
return;
}
}
+
+ private void btnInfoMan_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ InfoManForm infoForm = new InfoManForm();
+ infoForm.Show();
+ this.panelMain.Controls.Add(infoForm);
+ }
+
+ private void btnSetting_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ SettingForm settingForm = new SettingForm();
+ settingForm.Show();
+ this.panelMain.Controls.Add(settingForm);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 5402e0d..388c97e 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -8,7 +8,7 @@
{F9A73B92-70CF-4F91-B58B-E461A180A75C}
WinExe
Casic.Birmm.RbFreqStandMeasure
- Casic.Birmm.RbFreqStandMeasure
+ RbFreqStandMeasure
v4.0
512
true
@@ -86,7 +86,14 @@
+
+
+ UserControl
+
+
+ InfoManForm.cs
+
Form
@@ -95,8 +102,17 @@
+
+ UserControl
+
+
+ SettingForm.cs
+
+
+ InfoManForm.cs
+
RbFreqStandMeasure.cs
@@ -110,6 +126,9 @@
Resources.resx
True
+
+ SettingForm.cs
+
@@ -129,6 +148,9 @@
false
+
+
+
diff --git a/RbFreqStandMeasure/db/model/Company.cs b/RbFreqStandMeasure/db/model/Company.cs
new file mode 100644
index 0000000..aa04e10
--- /dev/null
+++ b/RbFreqStandMeasure/db/model/Company.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Casic.Birmm.RbFreqStandMeasure.db.model
+{
+ class Company
+ {
+ // 主键ID
+ private string id;
+ // 客户公司名称
+ private string name;
+ // 客户联系地址
+ private string address;
+ // 客户联系人
+ private string contacts;
+ // 客户联系电话
+ private string phone;
+ // 备注
+ private string remarks;
+ // 是否删除
+ private int valid;
+ // 时间戳,编辑时更新
+ private string ts;
+
+ public string Id { get => id; set => id = value; }
+ public string Name { get => name; set => name = value; }
+ public string Address { get => address; set => address = value; }
+ public string Contacts { get => contacts; set => contacts = value; }
+ public string Phone { get => phone; set => phone = value; }
+ public string Remarks { get => remarks; set => remarks = value; }
+ public int Valid { get => valid; set => valid = value; }
+ public string Ts { get => ts; set => ts = value; }
+ }
+}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 047e4a9..9b85898 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,32 +29,139 @@
///
private void InitializeComponent()
{
- this.panel1 = new System.Windows.Forms.Panel();
+ this.panelBanner = new System.Windows.Forms.Panel();
+ this.labelTitle = new System.Windows.Forms.Label();
+ this.panelMenu = new System.Windows.Forms.Panel();
+ this.btnDevStatus = new System.Windows.Forms.Button();
+ this.btnInfoMan = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.btnDataMan = new System.Windows.Forms.Button();
+ this.btnSetting = new System.Windows.Forms.Button();
+ this.panelMain = new System.Windows.Forms.Panel();
+ this.panelBanner.SuspendLayout();
+ this.panelMenu.SuspendLayout();
this.SuspendLayout();
//
- // panel1
+ // panelBanner
//
- this.panel1.Location = new System.Drawing.Point(13, 13);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(983, 100);
- this.panel1.TabIndex = 0;
+ this.panelBanner.Controls.Add(this.labelTitle);
+ this.panelBanner.Location = new System.Drawing.Point(4, 0);
+ this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
+ this.panelBanner.Name = "panelBanner";
+ this.panelBanner.Size = new System.Drawing.Size(1000, 64);
+ this.panelBanner.TabIndex = 0;
+ //
+ // labelTitle
+ //
+ this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelTitle.Location = new System.Drawing.Point(0, 0);
+ this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
+ this.labelTitle.Name = "labelTitle";
+ this.labelTitle.Size = new System.Drawing.Size(1000, 64);
+ this.labelTitle.TabIndex = 0;
+ this.labelTitle.Text = "铷原子频标比对测量软件";
+ this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // panelMenu
+ //
+ this.panelMenu.Controls.Add(this.btnSetting);
+ this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnMeasure);
+ this.panelMenu.Controls.Add(this.btnInfoMan);
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMenu.Name = "panelMenu";
+ this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.TabIndex = 1;
+ //
+ // btnDevStatus
+ //
+ this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Name = "btnDevStatus";
+ this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.TabIndex = 0;
+ this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.UseVisualStyleBackColor = true;
+ //
+ // btnInfoMan
+ //
+ this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Name = "btnInfoMan";
+ this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.TabIndex = 0;
+ this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.UseVisualStyleBackColor = true;
+ this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(435, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(75, 50);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量检测";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // btnDataMan
+ //
+ this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Name = "btnDataMan";
+ this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.TabIndex = 0;
+ this.btnDataMan.Text = "数据管理";
+ this.btnDataMan.UseVisualStyleBackColor = true;
+ //
+ // btnSetting
+ //
+ this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Name = "btnSetting";
+ this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.TabIndex = 0;
+ this.btnSetting.Text = "系统设置";
+ this.btnSetting.UseVisualStyleBackColor = true;
+ this.btnSetting.Click += new System.EventHandler(this.btnSetting_Click);
+ //
+ // panelMain
+ //
+ this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMain.Name = "panelMain";
+ this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.TabIndex = 2;
//
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
- this.Controls.Add(this.panel1);
+ this.Controls.Add(this.panelMain);
+ this.Controls.Add(this.panelMenu);
+ this.Controls.Add(this.panelBanner);
+ this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
+ this.panelBanner.ResumeLayout(false);
+ this.panelMenu.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
- private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Panel panelBanner;
+ private System.Windows.Forms.Label labelTitle;
+ private System.Windows.Forms.Panel panelMenu;
+ private System.Windows.Forms.Button btnSetting;
+ private System.Windows.Forms.Button btnDataMan;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Button btnInfoMan;
+ private System.Windows.Forms.Button btnDevStatus;
+ private System.Windows.Forms.Panel panelMain;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index e4904c4..05d2ddb 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -1,4 +1,6 @@
using Casic.Birmm.RbFreqStandMeasure.Db;
+using Casic.Birmm.RbFreqStandMeasure.info;
+using Casic.Birmm.RbFreqStandMeasure.setting;
using Casic.Birmm.RbFreqStandMeasure.Tools;
using System;
using System.Collections.Generic;
@@ -21,6 +23,7 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -36,5 +39,25 @@
return;
}
}
+
+ private void btnInfoMan_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ InfoManForm infoForm = new InfoManForm();
+ infoForm.Show();
+ this.panelMain.Controls.Add(infoForm);
+ }
+
+ private void btnSetting_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ SettingForm settingForm = new SettingForm();
+ settingForm.Show();
+ this.panelMain.Controls.Add(settingForm);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 5402e0d..388c97e 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -8,7 +8,7 @@
{F9A73B92-70CF-4F91-B58B-E461A180A75C}
WinExe
Casic.Birmm.RbFreqStandMeasure
- Casic.Birmm.RbFreqStandMeasure
+ RbFreqStandMeasure
v4.0
512
true
@@ -86,7 +86,14 @@
+
+
+ UserControl
+
+
+ InfoManForm.cs
+
Form
@@ -95,8 +102,17 @@
+
+ UserControl
+
+
+ SettingForm.cs
+
+
+ InfoManForm.cs
+
RbFreqStandMeasure.cs
@@ -110,6 +126,9 @@
Resources.resx
True
+
+ SettingForm.cs
+
@@ -129,6 +148,9 @@
false
+
+
+
diff --git a/RbFreqStandMeasure/db/model/Company.cs b/RbFreqStandMeasure/db/model/Company.cs
new file mode 100644
index 0000000..aa04e10
--- /dev/null
+++ b/RbFreqStandMeasure/db/model/Company.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Casic.Birmm.RbFreqStandMeasure.db.model
+{
+ class Company
+ {
+ // 主键ID
+ private string id;
+ // 客户公司名称
+ private string name;
+ // 客户联系地址
+ private string address;
+ // 客户联系人
+ private string contacts;
+ // 客户联系电话
+ private string phone;
+ // 备注
+ private string remarks;
+ // 是否删除
+ private int valid;
+ // 时间戳,编辑时更新
+ private string ts;
+
+ public string Id { get => id; set => id = value; }
+ public string Name { get => name; set => name = value; }
+ public string Address { get => address; set => address = value; }
+ public string Contacts { get => contacts; set => contacts = value; }
+ public string Phone { get => phone; set => phone = value; }
+ public string Remarks { get => remarks; set => remarks = value; }
+ public int Valid { get => valid; set => valid = value; }
+ public string Ts { get => ts; set => ts = value; }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoManForm.Designer.cs b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
new file mode 100644
index 0000000..3196eee
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
@@ -0,0 +1,61 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ partial class InfoManForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region 组件设计器生成的代码
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.label1 = new System.Windows.Forms.Label();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(424, 226);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "用户信息管理";
+ //
+ // InfoManForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.label1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "InfoManForm";
+ this.Size = new System.Drawing.Size(1000, 600);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 047e4a9..9b85898 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,32 +29,139 @@
///
private void InitializeComponent()
{
- this.panel1 = new System.Windows.Forms.Panel();
+ this.panelBanner = new System.Windows.Forms.Panel();
+ this.labelTitle = new System.Windows.Forms.Label();
+ this.panelMenu = new System.Windows.Forms.Panel();
+ this.btnDevStatus = new System.Windows.Forms.Button();
+ this.btnInfoMan = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.btnDataMan = new System.Windows.Forms.Button();
+ this.btnSetting = new System.Windows.Forms.Button();
+ this.panelMain = new System.Windows.Forms.Panel();
+ this.panelBanner.SuspendLayout();
+ this.panelMenu.SuspendLayout();
this.SuspendLayout();
//
- // panel1
+ // panelBanner
//
- this.panel1.Location = new System.Drawing.Point(13, 13);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(983, 100);
- this.panel1.TabIndex = 0;
+ this.panelBanner.Controls.Add(this.labelTitle);
+ this.panelBanner.Location = new System.Drawing.Point(4, 0);
+ this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
+ this.panelBanner.Name = "panelBanner";
+ this.panelBanner.Size = new System.Drawing.Size(1000, 64);
+ this.panelBanner.TabIndex = 0;
+ //
+ // labelTitle
+ //
+ this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelTitle.Location = new System.Drawing.Point(0, 0);
+ this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
+ this.labelTitle.Name = "labelTitle";
+ this.labelTitle.Size = new System.Drawing.Size(1000, 64);
+ this.labelTitle.TabIndex = 0;
+ this.labelTitle.Text = "铷原子频标比对测量软件";
+ this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // panelMenu
+ //
+ this.panelMenu.Controls.Add(this.btnSetting);
+ this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnMeasure);
+ this.panelMenu.Controls.Add(this.btnInfoMan);
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMenu.Name = "panelMenu";
+ this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.TabIndex = 1;
+ //
+ // btnDevStatus
+ //
+ this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Name = "btnDevStatus";
+ this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.TabIndex = 0;
+ this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.UseVisualStyleBackColor = true;
+ //
+ // btnInfoMan
+ //
+ this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Name = "btnInfoMan";
+ this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.TabIndex = 0;
+ this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.UseVisualStyleBackColor = true;
+ this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(435, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(75, 50);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量检测";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // btnDataMan
+ //
+ this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Name = "btnDataMan";
+ this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.TabIndex = 0;
+ this.btnDataMan.Text = "数据管理";
+ this.btnDataMan.UseVisualStyleBackColor = true;
+ //
+ // btnSetting
+ //
+ this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Name = "btnSetting";
+ this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.TabIndex = 0;
+ this.btnSetting.Text = "系统设置";
+ this.btnSetting.UseVisualStyleBackColor = true;
+ this.btnSetting.Click += new System.EventHandler(this.btnSetting_Click);
+ //
+ // panelMain
+ //
+ this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMain.Name = "panelMain";
+ this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.TabIndex = 2;
//
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
- this.Controls.Add(this.panel1);
+ this.Controls.Add(this.panelMain);
+ this.Controls.Add(this.panelMenu);
+ this.Controls.Add(this.panelBanner);
+ this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
+ this.panelBanner.ResumeLayout(false);
+ this.panelMenu.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
- private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Panel panelBanner;
+ private System.Windows.Forms.Label labelTitle;
+ private System.Windows.Forms.Panel panelMenu;
+ private System.Windows.Forms.Button btnSetting;
+ private System.Windows.Forms.Button btnDataMan;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Button btnInfoMan;
+ private System.Windows.Forms.Button btnDevStatus;
+ private System.Windows.Forms.Panel panelMain;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index e4904c4..05d2ddb 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -1,4 +1,6 @@
using Casic.Birmm.RbFreqStandMeasure.Db;
+using Casic.Birmm.RbFreqStandMeasure.info;
+using Casic.Birmm.RbFreqStandMeasure.setting;
using Casic.Birmm.RbFreqStandMeasure.Tools;
using System;
using System.Collections.Generic;
@@ -21,6 +23,7 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -36,5 +39,25 @@
return;
}
}
+
+ private void btnInfoMan_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ InfoManForm infoForm = new InfoManForm();
+ infoForm.Show();
+ this.panelMain.Controls.Add(infoForm);
+ }
+
+ private void btnSetting_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ SettingForm settingForm = new SettingForm();
+ settingForm.Show();
+ this.panelMain.Controls.Add(settingForm);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 5402e0d..388c97e 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -8,7 +8,7 @@
{F9A73B92-70CF-4F91-B58B-E461A180A75C}
WinExe
Casic.Birmm.RbFreqStandMeasure
- Casic.Birmm.RbFreqStandMeasure
+ RbFreqStandMeasure
v4.0
512
true
@@ -86,7 +86,14 @@
+
+
+ UserControl
+
+
+ InfoManForm.cs
+
Form
@@ -95,8 +102,17 @@
+
+ UserControl
+
+
+ SettingForm.cs
+
+
+ InfoManForm.cs
+
RbFreqStandMeasure.cs
@@ -110,6 +126,9 @@
Resources.resx
True
+
+ SettingForm.cs
+
@@ -129,6 +148,9 @@
false
+
+
+
diff --git a/RbFreqStandMeasure/db/model/Company.cs b/RbFreqStandMeasure/db/model/Company.cs
new file mode 100644
index 0000000..aa04e10
--- /dev/null
+++ b/RbFreqStandMeasure/db/model/Company.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Casic.Birmm.RbFreqStandMeasure.db.model
+{
+ class Company
+ {
+ // 主键ID
+ private string id;
+ // 客户公司名称
+ private string name;
+ // 客户联系地址
+ private string address;
+ // 客户联系人
+ private string contacts;
+ // 客户联系电话
+ private string phone;
+ // 备注
+ private string remarks;
+ // 是否删除
+ private int valid;
+ // 时间戳,编辑时更新
+ private string ts;
+
+ public string Id { get => id; set => id = value; }
+ public string Name { get => name; set => name = value; }
+ public string Address { get => address; set => address = value; }
+ public string Contacts { get => contacts; set => contacts = value; }
+ public string Phone { get => phone; set => phone = value; }
+ public string Remarks { get => remarks; set => remarks = value; }
+ public int Valid { get => valid; set => valid = value; }
+ public string Ts { get => ts; set => ts = value; }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoManForm.Designer.cs b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
new file mode 100644
index 0000000..3196eee
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
@@ -0,0 +1,61 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ partial class InfoManForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region 组件设计器生成的代码
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.label1 = new System.Windows.Forms.Label();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(424, 226);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "用户信息管理";
+ //
+ // InfoManForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.label1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "InfoManForm";
+ this.Size = new System.Drawing.Size(1000, 600);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoManForm.cs b/RbFreqStandMeasure/info/InfoManForm.cs
new file mode 100644
index 0000000..614b3f9
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoManForm.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ public partial class InfoManForm : UserControl
+ {
+ public InfoManForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 047e4a9..9b85898 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,32 +29,139 @@
///
private void InitializeComponent()
{
- this.panel1 = new System.Windows.Forms.Panel();
+ this.panelBanner = new System.Windows.Forms.Panel();
+ this.labelTitle = new System.Windows.Forms.Label();
+ this.panelMenu = new System.Windows.Forms.Panel();
+ this.btnDevStatus = new System.Windows.Forms.Button();
+ this.btnInfoMan = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.btnDataMan = new System.Windows.Forms.Button();
+ this.btnSetting = new System.Windows.Forms.Button();
+ this.panelMain = new System.Windows.Forms.Panel();
+ this.panelBanner.SuspendLayout();
+ this.panelMenu.SuspendLayout();
this.SuspendLayout();
//
- // panel1
+ // panelBanner
//
- this.panel1.Location = new System.Drawing.Point(13, 13);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(983, 100);
- this.panel1.TabIndex = 0;
+ this.panelBanner.Controls.Add(this.labelTitle);
+ this.panelBanner.Location = new System.Drawing.Point(4, 0);
+ this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
+ this.panelBanner.Name = "panelBanner";
+ this.panelBanner.Size = new System.Drawing.Size(1000, 64);
+ this.panelBanner.TabIndex = 0;
+ //
+ // labelTitle
+ //
+ this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelTitle.Location = new System.Drawing.Point(0, 0);
+ this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
+ this.labelTitle.Name = "labelTitle";
+ this.labelTitle.Size = new System.Drawing.Size(1000, 64);
+ this.labelTitle.TabIndex = 0;
+ this.labelTitle.Text = "铷原子频标比对测量软件";
+ this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // panelMenu
+ //
+ this.panelMenu.Controls.Add(this.btnSetting);
+ this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnMeasure);
+ this.panelMenu.Controls.Add(this.btnInfoMan);
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMenu.Name = "panelMenu";
+ this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.TabIndex = 1;
+ //
+ // btnDevStatus
+ //
+ this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Name = "btnDevStatus";
+ this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.TabIndex = 0;
+ this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.UseVisualStyleBackColor = true;
+ //
+ // btnInfoMan
+ //
+ this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Name = "btnInfoMan";
+ this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.TabIndex = 0;
+ this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.UseVisualStyleBackColor = true;
+ this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(435, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(75, 50);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量检测";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // btnDataMan
+ //
+ this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Name = "btnDataMan";
+ this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.TabIndex = 0;
+ this.btnDataMan.Text = "数据管理";
+ this.btnDataMan.UseVisualStyleBackColor = true;
+ //
+ // btnSetting
+ //
+ this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Name = "btnSetting";
+ this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.TabIndex = 0;
+ this.btnSetting.Text = "系统设置";
+ this.btnSetting.UseVisualStyleBackColor = true;
+ this.btnSetting.Click += new System.EventHandler(this.btnSetting_Click);
+ //
+ // panelMain
+ //
+ this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMain.Name = "panelMain";
+ this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.TabIndex = 2;
//
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
- this.Controls.Add(this.panel1);
+ this.Controls.Add(this.panelMain);
+ this.Controls.Add(this.panelMenu);
+ this.Controls.Add(this.panelBanner);
+ this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
+ this.panelBanner.ResumeLayout(false);
+ this.panelMenu.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
- private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Panel panelBanner;
+ private System.Windows.Forms.Label labelTitle;
+ private System.Windows.Forms.Panel panelMenu;
+ private System.Windows.Forms.Button btnSetting;
+ private System.Windows.Forms.Button btnDataMan;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Button btnInfoMan;
+ private System.Windows.Forms.Button btnDevStatus;
+ private System.Windows.Forms.Panel panelMain;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index e4904c4..05d2ddb 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -1,4 +1,6 @@
using Casic.Birmm.RbFreqStandMeasure.Db;
+using Casic.Birmm.RbFreqStandMeasure.info;
+using Casic.Birmm.RbFreqStandMeasure.setting;
using Casic.Birmm.RbFreqStandMeasure.Tools;
using System;
using System.Collections.Generic;
@@ -21,6 +23,7 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -36,5 +39,25 @@
return;
}
}
+
+ private void btnInfoMan_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ InfoManForm infoForm = new InfoManForm();
+ infoForm.Show();
+ this.panelMain.Controls.Add(infoForm);
+ }
+
+ private void btnSetting_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ SettingForm settingForm = new SettingForm();
+ settingForm.Show();
+ this.panelMain.Controls.Add(settingForm);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 5402e0d..388c97e 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -8,7 +8,7 @@
{F9A73B92-70CF-4F91-B58B-E461A180A75C}
WinExe
Casic.Birmm.RbFreqStandMeasure
- Casic.Birmm.RbFreqStandMeasure
+ RbFreqStandMeasure
v4.0
512
true
@@ -86,7 +86,14 @@
+
+
+ UserControl
+
+
+ InfoManForm.cs
+
Form
@@ -95,8 +102,17 @@
+
+ UserControl
+
+
+ SettingForm.cs
+
+
+ InfoManForm.cs
+
RbFreqStandMeasure.cs
@@ -110,6 +126,9 @@
Resources.resx
True
+
+ SettingForm.cs
+
@@ -129,6 +148,9 @@
false
+
+
+
diff --git a/RbFreqStandMeasure/db/model/Company.cs b/RbFreqStandMeasure/db/model/Company.cs
new file mode 100644
index 0000000..aa04e10
--- /dev/null
+++ b/RbFreqStandMeasure/db/model/Company.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Casic.Birmm.RbFreqStandMeasure.db.model
+{
+ class Company
+ {
+ // 主键ID
+ private string id;
+ // 客户公司名称
+ private string name;
+ // 客户联系地址
+ private string address;
+ // 客户联系人
+ private string contacts;
+ // 客户联系电话
+ private string phone;
+ // 备注
+ private string remarks;
+ // 是否删除
+ private int valid;
+ // 时间戳,编辑时更新
+ private string ts;
+
+ public string Id { get => id; set => id = value; }
+ public string Name { get => name; set => name = value; }
+ public string Address { get => address; set => address = value; }
+ public string Contacts { get => contacts; set => contacts = value; }
+ public string Phone { get => phone; set => phone = value; }
+ public string Remarks { get => remarks; set => remarks = value; }
+ public int Valid { get => valid; set => valid = value; }
+ public string Ts { get => ts; set => ts = value; }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoManForm.Designer.cs b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
new file mode 100644
index 0000000..3196eee
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
@@ -0,0 +1,61 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ partial class InfoManForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region 组件设计器生成的代码
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.label1 = new System.Windows.Forms.Label();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(424, 226);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "用户信息管理";
+ //
+ // InfoManForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.label1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "InfoManForm";
+ this.Size = new System.Drawing.Size(1000, 600);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoManForm.cs b/RbFreqStandMeasure/info/InfoManForm.cs
new file mode 100644
index 0000000..614b3f9
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoManForm.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ public partial class InfoManForm : UserControl
+ {
+ public InfoManForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoManForm.resx b/RbFreqStandMeasure/info/InfoManForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoManForm.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 047e4a9..9b85898 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,32 +29,139 @@
///
private void InitializeComponent()
{
- this.panel1 = new System.Windows.Forms.Panel();
+ this.panelBanner = new System.Windows.Forms.Panel();
+ this.labelTitle = new System.Windows.Forms.Label();
+ this.panelMenu = new System.Windows.Forms.Panel();
+ this.btnDevStatus = new System.Windows.Forms.Button();
+ this.btnInfoMan = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.btnDataMan = new System.Windows.Forms.Button();
+ this.btnSetting = new System.Windows.Forms.Button();
+ this.panelMain = new System.Windows.Forms.Panel();
+ this.panelBanner.SuspendLayout();
+ this.panelMenu.SuspendLayout();
this.SuspendLayout();
//
- // panel1
+ // panelBanner
//
- this.panel1.Location = new System.Drawing.Point(13, 13);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(983, 100);
- this.panel1.TabIndex = 0;
+ this.panelBanner.Controls.Add(this.labelTitle);
+ this.panelBanner.Location = new System.Drawing.Point(4, 0);
+ this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
+ this.panelBanner.Name = "panelBanner";
+ this.panelBanner.Size = new System.Drawing.Size(1000, 64);
+ this.panelBanner.TabIndex = 0;
+ //
+ // labelTitle
+ //
+ this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelTitle.Location = new System.Drawing.Point(0, 0);
+ this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
+ this.labelTitle.Name = "labelTitle";
+ this.labelTitle.Size = new System.Drawing.Size(1000, 64);
+ this.labelTitle.TabIndex = 0;
+ this.labelTitle.Text = "铷原子频标比对测量软件";
+ this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // panelMenu
+ //
+ this.panelMenu.Controls.Add(this.btnSetting);
+ this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnMeasure);
+ this.panelMenu.Controls.Add(this.btnInfoMan);
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMenu.Name = "panelMenu";
+ this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.TabIndex = 1;
+ //
+ // btnDevStatus
+ //
+ this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Name = "btnDevStatus";
+ this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.TabIndex = 0;
+ this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.UseVisualStyleBackColor = true;
+ //
+ // btnInfoMan
+ //
+ this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Name = "btnInfoMan";
+ this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.TabIndex = 0;
+ this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.UseVisualStyleBackColor = true;
+ this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(435, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(75, 50);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量检测";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // btnDataMan
+ //
+ this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Name = "btnDataMan";
+ this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.TabIndex = 0;
+ this.btnDataMan.Text = "数据管理";
+ this.btnDataMan.UseVisualStyleBackColor = true;
+ //
+ // btnSetting
+ //
+ this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Name = "btnSetting";
+ this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.TabIndex = 0;
+ this.btnSetting.Text = "系统设置";
+ this.btnSetting.UseVisualStyleBackColor = true;
+ this.btnSetting.Click += new System.EventHandler(this.btnSetting_Click);
+ //
+ // panelMain
+ //
+ this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMain.Name = "panelMain";
+ this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.TabIndex = 2;
//
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
- this.Controls.Add(this.panel1);
+ this.Controls.Add(this.panelMain);
+ this.Controls.Add(this.panelMenu);
+ this.Controls.Add(this.panelBanner);
+ this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
+ this.panelBanner.ResumeLayout(false);
+ this.panelMenu.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
- private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Panel panelBanner;
+ private System.Windows.Forms.Label labelTitle;
+ private System.Windows.Forms.Panel panelMenu;
+ private System.Windows.Forms.Button btnSetting;
+ private System.Windows.Forms.Button btnDataMan;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Button btnInfoMan;
+ private System.Windows.Forms.Button btnDevStatus;
+ private System.Windows.Forms.Panel panelMain;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index e4904c4..05d2ddb 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -1,4 +1,6 @@
using Casic.Birmm.RbFreqStandMeasure.Db;
+using Casic.Birmm.RbFreqStandMeasure.info;
+using Casic.Birmm.RbFreqStandMeasure.setting;
using Casic.Birmm.RbFreqStandMeasure.Tools;
using System;
using System.Collections.Generic;
@@ -21,6 +23,7 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -36,5 +39,25 @@
return;
}
}
+
+ private void btnInfoMan_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ InfoManForm infoForm = new InfoManForm();
+ infoForm.Show();
+ this.panelMain.Controls.Add(infoForm);
+ }
+
+ private void btnSetting_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ SettingForm settingForm = new SettingForm();
+ settingForm.Show();
+ this.panelMain.Controls.Add(settingForm);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 5402e0d..388c97e 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -8,7 +8,7 @@
{F9A73B92-70CF-4F91-B58B-E461A180A75C}
WinExe
Casic.Birmm.RbFreqStandMeasure
- Casic.Birmm.RbFreqStandMeasure
+ RbFreqStandMeasure
v4.0
512
true
@@ -86,7 +86,14 @@
+
+
+ UserControl
+
+
+ InfoManForm.cs
+
Form
@@ -95,8 +102,17 @@
+
+ UserControl
+
+
+ SettingForm.cs
+
+
+ InfoManForm.cs
+
RbFreqStandMeasure.cs
@@ -110,6 +126,9 @@
Resources.resx
True
+
+ SettingForm.cs
+
@@ -129,6 +148,9 @@
false
+
+
+
diff --git a/RbFreqStandMeasure/db/model/Company.cs b/RbFreqStandMeasure/db/model/Company.cs
new file mode 100644
index 0000000..aa04e10
--- /dev/null
+++ b/RbFreqStandMeasure/db/model/Company.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Casic.Birmm.RbFreqStandMeasure.db.model
+{
+ class Company
+ {
+ // 主键ID
+ private string id;
+ // 客户公司名称
+ private string name;
+ // 客户联系地址
+ private string address;
+ // 客户联系人
+ private string contacts;
+ // 客户联系电话
+ private string phone;
+ // 备注
+ private string remarks;
+ // 是否删除
+ private int valid;
+ // 时间戳,编辑时更新
+ private string ts;
+
+ public string Id { get => id; set => id = value; }
+ public string Name { get => name; set => name = value; }
+ public string Address { get => address; set => address = value; }
+ public string Contacts { get => contacts; set => contacts = value; }
+ public string Phone { get => phone; set => phone = value; }
+ public string Remarks { get => remarks; set => remarks = value; }
+ public int Valid { get => valid; set => valid = value; }
+ public string Ts { get => ts; set => ts = value; }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoManForm.Designer.cs b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
new file mode 100644
index 0000000..3196eee
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
@@ -0,0 +1,61 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ partial class InfoManForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region 组件设计器生成的代码
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.label1 = new System.Windows.Forms.Label();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(424, 226);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "用户信息管理";
+ //
+ // InfoManForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.label1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "InfoManForm";
+ this.Size = new System.Drawing.Size(1000, 600);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoManForm.cs b/RbFreqStandMeasure/info/InfoManForm.cs
new file mode 100644
index 0000000..614b3f9
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoManForm.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ public partial class InfoManForm : UserControl
+ {
+ public InfoManForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoManForm.resx b/RbFreqStandMeasure/info/InfoManForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoManForm.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/setting/SettingForm.Designer.cs b/RbFreqStandMeasure/setting/SettingForm.Designer.cs
new file mode 100644
index 0000000..4779f1e
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingForm.Designer.cs
@@ -0,0 +1,72 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.setting
+{
+ partial class SettingForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region 组件设计器生成的代码
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.button1 = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(449, 3);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(160, 23);
+ this.button1.TabIndex = 0;
+ this.button1.Text = "设置系统参数";
+ this.button1.UseVisualStyleBackColor = true;
+ //
+ // button2
+ //
+ this.button2.Location = new System.Drawing.Point(449, 574);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(160, 23);
+ this.button2.TabIndex = 0;
+ this.button2.Text = "设置系统参数结束";
+ this.button2.UseVisualStyleBackColor = true;
+ //
+ // SettingForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.button2);
+ this.Controls.Add(this.button1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "SettingForm";
+ this.Size = new System.Drawing.Size(1000, 600);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Button button2;
+ }
+}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 047e4a9..9b85898 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,32 +29,139 @@
///
private void InitializeComponent()
{
- this.panel1 = new System.Windows.Forms.Panel();
+ this.panelBanner = new System.Windows.Forms.Panel();
+ this.labelTitle = new System.Windows.Forms.Label();
+ this.panelMenu = new System.Windows.Forms.Panel();
+ this.btnDevStatus = new System.Windows.Forms.Button();
+ this.btnInfoMan = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.btnDataMan = new System.Windows.Forms.Button();
+ this.btnSetting = new System.Windows.Forms.Button();
+ this.panelMain = new System.Windows.Forms.Panel();
+ this.panelBanner.SuspendLayout();
+ this.panelMenu.SuspendLayout();
this.SuspendLayout();
//
- // panel1
+ // panelBanner
//
- this.panel1.Location = new System.Drawing.Point(13, 13);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(983, 100);
- this.panel1.TabIndex = 0;
+ this.panelBanner.Controls.Add(this.labelTitle);
+ this.panelBanner.Location = new System.Drawing.Point(4, 0);
+ this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
+ this.panelBanner.Name = "panelBanner";
+ this.panelBanner.Size = new System.Drawing.Size(1000, 64);
+ this.panelBanner.TabIndex = 0;
+ //
+ // labelTitle
+ //
+ this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelTitle.Location = new System.Drawing.Point(0, 0);
+ this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
+ this.labelTitle.Name = "labelTitle";
+ this.labelTitle.Size = new System.Drawing.Size(1000, 64);
+ this.labelTitle.TabIndex = 0;
+ this.labelTitle.Text = "铷原子频标比对测量软件";
+ this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // panelMenu
+ //
+ this.panelMenu.Controls.Add(this.btnSetting);
+ this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnMeasure);
+ this.panelMenu.Controls.Add(this.btnInfoMan);
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMenu.Name = "panelMenu";
+ this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.TabIndex = 1;
+ //
+ // btnDevStatus
+ //
+ this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Name = "btnDevStatus";
+ this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.TabIndex = 0;
+ this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.UseVisualStyleBackColor = true;
+ //
+ // btnInfoMan
+ //
+ this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Name = "btnInfoMan";
+ this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.TabIndex = 0;
+ this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.UseVisualStyleBackColor = true;
+ this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(435, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(75, 50);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量检测";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // btnDataMan
+ //
+ this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Name = "btnDataMan";
+ this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.TabIndex = 0;
+ this.btnDataMan.Text = "数据管理";
+ this.btnDataMan.UseVisualStyleBackColor = true;
+ //
+ // btnSetting
+ //
+ this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Name = "btnSetting";
+ this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.TabIndex = 0;
+ this.btnSetting.Text = "系统设置";
+ this.btnSetting.UseVisualStyleBackColor = true;
+ this.btnSetting.Click += new System.EventHandler(this.btnSetting_Click);
+ //
+ // panelMain
+ //
+ this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMain.Name = "panelMain";
+ this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.TabIndex = 2;
//
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
- this.Controls.Add(this.panel1);
+ this.Controls.Add(this.panelMain);
+ this.Controls.Add(this.panelMenu);
+ this.Controls.Add(this.panelBanner);
+ this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
+ this.panelBanner.ResumeLayout(false);
+ this.panelMenu.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
- private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Panel panelBanner;
+ private System.Windows.Forms.Label labelTitle;
+ private System.Windows.Forms.Panel panelMenu;
+ private System.Windows.Forms.Button btnSetting;
+ private System.Windows.Forms.Button btnDataMan;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Button btnInfoMan;
+ private System.Windows.Forms.Button btnDevStatus;
+ private System.Windows.Forms.Panel panelMain;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index e4904c4..05d2ddb 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -1,4 +1,6 @@
using Casic.Birmm.RbFreqStandMeasure.Db;
+using Casic.Birmm.RbFreqStandMeasure.info;
+using Casic.Birmm.RbFreqStandMeasure.setting;
using Casic.Birmm.RbFreqStandMeasure.Tools;
using System;
using System.Collections.Generic;
@@ -21,6 +23,7 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -36,5 +39,25 @@
return;
}
}
+
+ private void btnInfoMan_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ InfoManForm infoForm = new InfoManForm();
+ infoForm.Show();
+ this.panelMain.Controls.Add(infoForm);
+ }
+
+ private void btnSetting_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ SettingForm settingForm = new SettingForm();
+ settingForm.Show();
+ this.panelMain.Controls.Add(settingForm);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 5402e0d..388c97e 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -8,7 +8,7 @@
{F9A73B92-70CF-4F91-B58B-E461A180A75C}
WinExe
Casic.Birmm.RbFreqStandMeasure
- Casic.Birmm.RbFreqStandMeasure
+ RbFreqStandMeasure
v4.0
512
true
@@ -86,7 +86,14 @@
+
+
+ UserControl
+
+
+ InfoManForm.cs
+
Form
@@ -95,8 +102,17 @@
+
+ UserControl
+
+
+ SettingForm.cs
+
+
+ InfoManForm.cs
+
RbFreqStandMeasure.cs
@@ -110,6 +126,9 @@
Resources.resx
True
+
+ SettingForm.cs
+
@@ -129,6 +148,9 @@
false
+
+
+
diff --git a/RbFreqStandMeasure/db/model/Company.cs b/RbFreqStandMeasure/db/model/Company.cs
new file mode 100644
index 0000000..aa04e10
--- /dev/null
+++ b/RbFreqStandMeasure/db/model/Company.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Casic.Birmm.RbFreqStandMeasure.db.model
+{
+ class Company
+ {
+ // 主键ID
+ private string id;
+ // 客户公司名称
+ private string name;
+ // 客户联系地址
+ private string address;
+ // 客户联系人
+ private string contacts;
+ // 客户联系电话
+ private string phone;
+ // 备注
+ private string remarks;
+ // 是否删除
+ private int valid;
+ // 时间戳,编辑时更新
+ private string ts;
+
+ public string Id { get => id; set => id = value; }
+ public string Name { get => name; set => name = value; }
+ public string Address { get => address; set => address = value; }
+ public string Contacts { get => contacts; set => contacts = value; }
+ public string Phone { get => phone; set => phone = value; }
+ public string Remarks { get => remarks; set => remarks = value; }
+ public int Valid { get => valid; set => valid = value; }
+ public string Ts { get => ts; set => ts = value; }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoManForm.Designer.cs b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
new file mode 100644
index 0000000..3196eee
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
@@ -0,0 +1,61 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ partial class InfoManForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region 组件设计器生成的代码
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.label1 = new System.Windows.Forms.Label();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(424, 226);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "用户信息管理";
+ //
+ // InfoManForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.label1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "InfoManForm";
+ this.Size = new System.Drawing.Size(1000, 600);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoManForm.cs b/RbFreqStandMeasure/info/InfoManForm.cs
new file mode 100644
index 0000000..614b3f9
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoManForm.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ public partial class InfoManForm : UserControl
+ {
+ public InfoManForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoManForm.resx b/RbFreqStandMeasure/info/InfoManForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoManForm.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/setting/SettingForm.Designer.cs b/RbFreqStandMeasure/setting/SettingForm.Designer.cs
new file mode 100644
index 0000000..4779f1e
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingForm.Designer.cs
@@ -0,0 +1,72 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.setting
+{
+ partial class SettingForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region 组件设计器生成的代码
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.button1 = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(449, 3);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(160, 23);
+ this.button1.TabIndex = 0;
+ this.button1.Text = "设置系统参数";
+ this.button1.UseVisualStyleBackColor = true;
+ //
+ // button2
+ //
+ this.button2.Location = new System.Drawing.Point(449, 574);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(160, 23);
+ this.button2.TabIndex = 0;
+ this.button2.Text = "设置系统参数结束";
+ this.button2.UseVisualStyleBackColor = true;
+ //
+ // SettingForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.button2);
+ this.Controls.Add(this.button1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "SettingForm";
+ this.Size = new System.Drawing.Size(1000, 600);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Button button2;
+ }
+}
diff --git a/RbFreqStandMeasure/setting/SettingForm.cs b/RbFreqStandMeasure/setting/SettingForm.cs
new file mode 100644
index 0000000..f118a7c
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingForm.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure.setting
+{
+ public partial class SettingForm : UserControl
+ {
+ public SettingForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 047e4a9..9b85898 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,32 +29,139 @@
///
private void InitializeComponent()
{
- this.panel1 = new System.Windows.Forms.Panel();
+ this.panelBanner = new System.Windows.Forms.Panel();
+ this.labelTitle = new System.Windows.Forms.Label();
+ this.panelMenu = new System.Windows.Forms.Panel();
+ this.btnDevStatus = new System.Windows.Forms.Button();
+ this.btnInfoMan = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.btnDataMan = new System.Windows.Forms.Button();
+ this.btnSetting = new System.Windows.Forms.Button();
+ this.panelMain = new System.Windows.Forms.Panel();
+ this.panelBanner.SuspendLayout();
+ this.panelMenu.SuspendLayout();
this.SuspendLayout();
//
- // panel1
+ // panelBanner
//
- this.panel1.Location = new System.Drawing.Point(13, 13);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(983, 100);
- this.panel1.TabIndex = 0;
+ this.panelBanner.Controls.Add(this.labelTitle);
+ this.panelBanner.Location = new System.Drawing.Point(4, 0);
+ this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
+ this.panelBanner.Name = "panelBanner";
+ this.panelBanner.Size = new System.Drawing.Size(1000, 64);
+ this.panelBanner.TabIndex = 0;
+ //
+ // labelTitle
+ //
+ this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelTitle.Location = new System.Drawing.Point(0, 0);
+ this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
+ this.labelTitle.Name = "labelTitle";
+ this.labelTitle.Size = new System.Drawing.Size(1000, 64);
+ this.labelTitle.TabIndex = 0;
+ this.labelTitle.Text = "铷原子频标比对测量软件";
+ this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // panelMenu
+ //
+ this.panelMenu.Controls.Add(this.btnSetting);
+ this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnMeasure);
+ this.panelMenu.Controls.Add(this.btnInfoMan);
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMenu.Name = "panelMenu";
+ this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.TabIndex = 1;
+ //
+ // btnDevStatus
+ //
+ this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Name = "btnDevStatus";
+ this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.TabIndex = 0;
+ this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.UseVisualStyleBackColor = true;
+ //
+ // btnInfoMan
+ //
+ this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Name = "btnInfoMan";
+ this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.TabIndex = 0;
+ this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.UseVisualStyleBackColor = true;
+ this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(435, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(75, 50);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量检测";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // btnDataMan
+ //
+ this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Name = "btnDataMan";
+ this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.TabIndex = 0;
+ this.btnDataMan.Text = "数据管理";
+ this.btnDataMan.UseVisualStyleBackColor = true;
+ //
+ // btnSetting
+ //
+ this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Name = "btnSetting";
+ this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.TabIndex = 0;
+ this.btnSetting.Text = "系统设置";
+ this.btnSetting.UseVisualStyleBackColor = true;
+ this.btnSetting.Click += new System.EventHandler(this.btnSetting_Click);
+ //
+ // panelMain
+ //
+ this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMain.Name = "panelMain";
+ this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.TabIndex = 2;
//
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
- this.Controls.Add(this.panel1);
+ this.Controls.Add(this.panelMain);
+ this.Controls.Add(this.panelMenu);
+ this.Controls.Add(this.panelBanner);
+ this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
+ this.panelBanner.ResumeLayout(false);
+ this.panelMenu.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
- private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Panel panelBanner;
+ private System.Windows.Forms.Label labelTitle;
+ private System.Windows.Forms.Panel panelMenu;
+ private System.Windows.Forms.Button btnSetting;
+ private System.Windows.Forms.Button btnDataMan;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Button btnInfoMan;
+ private System.Windows.Forms.Button btnDevStatus;
+ private System.Windows.Forms.Panel panelMain;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index e4904c4..05d2ddb 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -1,4 +1,6 @@
using Casic.Birmm.RbFreqStandMeasure.Db;
+using Casic.Birmm.RbFreqStandMeasure.info;
+using Casic.Birmm.RbFreqStandMeasure.setting;
using Casic.Birmm.RbFreqStandMeasure.Tools;
using System;
using System.Collections.Generic;
@@ -21,6 +23,7 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -36,5 +39,25 @@
return;
}
}
+
+ private void btnInfoMan_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ InfoManForm infoForm = new InfoManForm();
+ infoForm.Show();
+ this.panelMain.Controls.Add(infoForm);
+ }
+
+ private void btnSetting_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ SettingForm settingForm = new SettingForm();
+ settingForm.Show();
+ this.panelMain.Controls.Add(settingForm);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 5402e0d..388c97e 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -8,7 +8,7 @@
{F9A73B92-70CF-4F91-B58B-E461A180A75C}
WinExe
Casic.Birmm.RbFreqStandMeasure
- Casic.Birmm.RbFreqStandMeasure
+ RbFreqStandMeasure
v4.0
512
true
@@ -86,7 +86,14 @@
+
+
+ UserControl
+
+
+ InfoManForm.cs
+
Form
@@ -95,8 +102,17 @@
+
+ UserControl
+
+
+ SettingForm.cs
+
+
+ InfoManForm.cs
+
RbFreqStandMeasure.cs
@@ -110,6 +126,9 @@
Resources.resx
True
+
+ SettingForm.cs
+
@@ -129,6 +148,9 @@
false
+
+
+
diff --git a/RbFreqStandMeasure/db/model/Company.cs b/RbFreqStandMeasure/db/model/Company.cs
new file mode 100644
index 0000000..aa04e10
--- /dev/null
+++ b/RbFreqStandMeasure/db/model/Company.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Casic.Birmm.RbFreqStandMeasure.db.model
+{
+ class Company
+ {
+ // 主键ID
+ private string id;
+ // 客户公司名称
+ private string name;
+ // 客户联系地址
+ private string address;
+ // 客户联系人
+ private string contacts;
+ // 客户联系电话
+ private string phone;
+ // 备注
+ private string remarks;
+ // 是否删除
+ private int valid;
+ // 时间戳,编辑时更新
+ private string ts;
+
+ public string Id { get => id; set => id = value; }
+ public string Name { get => name; set => name = value; }
+ public string Address { get => address; set => address = value; }
+ public string Contacts { get => contacts; set => contacts = value; }
+ public string Phone { get => phone; set => phone = value; }
+ public string Remarks { get => remarks; set => remarks = value; }
+ public int Valid { get => valid; set => valid = value; }
+ public string Ts { get => ts; set => ts = value; }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoManForm.Designer.cs b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
new file mode 100644
index 0000000..3196eee
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
@@ -0,0 +1,61 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ partial class InfoManForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region 组件设计器生成的代码
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.label1 = new System.Windows.Forms.Label();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(424, 226);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "用户信息管理";
+ //
+ // InfoManForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.label1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "InfoManForm";
+ this.Size = new System.Drawing.Size(1000, 600);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoManForm.cs b/RbFreqStandMeasure/info/InfoManForm.cs
new file mode 100644
index 0000000..614b3f9
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoManForm.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ public partial class InfoManForm : UserControl
+ {
+ public InfoManForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoManForm.resx b/RbFreqStandMeasure/info/InfoManForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoManForm.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/setting/SettingForm.Designer.cs b/RbFreqStandMeasure/setting/SettingForm.Designer.cs
new file mode 100644
index 0000000..4779f1e
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingForm.Designer.cs
@@ -0,0 +1,72 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.setting
+{
+ partial class SettingForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region 组件设计器生成的代码
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.button1 = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(449, 3);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(160, 23);
+ this.button1.TabIndex = 0;
+ this.button1.Text = "设置系统参数";
+ this.button1.UseVisualStyleBackColor = true;
+ //
+ // button2
+ //
+ this.button2.Location = new System.Drawing.Point(449, 574);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(160, 23);
+ this.button2.TabIndex = 0;
+ this.button2.Text = "设置系统参数结束";
+ this.button2.UseVisualStyleBackColor = true;
+ //
+ // SettingForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.button2);
+ this.Controls.Add(this.button1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "SettingForm";
+ this.Size = new System.Drawing.Size(1000, 600);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Button button2;
+ }
+}
diff --git a/RbFreqStandMeasure/setting/SettingForm.cs b/RbFreqStandMeasure/setting/SettingForm.cs
new file mode 100644
index 0000000..f118a7c
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingForm.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure.setting
+{
+ public partial class SettingForm : UserControl
+ {
+ public SettingForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/setting/SettingForm.resx b/RbFreqStandMeasure/setting/SettingForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingForm.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
index 047e4a9..9b85898 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.Designer.cs
@@ -29,32 +29,139 @@
///
private void InitializeComponent()
{
- this.panel1 = new System.Windows.Forms.Panel();
+ this.panelBanner = new System.Windows.Forms.Panel();
+ this.labelTitle = new System.Windows.Forms.Label();
+ this.panelMenu = new System.Windows.Forms.Panel();
+ this.btnDevStatus = new System.Windows.Forms.Button();
+ this.btnInfoMan = new System.Windows.Forms.Button();
+ this.btnMeasure = new System.Windows.Forms.Button();
+ this.btnDataMan = new System.Windows.Forms.Button();
+ this.btnSetting = new System.Windows.Forms.Button();
+ this.panelMain = new System.Windows.Forms.Panel();
+ this.panelBanner.SuspendLayout();
+ this.panelMenu.SuspendLayout();
this.SuspendLayout();
//
- // panel1
+ // panelBanner
//
- this.panel1.Location = new System.Drawing.Point(13, 13);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(983, 100);
- this.panel1.TabIndex = 0;
+ this.panelBanner.Controls.Add(this.labelTitle);
+ this.panelBanner.Location = new System.Drawing.Point(4, 0);
+ this.panelBanner.Margin = new System.Windows.Forms.Padding(0);
+ this.panelBanner.Name = "panelBanner";
+ this.panelBanner.Size = new System.Drawing.Size(1000, 64);
+ this.panelBanner.TabIndex = 0;
+ //
+ // labelTitle
+ //
+ this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.labelTitle.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+ this.labelTitle.Location = new System.Drawing.Point(0, 0);
+ this.labelTitle.Margin = new System.Windows.Forms.Padding(0);
+ this.labelTitle.Name = "labelTitle";
+ this.labelTitle.Size = new System.Drawing.Size(1000, 64);
+ this.labelTitle.TabIndex = 0;
+ this.labelTitle.Text = "铷原子频标比对测量软件";
+ this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // panelMenu
+ //
+ this.panelMenu.Controls.Add(this.btnSetting);
+ this.panelMenu.Controls.Add(this.btnDataMan);
+ this.panelMenu.Controls.Add(this.btnMeasure);
+ this.panelMenu.Controls.Add(this.btnInfoMan);
+ this.panelMenu.Controls.Add(this.btnDevStatus);
+ this.panelMenu.Location = new System.Drawing.Point(4, 64);
+ this.panelMenu.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMenu.Name = "panelMenu";
+ this.panelMenu.Size = new System.Drawing.Size(1000, 50);
+ this.panelMenu.TabIndex = 1;
+ //
+ // btnDevStatus
+ //
+ this.btnDevStatus.Location = new System.Drawing.Point(107, 0);
+ this.btnDevStatus.Name = "btnDevStatus";
+ this.btnDevStatus.Size = new System.Drawing.Size(75, 50);
+ this.btnDevStatus.TabIndex = 0;
+ this.btnDevStatus.Text = "设备状态";
+ this.btnDevStatus.UseVisualStyleBackColor = true;
+ //
+ // btnInfoMan
+ //
+ this.btnInfoMan.Location = new System.Drawing.Point(268, 0);
+ this.btnInfoMan.Name = "btnInfoMan";
+ this.btnInfoMan.Size = new System.Drawing.Size(75, 50);
+ this.btnInfoMan.TabIndex = 0;
+ this.btnInfoMan.Text = "信息管理";
+ this.btnInfoMan.UseVisualStyleBackColor = true;
+ this.btnInfoMan.Click += new System.EventHandler(this.btnInfoMan_Click);
+ //
+ // btnMeasure
+ //
+ this.btnMeasure.Location = new System.Drawing.Point(435, 0);
+ this.btnMeasure.Name = "btnMeasure";
+ this.btnMeasure.Size = new System.Drawing.Size(75, 50);
+ this.btnMeasure.TabIndex = 0;
+ this.btnMeasure.Text = "计量检测";
+ this.btnMeasure.UseVisualStyleBackColor = true;
+ //
+ // btnDataMan
+ //
+ this.btnDataMan.Location = new System.Drawing.Point(596, 0);
+ this.btnDataMan.Name = "btnDataMan";
+ this.btnDataMan.Size = new System.Drawing.Size(75, 50);
+ this.btnDataMan.TabIndex = 0;
+ this.btnDataMan.Text = "数据管理";
+ this.btnDataMan.UseVisualStyleBackColor = true;
+ //
+ // btnSetting
+ //
+ this.btnSetting.Location = new System.Drawing.Point(782, 0);
+ this.btnSetting.Name = "btnSetting";
+ this.btnSetting.Size = new System.Drawing.Size(75, 50);
+ this.btnSetting.TabIndex = 0;
+ this.btnSetting.Text = "系统设置";
+ this.btnSetting.UseVisualStyleBackColor = true;
+ this.btnSetting.Click += new System.EventHandler(this.btnSetting_Click);
+ //
+ // panelMain
+ //
+ this.panelMain.Location = new System.Drawing.Point(4, 114);
+ this.panelMain.Margin = new System.Windows.Forms.Padding(0);
+ this.panelMain.Name = "panelMain";
+ this.panelMain.Size = new System.Drawing.Size(1000, 610);
+ this.panelMain.TabIndex = 2;
//
// RbFreqStandMeasureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1008, 729);
- this.Controls.Add(this.panel1);
+ this.Controls.Add(this.panelMain);
+ this.Controls.Add(this.panelMenu);
+ this.Controls.Add(this.panelBanner);
+ this.MaximizeBox = false;
this.Name = "RbFreqStandMeasureForm";
this.Text = "铷原子频标比对测量";
this.Load += new System.EventHandler(this.RbFreqStandMeasureForm_Load);
+ this.panelBanner.ResumeLayout(false);
+ this.panelMenu.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
- private System.Windows.Forms.Panel panel1;
+ private System.Windows.Forms.Panel panelBanner;
+ private System.Windows.Forms.Label labelTitle;
+ private System.Windows.Forms.Panel panelMenu;
+ private System.Windows.Forms.Button btnSetting;
+ private System.Windows.Forms.Button btnDataMan;
+ private System.Windows.Forms.Button btnMeasure;
+ private System.Windows.Forms.Button btnInfoMan;
+ private System.Windows.Forms.Button btnDevStatus;
+ private System.Windows.Forms.Panel panelMain;
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.cs b/RbFreqStandMeasure/RbFreqStandMeasure.cs
index e4904c4..05d2ddb 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.cs
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.cs
@@ -1,4 +1,6 @@
using Casic.Birmm.RbFreqStandMeasure.Db;
+using Casic.Birmm.RbFreqStandMeasure.info;
+using Casic.Birmm.RbFreqStandMeasure.setting;
using Casic.Birmm.RbFreqStandMeasure.Tools;
using System;
using System.Collections.Generic;
@@ -21,6 +23,7 @@
private void RbFreqStandMeasureForm_Load(object sender, EventArgs e)
{
+ // 系统启动时即打开数据库
int iRetval = -1;
iRetval = SqliteHelper.OpenDB();
@@ -36,5 +39,25 @@
return;
}
}
+
+ private void btnInfoMan_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ InfoManForm infoForm = new InfoManForm();
+ infoForm.Show();
+ this.panelMain.Controls.Add(infoForm);
+ }
+
+ private void btnSetting_Click(object sender, EventArgs e)
+ {
+ // 清除panel上的所有控件
+ this.panelMain.Controls.Clear();
+
+ SettingForm settingForm = new SettingForm();
+ settingForm.Show();
+ this.panelMain.Controls.Add(settingForm);
+ }
}
}
diff --git a/RbFreqStandMeasure/RbFreqStandMeasure.csproj b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
index 5402e0d..388c97e 100644
--- a/RbFreqStandMeasure/RbFreqStandMeasure.csproj
+++ b/RbFreqStandMeasure/RbFreqStandMeasure.csproj
@@ -8,7 +8,7 @@
{F9A73B92-70CF-4F91-B58B-E461A180A75C}
WinExe
Casic.Birmm.RbFreqStandMeasure
- Casic.Birmm.RbFreqStandMeasure
+ RbFreqStandMeasure
v4.0
512
true
@@ -86,7 +86,14 @@
+
+
+ UserControl
+
+
+ InfoManForm.cs
+
Form
@@ -95,8 +102,17 @@
+
+ UserControl
+
+
+ SettingForm.cs
+
+
+ InfoManForm.cs
+
RbFreqStandMeasure.cs
@@ -110,6 +126,9 @@
Resources.resx
True
+
+ SettingForm.cs
+
@@ -129,6 +148,9 @@
false
+
+
+
diff --git a/RbFreqStandMeasure/db/model/Company.cs b/RbFreqStandMeasure/db/model/Company.cs
new file mode 100644
index 0000000..aa04e10
--- /dev/null
+++ b/RbFreqStandMeasure/db/model/Company.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Casic.Birmm.RbFreqStandMeasure.db.model
+{
+ class Company
+ {
+ // 主键ID
+ private string id;
+ // 客户公司名称
+ private string name;
+ // 客户联系地址
+ private string address;
+ // 客户联系人
+ private string contacts;
+ // 客户联系电话
+ private string phone;
+ // 备注
+ private string remarks;
+ // 是否删除
+ private int valid;
+ // 时间戳,编辑时更新
+ private string ts;
+
+ public string Id { get => id; set => id = value; }
+ public string Name { get => name; set => name = value; }
+ public string Address { get => address; set => address = value; }
+ public string Contacts { get => contacts; set => contacts = value; }
+ public string Phone { get => phone; set => phone = value; }
+ public string Remarks { get => remarks; set => remarks = value; }
+ public int Valid { get => valid; set => valid = value; }
+ public string Ts { get => ts; set => ts = value; }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoManForm.Designer.cs b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
new file mode 100644
index 0000000..3196eee
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoManForm.Designer.cs
@@ -0,0 +1,61 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ partial class InfoManForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region 组件设计器生成的代码
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.label1 = new System.Windows.Forms.Label();
+ this.SuspendLayout();
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.Location = new System.Drawing.Point(424, 226);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(77, 12);
+ this.label1.TabIndex = 0;
+ this.label1.Text = "用户信息管理";
+ //
+ // InfoManForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.label1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "InfoManForm";
+ this.Size = new System.Drawing.Size(1000, 600);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Label label1;
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoManForm.cs b/RbFreqStandMeasure/info/InfoManForm.cs
new file mode 100644
index 0000000..614b3f9
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoManForm.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure.info
+{
+ public partial class InfoManForm : UserControl
+ {
+ public InfoManForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/info/InfoManForm.resx b/RbFreqStandMeasure/info/InfoManForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/info/InfoManForm.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/RbFreqStandMeasure/setting/SettingForm.Designer.cs b/RbFreqStandMeasure/setting/SettingForm.Designer.cs
new file mode 100644
index 0000000..4779f1e
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingForm.Designer.cs
@@ -0,0 +1,72 @@
+
+namespace Casic.Birmm.RbFreqStandMeasure.setting
+{
+ partial class SettingForm
+ {
+ ///
+ /// 必需的设计器变量。
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// 清理所有正在使用的资源。
+ ///
+ /// 如果应释放托管资源,为 true;否则为 false。
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region 组件设计器生成的代码
+
+ ///
+ /// 设计器支持所需的方法 - 不要修改
+ /// 使用代码编辑器修改此方法的内容。
+ ///
+ private void InitializeComponent()
+ {
+ this.button1 = new System.Windows.Forms.Button();
+ this.button2 = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(449, 3);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(160, 23);
+ this.button1.TabIndex = 0;
+ this.button1.Text = "设置系统参数";
+ this.button1.UseVisualStyleBackColor = true;
+ //
+ // button2
+ //
+ this.button2.Location = new System.Drawing.Point(449, 574);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(160, 23);
+ this.button2.TabIndex = 0;
+ this.button2.Text = "设置系统参数结束";
+ this.button2.UseVisualStyleBackColor = true;
+ //
+ // SettingForm
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.button2);
+ this.Controls.Add(this.button1);
+ this.Margin = new System.Windows.Forms.Padding(0);
+ this.Name = "SettingForm";
+ this.Size = new System.Drawing.Size(1000, 600);
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Button button2;
+ }
+}
diff --git a/RbFreqStandMeasure/setting/SettingForm.cs b/RbFreqStandMeasure/setting/SettingForm.cs
new file mode 100644
index 0000000..f118a7c
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingForm.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace Casic.Birmm.RbFreqStandMeasure.setting
+{
+ public partial class SettingForm : UserControl
+ {
+ public SettingForm()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/RbFreqStandMeasure/setting/SettingForm.resx b/RbFreqStandMeasure/setting/SettingForm.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/RbFreqStandMeasure/setting/SettingForm.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/rb_freq_comp.db b/rb_freq_comp.db
index 52d3a43..6a6c62a 100644
--- a/rb_freq_comp.db
+++ b/rb_freq_comp.db
Binary files differ