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

📄 eventform.h

📁 小区物业管理系统
💻 H
📖 第 1 页 / 共 3 页
字号:
			this->处理人员DataGridViewTextBoxColumn->DataPropertyName = L"处理人员";
			this->处理人员DataGridViewTextBoxColumn->HeaderText = L"处理人员";
			this->处理人员DataGridViewTextBoxColumn->Name = L"处理人员DataGridViewTextBoxColumn";
			this->处理人员DataGridViewTextBoxColumn->ReadOnly = true;
			// 
			// 事件主题DataGridViewTextBoxColumn
			// 
			this->事件主题DataGridViewTextBoxColumn->DataPropertyName = L"事件主题";
			this->事件主题DataGridViewTextBoxColumn->HeaderText = L"事件主题";
			this->事件主题DataGridViewTextBoxColumn->Name = L"事件主题DataGridViewTextBoxColumn";
			this->事件主题DataGridViewTextBoxColumn->ReadOnly = true;
			// 
			// 事件内容DataGridViewTextBoxColumn
			// 
			this->事件内容DataGridViewTextBoxColumn->DataPropertyName = L"事件内容";
			this->事件内容DataGridViewTextBoxColumn->HeaderText = L"事件内容";
			this->事件内容DataGridViewTextBoxColumn->Name = L"事件内容DataGridViewTextBoxColumn";
			this->事件内容DataGridViewTextBoxColumn->ReadOnly = true;
			// 
			// 处理结果DataGridViewTextBoxColumn
			// 
			this->处理结果DataGridViewTextBoxColumn->DataPropertyName = L"处理结果";
			this->处理结果DataGridViewTextBoxColumn->HeaderText = L"处理结果";
			this->处理结果DataGridViewTextBoxColumn->Name = L"处理结果DataGridViewTextBoxColumn";
			this->处理结果DataGridViewTextBoxColumn->ReadOnly = true;
			// 
			// 补充说明DataGridViewTextBoxColumn
			// 
			this->补充说明DataGridViewTextBoxColumn->DataPropertyName = L"补充说明";
			this->补充说明DataGridViewTextBoxColumn->HeaderText = L"补充说明";
			this->补充说明DataGridViewTextBoxColumn->Name = L"补充说明DataGridViewTextBoxColumn";
			this->补充说明DataGridViewTextBoxColumn->ReadOnly = true;
			// 
			// printDocument1
			// 
			this->printDocument1->PrintPage += gcnew System::Drawing::Printing::PrintPageEventHandler(this, &EventForm::printDocument1_PrintPage);
			// 
			// printPreviewDialog1
			// 
			this->printPreviewDialog1->AutoScrollMargin = System::Drawing::Size(0, 0);
			this->printPreviewDialog1->AutoScrollMinSize = System::Drawing::Size(0, 0);
			this->printPreviewDialog1->ClientSize = System::Drawing::Size(400, 300);
			this->printPreviewDialog1->Enabled = true;
			this->printPreviewDialog1->Icon = (cli::safe_cast<System::Drawing::Icon^  >(resources->GetObject(L"printPreviewDialog1.Icon")));
			this->printPreviewDialog1->Name = L"printPreviewDialog1";
			this->printPreviewDialog1->Visible = false;
			// 
			// 补充说明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(63, 123);
			this->补充说明TextBox->Name = L"补充说明TextBox";
			this->补充说明TextBox->Size = System::Drawing::Size(474, 21);
			this->补充说明TextBox->TabIndex = 51;
			// 
			// 处理结果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(63, 98);
			this->处理结果TextBox->Name = L"处理结果TextBox";
			this->处理结果TextBox->Size = System::Drawing::Size(474, 21);
			this->处理结果TextBox->TabIndex = 49;
			// 
			// 事件编号TextBox
			// 
			this->事件编号TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->突发事件BindingSource, L"事件编号", true)));
			this->事件编号TextBox->Location = System::Drawing::Point(63, 25);
			this->事件编号TextBox->Name = L"事件编号TextBox";
			this->事件编号TextBox->Size = System::Drawing::Size(133, 21);
			this->事件编号TextBox->TabIndex = 39;
			// 
			// 发生日期DateTimePicker
			// 
			this->发生日期DateTimePicker->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Value", this->突发事件BindingSource, L"发生日期", 
				true)));
			this->发生日期DateTimePicker->Location = System::Drawing::Point(258, 25);
			this->发生日期DateTimePicker->Name = L"发生日期DateTimePicker";
			this->发生日期DateTimePicker->Size = System::Drawing::Size(129, 21);
			this->发生日期DateTimePicker->TabIndex = 41;
			// 
			// 处理人员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(451, 25);
			this->处理人员TextBox->Name = L"处理人员TextBox";
			this->处理人员TextBox->Size = System::Drawing::Size(86, 21);
			this->处理人员TextBox->TabIndex = 43;
			// 
			// 事件主题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(63, 50);
			this->事件主题TextBox->Name = L"事件主题TextBox";
			this->事件主题TextBox->Size = System::Drawing::Size(474, 21);
			this->事件主题TextBox->TabIndex = 45;
			// 
			// 事件内容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(63, 74);
			this->事件内容TextBox->Name = L"事件内容TextBox";
			this->事件内容TextBox->Size = System::Drawing::Size(474, 21);
			this->事件内容TextBox->TabIndex = 47;
			// 
			// EventForm
			// 
			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(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"EventForm";
			this->ShowInTaskbar = false;
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
			this->Text = L"物业管理[突发事件管理]";
			this->Load += gcnew System::EventHandler(this, &EventForm::EventForm_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();
			this->ResumeLayout(false);
			this->PerformLayout();

		}
#pragma endregion
	public:String^ MyCommunity;
	private: System::Void EventForm_Load(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 突发事件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 打印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("发生日期:" + DateTime::Parse(this->突发事件DataGridView->CurrentRow->Cells[1]->Value->ToString()).ToShortDateString(), 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, 450, 175);
      e->Graphics->DrawLine(gcnew Pen(Color::Black), 100, 195, 720, 195);
      e->Graphics->DrawString("事件主题:" + this->突发事件DataGridView->CurrentRow->Cells[3]->Value->ToString(), gcnew System::Drawing::Font("宋体", 10), Brushes::Black, 100, 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[4]->Value->ToString(), gcnew System::Drawing::Font("宋体", 10), Brushes::Black, RectangleF(110, 245, 620, 230));
      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[5]->Value->ToString(), gcnew System::Drawing::Font("宋体", 10), Brushes::Black, RectangleF(110, 500, 620, 340));
      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[6]->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 + -