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

📄 hotelarrival.h

📁 我新买的书 光盘里有一个很好的教务管理系统的VC.net的按例
💻 H
📖 第 1 页 / 共 4 页
字号:
			this->tBoxDiscountCause->Name = S"tBoxDiscountCause";
			this->tBoxDiscountCause->Size = System::Drawing::Size(112, 21);
			this->tBoxDiscountCause->TabIndex = 4;
			this->tBoxDiscountCause->Text = S"";
			// 
			// tBoxArrivalIDShow
			// 
			this->tBoxArrivalIDShow->Location = System::Drawing::Point(16, 48);
			this->tBoxArrivalIDShow->Name = S"tBoxArrivalIDShow";
			this->tBoxArrivalIDShow->Size = System::Drawing::Size(112, 21);
			this->tBoxArrivalIDShow->TabIndex = 2;
			this->tBoxArrivalIDShow->Text = S"";
			this->tBoxArrivalIDShow->Leave += new System::EventHandler(this, tBoxArrivalIDShow_Leave);
			// 
			// label5
			// 
			this->label5->Location = System::Drawing::Point(16, 32);
			this->label5->Name = S"label5";
			this->label5->Size = System::Drawing::Size(56, 11);
			this->label5->TabIndex = 1;
			this->label5->Text = S"入住单号";
			// 
			// tBoxPhoneNumber
			// 
			this->tBoxPhoneNumber->Location = System::Drawing::Point(488, 48);
			this->tBoxPhoneNumber->Name = S"tBoxPhoneNumber";
			this->tBoxPhoneNumber->Size = System::Drawing::Size(120, 21);
			this->tBoxPhoneNumber->TabIndex = 6;
			this->tBoxPhoneNumber->Text = S"";
			// 
			// label6
			// 
			this->label6->Location = System::Drawing::Point(248, 32);
			this->label6->Name = S"label6";
			this->label6->Size = System::Drawing::Size(56, 11);
			this->label6->TabIndex = 5;
			this->label6->Text = S"抵店时间";
			// 
			// label7
			// 
			this->label7->Location = System::Drawing::Point(136, 32);
			this->label7->Name = S"label7";
			this->label7->Size = System::Drawing::Size(56, 11);
			this->label7->TabIndex = 3;
			this->label7->Text = S"客房类型";
			// 
			// label29
			// 
			this->label29->Location = System::Drawing::Point(496, 32);
			this->label29->Name = S"label29";
			this->label29->Size = System::Drawing::Size(56, 11);
			this->label29->TabIndex = 8;
			this->label29->Text = S"联系电话";
			// 
			// label30
			// 
			this->label30->Location = System::Drawing::Point(312, 88);
			this->label30->Name = S"label30";
			this->label30->Size = System::Drawing::Size(40, 11);
			this->label30->TabIndex = 16;
			this->label30->Text = S"折扣";
			// 
			// tBoxDiscount
			// 
			this->tBoxDiscount->Location = System::Drawing::Point(312, 104);
			this->tBoxDiscount->Name = S"tBoxDiscount";
			this->tBoxDiscount->Size = System::Drawing::Size(32, 21);
			this->tBoxDiscount->TabIndex = 12;
			this->tBoxDiscount->Text = S"";
			// 
			// label11
			// 
			this->label11->Location = System::Drawing::Point(472, 88);
			this->label11->Name = S"label11";
			this->label11->Size = System::Drawing::Size(56, 11);
			this->label11->TabIndex = 53;
			this->label11->Text = S"入住人数";
			// 
			// tBoxSettleNumber
			// 
			this->tBoxSettleNumber->Location = System::Drawing::Point(472, 104);
			this->tBoxSettleNumber->Name = S"tBoxSettleNumber";
			this->tBoxSettleNumber->Size = System::Drawing::Size(56, 21);
			this->tBoxSettleNumber->TabIndex = 4;
			this->tBoxSettleNumber->Text = S"";
			// 
			// label12
			// 
			this->label12->Location = System::Drawing::Point(256, 136);
			this->label12->Name = S"label12";
			this->label12->Size = System::Drawing::Size(48, 11);
			this->label12->TabIndex = 16;
			this->label12->Text = S"预定人";
			// 
			// tBoxOperator
			// 
			this->tBoxOperator->Location = System::Drawing::Point(416, 152);
			this->tBoxOperator->Name = S"tBoxOperator";
			this->tBoxOperator->Size = System::Drawing::Size(72, 21);
			this->tBoxOperator->TabIndex = 4;
			this->tBoxOperator->Text = S"";
			// 
			// label14
			// 
			this->label14->Location = System::Drawing::Point(104, 136);
			this->label14->Name = S"label14";
			this->label14->Size = System::Drawing::Size(56, 11);
			this->label14->TabIndex = 13;
			this->label14->Text = S"预收款";
			// 
			// tBoxOderShow
			// 
			this->tBoxOderShow->Location = System::Drawing::Point(256, 152);
			this->tBoxOderShow->Name = S"tBoxOderShow";
			this->tBoxOderShow->Size = System::Drawing::Size(72, 21);
			this->tBoxOderShow->TabIndex = 12;
			this->tBoxOderShow->Text = S"";
			// 
			// label15
			// 
			this->label15->Location = System::Drawing::Point(184, 136);
			this->label15->Name = S"label15";
			this->label15->Size = System::Drawing::Size(64, 11);
			this->label15->TabIndex = 16;
			this->label15->Text = S"单据状态";
			// 
			// tBoxOderStatus
			// 
			this->tBoxOderStatus->Location = System::Drawing::Point(184, 152);
			this->tBoxOderStatus->Name = S"tBoxOderStatus";
			this->tBoxOderStatus->Size = System::Drawing::Size(64, 21);
			this->tBoxOderStatus->TabIndex = 12;
			this->tBoxOderStatus->Text = S"";
			// 
			// label16
			// 
			this->label16->Location = System::Drawing::Point(16, 136);
			this->label16->Name = S"label16";
			this->label16->Size = System::Drawing::Size(56, 11);
			this->label16->TabIndex = 9;
			this->label16->Text = S"加床价格";
			// 
			// tBoxOP
			// 
			this->tBoxOP->Location = System::Drawing::Point(336, 152);
			this->tBoxOP->Name = S"tBoxOP";
			this->tBoxOP->Size = System::Drawing::Size(72, 21);
			this->tBoxOP->TabIndex = 4;
			this->tBoxOP->Text = S"";
			// 
			// label17
			// 
			this->label17->Location = System::Drawing::Point(416, 136);
			this->label17->Name = S"label17";
			this->label17->Size = System::Drawing::Size(56, 11);
			this->label17->TabIndex = 53;
			this->label17->Text = S"操作员";
			// 
			// tBoxPreDeal
			// 
			this->tBoxPreDeal->Location = System::Drawing::Point(104, 152);
			this->tBoxPreDeal->Name = S"tBoxPreDeal";
			this->tBoxPreDeal->Size = System::Drawing::Size(72, 21);
			this->tBoxPreDeal->TabIndex = 14;
			this->tBoxPreDeal->Text = S"";
			// 
			// tBoxAdditionalBedPrice
			// 
			this->tBoxAdditionalBedPrice->Location = System::Drawing::Point(16, 152);
			this->tBoxAdditionalBedPrice->Name = S"tBoxAdditionalBedPrice";
			this->tBoxAdditionalBedPrice->Size = System::Drawing::Size(80, 21);
			this->tBoxAdditionalBedPrice->TabIndex = 10;
			this->tBoxAdditionalBedPrice->Text = S"";
			// 
			// label18
			// 
			this->label18->Location = System::Drawing::Point(336, 136);
			this->label18->Name = S"label18";
			this->label18->Size = System::Drawing::Size(56, 11);
			this->label18->TabIndex = 53;
			this->label18->Text = S"业务员";
			// 
			// tBoxMemberID
			// 
			this->tBoxMemberID->Location = System::Drawing::Point(496, 152);
			this->tBoxMemberID->Name = S"tBoxMemberID";
			this->tBoxMemberID->Size = System::Drawing::Size(112, 21);
			this->tBoxMemberID->TabIndex = 4;
			this->tBoxMemberID->Text = S"";
			// 
			// label19
			// 
			this->label19->Location = System::Drawing::Point(496, 136);
			this->label19->Name = S"label19";
			this->label19->Size = System::Drawing::Size(56, 11);
			this->label19->TabIndex = 53;
			this->label19->Text = S"会员编号";
			// 
			// tBoxOderCompany
			// 
			this->tBoxOderCompany->Location = System::Drawing::Point(16, 200);
			this->tBoxOderCompany->Name = S"tBoxOderCompany";
			this->tBoxOderCompany->Size = System::Drawing::Size(144, 21);
			this->tBoxOderCompany->TabIndex = 49;
			this->tBoxOderCompany->Text = S"";
			// 
			// label20
			// 
			this->label20->Location = System::Drawing::Point(16, 184);
			this->label20->Name = S"label20";
			this->label20->Size = System::Drawing::Size(80, 11);
			this->label20->TabIndex = 48;
			this->label20->Text = S"预定公司";
			// 
			// chkWake
			// 
			this->chkWake->Location = System::Drawing::Point(256, 200);
			this->chkWake->Name = S"chkWake";
			this->chkWake->Size = System::Drawing::Size(80, 24);
			this->chkWake->TabIndex = 64;
			this->chkWake->Text = S"定时叫醒";
			// 
			// chkSecruite
			// 
			this->chkSecruite->Location = System::Drawing::Point(344, 200);
			this->chkSecruite->Name = S"chkSecruite";
			this->chkSecruite->Size = System::Drawing::Size(80, 24);
			this->chkSecruite->TabIndex = 64;
			this->chkSecruite->Text = S"入住保密";
			// 
			// chkIsVIP
			// 
			this->chkIsVIP->Location = System::Drawing::Point(432, 200);
			this->chkIsVIP->Name = S"chkIsVIP";
			this->chkIsVIP->Size = System::Drawing::Size(80, 24);
			this->chkIsVIP->TabIndex = 64;
			this->chkIsVIP->Text = S"VIP贵宾";
			// 
			// HotelArrival
			// 
			this->AutoScaleBaseSize = System::Drawing::Size(6, 14);
			this->ClientSize = System::Drawing::Size(760, 485);
			this->Controls->Add(this->dgrdOder);
			this->Controls->Add(this->groupBox2);
			this->Controls->Add(this->groupBox1);
			this->Controls->Add(this->toolBar1);
			this->Name = S"HotelArrival";
			this->Text = S"入住管理";
			this->groupBox1->ResumeLayout(false);
			(__try_cast<System::ComponentModel::ISupportInitialize *  >(this->dgrdOder))->EndInit();
			this->groupBox2->ResumeLayout(false);
			this->ResumeLayout(false);

		}		
	private:
		//----------------设置控件ReadOnly属性------------------------
		void SetModify(bool isModifiable)
		{
			this->tBoxArrivalIDShow->ReadOnly = !isModifiable;
			this->tBoxPhoneNumber->ReadOnly = !isModifiable;
			this->tBoxRoomID->ReadOnly = !isModifiable;
			this->tBoxRoomPrice->ReadOnly = !isModifiable;
			this->tBoxRealPrice->ReadOnly = !isModifiable;
			this->tBoxDiscount->ReadOnly = !isModifiable;
			this->tBoxDiscountCause->ReadOnly = !isModifiable;
			this->tBoxSettleNumber->ReadOnly = !isModifiable;
			this->tBoxAdditionalBedPrice->ReadOnly = !isModifiable;
			this->tBoxPreDeal->ReadOnly = !isModifiable;
			this->tBoxOderStatus->ReadOnly = !isModifiable;
			this->tBoxOderShow->ReadOnly = !isModifiable;
			this->tBoxOP->ReadOnly = !isModifiable;
			this->tBoxMemberID->ReadOnly = !isModifiable;
			this->tBoxOderCompany->ReadOnly = !isModifiable;
			this->tBoxOperator->ReadOnly = !isModifiable;
			this->tBoxMemo->ReadOnly = !isModifiable;

			this->chkIsAdditionalBed->Enabled = isModifiable;
			this->chkOfferBreadfast->Enabled = isModifiable;
			this->chkWake->Enabled = isModifiable;
			this->chkSecruite->Enabled = isModifiable;
			this->chkIsVIP->Enabled = isModifiable;
			
			this->cmbRoomType->Enabled = isModifiable;

			this->dtpArrival->Enabled = isModifiable;
			this->dtpDeparture->Enabled = isModifiable;

			this->btnSearch->Enabled = !isModifiable;
			this->btnImportFromOrder->Enabled = isModifiable;

			this->dgrdOder->ReadOnly = !isModifiable;
		}
		//---------------------设置控件的数据邦定--------------------------
		void SetDataBindings()
		{			
			this->tBoxArrivalIDShow->DataBindings->Add(S"Text",this->ds->Tables->Item[S"入住单"],S"入住单号");
			this->tBoxPhoneNumber->DataBindings->Add(S"Text",this->ds->Tables->Item[S"入住单"],S"联系电话");
			this->tBoxRoomID->DataBindings->Add(S"Text",this->ds->Tables->Item[S"入住单"],S"客房编号");
			this->tBoxRoomPrice->DataBindings->Add(S"Text",this->ds->Tables->Item[S"入住单"],S"客房价格");
			this->tBoxRealPrice->DataBindings->Add(S"Text",this->ds->Tables->Item[S"入住单"],S"入住价格");
			this->tBoxDiscount->DataBindings->Add(S"Text",this->ds->Tables->Item[S"入住单"],S"折扣");
			this->tBoxDiscountCause->DataBindings->Add(S"Text",this->ds->Tables->Item[S"入住单"],S"折扣原因");
			this->tBoxSettleNumber->DataBindings->Add(S"Text",this->ds->Tables->Item[S"入住单"],S"入住人数");
			this->tBoxAdditionalBedPrice->DataBindings->Add(S"Text",this->ds->Tables->Item[S"入住单"],S"加床价格");
			this->tBoxPreDeal->DataBindings->Add(S"Text",this->ds->Tables->Item[S"入住单"],S"预收款");
			this->tBoxOderStatus->DataBindings->Add(S"Text",this->ds->Tables->Item[S"入住单"],S"单据状态");
			this->tBoxOderShow->DataBindings->Add(S"Text",this->ds->Tables->Item[S"入住单"],S"预定人");
			this->tBoxOP->DataBindings->Add(S"Text",this->ds->Tables->Item[S"入住单"],S"业务员");
			this->tBoxMemberID->DataBindings->Add(S"Text",this->ds->Tables->Item[S"入住单"],S"会员编号");
			this->tBoxOderCompany->DataBindings->Add(S"Text",this->ds->Tables->Item[S"入住单"],S"预定公司");
			this->tBoxOperator->DataBindings->Add(S"Text",this->ds->Tables->Item[S"入住单"],S"操作员");
			this->tBoxMemo->DataBindings->Add(S"Text",this->ds->Tables->Item[S"入住单"],S"备注");

			this->chkIsAdditionalBed->DataBindings->Add(S"Checked",this->ds->Tables->Item[S"入住单"],S"是否加床");
			this->chkOfferBreadfast->DataBindings->Add(S"Checked",this->ds->Tables->Item[S"入住单"],S"早餐");
			this->chkWake->DataBindings->Add(S"Checked",this->ds->Tables->Item[S"入住单"],S"叫醒");
			this->chkSecruite->DataBindings->Add(S"Checked",this->ds->Tables->Item[S"入住单"],S"保密");
			this->chkIsVIP->DataBindings->Add(S"Checked",this->ds->Tables->Item[S"入住单"],S"vip");
			
			this->cmbRoomType->DataBindings->Add(S"SelectedValue",this->ds->Tables->Item[S"入住单"],S"客房类型");

⌨️ 快捷键说明

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