443 lines
22 KiB
C#
443 lines
22 KiB
C#
namespace LSFileClient
|
|
{
|
|
using LSServerService;
|
|
using LSUtils;
|
|
using System;
|
|
using System.ComponentModel;
|
|
using System.Data.SqlClient;
|
|
using System.Drawing;
|
|
using System.IO;
|
|
using System.Threading;
|
|
using System.Windows.Forms;
|
|
|
|
partial class FrmBatchProgress
|
|
{
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (this.components != null))
|
|
{
|
|
this.components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
this.components = new System.ComponentModel.Container();
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmBatchProgress));
|
|
this.folderDialog = new System.Windows.Forms.FolderBrowserDialog();
|
|
this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
|
|
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
|
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
|
this.editContainer = new System.Windows.Forms.Panel();
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
this.txtSpecieName = new System.Windows.Forms.TextBox();
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.txtSpecieNo = new System.Windows.Forms.TextBox();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.txtFileNo = new System.Windows.Forms.TextBox();
|
|
this.txtFileName = new System.Windows.Forms.TextBox();
|
|
this.btnSet = new System.Windows.Forms.Button();
|
|
this.lstVFileList = new System.Windows.Forms.ListView();
|
|
this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.columnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
|
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
|
this.btnDelete = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.proTranslate = new System.Windows.Forms.ProgressBar();
|
|
this.btnDeleteFile = new System.Windows.Forms.Button();
|
|
this.btnAddFiles = new System.Windows.Forms.Button();
|
|
this.btnRedo = new System.Windows.Forms.Button();
|
|
this.btnOK = new System.Windows.Forms.Button();
|
|
this.btnCancel = new System.Windows.Forms.Button();
|
|
this.button1 = new System.Windows.Forms.Button();
|
|
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
|
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
|
this.splitContainer1.Panel1.SuspendLayout();
|
|
this.splitContainer1.Panel2.SuspendLayout();
|
|
this.splitContainer1.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
|
|
this.splitContainer2.Panel1.SuspendLayout();
|
|
this.splitContainer2.Panel2.SuspendLayout();
|
|
this.splitContainer2.SuspendLayout();
|
|
this.editContainer.SuspendLayout();
|
|
this.contextMenuStrip1.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// splitContainer1
|
|
//
|
|
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
|
|
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
|
|
this.splitContainer1.Name = "splitContainer1";
|
|
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
|
//
|
|
// splitContainer1.Panel1
|
|
//
|
|
this.splitContainer1.Panel1.Controls.Add(this.splitContainer2);
|
|
//
|
|
// splitContainer1.Panel2
|
|
//
|
|
this.splitContainer1.Panel2.BackColor = System.Drawing.SystemColors.Control;
|
|
this.splitContainer1.Panel2.Controls.Add(this.button1);
|
|
this.splitContainer1.Panel2.Controls.Add(this.proTranslate);
|
|
this.splitContainer1.Panel2.Controls.Add(this.btnDeleteFile);
|
|
this.splitContainer1.Panel2.Controls.Add(this.btnAddFiles);
|
|
this.splitContainer1.Panel2.Controls.Add(this.btnRedo);
|
|
this.splitContainer1.Panel2.Controls.Add(this.btnOK);
|
|
this.splitContainer1.Panel2.Controls.Add(this.btnCancel);
|
|
this.splitContainer1.Panel2MinSize = 30;
|
|
this.splitContainer1.Size = new System.Drawing.Size(755, 476);
|
|
this.splitContainer1.SplitterDistance = 431;
|
|
this.splitContainer1.SplitterWidth = 1;
|
|
this.splitContainer1.TabIndex = 5;
|
|
//
|
|
// splitContainer2
|
|
//
|
|
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
|
this.splitContainer2.Location = new System.Drawing.Point(0, 0);
|
|
this.splitContainer2.Name = "splitContainer2";
|
|
this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
|
//
|
|
// splitContainer2.Panel1
|
|
//
|
|
this.splitContainer2.Panel1.BackColor = System.Drawing.Color.WhiteSmoke;
|
|
this.splitContainer2.Panel1.Controls.Add(this.editContainer);
|
|
//
|
|
// splitContainer2.Panel2
|
|
//
|
|
this.splitContainer2.Panel2.Controls.Add(this.lstVFileList);
|
|
this.splitContainer2.Size = new System.Drawing.Size(755, 431);
|
|
this.splitContainer2.SplitterDistance = 28;
|
|
this.splitContainer2.SplitterWidth = 1;
|
|
this.splitContainer2.TabIndex = 2;
|
|
//
|
|
// editContainer
|
|
//
|
|
this.editContainer.BackColor = System.Drawing.SystemColors.Control;
|
|
this.editContainer.Controls.Add(this.label4);
|
|
this.editContainer.Controls.Add(this.txtSpecieName);
|
|
this.editContainer.Controls.Add(this.label3);
|
|
this.editContainer.Controls.Add(this.txtSpecieNo);
|
|
this.editContainer.Controls.Add(this.label2);
|
|
this.editContainer.Controls.Add(this.txtFileNo);
|
|
this.editContainer.Controls.Add(this.txtFileName);
|
|
this.editContainer.Controls.Add(this.btnSet);
|
|
this.editContainer.Dock = System.Windows.Forms.DockStyle.Top;
|
|
this.editContainer.Location = new System.Drawing.Point(0, 0);
|
|
this.editContainer.Name = "editContainer";
|
|
this.editContainer.Size = new System.Drawing.Size(755, 31);
|
|
this.editContainer.TabIndex = 1;
|
|
this.editContainer.Visible = false;
|
|
//
|
|
// label4
|
|
//
|
|
this.label4.AutoSize = true;
|
|
this.label4.Location = new System.Drawing.Point(489, 9);
|
|
this.label4.Name = "label4";
|
|
this.label4.Size = new System.Drawing.Size(53, 12);
|
|
this.label4.TabIndex = 8;
|
|
this.label4.Text = "类别名称";
|
|
//
|
|
// txtSpecieName
|
|
//
|
|
this.txtSpecieName.Location = new System.Drawing.Point(542, 4);
|
|
this.txtSpecieName.Name = "txtSpecieName";
|
|
this.txtSpecieName.ReadOnly = true;
|
|
this.txtSpecieName.Size = new System.Drawing.Size(125, 21);
|
|
this.txtSpecieName.TabIndex = 7;
|
|
//
|
|
// label3
|
|
//
|
|
this.label3.AutoSize = true;
|
|
this.label3.Location = new System.Drawing.Point(341, 9);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new System.Drawing.Size(53, 12);
|
|
this.label3.TabIndex = 6;
|
|
this.label3.Text = "类别编码";
|
|
//
|
|
// txtSpecieNo
|
|
//
|
|
this.txtSpecieNo.Location = new System.Drawing.Point(393, 4);
|
|
this.txtSpecieNo.MaxLength = 50;
|
|
this.txtSpecieNo.Name = "txtSpecieNo";
|
|
this.txtSpecieNo.Size = new System.Drawing.Size(88, 21);
|
|
this.txtSpecieNo.TabIndex = 5;
|
|
this.txtSpecieNo.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtSpecieNo_KeyPress);
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.AutoSize = true;
|
|
this.label2.Location = new System.Drawing.Point(182, 9);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(53, 12);
|
|
this.label2.TabIndex = 4;
|
|
this.label2.Text = "文件编码";
|
|
//
|
|
// txtFileNo
|
|
//
|
|
this.txtFileNo.Location = new System.Drawing.Point(237, 4);
|
|
this.txtFileNo.MaxLength = 30;
|
|
this.txtFileNo.Name = "txtFileNo";
|
|
this.txtFileNo.Size = new System.Drawing.Size(99, 21);
|
|
this.txtFileNo.TabIndex = 3;
|
|
this.txtFileNo.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtFileNo_KeyPress);
|
|
//
|
|
// txtFileName
|
|
//
|
|
this.txtFileName.Location = new System.Drawing.Point(3, 5);
|
|
this.txtFileName.Name = "txtFileName";
|
|
this.txtFileName.ReadOnly = true;
|
|
this.txtFileName.Size = new System.Drawing.Size(177, 21);
|
|
this.txtFileName.TabIndex = 1;
|
|
//
|
|
// btnSet
|
|
//
|
|
this.btnSet.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
this.btnSet.Location = new System.Drawing.Point(668, 3);
|
|
this.btnSet.Name = "btnSet";
|
|
this.btnSet.Size = new System.Drawing.Size(75, 22);
|
|
this.btnSet.TabIndex = 0;
|
|
this.btnSet.Text = "关联信息";
|
|
this.btnSet.UseVisualStyleBackColor = true;
|
|
this.btnSet.Click += new System.EventHandler(this.btnSet_Click);
|
|
//
|
|
// lstVFileList
|
|
//
|
|
this.lstVFileList.AllowDrop = true;
|
|
this.lstVFileList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
|
this.columnHeader1,
|
|
this.columnHeader2,
|
|
this.columnHeader3,
|
|
this.columnHeader4,
|
|
this.columnHeader5,
|
|
this.columnHeader6,
|
|
this.columnHeader7});
|
|
this.lstVFileList.ContextMenuStrip = this.contextMenuStrip1;
|
|
this.lstVFileList.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.lstVFileList.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
this.lstVFileList.FullRowSelect = true;
|
|
this.lstVFileList.GridLines = true;
|
|
this.lstVFileList.HideSelection = false;
|
|
this.lstVFileList.Location = new System.Drawing.Point(0, 0);
|
|
this.lstVFileList.MultiSelect = false;
|
|
this.lstVFileList.Name = "lstVFileList";
|
|
this.lstVFileList.Size = new System.Drawing.Size(755, 402);
|
|
this.lstVFileList.TabIndex = 0;
|
|
this.lstVFileList.UseCompatibleStateImageBehavior = false;
|
|
this.lstVFileList.View = System.Windows.Forms.View.Details;
|
|
this.lstVFileList.ItemSelectionChanged += new System.Windows.Forms.ListViewItemSelectionChangedEventHandler(this.lstVFileList_ItemSelectionChanged);
|
|
this.lstVFileList.DragDrop += new System.Windows.Forms.DragEventHandler(this.lstVFileList_DragDrop);
|
|
this.lstVFileList.DragEnter += new System.Windows.Forms.DragEventHandler(this.lstVFileList_DragEnter);
|
|
//
|
|
// columnHeader1
|
|
//
|
|
this.columnHeader1.Text = "名称";
|
|
this.columnHeader1.Width = 180;
|
|
//
|
|
// columnHeader2
|
|
//
|
|
this.columnHeader2.Text = "大小";
|
|
this.columnHeader2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
|
this.columnHeader2.Width = 80;
|
|
//
|
|
// columnHeader3
|
|
//
|
|
this.columnHeader3.Text = "创建时间";
|
|
this.columnHeader3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
|
this.columnHeader3.Width = 130;
|
|
//
|
|
// columnHeader4
|
|
//
|
|
this.columnHeader4.Text = "类别名称";
|
|
this.columnHeader4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
|
this.columnHeader4.Width = 120;
|
|
//
|
|
// columnHeader5
|
|
//
|
|
this.columnHeader5.Text = "文件编码";
|
|
this.columnHeader5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
|
this.columnHeader5.Width = 80;
|
|
//
|
|
// columnHeader6
|
|
//
|
|
this.columnHeader6.Text = "状态";
|
|
this.columnHeader6.Width = 120;
|
|
//
|
|
// columnHeader7
|
|
//
|
|
this.columnHeader7.Text = "";
|
|
this.columnHeader7.Width = 120;
|
|
//
|
|
// contextMenuStrip1
|
|
//
|
|
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.btnDelete});
|
|
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
|
this.contextMenuStrip1.Size = new System.Drawing.Size(125, 26);
|
|
//
|
|
// btnDelete
|
|
//
|
|
this.btnDelete.Name = "btnDelete";
|
|
this.btnDelete.Size = new System.Drawing.Size(124, 22);
|
|
this.btnDelete.Text = "删除记录";
|
|
this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
|
|
//
|
|
// proTranslate
|
|
//
|
|
this.proTranslate.BackColor = System.Drawing.Color.Silver;
|
|
this.proTranslate.Dock = System.Windows.Forms.DockStyle.Top;
|
|
this.proTranslate.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
this.proTranslate.Location = new System.Drawing.Point(0, 0);
|
|
this.proTranslate.Name = "proTranslate";
|
|
this.proTranslate.Size = new System.Drawing.Size(755, 12);
|
|
this.proTranslate.TabIndex = 11;
|
|
//
|
|
// btnDeleteFile
|
|
//
|
|
this.btnDeleteFile.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
this.btnDeleteFile.Location = new System.Drawing.Point(371, 18);
|
|
this.btnDeleteFile.Name = "btnDeleteFile";
|
|
this.btnDeleteFile.Size = new System.Drawing.Size(89, 24);
|
|
this.btnDeleteFile.TabIndex = 10;
|
|
this.btnDeleteFile.Text = "删除文件";
|
|
this.btnDeleteFile.UseVisualStyleBackColor = true;
|
|
this.btnDeleteFile.Click += new System.EventHandler(this.btnDeleteFile_Click);
|
|
//
|
|
// btnAddFiles
|
|
//
|
|
this.btnAddFiles.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
this.btnAddFiles.Location = new System.Drawing.Point(276, 18);
|
|
this.btnAddFiles.Name = "btnAddFiles";
|
|
this.btnAddFiles.Size = new System.Drawing.Size(89, 24);
|
|
this.btnAddFiles.TabIndex = 9;
|
|
this.btnAddFiles.Text = "添加文件";
|
|
this.btnAddFiles.UseVisualStyleBackColor = true;
|
|
this.btnAddFiles.Visible = false;
|
|
this.btnAddFiles.Click += new System.EventHandler(this.btnAddFiles_Click);
|
|
//
|
|
// btnRedo
|
|
//
|
|
this.btnRedo.Enabled = false;
|
|
this.btnRedo.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
this.btnRedo.Location = new System.Drawing.Point(466, 17);
|
|
this.btnRedo.Name = "btnRedo";
|
|
this.btnRedo.Size = new System.Drawing.Size(89, 24);
|
|
this.btnRedo.TabIndex = 7;
|
|
this.btnRedo.Text = "重新下载";
|
|
this.btnRedo.UseVisualStyleBackColor = true;
|
|
this.btnRedo.Click += new System.EventHandler(this.btnRedo_Click);
|
|
//
|
|
// btnOK
|
|
//
|
|
this.btnOK.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
this.btnOK.Location = new System.Drawing.Point(561, 17);
|
|
this.btnOK.Name = "btnOK";
|
|
this.btnOK.Size = new System.Drawing.Size(89, 24);
|
|
this.btnOK.TabIndex = 5;
|
|
this.btnOK.Text = "确定下载";
|
|
this.btnOK.UseVisualStyleBackColor = true;
|
|
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
|
|
//
|
|
// btnCancel
|
|
//
|
|
this.btnCancel.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
this.btnCancel.Location = new System.Drawing.Point(656, 17);
|
|
this.btnCancel.Name = "btnCancel";
|
|
this.btnCancel.Size = new System.Drawing.Size(89, 24);
|
|
this.btnCancel.TabIndex = 4;
|
|
this.btnCancel.Text = "取消下载";
|
|
this.btnCancel.UseVisualStyleBackColor = true;
|
|
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
|
//
|
|
// button1
|
|
//
|
|
this.button1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
this.button1.Location = new System.Drawing.Point(184, 18);
|
|
this.button1.Name = "button1";
|
|
this.button1.Size = new System.Drawing.Size(89, 24);
|
|
this.button1.TabIndex = 13;
|
|
this.button1.Text = "打开拍摄仪";
|
|
this.button1.UseVisualStyleBackColor = true;
|
|
this.button1.Click += new System.EventHandler(this.button1_Click);
|
|
//
|
|
// openFileDialog1
|
|
//
|
|
this.openFileDialog1.FileName = "openFileDialog1";
|
|
this.openFileDialog1.Filter = "高拍仪程序|*.exe";
|
|
//
|
|
// timer1
|
|
//
|
|
this.timer1.Interval = 3000;
|
|
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
|
|
//
|
|
// FrmBatchProgress
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
|
|
this.ClientSize = new System.Drawing.Size(755, 476);
|
|
this.Controls.Add(this.splitContainer1);
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
this.MaximizeBox = false;
|
|
this.Name = "FrmBatchProgress";
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
|
this.Load += new System.EventHandler(this.FrmBatchProgress_Load);
|
|
this.splitContainer1.Panel1.ResumeLayout(false);
|
|
this.splitContainer1.Panel2.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
|
|
this.splitContainer1.ResumeLayout(false);
|
|
this.splitContainer2.Panel1.ResumeLayout(false);
|
|
this.splitContainer2.Panel2.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
|
|
this.splitContainer2.ResumeLayout(false);
|
|
this.editContainer.ResumeLayout(false);
|
|
this.editContainer.PerformLayout();
|
|
this.contextMenuStrip1.ResumeLayout(false);
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
|
|
private IContainer components;
|
|
private Button btnAddFiles;
|
|
private Button btnCancel;
|
|
private ToolStripMenuItem btnDelete;
|
|
private Button btnDeleteFile;
|
|
private Button btnOK;
|
|
private Button btnRedo;
|
|
private Button btnSet;
|
|
private ColumnHeader columnHeader1;
|
|
private ColumnHeader columnHeader2;
|
|
private ColumnHeader columnHeader3;
|
|
private ColumnHeader columnHeader4;
|
|
private ColumnHeader columnHeader5;
|
|
private ColumnHeader columnHeader6;
|
|
private ColumnHeader columnHeader7;
|
|
private ContextMenuStrip contextMenuStrip1;
|
|
private Panel editContainer;
|
|
private FolderBrowserDialog folderDialog;
|
|
private Label label2;
|
|
private Label label3;
|
|
private Label label4;
|
|
private ListView lstVFileList;
|
|
private OpenFileDialog openFileDialog;
|
|
private SplitContainer splitContainer1;
|
|
private SplitContainer splitContainer2;
|
|
private TextBox txtFileName;
|
|
private TextBox txtFileNo;
|
|
private TextBox txtSpecieName;
|
|
private TextBox txtSpecieNo;
|
|
private ProgressBar proTranslate;
|
|
private Button button1;
|
|
private OpenFileDialog openFileDialog1;
|
|
private System.Windows.Forms.Timer timer1;
|
|
}
|
|
} |