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

📄 hotelreserve.h

📁 Visual C++.net数据库开发经典案例
💻 H
📖 第 1 页 / 共 4 页
字号:
			this->label10->Size = System::Drawing::Size(56, 11);
			this->label10->TabIndex = 13;
			this->label10->Text = S"客房价格";
			// 
			// label3
			// 
			this->label3->Location = System::Drawing::Point(368, 32);
			this->label3->Name = S"label3";
			this->label3->Size = System::Drawing::Size(56, 11);
			this->label3->TabIndex = 8;
			this->label3->Text = S"离店时间";
			// 
			// cmbRoomType
			// 
			System::Object* __mcTemp__2[] = new System::Object*[2];
			__mcTemp__2[0] = S"男";
			__mcTemp__2[1] = S"女";
			this->cmbRoomType->Items->AddRange(__mcTemp__2);
			this->cmbRoomType->Location = System::Drawing::Point(136, 48);
			this->cmbRoomType->Name = S"cmbRoomType";
			this->cmbRoomType->Size = System::Drawing::Size(104, 20);
			this->cmbRoomType->TabIndex = 7;
			// 
			// tBoxDiscountCause
			// 
			this->tBoxDiscountCause->Location = System::Drawing::Point(352, 104);
			this->tBoxDiscountCause->Name = S"tBoxDiscountCause";
			this->tBoxDiscountCause->Size = System::Drawing::Size(112, 21);
			this->tBoxDiscountCause->TabIndex = 4;
			this->tBoxDiscountCause->Text = S"";
			// 
			// tBoxOderIDShow
			// 
			this->tBoxOderIDShow->Location = System::Drawing::Point(16, 48);
			this->tBoxOderIDShow->Name = S"tBoxOderIDShow";
			this->tBoxOderIDShow->Size = System::Drawing::Size(112, 21);
			this->tBoxOderIDShow->TabIndex = 2;
			this->tBoxOderIDShow->Text = S"";
			this->tBoxOderIDShow->Leave += new System::EventHandler(this, tBoxOderIDShow_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(232, 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"预定公司";
			// 
			// HotelReserve
			// 
			this->AutoScaleBaseSize = System::Drawing::Size(6, 14);
			this->ClientSize = System::Drawing::Size(760, 461);
			this->Controls->Add(this->dgrdOder);
			this->Controls->Add(this->groupBox2);
			this->Controls->Add(this->groupBox1);
			this->Controls->Add(this->toolBar1);
			this->Name = S"HotelReserve";
			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->tBoxOderIDShow->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->cmbRoomType->Enabled = isModifiable;

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

			this->btnSearch->Enabled = !isModifiable;

			this->dgrdOder->ReadOnly = !isModifiable;
		}
		//---------------------设置控件的数据邦定--------------------------
		void SetDataBindings()
		{			
			this->tBoxOderIDShow->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"客房编号");

⌨️ 快捷键说明

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