543 lines
21 KiB
C#
543 lines
21 KiB
C#
namespace WorkCameraExport.Forms
|
|
{
|
|
partial class MainForm
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
components = new System.ComponentModel.Container();
|
|
|
|
// 主面板
|
|
panelMain = new Panel();
|
|
|
|
// 查询条件区域
|
|
grpQuery = new GroupBox();
|
|
lblStartDate = new Label();
|
|
dtpStartDate = new DateTimePicker();
|
|
lblEndDate = new Label();
|
|
dtpEndDate = new DateTimePicker();
|
|
lblDeptName = new Label();
|
|
txtDeptName = new TextBox();
|
|
lblWorkerName = new Label();
|
|
txtWorkerName = new TextBox();
|
|
lblContent = new Label();
|
|
txtContent = new TextBox();
|
|
btnPreview = new Button();
|
|
|
|
// 数据预览区域
|
|
grpPreview = new GroupBox();
|
|
dgvPreview = new DataGridView();
|
|
colId = new DataGridViewTextBoxColumn();
|
|
colRecordTime = new DataGridViewTextBoxColumn();
|
|
colDeptName = new DataGridViewTextBoxColumn();
|
|
colContent = new DataGridViewTextBoxColumn();
|
|
colImageCount = new DataGridViewTextBoxColumn();
|
|
lblTotalRecords = new Label();
|
|
lblTotalImages = new Label();
|
|
|
|
// 导出区域
|
|
grpExport = new GroupBox();
|
|
lblExportPath = new Label();
|
|
txtExportPath = new TextBox();
|
|
btnBrowse = new Button();
|
|
btnExport = new Button();
|
|
progressBar = new ProgressBar();
|
|
lblProgress = new Label();
|
|
|
|
// 状态栏
|
|
lblStatus = new Label();
|
|
|
|
panelMain.SuspendLayout();
|
|
grpQuery.SuspendLayout();
|
|
grpPreview.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)dgvPreview).BeginInit();
|
|
grpExport.SuspendLayout();
|
|
SuspendLayout();
|
|
|
|
//
|
|
// panelMain
|
|
//
|
|
panelMain.BackColor = Color.White;
|
|
panelMain.Controls.Add(grpQuery);
|
|
panelMain.Controls.Add(grpPreview);
|
|
panelMain.Controls.Add(grpExport);
|
|
panelMain.Controls.Add(lblStatus);
|
|
panelMain.Dock = DockStyle.Fill;
|
|
panelMain.Location = new Point(0, 0);
|
|
panelMain.Name = "panelMain";
|
|
panelMain.Padding = new Padding(10);
|
|
panelMain.Size = new Size(900, 600);
|
|
panelMain.TabIndex = 0;
|
|
|
|
//
|
|
// btnMigration - 历史数据迁移按钮
|
|
//
|
|
btnMigration = new Button();
|
|
btnMigration.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
btnMigration.BackColor = Color.FromArgb(255, 152, 0);
|
|
btnMigration.Cursor = Cursors.Hand;
|
|
btnMigration.FlatAppearance.BorderSize = 0;
|
|
btnMigration.FlatStyle = FlatStyle.Flat;
|
|
btnMigration.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Bold);
|
|
btnMigration.ForeColor = Color.White;
|
|
btnMigration.Location = new Point(760, 10);
|
|
btnMigration.Name = "btnMigration";
|
|
btnMigration.Size = new Size(120, 28);
|
|
btnMigration.TabIndex = 11;
|
|
btnMigration.Text = "历史数据迁移";
|
|
btnMigration.UseVisualStyleBackColor = false;
|
|
btnMigration.Click += btnMigration_Click;
|
|
|
|
//
|
|
// grpQuery - 查询条件区域
|
|
//
|
|
grpQuery.Controls.Add(lblStartDate);
|
|
grpQuery.Controls.Add(dtpStartDate);
|
|
grpQuery.Controls.Add(lblEndDate);
|
|
grpQuery.Controls.Add(dtpEndDate);
|
|
grpQuery.Controls.Add(lblDeptName);
|
|
grpQuery.Controls.Add(txtDeptName);
|
|
grpQuery.Controls.Add(lblWorkerName);
|
|
grpQuery.Controls.Add(txtWorkerName);
|
|
grpQuery.Controls.Add(lblContent);
|
|
grpQuery.Controls.Add(txtContent);
|
|
grpQuery.Controls.Add(btnPreview);
|
|
grpQuery.Controls.Add(btnMigration);
|
|
grpQuery.Dock = DockStyle.Top;
|
|
grpQuery.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Bold);
|
|
grpQuery.Location = new Point(10, 10);
|
|
grpQuery.Name = "grpQuery";
|
|
grpQuery.Padding = new Padding(10);
|
|
grpQuery.Size = new Size(880, 100);
|
|
grpQuery.TabIndex = 0;
|
|
grpQuery.TabStop = false;
|
|
grpQuery.Text = "查询条件";
|
|
|
|
//
|
|
// lblStartDate
|
|
//
|
|
lblStartDate.AutoSize = true;
|
|
lblStartDate.Font = new Font("Microsoft YaHei UI", 9F);
|
|
lblStartDate.Location = new Point(15, 30);
|
|
lblStartDate.Name = "lblStartDate";
|
|
lblStartDate.Size = new Size(56, 17);
|
|
lblStartDate.TabIndex = 0;
|
|
lblStartDate.Text = "开始日期";
|
|
|
|
//
|
|
// dtpStartDate
|
|
//
|
|
dtpStartDate.Font = new Font("Microsoft YaHei UI", 9F);
|
|
dtpStartDate.Format = DateTimePickerFormat.Short;
|
|
dtpStartDate.Location = new Point(15, 50);
|
|
dtpStartDate.Name = "dtpStartDate";
|
|
dtpStartDate.Size = new Size(120, 23);
|
|
dtpStartDate.TabIndex = 1;
|
|
|
|
//
|
|
// lblEndDate
|
|
//
|
|
lblEndDate.AutoSize = true;
|
|
lblEndDate.Font = new Font("Microsoft YaHei UI", 9F);
|
|
lblEndDate.Location = new Point(145, 30);
|
|
lblEndDate.Name = "lblEndDate";
|
|
lblEndDate.Size = new Size(56, 17);
|
|
lblEndDate.TabIndex = 2;
|
|
lblEndDate.Text = "结束日期";
|
|
|
|
//
|
|
// dtpEndDate
|
|
//
|
|
dtpEndDate.Font = new Font("Microsoft YaHei UI", 9F);
|
|
dtpEndDate.Format = DateTimePickerFormat.Short;
|
|
dtpEndDate.Location = new Point(145, 50);
|
|
dtpEndDate.Name = "dtpEndDate";
|
|
dtpEndDate.Size = new Size(120, 23);
|
|
dtpEndDate.TabIndex = 3;
|
|
|
|
//
|
|
// lblDeptName
|
|
//
|
|
lblDeptName.AutoSize = true;
|
|
lblDeptName.Font = new Font("Microsoft YaHei UI", 9F);
|
|
lblDeptName.Location = new Point(285, 30);
|
|
lblDeptName.Name = "lblDeptName";
|
|
lblDeptName.Size = new Size(32, 17);
|
|
lblDeptName.TabIndex = 4;
|
|
lblDeptName.Text = "部门";
|
|
|
|
//
|
|
// txtDeptName
|
|
//
|
|
txtDeptName.Font = new Font("Microsoft YaHei UI", 9F);
|
|
txtDeptName.Location = new Point(285, 50);
|
|
txtDeptName.Name = "txtDeptName";
|
|
txtDeptName.PlaceholderText = "部门名称";
|
|
txtDeptName.Size = new Size(120, 23);
|
|
txtDeptName.TabIndex = 5;
|
|
|
|
//
|
|
// lblWorkerName
|
|
//
|
|
lblWorkerName.AutoSize = true;
|
|
lblWorkerName.Font = new Font("Microsoft YaHei UI", 9F);
|
|
lblWorkerName.Location = new Point(420, 30);
|
|
lblWorkerName.Name = "lblWorkerName";
|
|
lblWorkerName.Size = new Size(32, 17);
|
|
lblWorkerName.TabIndex = 6;
|
|
lblWorkerName.Text = "人员";
|
|
|
|
//
|
|
// txtWorkerName
|
|
//
|
|
txtWorkerName.Font = new Font("Microsoft YaHei UI", 9F);
|
|
txtWorkerName.Location = new Point(420, 50);
|
|
txtWorkerName.Name = "txtWorkerName";
|
|
txtWorkerName.PlaceholderText = "人员姓名";
|
|
txtWorkerName.Size = new Size(120, 23);
|
|
txtWorkerName.TabIndex = 7;
|
|
|
|
//
|
|
// lblContent
|
|
//
|
|
lblContent.AutoSize = true;
|
|
lblContent.Font = new Font("Microsoft YaHei UI", 9F);
|
|
lblContent.Location = new Point(555, 30);
|
|
lblContent.Name = "lblContent";
|
|
lblContent.Size = new Size(56, 17);
|
|
lblContent.TabIndex = 8;
|
|
lblContent.Text = "工作内容";
|
|
|
|
//
|
|
// txtContent
|
|
//
|
|
txtContent.Font = new Font("Microsoft YaHei UI", 9F);
|
|
txtContent.Location = new Point(555, 50);
|
|
txtContent.Name = "txtContent";
|
|
txtContent.PlaceholderText = "工作内容关键字";
|
|
txtContent.Size = new Size(180, 23);
|
|
txtContent.TabIndex = 9;
|
|
|
|
//
|
|
// btnPreview
|
|
//
|
|
btnPreview.BackColor = Color.FromArgb(0, 122, 204);
|
|
btnPreview.Cursor = Cursors.Hand;
|
|
btnPreview.FlatAppearance.BorderSize = 0;
|
|
btnPreview.FlatStyle = FlatStyle.Flat;
|
|
btnPreview.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Bold);
|
|
btnPreview.ForeColor = Color.White;
|
|
btnPreview.Location = new Point(760, 45);
|
|
btnPreview.Name = "btnPreview";
|
|
btnPreview.Size = new Size(100, 32);
|
|
btnPreview.TabIndex = 10;
|
|
btnPreview.Text = "预览查询";
|
|
btnPreview.UseVisualStyleBackColor = false;
|
|
btnPreview.Click += btnPreview_Click;
|
|
|
|
//
|
|
// grpPreview - 数据预览区域
|
|
//
|
|
grpPreview.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
grpPreview.Controls.Add(dgvPreview);
|
|
grpPreview.Controls.Add(lblTotalRecords);
|
|
grpPreview.Controls.Add(lblTotalImages);
|
|
grpPreview.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Bold);
|
|
grpPreview.Location = new Point(10, 115);
|
|
grpPreview.Name = "grpPreview";
|
|
grpPreview.Padding = new Padding(10);
|
|
grpPreview.Size = new Size(880, 320);
|
|
grpPreview.TabIndex = 1;
|
|
grpPreview.TabStop = false;
|
|
grpPreview.Text = "数据预览";
|
|
|
|
//
|
|
// dgvPreview
|
|
//
|
|
dgvPreview.AllowUserToAddRows = false;
|
|
dgvPreview.AllowUserToDeleteRows = false;
|
|
dgvPreview.AllowUserToResizeRows = false;
|
|
dgvPreview.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
dgvPreview.BackgroundColor = Color.White;
|
|
dgvPreview.BorderStyle = BorderStyle.Fixed3D;
|
|
dgvPreview.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
dgvPreview.Columns.AddRange(new DataGridViewColumn[] { colId, colRecordTime, colDeptName, colContent, colImageCount });
|
|
dgvPreview.Font = new Font("Microsoft YaHei UI", 9F);
|
|
dgvPreview.Location = new Point(10, 25);
|
|
dgvPreview.Name = "dgvPreview";
|
|
dgvPreview.ReadOnly = true;
|
|
dgvPreview.RowHeadersVisible = false;
|
|
dgvPreview.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
|
dgvPreview.Size = new Size(860, 255);
|
|
dgvPreview.TabIndex = 0;
|
|
|
|
//
|
|
// colId
|
|
//
|
|
colId.HeaderText = "序号";
|
|
colId.Name = "colId";
|
|
colId.ReadOnly = true;
|
|
colId.Width = 60;
|
|
|
|
//
|
|
// colRecordTime
|
|
//
|
|
colRecordTime.HeaderText = "拍照时间";
|
|
colRecordTime.Name = "colRecordTime";
|
|
colRecordTime.ReadOnly = true;
|
|
colRecordTime.Width = 130;
|
|
|
|
//
|
|
// colDeptName
|
|
//
|
|
colDeptName.HeaderText = "部门";
|
|
colDeptName.Name = "colDeptName";
|
|
colDeptName.ReadOnly = true;
|
|
colDeptName.Width = 150;
|
|
|
|
//
|
|
// colContent
|
|
//
|
|
colContent.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
|
colContent.HeaderText = "工作内容";
|
|
colContent.Name = "colContent";
|
|
colContent.ReadOnly = true;
|
|
|
|
//
|
|
// colImageCount
|
|
//
|
|
colImageCount.HeaderText = "图片数";
|
|
colImageCount.Name = "colImageCount";
|
|
colImageCount.ReadOnly = true;
|
|
colImageCount.Width = 70;
|
|
|
|
//
|
|
// lblTotalRecords
|
|
//
|
|
lblTotalRecords.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
lblTotalRecords.AutoSize = true;
|
|
lblTotalRecords.Font = new Font("Microsoft YaHei UI", 9F);
|
|
lblTotalRecords.ForeColor = Color.FromArgb(51, 51, 51);
|
|
lblTotalRecords.Location = new Point(10, 290);
|
|
lblTotalRecords.Name = "lblTotalRecords";
|
|
lblTotalRecords.Size = new Size(68, 17);
|
|
lblTotalRecords.TabIndex = 1;
|
|
lblTotalRecords.Text = "共 0 条记录";
|
|
|
|
//
|
|
// lblTotalImages
|
|
//
|
|
lblTotalImages.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
lblTotalImages.AutoSize = true;
|
|
lblTotalImages.Font = new Font("Microsoft YaHei UI", 9F);
|
|
lblTotalImages.ForeColor = Color.FromArgb(51, 51, 51);
|
|
lblTotalImages.Location = new Point(150, 290);
|
|
lblTotalImages.Name = "lblTotalImages";
|
|
lblTotalImages.Size = new Size(68, 17);
|
|
lblTotalImages.TabIndex = 2;
|
|
lblTotalImages.Text = "约 0 张图片";
|
|
|
|
//
|
|
// grpExport - 导出区域
|
|
//
|
|
grpExport.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
grpExport.Controls.Add(lblExportPath);
|
|
grpExport.Controls.Add(txtExportPath);
|
|
grpExport.Controls.Add(btnBrowse);
|
|
grpExport.Controls.Add(btnExport);
|
|
grpExport.Controls.Add(progressBar);
|
|
grpExport.Controls.Add(lblProgress);
|
|
grpExport.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Bold);
|
|
grpExport.Location = new Point(10, 440);
|
|
grpExport.Name = "grpExport";
|
|
grpExport.Padding = new Padding(10);
|
|
grpExport.Size = new Size(880, 120);
|
|
grpExport.TabIndex = 2;
|
|
grpExport.TabStop = false;
|
|
grpExport.Text = "导出设置";
|
|
|
|
//
|
|
// lblExportPath
|
|
//
|
|
lblExportPath.AutoSize = true;
|
|
lblExportPath.Font = new Font("Microsoft YaHei UI", 9F);
|
|
lblExportPath.Location = new Point(15, 30);
|
|
lblExportPath.Name = "lblExportPath";
|
|
lblExportPath.Size = new Size(56, 17);
|
|
lblExportPath.TabIndex = 0;
|
|
lblExportPath.Text = "导出目录";
|
|
|
|
//
|
|
// txtExportPath
|
|
//
|
|
txtExportPath.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
txtExportPath.Font = new Font("Microsoft YaHei UI", 9F);
|
|
txtExportPath.Location = new Point(15, 50);
|
|
txtExportPath.Name = "txtExportPath";
|
|
txtExportPath.ReadOnly = true;
|
|
txtExportPath.Size = new Size(620, 23);
|
|
txtExportPath.TabIndex = 1;
|
|
|
|
//
|
|
// btnBrowse
|
|
//
|
|
btnBrowse.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
btnBrowse.BackColor = Color.FromArgb(108, 117, 125);
|
|
btnBrowse.Cursor = Cursors.Hand;
|
|
btnBrowse.FlatAppearance.BorderSize = 0;
|
|
btnBrowse.FlatStyle = FlatStyle.Flat;
|
|
btnBrowse.Font = new Font("Microsoft YaHei UI", 9F);
|
|
btnBrowse.ForeColor = Color.White;
|
|
btnBrowse.Location = new Point(645, 48);
|
|
btnBrowse.Name = "btnBrowse";
|
|
btnBrowse.Size = new Size(80, 28);
|
|
btnBrowse.TabIndex = 2;
|
|
btnBrowse.Text = "浏览...";
|
|
btnBrowse.UseVisualStyleBackColor = false;
|
|
btnBrowse.Click += btnBrowse_Click;
|
|
|
|
//
|
|
// btnExport
|
|
//
|
|
btnExport.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
btnExport.BackColor = Color.FromArgb(40, 167, 69);
|
|
btnExport.Cursor = Cursors.Hand;
|
|
btnExport.Enabled = false;
|
|
btnExport.FlatAppearance.BorderSize = 0;
|
|
btnExport.FlatStyle = FlatStyle.Flat;
|
|
btnExport.Font = new Font("Microsoft YaHei UI", 10F, FontStyle.Bold);
|
|
btnExport.ForeColor = Color.White;
|
|
btnExport.Location = new Point(745, 40);
|
|
btnExport.Name = "btnExport";
|
|
btnExport.Size = new Size(120, 40);
|
|
btnExport.TabIndex = 3;
|
|
btnExport.Text = "导出Excel";
|
|
btnExport.UseVisualStyleBackColor = false;
|
|
btnExport.Click += btnExport_Click;
|
|
|
|
//
|
|
// progressBar
|
|
//
|
|
progressBar.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
progressBar.Location = new Point(15, 85);
|
|
progressBar.Name = "progressBar";
|
|
progressBar.Size = new Size(710, 20);
|
|
progressBar.TabIndex = 4;
|
|
|
|
//
|
|
// lblProgress
|
|
//
|
|
lblProgress.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
lblProgress.Font = new Font("Microsoft YaHei UI", 9F);
|
|
lblProgress.ForeColor = Color.FromArgb(51, 51, 51);
|
|
lblProgress.Location = new Point(735, 85);
|
|
lblProgress.Name = "lblProgress";
|
|
lblProgress.Size = new Size(130, 20);
|
|
lblProgress.TabIndex = 5;
|
|
lblProgress.TextAlign = ContentAlignment.MiddleRight;
|
|
|
|
//
|
|
// lblStatus
|
|
//
|
|
lblStatus.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
lblStatus.Font = new Font("Microsoft YaHei UI", 9F);
|
|
lblStatus.ForeColor = Color.Gray;
|
|
lblStatus.Location = new Point(10, 565);
|
|
lblStatus.Name = "lblStatus";
|
|
lblStatus.Size = new Size(880, 25);
|
|
lblStatus.TabIndex = 3;
|
|
lblStatus.Text = "就绪";
|
|
lblStatus.TextAlign = ContentAlignment.MiddleLeft;
|
|
|
|
//
|
|
// MainForm
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 17F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
BackColor = Color.FromArgb(240, 240, 240);
|
|
ClientSize = new Size(900, 600);
|
|
Controls.Add(panelMain);
|
|
Font = new Font("Microsoft YaHei UI", 9F);
|
|
MinimumSize = new Size(800, 500);
|
|
Name = "MainForm";
|
|
StartPosition = FormStartPosition.CenterScreen;
|
|
Text = "随工水印相机导出工具 - 数据导出";
|
|
FormClosing += MainForm_FormClosing;
|
|
panelMain.ResumeLayout(false);
|
|
grpQuery.ResumeLayout(false);
|
|
grpQuery.PerformLayout();
|
|
grpPreview.ResumeLayout(false);
|
|
grpPreview.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)dgvPreview).EndInit();
|
|
grpExport.ResumeLayout(false);
|
|
grpExport.PerformLayout();
|
|
ResumeLayout(false);
|
|
}
|
|
|
|
#endregion
|
|
|
|
private Panel panelMain;
|
|
|
|
// 查询条件区域
|
|
private GroupBox grpQuery;
|
|
private Label lblStartDate;
|
|
private DateTimePicker dtpStartDate;
|
|
private Label lblEndDate;
|
|
private DateTimePicker dtpEndDate;
|
|
private Label lblDeptName;
|
|
private TextBox txtDeptName;
|
|
private Label lblWorkerName;
|
|
private TextBox txtWorkerName;
|
|
private Label lblContent;
|
|
private TextBox txtContent;
|
|
private Button btnPreview;
|
|
private Button btnMigration;
|
|
|
|
// 数据预览区域
|
|
private GroupBox grpPreview;
|
|
private DataGridView dgvPreview;
|
|
private DataGridViewTextBoxColumn colId;
|
|
private DataGridViewTextBoxColumn colRecordTime;
|
|
private DataGridViewTextBoxColumn colDeptName;
|
|
private DataGridViewTextBoxColumn colContent;
|
|
private DataGridViewTextBoxColumn colImageCount;
|
|
private Label lblTotalRecords;
|
|
private Label lblTotalImages;
|
|
|
|
// 导出区域
|
|
private GroupBox grpExport;
|
|
private Label lblExportPath;
|
|
private TextBox txtExportPath;
|
|
private Button btnBrowse;
|
|
private Button btnExport;
|
|
private ProgressBar progressBar;
|
|
private Label lblProgress;
|
|
|
|
// 状态栏
|
|
private Label lblStatus;
|
|
}
|
|
}
|