473 lines
19 KiB
C#
473 lines
19 KiB
C#
namespace WorkCameraExport.Forms
|
|
{
|
|
partial class MigrationForm
|
|
{
|
|
/// <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();
|
|
|
|
// 筛选条件区域
|
|
grpFilter = new GroupBox();
|
|
lblStartDate = new Label();
|
|
dtpStartDate = new DateTimePicker();
|
|
lblEndDate = new Label();
|
|
dtpEndDate = new DateTimePicker();
|
|
lblStatus = new Label();
|
|
cboStatus = new ComboBox();
|
|
btnQuery = new Button();
|
|
|
|
// 待迁移记录列表区域
|
|
grpRecords = new GroupBox();
|
|
dgvRecords = new DataGridView();
|
|
colSelect = new DataGridViewCheckBoxColumn();
|
|
colId = new DataGridViewTextBoxColumn();
|
|
colRecordTime = new DataGridViewTextBoxColumn();
|
|
colDeptName = new DataGridViewTextBoxColumn();
|
|
colContent = new DataGridViewTextBoxColumn();
|
|
colImageCount = new DataGridViewTextBoxColumn();
|
|
colMigrationStatus = new DataGridViewTextBoxColumn();
|
|
chkSelectAll = new CheckBox();
|
|
lblTotalRecords = new Label();
|
|
lblSelectedRecords = new Label();
|
|
|
|
// 迁移进度区域
|
|
grpProgress = new GroupBox();
|
|
btnMigrate = new Button();
|
|
progressBar = new ProgressBar();
|
|
lblProgress = new Label();
|
|
lblCurrentRecord = new Label();
|
|
|
|
// 状态栏
|
|
lblStatusBar = new Label();
|
|
|
|
panelMain.SuspendLayout();
|
|
grpFilter.SuspendLayout();
|
|
grpRecords.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)dgvRecords).BeginInit();
|
|
grpProgress.SuspendLayout();
|
|
SuspendLayout();
|
|
|
|
//
|
|
// panelMain
|
|
//
|
|
panelMain.BackColor = Color.White;
|
|
panelMain.Controls.Add(grpFilter);
|
|
panelMain.Controls.Add(grpRecords);
|
|
panelMain.Controls.Add(grpProgress);
|
|
panelMain.Controls.Add(lblStatusBar);
|
|
panelMain.Dock = DockStyle.Fill;
|
|
panelMain.Location = new Point(0, 0);
|
|
panelMain.Name = "panelMain";
|
|
panelMain.Padding = new Padding(10);
|
|
panelMain.Size = new Size(950, 650);
|
|
panelMain.TabIndex = 0;
|
|
|
|
//
|
|
// grpFilter - 筛选条件区域
|
|
//
|
|
grpFilter.Controls.Add(lblStartDate);
|
|
grpFilter.Controls.Add(dtpStartDate);
|
|
grpFilter.Controls.Add(lblEndDate);
|
|
grpFilter.Controls.Add(dtpEndDate);
|
|
grpFilter.Controls.Add(lblStatus);
|
|
grpFilter.Controls.Add(cboStatus);
|
|
grpFilter.Controls.Add(btnQuery);
|
|
grpFilter.Dock = DockStyle.Top;
|
|
grpFilter.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Bold);
|
|
grpFilter.Location = new Point(10, 10);
|
|
grpFilter.Name = "grpFilter";
|
|
grpFilter.Padding = new Padding(10);
|
|
grpFilter.Size = new Size(930, 80);
|
|
grpFilter.TabIndex = 0;
|
|
grpFilter.TabStop = false;
|
|
grpFilter.Text = "筛选条件";
|
|
|
|
//
|
|
// lblStartDate
|
|
//
|
|
lblStartDate.AutoSize = true;
|
|
lblStartDate.Font = new Font("Microsoft YaHei UI", 9F);
|
|
lblStartDate.Location = new Point(15, 25);
|
|
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, 45);
|
|
dtpStartDate.Name = "dtpStartDate";
|
|
dtpStartDate.Size = new Size(130, 23);
|
|
dtpStartDate.TabIndex = 1;
|
|
|
|
//
|
|
// lblEndDate
|
|
//
|
|
lblEndDate.AutoSize = true;
|
|
lblEndDate.Font = new Font("Microsoft YaHei UI", 9F);
|
|
lblEndDate.Location = new Point(160, 25);
|
|
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(160, 45);
|
|
dtpEndDate.Name = "dtpEndDate";
|
|
dtpEndDate.Size = new Size(130, 23);
|
|
dtpEndDate.TabIndex = 3;
|
|
|
|
//
|
|
// lblStatus
|
|
//
|
|
lblStatus.AutoSize = true;
|
|
lblStatus.Font = new Font("Microsoft YaHei UI", 9F);
|
|
lblStatus.Location = new Point(310, 25);
|
|
lblStatus.Name = "lblStatus";
|
|
lblStatus.Size = new Size(56, 17);
|
|
lblStatus.TabIndex = 4;
|
|
lblStatus.Text = "迁移状态";
|
|
|
|
//
|
|
// cboStatus
|
|
//
|
|
cboStatus.DropDownStyle = ComboBoxStyle.DropDownList;
|
|
cboStatus.Font = new Font("Microsoft YaHei UI", 9F);
|
|
cboStatus.FormattingEnabled = true;
|
|
cboStatus.Items.AddRange(new object[] { "全部", "未迁移", "已迁移", "迁移失败" });
|
|
cboStatus.Location = new Point(310, 45);
|
|
cboStatus.Name = "cboStatus";
|
|
cboStatus.Size = new Size(120, 25);
|
|
cboStatus.TabIndex = 5;
|
|
|
|
//
|
|
// btnQuery
|
|
//
|
|
btnQuery.BackColor = Color.FromArgb(0, 122, 204);
|
|
btnQuery.Cursor = Cursors.Hand;
|
|
btnQuery.FlatAppearance.BorderSize = 0;
|
|
btnQuery.FlatStyle = FlatStyle.Flat;
|
|
btnQuery.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Bold);
|
|
btnQuery.ForeColor = Color.White;
|
|
btnQuery.Location = new Point(460, 40);
|
|
btnQuery.Name = "btnQuery";
|
|
btnQuery.Size = new Size(100, 32);
|
|
btnQuery.TabIndex = 6;
|
|
btnQuery.Text = "查询";
|
|
btnQuery.UseVisualStyleBackColor = false;
|
|
btnQuery.Click += btnQuery_Click;
|
|
|
|
//
|
|
// grpRecords - 待迁移记录列表区域
|
|
//
|
|
grpRecords.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
grpRecords.Controls.Add(dgvRecords);
|
|
grpRecords.Controls.Add(chkSelectAll);
|
|
grpRecords.Controls.Add(lblTotalRecords);
|
|
grpRecords.Controls.Add(lblSelectedRecords);
|
|
grpRecords.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Bold);
|
|
grpRecords.Location = new Point(10, 95);
|
|
grpRecords.Name = "grpRecords";
|
|
grpRecords.Padding = new Padding(10);
|
|
grpRecords.Size = new Size(930, 380);
|
|
grpRecords.TabIndex = 1;
|
|
grpRecords.TabStop = false;
|
|
grpRecords.Text = "待迁移记录";
|
|
|
|
//
|
|
// dgvRecords
|
|
//
|
|
dgvRecords.AllowUserToAddRows = false;
|
|
dgvRecords.AllowUserToDeleteRows = false;
|
|
dgvRecords.AllowUserToResizeRows = false;
|
|
dgvRecords.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
dgvRecords.BackgroundColor = Color.White;
|
|
dgvRecords.BorderStyle = BorderStyle.Fixed3D;
|
|
dgvRecords.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
dgvRecords.Columns.AddRange(new DataGridViewColumn[] { colSelect, colId, colRecordTime, colDeptName, colContent, colImageCount, colMigrationStatus });
|
|
dgvRecords.Font = new Font("Microsoft YaHei UI", 9F);
|
|
dgvRecords.Location = new Point(10, 25);
|
|
dgvRecords.Name = "dgvRecords";
|
|
dgvRecords.RowHeadersVisible = false;
|
|
dgvRecords.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
|
dgvRecords.Size = new Size(910, 315);
|
|
dgvRecords.TabIndex = 0;
|
|
dgvRecords.CellValueChanged += dgvRecords_CellValueChanged;
|
|
dgvRecords.CurrentCellDirtyStateChanged += dgvRecords_CurrentCellDirtyStateChanged;
|
|
|
|
//
|
|
// colSelect
|
|
//
|
|
colSelect.HeaderText = "选择";
|
|
colSelect.Name = "colSelect";
|
|
colSelect.Width = 50;
|
|
|
|
//
|
|
// colId
|
|
//
|
|
colId.HeaderText = "ID";
|
|
colId.Name = "colId";
|
|
colId.ReadOnly = true;
|
|
colId.Width = 60;
|
|
|
|
//
|
|
// colRecordTime
|
|
//
|
|
colRecordTime.HeaderText = "拍照时间";
|
|
colRecordTime.Name = "colRecordTime";
|
|
colRecordTime.ReadOnly = true;
|
|
colRecordTime.Width = 140;
|
|
|
|
//
|
|
// 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;
|
|
|
|
//
|
|
// colMigrationStatus
|
|
//
|
|
colMigrationStatus.HeaderText = "迁移状态";
|
|
colMigrationStatus.Name = "colMigrationStatus";
|
|
colMigrationStatus.ReadOnly = true;
|
|
colMigrationStatus.Width = 90;
|
|
|
|
//
|
|
// chkSelectAll
|
|
//
|
|
chkSelectAll.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
chkSelectAll.AutoSize = true;
|
|
chkSelectAll.Font = new Font("Microsoft YaHei UI", 9F);
|
|
chkSelectAll.Location = new Point(10, 350);
|
|
chkSelectAll.Name = "chkSelectAll";
|
|
chkSelectAll.Size = new Size(75, 21);
|
|
chkSelectAll.TabIndex = 1;
|
|
chkSelectAll.Text = "全选/取消";
|
|
chkSelectAll.UseVisualStyleBackColor = true;
|
|
chkSelectAll.CheckedChanged += chkSelectAll_CheckedChanged;
|
|
|
|
//
|
|
// 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(150, 351);
|
|
lblTotalRecords.Name = "lblTotalRecords";
|
|
lblTotalRecords.Size = new Size(68, 17);
|
|
lblTotalRecords.TabIndex = 2;
|
|
lblTotalRecords.Text = "共 0 条记录";
|
|
|
|
//
|
|
// lblSelectedRecords
|
|
//
|
|
lblSelectedRecords.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
|
|
lblSelectedRecords.AutoSize = true;
|
|
lblSelectedRecords.Font = new Font("Microsoft YaHei UI", 9F);
|
|
lblSelectedRecords.ForeColor = Color.FromArgb(0, 122, 204);
|
|
lblSelectedRecords.Location = new Point(280, 351);
|
|
lblSelectedRecords.Name = "lblSelectedRecords";
|
|
lblSelectedRecords.Size = new Size(68, 17);
|
|
lblSelectedRecords.TabIndex = 3;
|
|
lblSelectedRecords.Text = "已选 0 条";
|
|
|
|
//
|
|
// grpProgress - 迁移进度区域
|
|
//
|
|
grpProgress.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
grpProgress.Controls.Add(btnMigrate);
|
|
grpProgress.Controls.Add(progressBar);
|
|
grpProgress.Controls.Add(lblProgress);
|
|
grpProgress.Controls.Add(lblCurrentRecord);
|
|
grpProgress.Font = new Font("Microsoft YaHei UI", 9F, FontStyle.Bold);
|
|
grpProgress.Location = new Point(10, 480);
|
|
grpProgress.Name = "grpProgress";
|
|
grpProgress.Padding = new Padding(10);
|
|
grpProgress.Size = new Size(930, 130);
|
|
grpProgress.TabIndex = 2;
|
|
grpProgress.TabStop = false;
|
|
grpProgress.Text = "迁移进度";
|
|
|
|
//
|
|
// btnMigrate
|
|
//
|
|
btnMigrate.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
|
btnMigrate.BackColor = Color.FromArgb(40, 167, 69);
|
|
btnMigrate.Cursor = Cursors.Hand;
|
|
btnMigrate.Enabled = false;
|
|
btnMigrate.FlatAppearance.BorderSize = 0;
|
|
btnMigrate.FlatStyle = FlatStyle.Flat;
|
|
btnMigrate.Font = new Font("Microsoft YaHei UI", 10F, FontStyle.Bold);
|
|
btnMigrate.ForeColor = Color.White;
|
|
btnMigrate.Location = new Point(795, 25);
|
|
btnMigrate.Name = "btnMigrate";
|
|
btnMigrate.Size = new Size(120, 40);
|
|
btnMigrate.TabIndex = 0;
|
|
btnMigrate.Text = "开始迁移";
|
|
btnMigrate.UseVisualStyleBackColor = false;
|
|
btnMigrate.Click += btnMigrate_Click;
|
|
|
|
//
|
|
// progressBar
|
|
//
|
|
progressBar.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
progressBar.Location = new Point(15, 75);
|
|
progressBar.Name = "progressBar";
|
|
progressBar.Size = new Size(760, 25);
|
|
progressBar.TabIndex = 1;
|
|
|
|
//
|
|
// 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(785, 75);
|
|
lblProgress.Name = "lblProgress";
|
|
lblProgress.Size = new Size(130, 25);
|
|
lblProgress.TabIndex = 2;
|
|
lblProgress.TextAlign = ContentAlignment.MiddleRight;
|
|
|
|
//
|
|
// lblCurrentRecord
|
|
//
|
|
lblCurrentRecord.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
|
lblCurrentRecord.Font = new Font("Microsoft YaHei UI", 9F);
|
|
lblCurrentRecord.ForeColor = Color.FromArgb(51, 51, 51);
|
|
lblCurrentRecord.Location = new Point(15, 35);
|
|
lblCurrentRecord.Name = "lblCurrentRecord";
|
|
lblCurrentRecord.Size = new Size(760, 30);
|
|
lblCurrentRecord.TabIndex = 3;
|
|
lblCurrentRecord.Text = "等待开始迁移...";
|
|
|
|
//
|
|
// lblStatusBar
|
|
//
|
|
lblStatusBar.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
|
lblStatusBar.Font = new Font("Microsoft YaHei UI", 9F);
|
|
lblStatusBar.ForeColor = Color.Gray;
|
|
lblStatusBar.Location = new Point(10, 615);
|
|
lblStatusBar.Name = "lblStatusBar";
|
|
lblStatusBar.Size = new Size(930, 25);
|
|
lblStatusBar.TabIndex = 3;
|
|
lblStatusBar.Text = "就绪";
|
|
lblStatusBar.TextAlign = ContentAlignment.MiddleLeft;
|
|
|
|
//
|
|
// MigrationForm
|
|
//
|
|
AutoScaleDimensions = new SizeF(7F, 17F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
BackColor = Color.FromArgb(240, 240, 240);
|
|
ClientSize = new Size(950, 650);
|
|
Controls.Add(panelMain);
|
|
Font = new Font("Microsoft YaHei UI", 9F);
|
|
MinimumSize = new Size(850, 550);
|
|
Name = "MigrationForm";
|
|
StartPosition = FormStartPosition.CenterScreen;
|
|
Text = "随工水印相机导出工具 - 历史数据迁移";
|
|
FormClosing += MigrationForm_FormClosing;
|
|
Load += MigrationForm_Load;
|
|
panelMain.ResumeLayout(false);
|
|
grpFilter.ResumeLayout(false);
|
|
grpFilter.PerformLayout();
|
|
grpRecords.ResumeLayout(false);
|
|
grpRecords.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)dgvRecords).EndInit();
|
|
grpProgress.ResumeLayout(false);
|
|
ResumeLayout(false);
|
|
}
|
|
|
|
#endregion
|
|
|
|
private Panel panelMain;
|
|
|
|
// 筛选条件区域
|
|
private GroupBox grpFilter;
|
|
private Label lblStartDate;
|
|
private DateTimePicker dtpStartDate;
|
|
private Label lblEndDate;
|
|
private DateTimePicker dtpEndDate;
|
|
private Label lblStatus;
|
|
private ComboBox cboStatus;
|
|
private Button btnQuery;
|
|
|
|
// 待迁移记录列表区域
|
|
private GroupBox grpRecords;
|
|
private DataGridView dgvRecords;
|
|
private DataGridViewCheckBoxColumn colSelect;
|
|
private DataGridViewTextBoxColumn colId;
|
|
private DataGridViewTextBoxColumn colRecordTime;
|
|
private DataGridViewTextBoxColumn colDeptName;
|
|
private DataGridViewTextBoxColumn colContent;
|
|
private DataGridViewTextBoxColumn colImageCount;
|
|
private DataGridViewTextBoxColumn colMigrationStatus;
|
|
private CheckBox chkSelectAll;
|
|
private Label lblTotalRecords;
|
|
private Label lblSelectedRecords;
|
|
|
|
// 迁移进度区域
|
|
private GroupBox grpProgress;
|
|
private Button btnMigrate;
|
|
private ProgressBar progressBar;
|
|
private Label lblProgress;
|
|
private Label lblCurrentRecord;
|
|
|
|
// 状态栏
|
|
private Label lblStatusBar;
|
|
}
|
|
}
|