⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmdocument.cs

📁 用c#编的一个invoice打印程序
💻 CS
📖 第 1 页 / 共 5 页
字号:
			this.panel3.Location = new System.Drawing.Point(264, 56);
			this.panel3.Name = "panel3";
			this.panel3.Size = new System.Drawing.Size(136, 40);
			this.panel3.TabIndex = 0;
			// 
			// label6
			// 
			this.label6.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label6.Location = new System.Drawing.Point(16, 24);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(88, 16);
			this.label6.TabIndex = 5;
			this.label6.Text = "R E C O R D";
			// 
			// label5
			// 
			this.label5.Font = new System.Drawing.Font("宋体", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label5.Location = new System.Drawing.Point(8, 8);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(104, 16);
			this.label5.TabIndex = 4;
			this.label5.Text = "记    账    联";
			// 
			// panel2
			// 
			this.panel2.Controls.Add(this.label3);
			this.panel2.Controls.Add(this.label4);
			this.panel2.Controls.Add(this.CbxPayer);
			this.panel2.Location = new System.Drawing.Point(8, 104);
			this.panel2.Name = "panel2";
			this.panel2.Size = new System.Drawing.Size(264, 32);
			this.panel2.TabIndex = 2;
			// 
			// label3
			// 
			this.label3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label3.Location = new System.Drawing.Point(8, 0);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(56, 16);
			this.label3.TabIndex = 0;
			this.label3.Text = "付款单位";
			// 
			// label4
			// 
			this.label4.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label4.Location = new System.Drawing.Point(8, 16);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(40, 16);
			this.label4.TabIndex = 0;
			this.label4.Text = "PAYER";
			// 
			// CbxPayer
			// 
			this.CbxPayer.Location = new System.Drawing.Point(64, 8);
			this.CbxPayer.Name = "CbxPayer";
			this.CbxPayer.Size = new System.Drawing.Size(192, 20);
			this.CbxPayer.TabIndex = 104;
			this.CbxPayer.KeyUp += new System.Windows.Forms.KeyEventHandler(this.Cbx_KeyUp);
			// 
			// panel1
			// 
			this.panel1.Controls.Add(this.label2);
			this.panel1.Controls.Add(this.label1);
			this.panel1.Location = new System.Drawing.Point(120, 8);
			this.panel1.Name = "panel1";
			this.panel1.Size = new System.Drawing.Size(432, 48);
			this.panel1.TabIndex = 0;
			// 
			// label2
			// 
			this.label2.Font = new System.Drawing.Font("新宋体", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label2.Location = new System.Drawing.Point(16, 24);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(384, 16);
			this.label2.TabIndex = 0;
			this.label2.Text = "INTERNATIONAL FREIGHT FORWARDING SPECIAL INVOICE";
			// 
			// label1
			// 
			this.label1.Font = new System.Drawing.Font("新宋体", 11F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label1.Location = new System.Drawing.Point(8, 8);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(384, 16);
			this.label1.TabIndex = 0;
			this.label1.Text = "国  际  货  物  运  输  代  理  业  专  用  发  票";
			// 
			// panel6
			// 
			this.panel6.Controls.Add(this.label11);
			this.panel6.Controls.Add(this.label12);
			this.panel6.Controls.Add(this.TbxBLNo);
			this.panel6.Location = new System.Drawing.Point(376, 136);
			this.panel6.Name = "panel6";
			this.panel6.Size = new System.Drawing.Size(192, 32);
			this.panel6.TabIndex = 5;
			// 
			// label11
			// 
			this.label11.Location = new System.Drawing.Point(8, 0);
			this.label11.Name = "label11";
			this.label11.Size = new System.Drawing.Size(56, 16);
			this.label11.TabIndex = 0;
			this.label11.Text = "提(运)单号";
			// 
			// label12
			// 
			this.label12.Location = new System.Drawing.Point(8, 16);
			this.label12.Name = "label12";
			this.label12.Size = new System.Drawing.Size(56, 16);
			this.label12.TabIndex = 0;
			this.label12.Text = "B/L NO.";
			// 
			// TbxBLNo
			// 
			this.TbxBLNo.Location = new System.Drawing.Point(64, 8);
			this.TbxBLNo.Name = "TbxBLNo";
			this.TbxBLNo.Size = new System.Drawing.Size(104, 21);
			this.TbxBLNo.TabIndex = 107;
			this.TbxBLNo.Text = "";
			// 
			// panel5
			// 
			this.panel5.Controls.Add(this.label9);
			this.panel5.Controls.Add(this.label10);
			this.panel5.Controls.Add(this.TbxVessel);
			this.panel5.Location = new System.Drawing.Point(8, 136);
			this.panel5.Name = "panel5";
			this.panel5.Size = new System.Drawing.Size(376, 32);
			this.panel5.TabIndex = 4;
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(8, 0);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(128, 16);
			this.label9.TabIndex = 0;
			this.label9.Text = "船名/航次/航班/车次";
			// 
			// label10
			// 
			this.label10.Location = new System.Drawing.Point(8, 16);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(152, 16);
			this.label10.TabIndex = 0;
			this.label10.Text = "VESSEL/VOY/FRT/TRAIN NO.";
			// 
			// TbxVessel
			// 
			this.TbxVessel.Location = new System.Drawing.Point(160, 8);
			this.TbxVessel.Name = "TbxVessel";
			this.TbxVessel.Size = new System.Drawing.Size(200, 21);
			this.TbxVessel.TabIndex = 106;
			this.TbxVessel.Text = "";
			// 
			// panel8
			// 
			this.panel8.Controls.Add(this.label15);
			this.panel8.Controls.Add(this.label16);
			this.panel8.Controls.Add(this.TbxLoadPort);
			this.panel8.Location = new System.Drawing.Point(8, 168);
			this.panel8.Name = "panel8";
			this.panel8.Size = new System.Drawing.Size(256, 32);
			this.panel8.TabIndex = 7;
			// 
			// label15
			// 
			this.label15.Location = new System.Drawing.Point(8, 0);
			this.label15.Name = "label15";
			this.label15.Size = new System.Drawing.Size(56, 16);
			this.label15.TabIndex = 0;
			this.label15.Text = "起运港";
			// 
			// label16
			// 
			this.label16.Location = new System.Drawing.Point(8, 16);
			this.label16.Name = "label16";
			this.label16.Size = new System.Drawing.Size(64, 16);
			this.label16.TabIndex = 0;
			this.label16.Text = "LOAD PORT";
			// 
			// TbxLoadPort
			// 
			this.TbxLoadPort.Location = new System.Drawing.Point(72, 8);
			this.TbxLoadPort.Name = "TbxLoadPort";
			this.TbxLoadPort.Size = new System.Drawing.Size(168, 21);
			this.TbxLoadPort.TabIndex = 109;
			this.TbxLoadPort.Text = "";
			// 
			// panel22
			// 
			this.panel22.Controls.Add(this.label53);
			this.panel22.Controls.Add(this.label56);
			this.panel22.Location = new System.Drawing.Point(384, 544);
			this.panel22.Name = "panel22";
			this.panel22.Size = new System.Drawing.Size(264, 32);
			this.panel22.TabIndex = 9;
			// 
			// label53
			// 
			this.label53.Location = new System.Drawing.Point(8, 0);
			this.label53.Name = "label53";
			this.label53.Size = new System.Drawing.Size(96, 16);
			this.label53.TabIndex = 0;
			this.label53.Text = "手写无效";
			// 
			// label56
			// 
			this.label56.Location = new System.Drawing.Point(8, 16);
			this.label56.Name = "label56";
			this.label56.Size = new System.Drawing.Size(192, 16);
			this.label56.TabIndex = 0;
			this.label56.Text = "HAND WRITING NULL AND VOID";
			// 
			// panel23
			// 
			this.panel23.Controls.Add(this.TbxForNo);
			this.panel23.Controls.Add(this.TbxTrafficNo);
			this.panel23.Location = new System.Drawing.Point(16, 208);
			this.panel23.Name = "panel23";
			this.panel23.Size = new System.Drawing.Size(264, 32);
			this.panel23.TabIndex = 10;
			// 
			// panel24
			// 
			this.panel24.Controls.Add(this.TbxBulk);
			this.panel24.Controls.Add(this.TbxL);
			this.panel24.Controls.Add(this.TbxQ);
			this.panel24.Controls.Add(this.TbxWeight);
			this.panel24.Controls.Add(this.TbxB);
			this.panel24.Controls.Add(this.TbxBoxNumber);
			this.panel24.Location = new System.Drawing.Point(616, 48);
			this.panel24.Name = "panel24";
			this.panel24.Size = new System.Drawing.Size(136, 128);
			this.panel24.TabIndex = 16;
			// 
			// frmDocument
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.AutoScroll = true;
			this.BackColor = System.Drawing.Color.White;
			this.ClientSize = new System.Drawing.Size(968, 638);
			this.Controls.Add(this.panel23);
			this.Controls.Add(this.groupBox1);
			this.Controls.Add(this.panel4);
			this.Controls.Add(this.panel18);
			this.Controls.Add(this.panel19);
			this.Controls.Add(this.panel17);
			this.Controls.Add(this.panel15);
			this.Controls.Add(this.panel16);
			this.Controls.Add(this.panel10);
			this.Controls.Add(this.panel9);
			this.Controls.Add(this.panel11);
			this.Controls.Add(this.panel7);
			this.Controls.Add(this.panel3);
			this.Controls.Add(this.panel2);
			this.Controls.Add(this.panel1);
			this.Controls.Add(this.panel6);
			this.Controls.Add(this.panel5);
			this.Controls.Add(this.panel8);
			this.Controls.Add(this.panel22);
			this.Name = "frmDocument";
			this.Text = "frmDocument";
			this.Closing += new System.ComponentModel.CancelEventHandler(this.FormClosing);
			this.Load += new System.EventHandler(this.frmDocument_Load);
			this.Closed += new System.EventHandler(this.FormClosed);
			this.VisibleChanged += new System.EventHandler(this.FormVisibleChanged);
			this.Activated += new System.EventHandler(this.FormActivated);
			this.Deactivate += new System.EventHandler(this.FormDeactivated);
			this.groupBox1.ResumeLayout(false);
			this.panel12.ResumeLayout(false);
			this.panel14.ResumeLayout(false);
			this.panel13.ResumeLayout(false);
			this.panel20.ResumeLayout(false);
			this.panel21.ResumeLayout(false);
			this.panel4.ResumeLayout(false);
			this.panel18.ResumeLayout(false);
			this.panel19.ResumeLayout(false);
			this.panel17.ResumeLayout(false);
			this.panel15.ResumeLayout(false);
			this.panel16.ResumeLayout(false);
			this.panel10.ResumeLayout(false);
			this.panel9.ResumeLayout(false);
			this.panel11.ResumeLayout(false);
			this.panel7.ResumeLayout(false);
			this.panel3.ResumeLayout(false);
			this.panel2.ResumeLayout(false);
			this.panel1.ResumeLayout(false);
			this.panel6.ResumeLayout(false);
			this.panel5.ResumeLayout(false);
			this.panel8.ResumeLayout(false);
			this.panel22.ResumeLayout(false);
			this.panel23.ResumeLayout(false);
			this.panel24.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		private void OnMouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
		{
			return;
			if(e.Button!=MouseButtons.Right)
				return;

			frmMain mdi=this.ParentForm as frmMain;
			mdi.EditContextMenu();
		}

		//		private void TextSelectionChanged(object sender, System.EventArgs e)
		//		{
		//			EnableSelectionItems();
		//		}

		private void UpdateStatusBar()
		{
			//			frmMain mdi=this.ParentForm as frmMain;
			//			DevComponents.DotNetBar.DotNetBarManager m=mdi.dotNetBarManager1;
			//			m.Bars["barStatus"].Items["lPosition"].Text="Ln "+(rtfText.GetLineFromCharIndex(rtfText.SelectionStart)+1)+"\tCh "+rtfText.SelectionStart;
		}

		private void EnableSelectionItems()
		{
			//			frmMain mdi=this.ParentForm as frmMain;
			//			DevComponents.DotNetBar.DotNetBarManager m=mdi.dotNetBarManager1;
			//
			//			UpdateStatusBar();
			//
			//			if(rtfText.SelectionLength==0)
			//			{
			//				m.Items["bCut"].Enabled=false;
			//				m.Items["bCopy"].Enabled=false;
			//				m.Items["bDelete"].Enabled=false;
			//			}
			//			else
			//			{
			//				m.Items["bCut"].Enabled=true;
			//				m.Items["bCopy"].Enabled=true;
			//				m.Items["bDelete"].Enabled=true;
			//				
			//			}
			//			((ButtonItem)m.Items["bBold"]).Checked=rtfText.SelectionFont.Bold;
			//			((ButtonItem)m.Items["bItalic"]).Checked=rtfText.SelectionFont.Italic;
			//			((ButtonItem)m.Items["bUnderline"]).Checked=rtfText.SelectionFont.Underline;
			//			((ButtonItem)m.Items["bStrikethrough"]).Checked=rtfText.SelectionFont.Strikeout;
			//
			//			((ButtonItem)m.Items["bAlignLeft"]).Checked=(rtfText.SelectionAlignment==HorizontalAlignment.Left);
			//			((ButtonItem)m.Items["bAlignRight"]).Checked=(rtfText.SelectionAlignment==HorizontalAlignment.Right);
			//			((ButtonItem)m.Items["bAlignCenter"]).Checked=(rtfText.SelectionAlignment==HorizontalAlignment.Center);
		}

		private void FormActivated(object sender, System.EventArgs e)
		{
			//			EnableDocMenuItems();
			//			UpdateStatusBar();
		}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -