初步版本251204

This commit is contained in:
2025-12-04 18:39:34 +08:00
parent cd1ec78a11
commit 9dd458ae8b
17 changed files with 1089 additions and 522 deletions

View File

@@ -31,34 +31,29 @@ namespace FATrace.OEMApp
components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainApp));
statusStrip1 = new StatusStrip();
tslPlcConnection = new ToolStripStatusLabel();
tslSqlConnection = new ToolStripStatusLabel();
tslNasConnection = new ToolStripStatusLabel();
tslNVRConnection = new ToolStripStatusLabel();
imageList1 = new ImageList(components);
materialTabControl1 = new ReaLTaiizor.Controls.MaterialTabControl();
tabPage1 = new TabPage();
materialCard4 = new ReaLTaiizor.Controls.MaterialCard();
label18 = new Label();
txtIOOutputTime = new TextBox();
label17 = new Label();
txtIOInputTime = new TextBox();
label16 = new Label();
txtIOInBagCode = new TextBox();
txtRemainBoxCount = new TextBox();
label15 = new Label();
txtOutBoxCount = new TextBox();
label14 = new Label();
txtInBoxCount = new TextBox();
label13 = new Label();
txtCsvSaveState = new TextBox();
label12 = new Label();
label9 = new Label();
txtIORawName = new TextBox();
DownloadFileName = new TextBox();
label10 = new Label();
txtIOOutBagCode = new TextBox();
label9 = new Label();
label11 = new Label();
DownloadProgressBarMain = new ProgressBar();
materialCard3 = new ReaLTaiizor.Controls.MaterialCard();
LvLog = new ListView();
label8 = new Label();
materialCard2 = new ReaLTaiizor.Controls.MaterialCard();
label19 = new Label();
txtRURawCode = new TextBox();
gridRULog = new DataGridView();
btnRawStopLoadVideo = new Button();
DownloadProgressBarMain = new ProgressBar();
btnTestAction = new Button();
label7 = new Label();
txtRURawName = new TextBox();
@@ -83,9 +78,8 @@ namespace FATrace.OEMApp
metroProgressBar1 = new ReaLTaiizor.Controls.MetroProgressBar();
DownloadProgressBar = new ProgressBar();
btnStopLoadVideo = new Button();
btnLoadVideo = new Button();
btnNVRLogin = new Button();
LvLog = new ListView();
statusStrip1.SuspendLayout();
materialTabControl1.SuspendLayout();
tabPage1.SuspendLayout();
materialCard4.SuspendLayout();
@@ -101,12 +95,41 @@ namespace FATrace.OEMApp
//
// statusStrip1
//
statusStrip1.Items.AddRange(new ToolStripItem[] { tslPlcConnection, tslSqlConnection, tslNasConnection, tslNVRConnection });
statusStrip1.Location = new Point(3, 1005);
statusStrip1.Name = "statusStrip1";
statusStrip1.Size = new Size(1914, 22);
statusStrip1.TabIndex = 1;
statusStrip1.Text = "statusStrip1";
//
// tslPlcConnection
//
tslPlcConnection.Name = "tslPlcConnection";
tslPlcConnection.Size = new Size(474, 17);
tslPlcConnection.Spring = true;
tslPlcConnection.Text = "Plc连接状态";
//
// tslSqlConnection
//
tslSqlConnection.Name = "tslSqlConnection";
tslSqlConnection.Size = new Size(474, 17);
tslSqlConnection.Spring = true;
tslSqlConnection.Text = "服务连接状态";
//
// tslNasConnection
//
tslNasConnection.Name = "tslNasConnection";
tslNasConnection.Size = new Size(474, 17);
tslNasConnection.Spring = true;
tslNasConnection.Text = "NAS连接状态";
//
// tslNVRConnection
//
tslNVRConnection.Name = "tslNVRConnection";
tslNVRConnection.Size = new Size(474, 17);
tslNVRConnection.Spring = true;
tslNVRConnection.Text = "NVR连接状态";
//
// imageList1
//
imageList1.ColorDepth = ColorDepth.Depth32Bit;
@@ -155,24 +178,13 @@ namespace FATrace.OEMApp
// materialCard4
//
materialCard4.BackColor = Color.FromArgb(255, 255, 255);
materialCard4.Controls.Add(label18);
materialCard4.Controls.Add(txtIOOutputTime);
materialCard4.Controls.Add(label17);
materialCard4.Controls.Add(txtIOInputTime);
materialCard4.Controls.Add(label16);
materialCard4.Controls.Add(txtIOInBagCode);
materialCard4.Controls.Add(txtRemainBoxCount);
materialCard4.Controls.Add(label15);
materialCard4.Controls.Add(txtOutBoxCount);
materialCard4.Controls.Add(label14);
materialCard4.Controls.Add(txtInBoxCount);
materialCard4.Controls.Add(label13);
materialCard4.Controls.Add(txtCsvSaveState);
materialCard4.Controls.Add(label12);
materialCard4.Controls.Add(label9);
materialCard4.Controls.Add(txtIORawName);
materialCard4.Controls.Add(DownloadFileName);
materialCard4.Controls.Add(label10);
materialCard4.Controls.Add(txtIOOutBagCode);
materialCard4.Controls.Add(label9);
materialCard4.Controls.Add(label11);
materialCard4.Controls.Add(DownloadProgressBarMain);
materialCard4.Depth = 0;
materialCard4.ForeColor = Color.FromArgb(222, 0, 0, 0);
materialCard4.Location = new Point(14, 373);
@@ -180,187 +192,72 @@ namespace FATrace.OEMApp
materialCard4.MouseState = ReaLTaiizor.Helper.MaterialDrawHelper.MaterialMouseState.HOVER;
materialCard4.Name = "materialCard4";
materialCard4.Padding = new Padding(14);
materialCard4.Size = new Size(864, 535);
materialCard4.Size = new Size(561, 535);
materialCard4.TabIndex = 5;
//
// label18
// txtCsvSaveState
//
label18.AutoSize = true;
label18.ForeColor = Color.DimGray;
label18.Location = new Point(41, 260);
label18.Name = "label18";
label18.Size = new Size(88, 26);
label18.TabIndex = 17;
label18.Text = "出库时间";
//
// txtIOOutputTime
//
txtIOOutputTime.Location = new Point(154, 257);
txtIOOutputTime.Name = "txtIOOutputTime";
txtIOOutputTime.Size = new Size(446, 32);
txtIOOutputTime.TabIndex = 16;
//
// label17
//
label17.AutoSize = true;
label17.ForeColor = Color.DimGray;
label17.Location = new Point(41, 211);
label17.Name = "label17";
label17.Size = new Size(88, 26);
label17.TabIndex = 15;
label17.Text = "入库时间";
//
// txtIOInputTime
//
txtIOInputTime.Location = new Point(154, 208);
txtIOInputTime.Name = "txtIOInputTime";
txtIOInputTime.Size = new Size(446, 32);
txtIOInputTime.TabIndex = 14;
//
// label16
//
label16.AutoSize = true;
label16.ForeColor = Color.DimGray;
label16.Location = new Point(41, 109);
label16.Name = "label16";
label16.Size = new Size(107, 26);
label16.TabIndex = 13;
label16.Text = "内袋二维码";
//
// txtIOInBagCode
//
txtIOInBagCode.Location = new Point(154, 106);
txtIOInBagCode.Name = "txtIOInBagCode";
txtIOInBagCode.Size = new Size(446, 32);
txtIOInBagCode.TabIndex = 12;
//
// txtRemainBoxCount
//
txtRemainBoxCount.BackColor = SystemColors.ButtonHighlight;
txtRemainBoxCount.BorderStyle = BorderStyle.None;
txtRemainBoxCount.Font = new Font("Microsoft YaHei UI", 21.75F, FontStyle.Bold, GraphicsUnit.Point, 134);
txtRemainBoxCount.Location = new Point(507, 417);
txtRemainBoxCount.Name = "txtRemainBoxCount";
txtRemainBoxCount.ReadOnly = true;
txtRemainBoxCount.Size = new Size(100, 37);
txtRemainBoxCount.TabIndex = 11;
txtRemainBoxCount.Text = "100";
txtRemainBoxCount.TextAlign = HorizontalAlignment.Center;
//
// label15
//
label15.AutoSize = true;
label15.Font = new Font("Microsoft YaHei UI", 15.75F, FontStyle.Bold, GraphicsUnit.Point, 134);
label15.ForeColor = Color.DimGray;
label15.Location = new Point(496, 475);
label15.Name = "label15";
label15.Size = new Size(117, 28);
label15.TabIndex = 10;
label15.Text = "剩余总箱数";
//
// txtOutBoxCount
//
txtOutBoxCount.BackColor = SystemColors.ButtonHighlight;
txtOutBoxCount.BorderStyle = BorderStyle.None;
txtOutBoxCount.Font = new Font("Microsoft YaHei UI", 21.75F, FontStyle.Bold, GraphicsUnit.Point, 134);
txtOutBoxCount.Location = new Point(317, 417);
txtOutBoxCount.Name = "txtOutBoxCount";
txtOutBoxCount.ReadOnly = true;
txtOutBoxCount.Size = new Size(100, 37);
txtOutBoxCount.TabIndex = 9;
txtOutBoxCount.Text = "100";
txtOutBoxCount.TextAlign = HorizontalAlignment.Center;
//
// label14
//
label14.AutoSize = true;
label14.Font = new Font("Microsoft YaHei UI", 15.75F, FontStyle.Bold, GraphicsUnit.Point, 134);
label14.ForeColor = Color.DimGray;
label14.Location = new Point(306, 475);
label14.Name = "label14";
label14.Size = new Size(117, 28);
label14.TabIndex = 8;
label14.Text = "出库总箱数";
//
// txtInBoxCount
//
txtInBoxCount.BackColor = SystemColors.ButtonHighlight;
txtInBoxCount.BorderStyle = BorderStyle.None;
txtInBoxCount.Font = new Font("Microsoft YaHei UI", 21.75F, FontStyle.Bold, GraphicsUnit.Point, 134);
txtInBoxCount.Location = new Point(103, 417);
txtInBoxCount.Name = "txtInBoxCount";
txtInBoxCount.ReadOnly = true;
txtInBoxCount.Size = new Size(100, 37);
txtInBoxCount.TabIndex = 7;
txtInBoxCount.Text = "100";
txtInBoxCount.TextAlign = HorizontalAlignment.Center;
//
// label13
//
label13.AutoSize = true;
label13.Font = new Font("Microsoft YaHei UI", 15.75F, FontStyle.Bold, GraphicsUnit.Point, 134);
label13.ForeColor = Color.DimGray;
label13.Location = new Point(92, 475);
label13.Name = "label13";
label13.Size = new Size(117, 28);
label13.TabIndex = 6;
label13.Text = "入库总箱数";
txtCsvSaveState.Location = new Point(27, 264);
txtCsvSaveState.Name = "txtCsvSaveState";
txtCsvSaveState.ReadOnly = true;
txtCsvSaveState.Size = new Size(493, 32);
txtCsvSaveState.TabIndex = 15;
//
// label12
//
label12.AutoSize = true;
label12.Font = new Font("Microsoft YaHei UI", 15.75F, FontStyle.Bold, GraphicsUnit.Point, 134);
label12.ForeColor = Color.FromArgb(64, 64, 64);
label12.Location = new Point(10, 319);
label12.ForeColor = Color.DimGray;
label12.Location = new Point(26, 229);
label12.Name = "label12";
label12.Size = new Size(159, 28);
label12.TabIndex = 5;
label12.Text = "成品出入库统计";
label12.Size = new Size(164, 26);
label12.TabIndex = 14;
label12.Text = "CSV文件生成状态";
//
// label9
// DownloadFileName
//
label9.AutoSize = true;
label9.ForeColor = Color.DimGray;
label9.Location = new Point(41, 160);
label9.Name = "label9";
label9.Size = new Size(88, 26);
label9.TabIndex = 4;
label9.Text = "原料名称";
//
// txtIORawName
//
txtIORawName.Location = new Point(154, 157);
txtIORawName.Name = "txtIORawName";
txtIORawName.Size = new Size(446, 32);
txtIORawName.TabIndex = 3;
DownloadFileName.Location = new Point(27, 96);
DownloadFileName.Name = "DownloadFileName";
DownloadFileName.ReadOnly = true;
DownloadFileName.Size = new Size(493, 32);
DownloadFileName.TabIndex = 11;
//
// label10
//
label10.AutoSize = true;
label10.ForeColor = Color.DimGray;
label10.Location = new Point(41, 61);
label10.Location = new Point(27, 58);
label10.Name = "label10";
label10.Size = new Size(107, 26);
label10.TabIndex = 2;
label10.Text = "外箱二维码";
label10.Size = new Size(126, 26);
label10.TabIndex = 12;
label10.Text = "视频文件名称";
//
// txtIOOutBagCode
// label9
//
txtIOOutBagCode.Location = new Point(154, 58);
txtIOOutBagCode.Name = "txtIOOutBagCode";
txtIOOutBagCode.Size = new Size(446, 32);
txtIOOutBagCode.TabIndex = 1;
label9.AutoSize = true;
label9.ForeColor = Color.DimGray;
label9.Location = new Point(27, 144);
label9.Name = "label9";
label9.Size = new Size(88, 26);
label9.TabIndex = 11;
label9.Text = "下载进度";
//
// label11
//
label11.AutoSize = true;
label11.Font = new Font("Microsoft YaHei UI", 15.75F, FontStyle.Bold, GraphicsUnit.Point, 134);
label11.Font = new Font("Microsoft YaHei UI", 16F, FontStyle.Bold);
label11.ForeColor = Color.FromArgb(64, 64, 64);
label11.Location = new Point(10, 9);
label11.Name = "label11";
label11.Size = new Size(159, 28);
label11.Size = new Size(145, 30);
label11.TabIndex = 0;
label11.Text = "成品出入库信息";
label11.Text = "视频下载状态";
//
// DownloadProgressBarMain
//
DownloadProgressBarMain.Location = new Point(27, 178);
DownloadProgressBarMain.Name = "DownloadProgressBarMain";
DownloadProgressBarMain.Size = new Size(493, 32);
DownloadProgressBarMain.TabIndex = 6;
//
// materialCard3
//
@@ -369,14 +266,22 @@ namespace FATrace.OEMApp
materialCard3.Controls.Add(label8);
materialCard3.Depth = 0;
materialCard3.ForeColor = Color.FromArgb(222, 0, 0, 0);
materialCard3.Location = new Point(897, 373);
materialCard3.Location = new Point(590, 373);
materialCard3.Margin = new Padding(14);
materialCard3.MouseState = ReaLTaiizor.Helper.MaterialDrawHelper.MaterialMouseState.HOVER;
materialCard3.Name = "materialCard3";
materialCard3.Padding = new Padding(14);
materialCard3.Size = new Size(1000, 535);
materialCard3.Size = new Size(1307, 535);
materialCard3.TabIndex = 1;
//
// LvLog
//
LvLog.Location = new Point(17, 58);
LvLog.Name = "LvLog";
LvLog.Size = new Size(1281, 460);
LvLog.TabIndex = 6;
LvLog.UseCompatibleStateImageBehavior = false;
//
// label8
//
label8.AutoSize = true;
@@ -391,9 +296,10 @@ namespace FATrace.OEMApp
// materialCard2
//
materialCard2.BackColor = Color.FromArgb(255, 255, 255);
materialCard2.Controls.Add(label19);
materialCard2.Controls.Add(txtRURawCode);
materialCard2.Controls.Add(gridRULog);
materialCard2.Controls.Add(btnRawStopLoadVideo);
materialCard2.Controls.Add(DownloadProgressBarMain);
materialCard2.Controls.Add(btnTestAction);
materialCard2.Controls.Add(label7);
materialCard2.Controls.Add(txtRURawName);
@@ -410,18 +316,35 @@ namespace FATrace.OEMApp
materialCard2.Size = new Size(1883, 348);
materialCard2.TabIndex = 0;
//
// label19
//
label19.AutoSize = true;
label19.ForeColor = Color.DimGray;
label19.Location = new Point(41, 180);
label19.Name = "label19";
label19.Size = new Size(88, 26);
label19.TabIndex = 10;
label19.Text = "原料条码";
//
// txtRURawCode
//
txtRURawCode.Location = new Point(154, 177);
txtRURawCode.Name = "txtRURawCode";
txtRURawCode.Size = new Size(387, 32);
txtRURawCode.TabIndex = 9;
//
// gridRULog
//
gridRULog.AllowUserToAddRows = false;
gridRULog.AllowUserToDeleteRows = false;
gridRULog.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
gridRULog.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
gridRULog.Location = new Point(557, 9);
gridRULog.Location = new Point(585, 7);
gridRULog.Name = "gridRULog";
gridRULog.ReadOnly = true;
gridRULog.RowHeadersVisible = false;
gridRULog.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
gridRULog.Size = new Size(1309, 338);
gridRULog.Size = new Size(1281, 338);
gridRULog.TabIndex = 8;
//
// btnRawStopLoadVideo
@@ -434,13 +357,6 @@ namespace FATrace.OEMApp
btnRawStopLoadVideo.UseVisualStyleBackColor = true;
btnRawStopLoadVideo.Click += btnRawStopLoadVideo_Click;
//
// DownloadProgressBarMain
//
DownloadProgressBarMain.Location = new Point(7, 321);
DownloadProgressBarMain.Name = "DownloadProgressBarMain";
DownloadProgressBarMain.Size = new Size(540, 23);
DownloadProgressBarMain.TabIndex = 6;
//
// btnTestAction
//
btnTestAction.Location = new Point(144, 271);
@@ -492,9 +408,9 @@ namespace FATrace.OEMApp
label5.ForeColor = Color.FromArgb(64, 64, 64);
label5.Location = new Point(10, 9);
label5.Name = "label5";
label5.Size = new Size(138, 28);
label5.Size = new Size(180, 28);
label5.TabIndex = 0;
label5.Text = "原料使用信息";
label5.Text = "当前原料使用信息";
//
// tabPage2
//
@@ -654,7 +570,6 @@ namespace FATrace.OEMApp
tabPage3.Controls.Add(metroProgressBar1);
tabPage3.Controls.Add(DownloadProgressBar);
tabPage3.Controls.Add(btnStopLoadVideo);
tabPage3.Controls.Add(btnLoadVideo);
tabPage3.Controls.Add(btnNVRLogin);
tabPage3.ImageKey = "set3.png";
tabPage3.Location = new Point(4, 26);
@@ -704,16 +619,6 @@ namespace FATrace.OEMApp
btnStopLoadVideo.UseVisualStyleBackColor = true;
btnStopLoadVideo.Click += btnStopLoadVideo_Click;
//
// btnLoadVideo
//
btnLoadVideo.Location = new Point(247, 54);
btnLoadVideo.Name = "btnLoadVideo";
btnLoadVideo.Size = new Size(130, 58);
btnLoadVideo.TabIndex = 1;
btnLoadVideo.Text = "下载视频";
btnLoadVideo.UseVisualStyleBackColor = true;
btnLoadVideo.Click += btnLoadVideo_Click;
//
// btnNVRLogin
//
btnNVRLogin.Location = new Point(84, 54);
@@ -724,14 +629,6 @@ namespace FATrace.OEMApp
btnNVRLogin.UseVisualStyleBackColor = true;
btnNVRLogin.Click += btnNVRLogin_Click;
//
// LvLog
//
LvLog.Location = new Point(17, 58);
LvLog.Name = "LvLog";
LvLog.Size = new Size(966, 460);
LvLog.TabIndex = 6;
LvLog.UseCompatibleStateImageBehavior = false;
//
// MainApp
//
AutoScaleDimensions = new SizeF(8F, 17F);
@@ -747,6 +644,8 @@ namespace FATrace.OEMApp
Text = "添加剂追溯系统";
WindowState = FormWindowState.Maximized;
Load += MainApp_Load;
statusStrip1.ResumeLayout(false);
statusStrip1.PerformLayout();
materialTabControl1.ResumeLayout(false);
tabPage1.ResumeLayout(false);
materialCard4.ResumeLayout(false);
@@ -778,7 +677,6 @@ namespace FATrace.OEMApp
private TabPage tabPage2;
private TabPage tabPage3;
private Button btnNVRLogin;
private Button btnLoadVideo;
private Button btnStopLoadVideo;
private ProgressBar DownloadProgressBar;
private ReaLTaiizor.Controls.MetroProgressBar metroProgressBar1;
@@ -804,28 +702,22 @@ namespace FATrace.OEMApp
private ReaLTaiizor.Controls.MaterialCard materialCard3;
private Label label8;
private ReaLTaiizor.Controls.MaterialCard materialCard4;
private Label label9;
private TextBox txtIORawName;
private Label label10;
private TextBox txtIOOutBagCode;
private Label label11;
private Label label12;
private Label label13;
private TextBox txtInBoxCount;
private TextBox txtOutBoxCount;
private Label label14;
private TextBox txtRemainBoxCount;
private Label label15;
private Label label16;
private TextBox txtIOInBagCode;
private Label label18;
private TextBox txtIOOutputTime;
private Label label17;
private TextBox txtIOInputTime;
private Button btnTestAction;
private ProgressBar DownloadProgressBarMain;
private Button btnRawStopLoadVideo;
private DataGridView gridRULog;
private ListView LvLog;
private ToolStripStatusLabel tslPlcConnection;
private ToolStripStatusLabel tslSqlConnection;
private ToolStripStatusLabel tslNasConnection;
private ToolStripStatusLabel tslNVRConnection;
private Label label19;
private TextBox txtRURawCode;
private TextBox DownloadFileName;
private Label label10;
private Label label9;
private Label label12;
private TextBox txtCsvSaveState;
}
}