📄 reportownerform.h
字号:
//文件名:ReportOwnerForm.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 Microsoft::Office::Interop::Excel;
using namespace System::Reflection;
using namespace System::Data::SqlClient;
namespace MyCommunity {
/// <summary>
/// ReportOwnerForm 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class ReportOwnerForm : public System::Windows::Forms::Form
{
public:
ReportOwnerForm(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~ReportOwnerForm()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::TextBox^ 常住人员TextBox;
protected:
private: System::Windows::Forms::TextBox^ 房屋类型TextBox;
private: System::Windows::Forms::TextBox^ 单元名称TextBox;
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::Label^ 常住人员Label;
private: System::Windows::Forms::Label^ 房屋类型Label;
private: System::Windows::Forms::Button^ 查询Button;
private: System::Windows::Forms::ComboBox^ 房屋性质ComboBox;
private: System::Windows::Forms::Label^ 费用类型Label;
private: System::Windows::Forms::Label^ 单元名称Label;
private: System::Windows::Forms::ComboBox^ 楼栋名称ComboBox;
private: System::Windows::Forms::Label^ 楼栋名称Label;
private:
/// <summary>
/// 必需的设计器变量。
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
void InitializeComponent(void)
{
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::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(ReportOwnerForm::typeid));
this->常住人员TextBox = (gcnew System::Windows::Forms::TextBox());
this->房屋类型TextBox = (gcnew System::Windows::Forms::TextBox());
this->单元名称TextBox = (gcnew System::Windows::Forms::TextBox());
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->常住人员Label = (gcnew System::Windows::Forms::Label());
this->房屋类型Label = (gcnew System::Windows::Forms::Label());
this->查询Button = (gcnew System::Windows::Forms::Button());
this->房屋性质ComboBox = (gcnew System::Windows::Forms::ComboBox());
this->费用类型Label = (gcnew System::Windows::Forms::Label());
this->单元名称Label = (gcnew System::Windows::Forms::Label());
this->楼栋名称ComboBox = (gcnew System::Windows::Forms::ComboBox());
this->楼栋名称Label = (gcnew System::Windows::Forms::Label());
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->业主报表DataGridView))->BeginInit();
this->SuspendLayout();
//
// 常住人员TextBox
//
this->常住人员TextBox->Location = System::Drawing::Point(229, 34);
this->常住人员TextBox->Name = L"常住人员TextBox";
this->常住人员TextBox->Size = System::Drawing::Size(76, 21);
this->常住人员TextBox->TabIndex = 67;
//
// 房屋类型TextBox
//
this->房屋类型TextBox->Location = System::Drawing::Point(74, 34);
this->房屋类型TextBox->Name = L"房屋类型TextBox";
this->房屋类型TextBox->Size = System::Drawing::Size(76, 21);
this->房屋类型TextBox->TabIndex = 66;
//
// 单元名称TextBox
//
this->单元名称TextBox->Location = System::Drawing::Point(230, 7);
this->单元名称TextBox->Name = L"单元名称TextBox";
this->单元名称TextBox->Size = System::Drawing::Size(76, 21);
this->单元名称TextBox->TabIndex = 65;
//
// 业主报表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(10, 61);
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, 345);
this->业主报表DataGridView->TabIndex = 64;
//
// 打印Button
//
this->打印Button->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"打印Button.Image")));
this->打印Button->Location = System::Drawing::Point(467, 32);
this->打印Button->Name = L"打印Button";
this->打印Button->Size = System::Drawing::Size(67, 23);
this->打印Button->TabIndex = 63;
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, &ReportOwnerForm::打印Button_Click);
//
// 当前状态ComboBox
//
this->当前状态ComboBox->FormattingEnabled = true;
this->当前状态ComboBox->Location = System::Drawing::Point(379, 35);
this->当前状态ComboBox->Name = L"当前状态ComboBox";
this->当前状态ComboBox->Size = System::Drawing::Size(81, 20);
this->当前状态ComboBox->TabIndex = 62;
this->当前状态ComboBox->Text = L"全部";
//
// 当前状态Label
//
this->当前状态Label->AutoSize = true;
this->当前状态Label->Location = System::Drawing::Point(311, 38);
this->当前状态Label->Name = L"当前状态Label";
this->当前状态Label->Size = System::Drawing::Size(65, 12);
this->当前状态Label->TabIndex = 61;
this->当前状态Label->Text = L"当前状态:";
//
// 常住人员Label
//
this->常住人员Label->AutoSize = true;
this->常住人员Label->Location = System::Drawing::Point(162, 38);
this->常住人员Label->Name = L"常住人员Label";
this->常住人员Label->Size = System::Drawing::Size(65, 12);
this->常住人员Label->TabIndex = 60;
this->常住人员Label->Text = L"常住人员:";
//
// 房屋类型Label
//
this->房屋类型Label->AutoSize = true;
this->房屋类型Label->Location = System::Drawing::Point(8, 38);
this->房屋类型Label->Name = L"房屋类型Label";
this->房屋类型Label->Size = System::Drawing::Size(65, 12);
this->房屋类型Label->TabIndex = 59;
this->房屋类型Label->Text = L"房屋类型:";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -