📄 reportaccessform.h
字号:
//文件名:ReportAccessForm.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;
using namespace Microsoft::Office::Interop::Excel;
using namespace System::Reflection;
namespace 办公事务管理系统 {
/// <summary>
/// ReportAccessForm 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class ReportAccessForm : public System::Windows::Forms::Form
{
public:
ReportAccessForm(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~ReportAccessForm()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::TextBox^ 接待人TextBox;
protected:
private: System::Windows::Forms::TextBox^ 所在单位TextBox;
private: System::Windows::Forms::Label^ label5;
private: System::Windows::Forms::DataGridView^ 查询报表DataGridView;
private: System::Windows::Forms::DateTimePicker^ 结束日期DateTimePicker;
private: System::Windows::Forms::Label^ label3;
private: System::Windows::Forms::DateTimePicker^ 开始日期DateTimePicker;
private: System::Windows::Forms::Label^ label4;
private: System::Windows::Forms::Button^ 打印Button;
private: System::Windows::Forms::Button^ 查询Button;
private: System::Windows::Forms::Label^ label1;
private:
/// <summary>
/// 必需的设计器变量。
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
void InitializeComponent(void)
{
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(ReportAccessForm::typeid));
this->接待人TextBox = (gcnew System::Windows::Forms::TextBox());
this->所在单位TextBox = (gcnew System::Windows::Forms::TextBox());
this->label5 = (gcnew System::Windows::Forms::Label());
this->查询报表DataGridView = (gcnew System::Windows::Forms::DataGridView());
this->结束日期DateTimePicker = (gcnew System::Windows::Forms::DateTimePicker());
this->label3 = (gcnew System::Windows::Forms::Label());
this->开始日期DateTimePicker = (gcnew System::Windows::Forms::DateTimePicker());
this->label4 = (gcnew System::Windows::Forms::Label());
this->打印Button = (gcnew System::Windows::Forms::Button());
this->查询Button = (gcnew System::Windows::Forms::Button());
this->label1 = (gcnew System::Windows::Forms::Label());
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->查询报表DataGridView))->BeginInit();
this->SuspendLayout();
//
// 接待人TextBox
//
this->接待人TextBox->Location = System::Drawing::Point(61, 6);
this->接待人TextBox->Name = L"接待人TextBox";
this->接待人TextBox->Size = System::Drawing::Size(167, 21);
this->接待人TextBox->TabIndex = 112;
//
// 所在单位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->Location = System::Drawing::Point(309, 6);
this->所在单位TextBox->Name = L"所在单位TextBox";
this->所在单位TextBox->Size = System::Drawing::Size(149, 21);
this->所在单位TextBox->TabIndex = 111;
//
// label5
//
this->label5->AutoSize = true;
this->label5->Location = System::Drawing::Point(238, 11);
this->label5->Name = L"label5";
this->label5->Size = System::Drawing::Size(65, 12);
this->label5->TabIndex = 110;
this->label5->Text = L"所在单位:";
//
// 查询报表DataGridView
//
this->查询报表DataGridView->AllowUserToAddRows = false;
this->查询报表DataGridView->AllowUserToDeleteRows = false;
this->查询报表DataGridView->AllowUserToResizeRows = 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->ColumnHeadersHeightSizeMode = System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::AutoSize;
this->查询报表DataGridView->Location = System::Drawing::Point(4, 55);
this->查询报表DataGridView->MultiSelect = false;
this->查询报表DataGridView->Name = L"查询报表DataGridView";
this->查询报表DataGridView->ReadOnly = true;
this->查询报表DataGridView->RowHeadersVisible = false;
this->查询报表DataGridView->RowTemplate->Height = 23;
this->查询报表DataGridView->SelectionMode = System::Windows::Forms::DataGridViewSelectionMode::FullRowSelect;
this->查询报表DataGridView->Size = System::Drawing::Size(535, 358);
this->查询报表DataGridView->TabIndex = 109;
//
// 结束日期DateTimePicker
//
this->结束日期DateTimePicker->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->结束日期DateTimePicker->Location = System::Drawing::Point(268, 32);
this->结束日期DateTimePicker->Name = L"结束日期DateTimePicker";
this->结束日期DateTimePicker->Size = System::Drawing::Size(190, 21);
this->结束日期DateTimePicker->TabIndex = 108;
//
// label3
//
this->label3->AutoSize = true;
this->label3->Location = System::Drawing::Point(209, 36);
this->label3->Name = L"label3";
this->label3->Size = System::Drawing::Size(65, 12);
this->label3->TabIndex = 107;
this->label3->Text = L"结束日期:";
//
// 开始日期DateTimePicker
//
this->开始日期DateTimePicker->Location = System::Drawing::Point(68, 32);
this->开始日期DateTimePicker->Name = L"开始日期DateTimePicker";
this->开始日期DateTimePicker->Size = System::Drawing::Size(140, 21);
this->开始日期DateTimePicker->TabIndex = 106;
this->开始日期DateTimePicker->Value = System::DateTime(2005, 1, 9, 17, 6, 0, 0);
//
// label4
//
this->label4->AutoSize = true;
this->label4->Location = System::Drawing::Point(2, 36);
this->label4->Name = L"label4";
this->label4->Size = System::Drawing::Size(65, 12);
this->label4->TabIndex = 105;
this->label4->Text = L"开始日期:";
//
// 打印Button
//
this->打印Button->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Right));
this->打印Button->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"打印Button.Image")));
this->打印Button->Location = System::Drawing::Point(464, 30);
this->打印Button->Name = L"打印Button";
this->打印Button->Size = System::Drawing::Size(76, 23);
this->打印Button->TabIndex = 104;
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, &ReportAccessForm::打印Button_Click);
//
// 查询Button
//
this->查询Button->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Right));
this->查询Button->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"查询Button.Image")));
this->查询Button->Location = System::Drawing::Point(464, 4);
this->查询Button->Name = L"查询Button";
this->查询Button->Size = System::Drawing::Size(76, 23);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -