📄 reportbooksform.h
字号:
//文件名:ReportBooksForm.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>
/// ReportBooksForm 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class ReportBooksForm : public System::Windows::Forms::Form
{
public:
ReportBooksForm(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~ReportBooksForm()
{
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::DateTimePicker^ 结束日期DateTimePicker;
private: System::Windows::Forms::Label^ label3;
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(ReportBooksForm::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->结束日期DateTimePicker = (gcnew System::Windows::Forms::DateTimePicker());
this->label3 = (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(399, 31);
this->类别TextBox->Name = L"类别TextBox";
this->类别TextBox->Size = System::Drawing::Size(135, 21);
this->类别TextBox->TabIndex = 66;
//
// label5
//
this->label5->AutoSize = true;
this->label5->Location = System::Drawing::Point(352, 36);
this->label5->Name = L"label5";
this->label5->Size = System::Drawing::Size(41, 12);
this->label5->TabIndex = 65;
this->label5->Text = L"类别:";
//
// 作者TextBox
//
this->作者TextBox->Location = System::Drawing::Point(269, 31);
this->作者TextBox->Name = L"作者TextBox";
this->作者TextBox->Size = System::Drawing::Size(77, 21);
this->作者TextBox->TabIndex = 64;
//
// label1
//
this->label1->AutoSize = true;
this->label1->Location = System::Drawing::Point(222, 36);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(41, 12);
this->label1->TabIndex = 63;
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 = 62;
//
// 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 = 61;
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 = 60;
//
// 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 = 59;
this->label6->Text = L"书名:";
//
// 开始日期DateTimePicker
//
this->开始日期DateTimePicker->Location = System::Drawing::Point(79, 60);
this->开始日期DateTimePicker->Name = L"开始日期DateTimePicker";
this->开始日期DateTimePicker->Size = System::Drawing::Size(122, 21);
this->开始日期DateTimePicker->TabIndex = 58;
this->开始日期DateTimePicker->Value = System::DateTime(2005, 3, 5, 17, 2, 0, 0);
//
// label4
//
this->label4->AutoSize = true;
this->label4->Location = System::Drawing::Point(8, 65);
this->label4->Name = L"label4";
this->label4->Size = System::Drawing::Size(65, 12);
this->label4->TabIndex = 57;
this->label4->Text = L"开始日期:";
//
// 结束日期DateTimePicker
//
this->结束日期DateTimePicker->Location = System::Drawing::Point(269, 60);
this->结束日期DateTimePicker->Name = L"结束日期DateTimePicker";
this->结束日期DateTimePicker->Size = System::Drawing::Size(115, 21);
this->结束日期DateTimePicker->TabIndex = 56;
//
// label3
//
this->label3->AutoSize = true;
this->label3->Location = System::Drawing::Point(207, 64);
this->label3->Name = L"label3";
this->label3->Size = System::Drawing::Size(65, 12);
this->label3->TabIndex = 55;
this->label3->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 = 54;
//
// 打印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";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -