📄 bookborrowform.h
字号:
//文件名:BookBorrowForm.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;
namespace 图书租借管理系统 {
/// <summary>
/// BookBorrowForm 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class BookBorrowForm : public System::Windows::Forms::Form
{
public:
BookBorrowForm(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~BookBorrowForm()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::DataGridView^ 借阅图书DataGridView;
protected:
private: System::Windows::Forms::Button^ 保存Button;
private: System::Windows::Forms::DateTimePicker^ 应还日期DateTimePicker;
private: System::Windows::Forms::Label^ label5;
private: System::Windows::Forms::DataGridView^ 馆藏图书DataGridView;
private: System::Windows::Forms::Button^ 查询Button;
private: System::Windows::Forms::GroupBox^ groupBox1;
private: System::Windows::Forms::TextBox^ 出版社TextBox;
private: System::Windows::Forms::Label^ label8;
private: System::Windows::Forms::TextBox^ 作者TextBox;
private: System::Windows::Forms::Label^ label6;
private: System::Windows::Forms::TextBox^ 书名TextBox;
private: System::Windows::Forms::Label^ label7;
private: System::Windows::Forms::DateTimePicker^ 借出日期DateTimePicker;
private: System::Windows::Forms::TextBox^ 会员等级TextBox;
private: System::Windows::Forms::Label^ label4;
private: System::Windows::Forms::Label^ label3;
private: System::Windows::Forms::TextBox^ 读者姓名TextBox;
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::TextBox^ 读者编号TextBox;
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(BookBorrowForm::typeid));
this->借阅图书DataGridView = (gcnew System::Windows::Forms::DataGridView());
this->保存Button = (gcnew System::Windows::Forms::Button());
this->应还日期DateTimePicker = (gcnew System::Windows::Forms::DateTimePicker());
this->label5 = (gcnew System::Windows::Forms::Label());
this->馆藏图书DataGridView = (gcnew System::Windows::Forms::DataGridView());
this->查询Button = (gcnew System::Windows::Forms::Button());
this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
this->出版社TextBox = (gcnew System::Windows::Forms::TextBox());
this->label8 = (gcnew System::Windows::Forms::Label());
this->作者TextBox = (gcnew System::Windows::Forms::TextBox());
this->label6 = (gcnew System::Windows::Forms::Label());
this->书名TextBox = (gcnew System::Windows::Forms::TextBox());
this->label7 = (gcnew System::Windows::Forms::Label());
this->借出日期DateTimePicker = (gcnew System::Windows::Forms::DateTimePicker());
this->会员等级TextBox = (gcnew System::Windows::Forms::TextBox());
this->label4 = (gcnew System::Windows::Forms::Label());
this->label3 = (gcnew System::Windows::Forms::Label());
this->读者姓名TextBox = (gcnew System::Windows::Forms::TextBox());
this->label2 = (gcnew System::Windows::Forms::Label());
this->读者编号TextBox = (gcnew System::Windows::Forms::TextBox());
this->label1 = (gcnew System::Windows::Forms::Label());
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->借阅图书DataGridView))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->馆藏图书DataGridView))->BeginInit();
this->groupBox1->SuspendLayout();
this->SuspendLayout();
//
// 借阅图书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::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->借阅图书DataGridView->ColumnHeadersHeightSizeMode = System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::AutoSize;
this->借阅图书DataGridView->Location = System::Drawing::Point(9, 57);
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(528, 127);
this->借阅图书DataGridView->TabIndex = 29;
this->借阅图书DataGridView->DoubleClick += gcnew System::EventHandler(this, &BookBorrowForm::借阅图书DataGridView_DoubleClick);
//
// 保存Button
//
this->保存Button->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"保存Button.Image")));
this->保存Button->Location = System::Drawing::Point(462, 29);
this->保存Button->Name = L"保存Button";
this->保存Button->Size = System::Drawing::Size(75, 23);
this->保存Button->TabIndex = 28;
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, &BookBorrowForm::保存Button_Click);
//
// 应还日期DateTimePicker
//
this->应还日期DateTimePicker->Location = System::Drawing::Point(314, 30);
this->应还日期DateTimePicker->Name = L"应还日期DateTimePicker";
this->应还日期DateTimePicker->Size = System::Drawing::Size(138, 21);
this->应还日期DateTimePicker->TabIndex = 27;
//
// label5
//
this->label5->AutoSize = true;
this->label5->Location = System::Drawing::Point(243, 35);
this->label5->Name = L"label5";
this->label5->Size = System::Drawing::Size(65, 12);
this->label5->TabIndex = 26;
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(8, 50);
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(518, 167);
this->馆藏图书DataGridView->TabIndex = 5;
this->馆藏图书DataGridView->DoubleClick += gcnew System::EventHandler(this, &BookBorrowForm::馆藏图书DataGridView_DoubleClick);
//
// 查询Button
//
this->查询Button->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"查询Button.Image")));
this->查询Button->Location = System::Drawing::Point(453, 19);
this->查询Button->Name = L"查询Button";
this->查询Button->Size = System::Drawing::Size(75, 23);
this->查询Button->TabIndex = 4;
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, &BookBorrowForm::查询Button_Click);
//
// groupBox1
//
this->groupBox1->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->groupBox1->Controls->Add(this->出版社TextBox);
this->groupBox1->Controls->Add(this->label8);
this->groupBox1->Controls->Add(this->作者TextBox);
this->groupBox1->Controls->Add(this->label6);
this->groupBox1->Controls->Add(this->馆藏图书DataGridView);
this->groupBox1->Controls->Add(this->查询Button);
this->groupBox1->Controls->Add(this->书名TextBox);
this->groupBox1->Controls->Add(this->label7);
this->groupBox1->Location = System::Drawing::Point(3, 190);
this->groupBox1->Name = L"groupBox1";
this->groupBox1->Size = System::Drawing::Size(534, 223);
this->groupBox1->TabIndex = 30;
this->groupBox1->TabStop = false;
this->groupBox1->Text = L"双击选择需要借阅的图书";
//
// 出版社TextBox
//
this->出版社TextBox->Location = System::Drawing::Point(329, 21);
this->出版社TextBox->Name = L"出版社TextBox";
this->出版社TextBox->Size = System::Drawing::Size(120, 21);
this->出版社TextBox->TabIndex = 9;
//
// label8
//
this->label8->AutoSize = true;
this->label8->Location = System::Drawing::Point(268, 27);
this->label8->Name = L"label8";
this->label8->Size = System::Drawing::Size(53, 12);
this->label8->TabIndex = 8;
this->label8->Text = L"出版社:";
//
// 作者TextBox
//
this->作者TextBox->Location = System::Drawing::Point(183, 21);
this->作者TextBox->Name = L"作者TextBox";
this->作者TextBox->Size = System::Drawing::Size(77, 21);
this->作者TextBox->TabIndex = 7;
//
// label6
//
this->label6->AutoSize = true;
this->label6->Location = System::Drawing::Point(148, 27);
this->label6->Name = L"label6";
this->label6->Size = System::Drawing::Size(41, 12);
this->label6->TabIndex = 6;
this->label6->Text = L"作者:";
//
// 书名TextBox
//
this->书名TextBox->Location = System::Drawing::Point(41, 21);
this->书名TextBox->Name = L"书名TextBox";
this->书名TextBox->Size = System::Drawing::Size(103, 21);
this->书名TextBox->TabIndex = 1;
//
// label7
//
this->label7->AutoSize = true;
this->label7->Location = System::Drawing::Point(6, 27);
this->label7->Name = L"label7";
this->label7->Size = System::Drawing::Size(41, 12);
this->label7->TabIndex = 0;
this->label7->Text = L"书名:";
//
// 借出日期DateTimePicker
//
this->借出日期DateTimePicker->Location = System::Drawing::Point(78, 30);
this->借出日期DateTimePicker->Name = L"借出日期DateTimePicker";
this->借出日期DateTimePicker->Size = System::Drawing::Size(148, 21);
this->借出日期DateTimePicker->TabIndex = 25;
//
// 会员等级TextBox
//
this->会员等级TextBox->Location = System::Drawing::Point(380, 3);
this->会员等级TextBox->Name = L"会员等级TextBox";
this->会员等级TextBox->ReadOnly = true;
this->会员等级TextBox->Size = System::Drawing::Size(157, 21);
this->会员等级TextBox->TabIndex = 24;
//
// label4
//
this->label4->AutoSize = true;
this->label4->Location = System::Drawing::Point(319, 10);
this->label4->Name = L"label4";
this->label4->Size = System::Drawing::Size(65, 12);
this->label4->TabIndex = 23;
this->label4->Text = L"会员等级:";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -