📄 reportbooksoverform.h
字号:
//文件名:ReportBooksOverForm.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>
/// ReportBooksOverForm 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class ReportBooksOverForm : public System::Windows::Forms::Form
{
public:
ReportBooksOverForm(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~ReportBooksOverForm()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::TextBox^ 类别TextBox;
protected:
private: System::Windows::Forms::Label^ label5;
private: System::Windows::Forms::TextBox^ 作者TextBox;
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::TextBox^ 书号TextBox;
private: System::Windows::Forms::Label^ label7;
private: System::Windows::Forms::TextBox^ 书名TextBox;
private: System::Windows::Forms::Label^ label6;
private: System::Windows::Forms::DateTimePicker^ 当前日期DateTimePicker;
private: System::Windows::Forms::Label^ label4;
private: System::Windows::Forms::DataGridView^ 查询报表DataGridView;
private: System::Windows::Forms::Button^ 打印Button;
private: System::Windows::Forms::Button^ 查询Button;
private: System::Windows::Forms::TextBox^ 出版社TextBox;
private: System::Windows::Forms::Label^ label2;
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(ReportBooksOverForm::typeid));
this->类别TextBox = (gcnew System::Windows::Forms::TextBox());
this->label5 = (gcnew System::Windows::Forms::Label());
this->作者TextBox = (gcnew System::Windows::Forms::TextBox());
this->label1 = (gcnew System::Windows::Forms::Label());
this->书号TextBox = (gcnew System::Windows::Forms::TextBox());
this->label7 = (gcnew System::Windows::Forms::Label());
this->书名TextBox = (gcnew System::Windows::Forms::TextBox());
this->label6 = (gcnew System::Windows::Forms::Label());
this->当前日期DateTimePicker = (gcnew System::Windows::Forms::DateTimePicker());
this->label4 = (gcnew System::Windows::Forms::Label());
this->查询报表DataGridView = (gcnew System::Windows::Forms::DataGridView());
this->打印Button = (gcnew System::Windows::Forms::Button());
this->查询Button = (gcnew System::Windows::Forms::Button());
this->出版社TextBox = (gcnew System::Windows::Forms::TextBox());
this->label2 = (gcnew System::Windows::Forms::Label());
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->查询报表DataGridView))->BeginInit();
this->SuspendLayout();
//
// 类别TextBox
//
this->类别TextBox->Location = System::Drawing::Point(224, 32);
this->类别TextBox->Name = L"类别TextBox";
this->类别TextBox->Size = System::Drawing::Size(113, 21);
this->类别TextBox->TabIndex = 115;
//
// label5
//
this->label5->AutoSize = true;
this->label5->Location = System::Drawing::Point(177, 38);
this->label5->Name = L"label5";
this->label5->Size = System::Drawing::Size(41, 12);
this->label5->TabIndex = 114;
this->label5->Text = L"类别:";
//
// 作者TextBox
//
this->作者TextBox->Location = System::Drawing::Point(55, 32);
this->作者TextBox->Name = L"作者TextBox";
this->作者TextBox->Size = System::Drawing::Size(113, 21);
this->作者TextBox->TabIndex = 113;
//
// label1
//
this->label1->AutoSize = true;
this->label1->Location = System::Drawing::Point(8, 38);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(41, 12);
this->label1->TabIndex = 112;
this->label1->Text = L"作者:";
//
// 书号TextBox
//
this->书号TextBox->Location = System::Drawing::Point(45, 6);
this->书号TextBox->Name = L"书号TextBox";
this->书号TextBox->Size = System::Drawing::Size(123, 21);
this->书号TextBox->TabIndex = 111;
//
// label7
//
this->label7->AutoSize = true;
this->label7->Location = System::Drawing::Point(7, 11);
this->label7->Name = L"label7";
this->label7->Size = System::Drawing::Size(41, 12);
this->label7->TabIndex = 110;
this->label7->Text = L"书号:";
//
// 书名TextBox
//
this->书名TextBox->Location = System::Drawing::Point(214, 6);
this->书名TextBox->Name = L"书名TextBox";
this->书名TextBox->Size = System::Drawing::Size(320, 21);
this->书名TextBox->TabIndex = 109;
//
// label6
//
this->label6->AutoSize = true;
this->label6->Location = System::Drawing::Point(174, 11);
this->label6->Name = L"label6";
this->label6->Size = System::Drawing::Size(41, 12);
this->label6->TabIndex = 108;
this->label6->Text = L"书名:";
//
// 当前日期DateTimePicker
//
this->当前日期DateTimePicker->Location = System::Drawing::Point(414, 31);
this->当前日期DateTimePicker->Name = L"当前日期DateTimePicker";
this->当前日期DateTimePicker->Size = System::Drawing::Size(122, 21);
this->当前日期DateTimePicker->TabIndex = 107;
//
// label4
//
this->label4->AutoSize = true;
this->label4->Location = System::Drawing::Point(343, 36);
this->label4->Name = L"label4";
this->label4->Size = System::Drawing::Size(65, 12);
this->label4->TabIndex = 106;
this->label4->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(6, 88);
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(530, 323);
this->查询报表DataGridView->TabIndex = 105;
//
// 打印Button
//
this->打印Button->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"打印Button.Image")));
this->打印Button->Location = System::Drawing::Point(466, 58);
this->打印Button->Name = L"打印Button";
this->打印Button->Size = System::Drawing::Size(70, 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, &ReportBooksOverForm::打印Button_Click);
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -