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

📄 complainform.h

📁 小区物业管理系统
💻 H
📖 第 1 页 / 共 4 页
字号:
			this->楼栋名称ComboBox->DataSource = this->楼栋信息BindingSource;
			this->楼栋名称ComboBox->DisplayMember = L"楼栋名称";
			this->楼栋名称ComboBox->FormattingEnabled = true;
			this->楼栋名称ComboBox->Location = System::Drawing::Point(208, 25);
			this->楼栋名称ComboBox->Name = L"楼栋名称ComboBox";
			this->楼栋名称ComboBox->Size = System::Drawing::Size(71, 20);
			this->楼栋名称ComboBox->TabIndex = 40;
			this->楼栋名称ComboBox->ValueMember = L"楼栋名称";
			this->楼栋名称ComboBox->SelectedIndexChanged += gcnew System::EventHandler(this, &ComplainForm::楼栋名称ComboBox_SelectedIndexChanged);
			// 
			// 楼栋信息BindingSource
			// 
			this->楼栋信息BindingSource->DataMember = L"楼栋信息";
			this->楼栋信息BindingSource->DataSource = this->DBCommunityDataSet;
			// 
			// 投诉编号TextBox
			// 
			this->投诉编号TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->服务投诉BindingSource, L"投诉编号", true)));
			this->投诉编号TextBox->Location = System::Drawing::Point(65, 24);
			this->投诉编号TextBox->Name = L"投诉编号TextBox";
			this->投诉编号TextBox->Size = System::Drawing::Size(81, 21);
			this->投诉编号TextBox->TabIndex = 38;
			// 
			// 接待人员TextBox
			// 
			this->接待人员TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->服务投诉BindingSource, L"接待人员", true)));
			this->接待人员TextBox->Location = System::Drawing::Point(239, 49);
			this->接待人员TextBox->Name = L"接待人员TextBox";
			this->接待人员TextBox->Size = System::Drawing::Size(59, 21);
			this->接待人员TextBox->TabIndex = 48;
			// 
			// 投诉主题TextBox
			// 
			this->投诉主题TextBox->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left) 
				| System::Windows::Forms::AnchorStyles::Right));
			this->投诉主题TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->服务投诉BindingSource, L"投诉主题", true)));
			this->投诉主题TextBox->Location = System::Drawing::Point(365, 49);
			this->投诉主题TextBox->Name = L"投诉主题TextBox";
			this->投诉主题TextBox->Size = System::Drawing::Size(174, 21);
			this->投诉主题TextBox->TabIndex = 50;
			// 
			// 投诉内容TextBox
			// 
			this->投诉内容TextBox->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left) 
				| System::Windows::Forms::AnchorStyles::Right));
			this->投诉内容TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->服务投诉BindingSource, L"投诉内容", true)));
			this->投诉内容TextBox->Location = System::Drawing::Point(65, 73);
			this->投诉内容TextBox->Name = L"投诉内容TextBox";
			this->投诉内容TextBox->Size = System::Drawing::Size(474, 21);
			this->投诉内容TextBox->TabIndex = 52;
			// 
			// 处理日期DateTimePicker
			// 
			this->处理日期DateTimePicker->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Value", this->服务投诉BindingSource, L"处理日期", 
				true)));
			this->处理日期DateTimePicker->Location = System::Drawing::Point(65, 98);
			this->处理日期DateTimePicker->Name = L"处理日期DateTimePicker";
			this->处理日期DateTimePicker->Size = System::Drawing::Size(200, 21);
			this->处理日期DateTimePicker->TabIndex = 54;
			// 
			// 处理人员TextBox
			// 
			this->处理人员TextBox->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left) 
				| System::Windows::Forms::AnchorStyles::Right));
			this->处理人员TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->服务投诉BindingSource, L"处理人员", true)));
			this->处理人员TextBox->Location = System::Drawing::Point(335, 98);
			this->处理人员TextBox->Name = L"处理人员TextBox";
			this->处理人员TextBox->Size = System::Drawing::Size(204, 21);
			this->处理人员TextBox->TabIndex = 56;
			// 
			// 处理意见TextBox
			// 
			this->处理意见TextBox->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left) 
				| System::Windows::Forms::AnchorStyles::Right));
			this->处理意见TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->服务投诉BindingSource, L"处理意见", true)));
			this->处理意见TextBox->Location = System::Drawing::Point(65, 122);
			this->处理意见TextBox->Name = L"处理意见TextBox";
			this->处理意见TextBox->Size = System::Drawing::Size(474, 21);
			this->处理意见TextBox->TabIndex = 58;
			// 
			// 处理结果TextBox
			// 
			this->处理结果TextBox->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left) 
				| System::Windows::Forms::AnchorStyles::Right));
			this->处理结果TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->服务投诉BindingSource, L"处理结果", true)));
			this->处理结果TextBox->Location = System::Drawing::Point(65, 147);
			this->处理结果TextBox->Name = L"处理结果TextBox";
			this->处理结果TextBox->Size = System::Drawing::Size(474, 21);
			this->处理结果TextBox->TabIndex = 60;
			// 
			// 楼栋信息TableAdapter
			// 
			this->楼栋信息TableAdapter->ClearBeforeFill = true;
			// 
			// 业主信息TableAdapter
			// 
			this->业主信息TableAdapter->ClearBeforeFill = true;
			// 
			// ComplainForm
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 12);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->ClientSize = System::Drawing::Size(542, 416);
			this->Controls->Add(this->服务投诉DataGridView);
			this->Controls->Add(投诉编号Label);
			this->Controls->Add(楼栋名称Label);
			this->Controls->Add(业主编号Label);
			this->Controls->Add(业主姓名Label);
			this->Controls->Add(投诉日期Label);
			this->Controls->Add(接待人员Label);
			this->Controls->Add(投诉主题Label);
			this->Controls->Add(投诉内容Label);
			this->Controls->Add(处理日期Label);
			this->Controls->Add(处理人员Label);
			this->Controls->Add(处理意见Label);
			this->Controls->Add(处理结果Label);
			this->Controls->Add(业主反馈Label);
			this->Controls->Add(补充说明Label);
			this->Controls->Add(this->补充说明TextBox);
			this->Controls->Add(this->业主反馈TextBox);
			this->Controls->Add(this->业主编号TextBox);
			this->Controls->Add(this->业主姓名ComboBox);
			this->Controls->Add(this->投诉日期DateTimePicker);
			this->Controls->Add(this->楼栋名称ComboBox);
			this->Controls->Add(this->投诉编号TextBox);
			this->Controls->Add(this->接待人员TextBox);
			this->Controls->Add(this->投诉主题TextBox);
			this->Controls->Add(this->投诉内容TextBox);
			this->Controls->Add(this->处理日期DateTimePicker);
			this->Controls->Add(this->处理人员TextBox);
			this->Controls->Add(this->处理意见TextBox);
			this->Controls->Add(this->处理结果TextBox);
			this->Controls->Add(this->服务投诉BindingNavigator);
			this->Name = L"ComplainForm";
			this->ShowInTaskbar = false;
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
			this->Text = L"物业管理[服务投诉管理]";
			this->Load += gcnew System::EventHandler(this, &ComplainForm::ComplainForm_Load);
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->DBCommunityDataSet))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->服务投诉BindingSource))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->服务投诉BindingNavigator))->EndInit();
			this->服务投诉BindingNavigator->ResumeLayout(false);
			this->服务投诉BindingNavigator->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->服务投诉DataGridView))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->业主信息BindingSource))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->楼栋信息BindingSource))->EndInit();
			this->ResumeLayout(false);
			this->PerformLayout();

		}
#pragma endregion
	public: String^ MyCommunity;
	private: System::Void 服务投诉BindingNavigatorSaveItem_Click(System::Object^  sender, System::EventArgs^  e) 
	{
	 this->Validate();
	 this->服务投诉BindingSource->EndEdit();
	 this->服务投诉TableAdapter->Update(this->DBCommunityDataSet->服务投诉);
	}
	private: System::Void 查询ToolStripButton_Click(System::Object^  sender, System::EventArgs^  e) 
	{
	  try 
	  {
		 this->服务投诉TableAdapter->Fill(this->DBCommunityDataSet->服务投诉, 投诉编号ToolStripTextBox->Text);
	  }
	  catch (System::Exception^ ex) 
	  {
		 System::Windows::Forms::MessageBox::Show(ex->Message);
	  }
	}
	private: System::Void ComplainForm_Load(System::Object^  sender, System::EventArgs^  e) 
	{// TODO: 这行代码将数据加载到表“DBCommunityDataSet.楼栋信息”中
	  this->楼栋信息TableAdapter->Fill(this->DBCommunityDataSet->楼栋信息);
	  try 
	  {
		 this->服务投诉TableAdapter->Fill(this->DBCommunityDataSet->服务投诉, 投诉编号ToolStripTextBox->Text);
	  }
	  catch (System::Exception^ ex) 
	  {
		 System::Windows::Forms::MessageBox::Show(ex->Message);
	  }
	}
	private: System::Void 楼栋名称ComboBox_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) 
	{//获取指定楼栋的业主姓名
      this->业主信息TableAdapter->FillLiveBy(this->DBCommunityDataSet->业主信息, 楼栋名称ComboBox->Text);
	}
	private: System::Void 业主姓名ComboBox_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) 
	{//获取指定业主的编号
      if (this->业主姓名ComboBox->SelectedValue->ToString() != "System.Data.DataRowView")
      {
        this->业主编号TextBox->Text = this->业主姓名ComboBox->SelectedValue->ToString();
      }
	}
	private: System::Void 打印ToolStripButton_Click(System::Object^  sender, System::EventArgs^  e) 
	{//打印服务投诉处理单
      this->printPreviewDialog1->Document = this->printDocument1;
      this->printPreviewDialog1->ShowDialog();
	}
	private: System::Void printDocument1_PrintPage(System::Object^  sender, System::Drawing::Printing::PrintPageEventArgs^  e) 
	{
	  e->Graphics->DrawString(this->MyCommunity + "服务投诉处理单", gcnew System::Drawing::Font("宋体", 20), Brushes::Black, 200, 90);
      e->Graphics->DrawString("投诉编号:" + this->服务投诉DataGridView->CurrentRow->Cells[0]->Value->ToString(), gcnew System::Drawing::Font("宋体", 10), Brushes::Black, 100, 145);
      e->Graphics->DrawString("打印日期:" + DateTime::Now.ToLongDateString(), gcnew System::Drawing::Font("宋体", 10), Brushes::Black, 550, 145);
      e->Graphics->DrawLine(gcnew Pen(Color::Black, (float)3.00), 100, 165, 720, 165);
      e->Graphics->DrawString("楼栋名称:" + this->服务投诉DataGridView->CurrentRow->Cells[1]->Value->ToString(), gcnew System::Drawing::Font("宋体", 10), Brushes::Black, 100, 175);
      e->Graphics->DrawString("业主编号:" + this->服务投诉DataGridView->CurrentRow->Cells[2]->Value->ToString(), gcnew System::Drawing::Font("宋体", 10), Brushes::Black, 250, 175);
      e->Graphics->DrawString("业主姓名:" + this->服务投诉DataGridView->CurrentRow->Cells[3]->Value->ToString(), gcnew System::Drawing::Font("宋体", 10), Brushes::Black, 450, 175);
      e->Graphics->DrawString("接待人员:" + this->服务投诉DataGridView->CurrentRow->Cells[5]->Value->ToString(), gcnew System::Drawing::Font("宋体", 10), Brushes::Black, 580, 175);
      e->Graphics->DrawLine(gcnew Pen(Color::Black), 100, 195, 720, 195);
      e->Graphics->DrawString("投诉日期:" + DateTime::Parse(this->服务投诉DataGridView->CurrentRow->Cells[4]->Value->ToString()).ToShortDateString(), gcnew System::Drawing::Font("宋体", 10), Brushes::Black, 100, 200);
      e->Graphics->DrawString("投诉主题:" + this->服务投诉DataGridView->CurrentRow->Cells[6]->Value->ToString(), gcnew System::Drawing::Font("宋体", 10), Brushes::Black, 250, 200);
      e->Graphics->DrawLine(gcnew Pen(Color::Black), 100, 220, 720, 220);
      e->Graphics->DrawString("投诉内容:", gcnew System::Drawing::Font("宋体", 10), Brushes::Black, 100, 225);
      e->Graphics->DrawString(this->服务投诉DataGridView->CurrentRow->Cells[7]->Value->ToString(), gcnew System::Drawing::Font("宋体", 10), Brushes::Black, RectangleF(110, 245, 620, 90));
      e->Graphics->DrawLine(gcnew Pen(Color::Black), 100, 335, 720, 335);
      e->Graphics->DrawString("处理意见:", gcnew System::Drawing::Font("宋体", 10), Brushes::Black, 100, 340);
      e->Graphics->DrawString(this->服务投诉DataGridView->CurrentRow->Cells[10]->Value->ToString(), gcnew System::Drawing::Font("宋体", 10), Brushes::Black, RectangleF(110, 360, 620, 90));
      e->Graphics->DrawLine(gcnew Pen(Color::Black), 100, 450, 720, 450);
      e->Graphics->DrawString("处理日期:" + DateTime::Parse(this->服务投诉DataGridView->CurrentRow->Cells[8]->Value->ToString()).ToShortDateString(), gcnew System::Drawing::Font("宋体", 10), Brushes::Black, 100, 455);
      e->Graphics->DrawString("处理人员:" + this->服务投诉DataGridView->CurrentRow->Cells[9]->Value->ToString(), gcnew System::Drawing::Font("宋体", 10), Brushes::Black, 450, 455);
      e->Graphics->DrawLine(gcnew Pen(Color::Black), 100, 475, 720, 475);
      e->Graphics->DrawString("处理结果:", gcnew System::Drawing::Font("宋体", 10), Brushes::Black, 100, 480);
      e->Graphics->DrawString(this->服务投诉DataGridView->CurrentRow->Cells[11]->Value->ToString(), gcnew System::Drawing::Font("宋体", 10), Brushes::Black, RectangleF(110, 500, 620, 150));
      e->Graphics->DrawLine(gcnew Pen(Color::Black), 100, 635, 720, 635);
      e->Graphics->DrawString("业主反馈:", gcnew System::Drawing::Font("宋体", 10), Brushes::Black, 100, 640);
      e->Graphics->DrawString(this->服务投诉DataGridView->CurrentRow->Cells[12]->Value->ToString(), gcnew System::Drawing::Font("宋体", 10), Brushes::Black, RectangleF(110, 660, 620, 200));
      e->Graphics->DrawLine(gcnew Pen(Color::Black), 100, 845, 720, 845);
      e->Graphics->DrawString("补充说明:", gcnew System::Drawing::Font("宋体", 10), Brushes::Black, 100, 850);
      e->Graphics->DrawString(this->服务投诉DataGridView->CurrentRow->Cells[13]->Value->ToString(), gcnew System::Drawing::Font("宋体", 10), Brushes::Black, RectangleF(110, 870, 620, 125));
      e->Graphics->DrawLine(gcnew Pen(Color::Black, (float)3.00), 100, 1000, 720, 1000);        
	}
  };
}

⌨️ 快捷键说明

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