📄 reportletterform.h
字号:
//文件名:ReportLetterForm.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>
/// ReportLetterForm 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class ReportLetterForm : public System::Windows::Forms::Form
{
public:
ReportLetterForm(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~ReportLetterForm()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::TextBox^ textBox1;
protected:
private: System::Windows::Forms::Label^ label5;
private: System::Windows::Forms::ComboBox^ 类型ComboBox;
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::ComboBox^ 类别ComboBox;
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(ReportLetterForm::typeid));
this->textBox1 = (gcnew System::Windows::Forms::TextBox());
this->label5 = (gcnew System::Windows::Forms::Label());
this->类型ComboBox = (gcnew System::Windows::Forms::ComboBox());
this->label2 = (gcnew System::Windows::Forms::Label());
this->类别ComboBox = (gcnew System::Windows::Forms::ComboBox());
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();
//
// textBox1
//
this->textBox1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->textBox1->Location = System::Drawing::Point(309, 6);
this->textBox1->Name = L"textBox1";
this->textBox1->Size = System::Drawing::Size(149, 21);
this->textBox1->TabIndex = 56;
//
// label5
//
this->label5->AutoSize = true;
this->label5->Location = System::Drawing::Point(248, 11);
this->label5->Name = L"label5";
this->label5->Size = System::Drawing::Size(65, 12);
this->label5->TabIndex = 55;
this->label5->Text = L"单位名称:";
//
// 类型ComboBox
//
this->类型ComboBox->FormattingEnabled = true;
this->类型ComboBox->Items->AddRange(gcnew cli::array< System::Object^ >(2) {L"收", L"发"});
this->类型ComboBox->Location = System::Drawing::Point(163, 7);
this->类型ComboBox->Name = L"类型ComboBox";
this->类型ComboBox->Size = System::Drawing::Size(79, 20);
this->类型ComboBox->TabIndex = 54;
//
// label2
//
this->label2->AutoSize = true;
this->label2->Location = System::Drawing::Point(126, 11);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(41, 12);
this->label2->TabIndex = 53;
this->label2->Text = L"类型:";
//
// 类别ComboBox
//
this->类别ComboBox->FormattingEnabled = true;
this->类别ComboBox->Items->AddRange(gcnew cli::array< System::Object^ >(3) {L"平信", L"挂号信", L"包裹"});
this->类别ComboBox->Location = System::Drawing::Point(39, 7);
this->类别ComboBox->Name = L"类别ComboBox";
this->类别ComboBox->Size = System::Drawing::Size(79, 20);
this->类别ComboBox->TabIndex = 52;
//
// 查询报表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 = 51;
//
// 结束日期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 = 50;
//
// 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 = 49;
this->label3->Text = L"结束日期:";
//
// 开始日期DateTimePicker
//
this->开始日期DateTimePicker->Checked = false;
this->开始日期DateTimePicker->Location = System::Drawing::Point(68, 32);
this->开始日期DateTimePicker->Name = L"开始日期DateTimePicker";
this->开始日期DateTimePicker->Size = System::Drawing::Size(140, 21);
this->开始日期DateTimePicker->TabIndex = 48;
this->开始日期DateTimePicker->Value = System::DateTime(2005, 1, 9, 17, 27, 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 = 47;
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 = 46;
this->打印Button->Text = L"打印";
this->打印Button->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -