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

📄 gaspaymentform.h

📁 小区物业管理系统
💻 H
📖 第 1 页 / 共 3 页
字号:
//文件名:GasPaymentForm.h
#pragma once

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;

using namespace System::Data::SqlClient;
namespace MyCommunity {

	/// <summary>
	/// GasPaymentForm 摘要
	///
	/// 警告: 如果更改此类的名称,则需要更改
	///          与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
	///          “资源文件名”属性。否则,
	///          设计器将不能与此窗体的关联
	///          本地化资源正确交互。
	/// </summary>
	public ref class GasPaymentForm : public System::Windows::Forms::Form
	{
	public:
		GasPaymentForm(void)
		{
			InitializeComponent();
			//
			//TODO: 在此处添加构造函数代码
			//
		}

	protected:
		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		~GasPaymentForm()
		{
			if (components)
			{
				delete components;
			}
		}
	private: System::Windows::Forms::Button^  移除Button;
	protected: 
	private: System::Windows::Forms::Button^  添加Button;
	private: System::Windows::Forms::DataGridView^  明细DataGridView;
	private: System::Windows::Forms::Label^  label1;
	private: System::Windows::Forms::DataGridView^  未交DataGridView;
	private: System::Windows::Forms::Button^  查询Button;
	private: System::Windows::Forms::ComboBox^  业主姓名ComboBox;
	private: System::Windows::Forms::Label^  业主姓名Label;
	private: System::Windows::Forms::ComboBox^  楼栋名称ComboBox;
	private: System::Windows::Forms::Label^  楼栋名称Label;
	private: System::Windows::Forms::Button^  保存Button;
	private: System::Windows::Forms::Button^  打印Button;
	private: System::Windows::Forms::Button^  新增Button;
	private: System::Windows::Forms::Label^  补充说明Label;
	private: System::Windows::Forms::TextBox^  补充说明TextBox;
	private: System::Windows::Forms::TextBox^  收款事由TextBox;
	private: System::Windows::Forms::PrintPreviewDialog^  printPreviewDialog1;
	private: System::Windows::Forms::Label^  收款事由Label;
	private: System::Windows::Forms::TextBox^  收款人员TextBox;
	private: System::Windows::Forms::Label^  收款人员Label;
	private: System::Windows::Forms::TextBox^  收款形式TextBox;
	private: System::Windows::Forms::Label^  收款形式Label;
	private: System::Windows::Forms::TextBox^  收款金额TextBox;
	private: System::Windows::Forms::Label^  收款金额Label;
	private: System::Windows::Forms::TextBox^  交款人员TextBox;
	private: System::Windows::Forms::Label^  交款人员Label;
	private: System::Windows::Forms::TextBox^  收款日期TextBox;
	private: System::Windows::Forms::Label^  收款日期Label;
	private: System::Windows::Forms::TextBox^  收据编号TextBox;
	private: System::Drawing::Printing::PrintDocument^  printDocument1;
	private: System::Windows::Forms::Label^  收据编号Label;
	private: MyCommunity::DBCommunityDataSet^  DBCommunityDataSet;
	private: System::Windows::Forms::BindingSource^  楼栋信息BindingSource;
	private: MyCommunity::DBCommunityDataSetTableAdapters::楼栋信息TableAdapter^  楼栋信息TableAdapter;
	private: System::ComponentModel::IContainer^  components;

	private:
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>


#pragma region Windows Form Designer generated code
		/// <summary>
		/// 设计器支持所需的方法 - 不要
		/// 使用代码编辑器修改此方法的内容。
		/// </summary>
		void InitializeComponent(void)
		{
			this->components = (gcnew System::ComponentModel::Container());
			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(GasPaymentForm::typeid));
			System::Windows::Forms::DataGridViewCellStyle^  dataGridViewCellStyle1 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
			System::Windows::Forms::DataGridViewCellStyle^  dataGridViewCellStyle2 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
			System::Windows::Forms::DataGridViewCellStyle^  dataGridViewCellStyle3 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
			System::Windows::Forms::DataGridViewCellStyle^  dataGridViewCellStyle4 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
			System::Windows::Forms::DataGridViewCellStyle^  dataGridViewCellStyle5 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
			System::Windows::Forms::DataGridViewCellStyle^  dataGridViewCellStyle6 = (gcnew System::Windows::Forms::DataGridViewCellStyle());
			this->移除Button = (gcnew System::Windows::Forms::Button());
			this->添加Button = (gcnew System::Windows::Forms::Button());
			this->明细DataGridView = (gcnew System::Windows::Forms::DataGridView());
			this->label1 = (gcnew System::Windows::Forms::Label());
			this->未交DataGridView = (gcnew System::Windows::Forms::DataGridView());
			this->查询Button = (gcnew System::Windows::Forms::Button());
			this->业主姓名ComboBox = (gcnew System::Windows::Forms::ComboBox());
			this->业主姓名Label = (gcnew System::Windows::Forms::Label());
			this->楼栋名称ComboBox = (gcnew System::Windows::Forms::ComboBox());
			this->楼栋信息BindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));
			this->DBCommunityDataSet = (gcnew MyCommunity::DBCommunityDataSet());
			this->楼栋名称Label = (gcnew System::Windows::Forms::Label());
			this->保存Button = (gcnew System::Windows::Forms::Button());
			this->打印Button = (gcnew System::Windows::Forms::Button());
			this->新增Button = (gcnew System::Windows::Forms::Button());
			this->补充说明Label = (gcnew System::Windows::Forms::Label());
			this->补充说明TextBox = (gcnew System::Windows::Forms::TextBox());
			this->收款事由TextBox = (gcnew System::Windows::Forms::TextBox());
			this->printPreviewDialog1 = (gcnew System::Windows::Forms::PrintPreviewDialog());
			this->收款事由Label = (gcnew System::Windows::Forms::Label());
			this->收款人员TextBox = (gcnew System::Windows::Forms::TextBox());
			this->收款人员Label = (gcnew System::Windows::Forms::Label());
			this->收款形式TextBox = (gcnew System::Windows::Forms::TextBox());
			this->收款形式Label = (gcnew System::Windows::Forms::Label());
			this->收款金额TextBox = (gcnew System::Windows::Forms::TextBox());
			this->收款金额Label = (gcnew System::Windows::Forms::Label());
			this->交款人员TextBox = (gcnew System::Windows::Forms::TextBox());
			this->交款人员Label = (gcnew System::Windows::Forms::Label());
			this->收款日期TextBox = (gcnew System::Windows::Forms::TextBox());
			this->收款日期Label = (gcnew System::Windows::Forms::Label());
			this->收据编号TextBox = (gcnew System::Windows::Forms::TextBox());
			this->printDocument1 = (gcnew System::Drawing::Printing::PrintDocument());
			this->收据编号Label = (gcnew System::Windows::Forms::Label());
			this->楼栋信息TableAdapter = (gcnew MyCommunity::DBCommunityDataSetTableAdapters::楼栋信息TableAdapter());
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->明细DataGridView))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->未交DataGridView))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->楼栋信息BindingSource))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->DBCommunityDataSet))->BeginInit();
			this->SuspendLayout();
			// 
			// 移除Button
			// 
			this->移除Button->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"移除Button.Image")));
			this->移除Button->Location = System::Drawing::Point(452, 251);
			this->移除Button->Name = L"移除Button";
			this->移除Button->Size = System::Drawing::Size(80, 23);
			this->移除Button->TabIndex = 75;
			this->移除Button->Text = L"移除";
			this->移除Button->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
			this->移除Button->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
			this->移除Button->UseVisualStyleBackColor = true;
			this->移除Button->Click += gcnew System::EventHandler(this, &GasPaymentForm::移除Button_Click);
			// 
			// 添加Button
			// 
			this->添加Button->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"添加Button.Image")));
			this->添加Button->Location = System::Drawing::Point(366, 251);
			this->添加Button->Name = L"添加Button";
			this->添加Button->Size = System::Drawing::Size(80, 23);
			this->添加Button->TabIndex = 74;
			this->添加Button->Text = L"添加";
			this->添加Button->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
			this->添加Button->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
			this->添加Button->UseVisualStyleBackColor = true;
			this->添加Button->Click += gcnew System::EventHandler(this, &GasPaymentForm::添加Button_Click);
			// 
			// 明细DataGridView
			// 
			this->明细DataGridView->AllowUserToAddRows = false;
			this->明细DataGridView->AllowUserToDeleteRows = false;
			this->明细DataGridView->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom) 
				| System::Windows::Forms::AnchorStyles::Left) 
				| System::Windows::Forms::AnchorStyles::Right));
			this->明细DataGridView->BackgroundColor = System::Drawing::Color::LightGray;
			this->明细DataGridView->ColumnHeadersBorderStyle = System::Windows::Forms::DataGridViewHeaderBorderStyle::Sunken;
			dataGridViewCellStyle1->Alignment = System::Windows::Forms::DataGridViewContentAlignment::MiddleCenter;
			dataGridViewCellStyle1->BackColor = System::Drawing::SystemColors::ActiveCaption;
			dataGridViewCellStyle1->Font = (gcnew System::Drawing::Font(L"宋体", 9, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			dataGridViewCellStyle1->ForeColor = System::Drawing::SystemColors::WindowText;
			dataGridViewCellStyle1->SelectionBackColor = System::Drawing::SystemColors::Highlight;
			dataGridViewCellStyle1->SelectionForeColor = System::Drawing::SystemColors::GradientActiveCaption;
			dataGridViewCellStyle1->WrapMode = System::Windows::Forms::DataGridViewTriState::True;
			this->明细DataGridView->ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
			this->明细DataGridView->Location = System::Drawing::Point(9, 280);
			this->明细DataGridView->MultiSelect = false;
			this->明细DataGridView->Name = L"明细DataGridView";
			this->明细DataGridView->ReadOnly = true;
			dataGridViewCellStyle2->Alignment = System::Windows::Forms::DataGridViewContentAlignment::TopCenter;
			dataGridViewCellStyle2->BackColor = System::Drawing::SystemColors::Control;
			dataGridViewCellStyle2->Font = (gcnew System::Drawing::Font(L"宋体", 9, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			dataGridViewCellStyle2->ForeColor = System::Drawing::SystemColors::WindowText;
			dataGridViewCellStyle2->SelectionBackColor = System::Drawing::SystemColors::Highlight;
			dataGridViewCellStyle2->SelectionForeColor = System::Drawing::SystemColors::HighlightText;
			dataGridViewCellStyle2->WrapMode = System::Windows::Forms::DataGridViewTriState::True;
			this->明细DataGridView->RowHeadersDefaultCellStyle = dataGridViewCellStyle2;
			this->明细DataGridView->RowHeadersVisible = false;
			dataGridViewCellStyle3->SelectionBackColor = System::Drawing::Color::Green;
			this->明细DataGridView->RowsDefaultCellStyle = dataGridViewCellStyle3;
			this->明细DataGridView->RowTemplate->Height = 23;
			this->明细DataGridView->SelectionMode = System::Windows::Forms::DataGridViewSelectionMode::FullRowSelect;
			this->明细DataGridView->Size = System::Drawing::Size(523, 126);
			this->明细DataGridView->TabIndex = 73;
			// 
			// label1
			// 
			this->label1->AutoSize = true;
			this->label1->Location = System::Drawing::Point(9, 259);
			this->label1->Name = L"label1";
			this->label1->Size = System::Drawing::Size(209, 12);
			this->label1->TabIndex = 72;
			this->label1->Text = L"未交费业主即将交纳的水电气费明细:";
			// 
			// 未交DataGridView
			// 
			this->未交DataGridView->AllowUserToAddRows = false;
			this->未交DataGridView->AllowUserToDeleteRows = false;
			this->未交DataGridView->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left) 
				| System::Windows::Forms::AnchorStyles::Right));
			this->未交DataGridView->BackgroundColor = System::Drawing::Color::LightGray;
			this->未交DataGridView->ColumnHeadersBorderStyle = System::Windows::Forms::DataGridViewHeaderBorderStyle::Sunken;
			dataGridViewCellStyle4->Alignment = System::Windows::Forms::DataGridViewContentAlignment::MiddleCenter;
			dataGridViewCellStyle4->BackColor = System::Drawing::SystemColors::ActiveCaption;
			dataGridViewCellStyle4->Font = (gcnew System::Drawing::Font(L"宋体", 9, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			dataGridViewCellStyle4->ForeColor = System::Drawing::SystemColors::WindowText;
			dataGridViewCellStyle4->SelectionBackColor = System::Drawing::SystemColors::Highlight;
			dataGridViewCellStyle4->SelectionForeColor = System::Drawing::SystemColors::GradientActiveCaption;
			dataGridViewCellStyle4->WrapMode = System::Windows::Forms::DataGridViewTriState::True;
			this->未交DataGridView->ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
			this->未交DataGridView->Location = System::Drawing::Point(9, 107);
			this->未交DataGridView->MultiSelect = false;
			this->未交DataGridView->Name = L"未交DataGridView";
			this->未交DataGridView->ReadOnly = true;
			dataGridViewCellStyle5->Alignment = System::Windows::Forms::DataGridViewContentAlignment::TopCenter;
			dataGridViewCellStyle5->BackColor = System::Drawing::SystemColors::Control;
			dataGridViewCellStyle5->Font = (gcnew System::Drawing::Font(L"宋体", 9, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			dataGridViewCellStyle5->ForeColor = System::Drawing::SystemColors::WindowText;
			dataGridViewCellStyle5->SelectionBackColor = System::Drawing::SystemColors::Highlight;
			dataGridViewCellStyle5->SelectionForeColor = System::Drawing::SystemColors::HighlightText;
			dataGridViewCellStyle5->WrapMode = System::Windows::Forms::DataGridViewTriState::True;
			this->未交DataGridView->RowHeadersDefaultCellStyle = dataGridViewCellStyle5;
			this->未交DataGridView->RowHeadersVisible = false;
			dataGridViewCellStyle6->SelectionBackColor = System::Drawing::Color::Green;
			this->未交DataGridView->RowsDefaultCellStyle = dataGridViewCellStyle6;

⌨️ 快捷键说明

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