📄 bookreturnform.h
字号:
//文件名:BookReturnForm.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>
/// BookReturnForm 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class BookReturnForm : public System::Windows::Forms::Form
{
public:
BookReturnForm(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~BookReturnForm()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::TextBox^ 书号TextBox;
protected:
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::DateTimePicker^ 借出日期DateTimePicker;
private: System::Windows::Forms::Label^ label5;
private: System::Windows::Forms::DataGridView^ 借阅图书DataGridView;
private: System::Windows::Forms::Button^ 挂失Button;
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: 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(BookReturnForm::typeid));
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->借出日期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->归还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());
this->读者编号TextBox = (gcnew System::Windows::Forms::TextBox());
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(185, 35);
this->书号TextBox->Name = L"书号TextBox";
this->书号TextBox->ReadOnly = true;
this->书号TextBox->Size = System::Drawing::Size(77, 21);
this->书号TextBox->TabIndex = 45;
//
// label7
//
this->label7->AutoSize = true;
this->label7->Location = System::Drawing::Point(138, 40);
this->label7->Name = L"label7";
this->label7->Size = System::Drawing::Size(41, 12);
this->label7->TabIndex = 44;
this->label7->Text = L"书号:";
//
// 书名TextBox
//
this->书名TextBox->Location = System::Drawing::Point(214, 7);
this->书名TextBox->Name = L"书名TextBox";
this->书名TextBox->ReadOnly = true;
this->书名TextBox->Size = System::Drawing::Size(246, 21);
this->书名TextBox->TabIndex = 43;
//
// label6
//
this->label6->AutoSize = true;
this->label6->Location = System::Drawing::Point(174, 12);
this->label6->Name = L"label6";
this->label6->Size = System::Drawing::Size(41, 12);
this->label6->TabIndex = 42;
this->label6->Text = L"书名:";
//
// 应还日期DateTimePicker
//
this->应还日期DateTimePicker->Location = System::Drawing::Point(79, 61);
this->应还日期DateTimePicker->Name = L"应还日期DateTimePicker";
this->应还日期DateTimePicker->Size = System::Drawing::Size(138, 21);
this->应还日期DateTimePicker->TabIndex = 41;
//
// label4
//
this->label4->AutoSize = true;
this->label4->Location = System::Drawing::Point(8, 66);
this->label4->Name = L"label4";
this->label4->Size = System::Drawing::Size(65, 12);
this->label4->TabIndex = 40;
this->label4->Text = L"应还日期:";
//
// 归还日期DateTimePicker
//
this->归还日期DateTimePicker->Location = System::Drawing::Point(294, 62);
this->归还日期DateTimePicker->Name = L"归还日期DateTimePicker";
this->归还日期DateTimePicker->Size = System::Drawing::Size(166, 21);
this->归还日期DateTimePicker->TabIndex = 39;
//
// label3
//
this->label3->AutoSize = true;
this->label3->Location = System::Drawing::Point(223, 67);
this->label3->Name = L"label3";
this->label3->Size = System::Drawing::Size(65, 12);
this->label3->TabIndex = 38;
this->label3->Text = L"归还日期:";
//
// 借出日期DateTimePicker
//
this->借出日期DateTimePicker->Location = System::Drawing::Point(339, 34);
this->借出日期DateTimePicker->Name = L"借出日期DateTimePicker";
this->借出日期DateTimePicker->Size = System::Drawing::Size(121, 21);
this->借出日期DateTimePicker->TabIndex = 37;
//
// label5
//
this->label5->AutoSize = true;
this->label5->Location = System::Drawing::Point(268, 39);
this->label5->Name = L"label5";
this->label5->Size = System::Drawing::Size(65, 12);
this->label5->TabIndex = 36;
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(6, 92);
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, 319);
this->借阅图书DataGridView->TabIndex = 35;
this->借阅图书DataGridView->DoubleClick += gcnew System::EventHandler(this, &BookReturnForm::借阅图书DataGridView_DoubleClick);
//
// 挂失Button
//
this->挂失Button->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"挂失Button.Image")));
this->挂失Button->Location = System::Drawing::Point(466, 62);
this->挂失Button->Name = L"挂失Button";
this->挂失Button->Size = System::Drawing::Size(70, 23);
this->挂失Button->TabIndex = 34;
this->挂失Button->Text = L"挂失";
this->挂失Button->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
this->挂失Button->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -