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

📄 frmcash.cs

📁 采用C#和SQL Server 2000开发 功能比较全面的酒店管理系统
💻 CS
📖 第 1 页 / 共 4 页
字号:
using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Windows.Forms;using System.Data;using System.Data.SqlClient;namespace 酒店管理系统{	public class frmCash : 酒店管理系统.frmBase	{
		private System.Windows.Forms.GroupBox GroupBox1;
		internal System.Windows.Forms.ComboBox cbbPayWay;
		internal System.Windows.Forms.TextBox txbRemailMoney;
		internal System.Windows.Forms.Button btnOver;
		internal System.Windows.Forms.Button btnPayMoney;
		internal System.Windows.Forms.Label Label4;
		internal System.Windows.Forms.DataGrid dgdDetail;
		private System.Data.SqlClient.SqlDataAdapter sqlDataAdapter1;
		private System.Data.SqlClient.SqlCommand sqlSelectCommand1;
		private System.Data.SqlClient.SqlCommand sqlInsertCommand1;
		private System.Data.SqlClient.SqlCommand sqlUpdateCommand1;
		private System.Data.SqlClient.SqlCommand sqlDeleteCommand1;
		private System.Data.SqlClient.SqlConnection sqlConnection1;
		private 酒店管理系统.DataSet1 dataSet11;		private System.ComponentModel.IContainer components = null;		public frmCash()		{			// 该调用是 Windows 窗体设计器所必需的。			InitializeComponent();			// TODO: 在 InitializeComponent 调用后添加任何初始化		}		/// <summary>		/// 清理所有正在使用的资源。		/// </summary>		protected override void Dispose( bool disposing )		{			if( disposing )			{				if (components != null) 				{					components.Dispose();				}			}			base.Dispose( disposing );		}		#region 设计器生成的代码		/// <summary>		/// 设计器支持所需的方法 - 不要使用代码编辑器修改		/// 此方法的内容。		/// </summary>		private void InitializeComponent()		{			this.GroupBox1 = new System.Windows.Forms.GroupBox();
			this.cbbPayWay = new System.Windows.Forms.ComboBox();
			this.txbRemailMoney = new System.Windows.Forms.TextBox();
			this.btnOver = new System.Windows.Forms.Button();
			this.btnPayMoney = new System.Windows.Forms.Button();
			this.Label4 = new System.Windows.Forms.Label();
			this.dgdDetail = new System.Windows.Forms.DataGrid();
			this.sqlDataAdapter1 = new System.Data.SqlClient.SqlDataAdapter();
			this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();
			this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
			this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
			this.dataSet11 = new 酒店管理系统.DataSet1();
			((System.ComponentModel.ISupportInitialize)(this.dgdList)).BeginInit();
			this.GroupBox1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.dgdDetail)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dataSet11)).BeginInit();
			this.SuspendLayout();
			// 
			// dgdList
			// 
			this.dgdList.Location = new System.Drawing.Point(8, 200);
			this.dgdList.Name = "dgdList";
			this.dgdList.Size = new System.Drawing.Size(488, 104);
			// 
			// GroupBox1
			// 
			this.GroupBox1.Controls.Add(this.cbbPayWay);
			this.GroupBox1.Controls.Add(this.txbRemailMoney);
			this.GroupBox1.Controls.Add(this.btnOver);
			this.GroupBox1.Controls.Add(this.btnPayMoney);
			this.GroupBox1.Controls.Add(this.Label4);
			this.GroupBox1.Location = new System.Drawing.Point(8, 304);
			this.GroupBox1.Name = "GroupBox1";
			this.GroupBox1.Size = new System.Drawing.Size(488, 112);
			this.GroupBox1.TabIndex = 0;
			this.GroupBox1.TabStop = false;
			// 
			// cbbPayWay
			// 
			this.cbbPayWay.Items.AddRange(new object[] {
														   "现金",
														   "支票",
														   "信用卡",
														   "代金券",
														   "其它"});
			this.cbbPayWay.Location = new System.Drawing.Point(227, 72);
			this.cbbPayWay.Name = "cbbPayWay";
			this.cbbPayWay.Size = new System.Drawing.Size(73, 21);
			this.cbbPayWay.TabIndex = 13;
			// 
			// txbRemailMoney
			// 
			this.txbRemailMoney.Location = new System.Drawing.Point(127, 72);
			this.txbRemailMoney.Name = "txbRemailMoney";
			this.txbRemailMoney.ReadOnly = true;
			this.txbRemailMoney.Size = new System.Drawing.Size(66, 20);
			this.txbRemailMoney.TabIndex = 12;
			this.txbRemailMoney.Text = "";
			// 
			// btnOver
			// 
			this.btnOver.Location = new System.Drawing.Point(340, 72);
			this.btnOver.Name = "btnOver";
			this.btnOver.Size = new System.Drawing.Size(80, 22);
			this.btnOver.TabIndex = 11;
			this.btnOver.Text = "收银结帐退房";
			this.btnOver.Click += new System.EventHandler(this.btnOver_Click);
			// 
			// btnPayMoney
			// 
			this.btnPayMoney.Location = new System.Drawing.Point(19, 72);
			this.btnPayMoney.Name = "btnPayMoney";
			this.btnPayMoney.Size = new System.Drawing.Size(80, 22);
			this.btnPayMoney.TabIndex = 10;
			this.btnPayMoney.Text = "计算应收帐款";
			this.btnPayMoney.Click += new System.EventHandler(this.btnPayMoney_Click);
			// 
			// Label4
			// 
			this.Label4.Location = new System.Drawing.Point(11, 24);
			this.Label4.Name = "Label4";
			this.Label4.Size = new System.Drawing.Size(442, 32);
			this.Label4.TabIndex = 9;
			this.Label4.Text = "应收帐款=(入住价格+加床价格)x住店天数+帐单明细消费金额;住店天数=当前日期-抵店日期结帐金额=应收帐款-预收款";

⌨️ 快捷键说明

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