📄 frmdocument.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using System.Xml;
namespace Notepad
{
/// <summary>
/// Summary description for frmDocument.
/// </summary>
public class frmDocument : System.Windows.Forms.Form
{
public bool DocumentChanged=false;
public string FileName="";
private System.Windows.Forms.ColumnHeader columnHeader4;
private System.Windows.Forms.ColumnHeader columnHeader3;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label26;
private System.Windows.Forms.Label label27;
private System.Windows.Forms.Label label28;
private System.Windows.Forms.Label label29;
private System.Windows.Forms.Label label30;
private System.Windows.Forms.Label label31;
private System.Windows.Forms.Panel panel12;
private System.Windows.Forms.Label label32;
private System.Windows.Forms.Label label33;
private System.Windows.Forms.Panel panel14;
private System.Windows.Forms.Label label36;
private System.Windows.Forms.Label label37;
private System.Windows.Forms.Panel panel13;
private System.Windows.Forms.Label label34;
private System.Windows.Forms.Label label35;
private System.Windows.Forms.ColumnHeader columnHeader1;
private System.Windows.Forms.ColumnHeader columnHeader2;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Panel panel18;
private System.Windows.Forms.Label label47;
private System.Windows.Forms.Label label48;
private System.Windows.Forms.Panel panel19;
private System.Windows.Forms.Label label49;
private System.Windows.Forms.Label label50;
private System.Windows.Forms.Panel panel17;
private System.Windows.Forms.Label label45;
private System.Windows.Forms.Label label46;
private System.Windows.Forms.Panel panel15;
private System.Windows.Forms.Label label41;
private System.Windows.Forms.Label label42;
private System.Windows.Forms.Panel panel16;
private System.Windows.Forms.Label label43;
private System.Windows.Forms.Label label44;
private System.Windows.Forms.Panel panel10;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.Label label20;
private System.Windows.Forms.Panel panel9;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.Panel panel11;
private System.Windows.Forms.Label label21;
private System.Windows.Forms.Label label22;
private System.Windows.Forms.Label label23;
private System.Windows.Forms.Label label24;
private System.Windows.Forms.Panel panel7;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Panel panel6;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Panel panel5;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Panel panel8;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Panel panel20;
private System.Windows.Forms.Label label51;
private System.Windows.Forms.Label label52;
private System.Windows.Forms.Panel panel21;
private System.Windows.Forms.Label label54;
private System.Windows.Forms.Label label55;
private System.Windows.Forms.Button btnAdd;
private System.Windows.Forms.Button btnDel;
private System.Windows.Forms.TextBox TbxID;
private System.Windows.Forms.TextBox TbxBankName;
private System.Windows.Forms.TextBox TbxAccount;
private System.Windows.Forms.TextBox TbxBoxNumber;
private System.Windows.Forms.ListView LbxListProject;
private System.Windows.Forms.TextBox TbxBulk;
private System.Windows.Forms.TextBox TbxWeight;
private System.Windows.Forms.TextBox TbxDateIssued;
private System.Windows.Forms.TextBox TbxCheckedBy;
private System.Windows.Forms.TextBox TbxTrafficNo;
private System.Windows.Forms.TextBox TbxDestination;
private System.Windows.Forms.TextBox TbxDisPort;
private System.Windows.Forms.TextBox TbxDateSailed;
private System.Windows.Forms.ComboBox CbxPayer;
private System.Windows.Forms.TextBox TbxBLNo;
private System.Windows.Forms.TextBox TbxVessel;
private System.Windows.Forms.TextBox TbxLoadPort;
private System.Windows.Forms.TextBox Quantity;
private System.Windows.Forms.TextBox UnitPrice;
private System.Windows.Forms.ComboBox Unit;
private System.Windows.Forms.Label TbxTotalInCapita;
private System.Windows.Forms.Label TbxLumpSum;
private System.Windows.Forms.ComboBox CbxBusinessRegisterNo;
private System.Windows.Forms.ComboBox CbxRegisterNo;
private System.Windows.Forms.ComboBox CbxIssuedBy;
private System.Windows.Forms.ComboBox CbxDescriptions;
private System.Windows.Forms.Panel panel22;
private System.Windows.Forms.Label label53;
private System.Windows.Forms.Label label56;
private System.Windows.Forms.Label TbxB;
private System.Windows.Forms.Label TbxL;
private System.Windows.Forms.Label TbxQ;
private System.Windows.Forms.Label TbxForNo;
private System.Windows.Forms.Panel panel23;
private System.Windows.Forms.Panel panel24;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public frmDocument()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(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()
{
this.columnHeader4 = new System.Windows.Forms.ColumnHeader();
this.columnHeader3 = new System.Windows.Forms.ColumnHeader();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.TbxB = new System.Windows.Forms.Label();
this.TbxBoxNumber = new System.Windows.Forms.TextBox();
this.btnAdd = new System.Windows.Forms.Button();
this.LbxListProject = new System.Windows.Forms.ListView();
this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
this.columnHeader2 = new System.Windows.Forms.ColumnHeader();
this.label26 = new System.Windows.Forms.Label();
this.label27 = new System.Windows.Forms.Label();
this.label28 = new System.Windows.Forms.Label();
this.label29 = new System.Windows.Forms.Label();
this.label30 = new System.Windows.Forms.Label();
this.label31 = new System.Windows.Forms.Label();
this.btnDel = new System.Windows.Forms.Button();
this.panel12 = new System.Windows.Forms.Panel();
this.CbxDescriptions = new System.Windows.Forms.ComboBox();
this.label32 = new System.Windows.Forms.Label();
this.label33 = new System.Windows.Forms.Label();
this.panel14 = new System.Windows.Forms.Panel();
this.label36 = new System.Windows.Forms.Label();
this.label37 = new System.Windows.Forms.Label();
this.Quantity = new System.Windows.Forms.TextBox();
this.panel13 = new System.Windows.Forms.Panel();
this.label34 = new System.Windows.Forms.Label();
this.label35 = new System.Windows.Forms.Label();
this.UnitPrice = new System.Windows.Forms.TextBox();
this.Unit = new System.Windows.Forms.ComboBox();
this.TbxBulk = new System.Windows.Forms.TextBox();
this.TbxL = new System.Windows.Forms.Label();
this.TbxQ = new System.Windows.Forms.Label();
this.TbxWeight = new System.Windows.Forms.TextBox();
this.panel20 = new System.Windows.Forms.Panel();
this.label51 = new System.Windows.Forms.Label();
this.label52 = new System.Windows.Forms.Label();
this.TbxTotalInCapita = new System.Windows.Forms.Label();
this.panel21 = new System.Windows.Forms.Panel();
this.label54 = new System.Windows.Forms.Label();
this.label55 = new System.Windows.Forms.Label();
this.TbxLumpSum = new System.Windows.Forms.Label();
this.panel4 = new System.Windows.Forms.Panel();
this.label7 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.TbxDateIssued = new System.Windows.Forms.TextBox();
this.panel18 = new System.Windows.Forms.Panel();
this.label47 = new System.Windows.Forms.Label();
this.label48 = new System.Windows.Forms.Label();
this.CbxIssuedBy = new System.Windows.Forms.ComboBox();
this.panel19 = new System.Windows.Forms.Panel();
this.label49 = new System.Windows.Forms.Label();
this.label50 = new System.Windows.Forms.Label();
this.CbxRegisterNo = new System.Windows.Forms.ComboBox();
this.panel17 = new System.Windows.Forms.Panel();
this.label45 = new System.Windows.Forms.Label();
this.label46 = new System.Windows.Forms.Label();
this.TbxCheckedBy = new System.Windows.Forms.TextBox();
this.panel15 = new System.Windows.Forms.Panel();
this.label41 = new System.Windows.Forms.Label();
this.label42 = new System.Windows.Forms.Label();
this.TbxForNo = new System.Windows.Forms.Label();
this.TbxTrafficNo = new System.Windows.Forms.TextBox();
this.panel16 = new System.Windows.Forms.Panel();
this.label43 = new System.Windows.Forms.Label();
this.label44 = new System.Windows.Forms.Label();
this.CbxBusinessRegisterNo = new System.Windows.Forms.ComboBox();
this.panel10 = new System.Windows.Forms.Panel();
this.label19 = new System.Windows.Forms.Label();
this.label20 = new System.Windows.Forms.Label();
this.TbxDestination = new System.Windows.Forms.TextBox();
this.panel9 = new System.Windows.Forms.Panel();
this.label17 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.TbxDisPort = new System.Windows.Forms.TextBox();
this.panel11 = new System.Windows.Forms.Panel();
this.label21 = new System.Windows.Forms.Label();
this.label22 = new System.Windows.Forms.Label();
this.TbxID = new System.Windows.Forms.TextBox();
this.label23 = new System.Windows.Forms.Label();
this.label24 = new System.Windows.Forms.Label();
this.TbxBankName = new System.Windows.Forms.TextBox();
this.TbxAccount = new System.Windows.Forms.TextBox();
this.panel7 = new System.Windows.Forms.Panel();
this.label13 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.TbxDateSailed = new System.Windows.Forms.TextBox();
this.panel3 = new System.Windows.Forms.Panel();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.CbxPayer = new System.Windows.Forms.ComboBox();
this.panel1 = new System.Windows.Forms.Panel();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.panel6 = new System.Windows.Forms.Panel();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.TbxBLNo = new System.Windows.Forms.TextBox();
this.panel5 = new System.Windows.Forms.Panel();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.TbxVessel = new System.Windows.Forms.TextBox();
this.panel8 = new System.Windows.Forms.Panel();
this.label15 = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.TbxLoadPort = new System.Windows.Forms.TextBox();
this.panel22 = new System.Windows.Forms.Panel();
this.label53 = new System.Windows.Forms.Label();
this.label56 = new System.Windows.Forms.Label();
this.panel23 = new System.Windows.Forms.Panel();
this.panel24 = new System.Windows.Forms.Panel();
this.groupBox1.SuspendLayout();
this.panel12.SuspendLayout();
this.panel14.SuspendLayout();
this.panel13.SuspendLayout();
this.panel20.SuspendLayout();
this.panel21.SuspendLayout();
this.panel4.SuspendLayout();
this.panel18.SuspendLayout();
this.panel19.SuspendLayout();
this.panel17.SuspendLayout();
this.panel15.SuspendLayout();
this.panel16.SuspendLayout();
this.panel10.SuspendLayout();
this.panel9.SuspendLayout();
this.panel11.SuspendLayout();
this.panel7.SuspendLayout();
this.panel3.SuspendLayout();
this.panel2.SuspendLayout();
this.panel1.SuspendLayout();
this.panel6.SuspendLayout();
this.panel5.SuspendLayout();
this.panel8.SuspendLayout();
this.panel22.SuspendLayout();
this.panel23.SuspendLayout();
this.panel24.SuspendLayout();
this.SuspendLayout();
//
// columnHeader4
//
this.columnHeader4.Width = 108;
//
// columnHeader3
//
this.columnHeader3.Width = 142;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.btnAdd);
this.groupBox1.Controls.Add(this.LbxListProject);
this.groupBox1.Controls.Add(this.label26);
this.groupBox1.Controls.Add(this.label27);
this.groupBox1.Controls.Add(this.label28);
this.groupBox1.Controls.Add(this.label29);
this.groupBox1.Controls.Add(this.label30);
this.groupBox1.Controls.Add(this.label31);
this.groupBox1.Controls.Add(this.btnDel);
this.groupBox1.Controls.Add(this.panel12);
this.groupBox1.Controls.Add(this.panel14);
this.groupBox1.Controls.Add(this.panel13);
this.groupBox1.Controls.Add(this.panel20);
this.groupBox1.Controls.Add(this.panel21);
this.groupBox1.Controls.Add(this.panel24);
this.groupBox1.Location = new System.Drawing.Point(16, 232);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(768, 272);
this.groupBox1.TabIndex = 11;
this.groupBox1.TabStop = false;
//
// TbxB
//
this.TbxB.Location = new System.Drawing.Point(8, 8);
this.TbxB.Name = "TbxB";
this.TbxB.Size = new System.Drawing.Size(96, 16);
this.TbxB.TabIndex = 0;
this.TbxB.Text = "箱量";
//
// TbxBoxNumber
//
this.TbxBoxNumber.Location = new System.Drawing.Point(16, 24);
this.TbxBoxNumber.Name = "TbxBoxNumber";
this.TbxBoxNumber.Size = new System.Drawing.Size(112, 21);
this.TbxBoxNumber.TabIndex = 14;
this.TbxBoxNumber.Text = "";
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -