📄 printcardform.h
字号:
//文件名:PrintCardForm.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>
/// PrintCardForm 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class PrintCardForm : public System::Windows::Forms::Form
{
public:
PrintCardForm(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~PrintCardForm()
{
if (components)
{
delete components;
}
}
private: System::Drawing::Printing::PrintDocument^ printDocument1;
protected:
private: System::Windows::Forms::PrintPreviewDialog^ printPreviewDialog1;
private: System::Windows::Forms::DataGridView^ 固定资产附属设备DataGridView;
private: System::Windows::Forms::DataGridView^ 固定资产租借DataGridView;
private: System::Windows::Forms::DataGridView^ 固定资产修理DataGridView;
private: System::Windows::Forms::DataGridView^ 固定资产明细DataGridView;
private: System::Windows::Forms::ToolStripLabel^ toolStripLabel1;
private: System::Windows::Forms::ToolStripSeparator^ bindingNavigatorSeparator2;
private: System::Windows::Forms::BindingNavigator^ 累计折旧查询视图BindingNavigator;
private: System::Windows::Forms::ToolStripTextBox^ 资产名称ToolStripTextBox;
private: System::Windows::Forms::ToolStripButton^ 查询ToolStripButton;
private: System::Windows::Forms::ToolStripButton^ 打印ToolStripButton;
private: System::ComponentModel::IContainer^ components;
private:
/// <summary>
/// 必需的设计器变量。
/// </summary>
#pragma region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
void InitializeComponent(void)
{
this->components = (gcnew System::ComponentModel::Container());
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(PrintCardForm::typeid));
this->printDocument1 = (gcnew System::Drawing::Printing::PrintDocument());
this->printPreviewDialog1 = (gcnew System::Windows::Forms::PrintPreviewDialog());
this->固定资产附属设备DataGridView = (gcnew System::Windows::Forms::DataGridView());
this->固定资产租借DataGridView = (gcnew System::Windows::Forms::DataGridView());
this->固定资产修理DataGridView = (gcnew System::Windows::Forms::DataGridView());
this->固定资产明细DataGridView = (gcnew System::Windows::Forms::DataGridView());
this->toolStripLabel1 = (gcnew System::Windows::Forms::ToolStripLabel());
this->bindingNavigatorSeparator2 = (gcnew System::Windows::Forms::ToolStripSeparator());
this->累计折旧查询视图BindingNavigator = (gcnew System::Windows::Forms::BindingNavigator(this->components));
this->资产名称ToolStripTextBox = (gcnew System::Windows::Forms::ToolStripTextBox());
this->查询ToolStripButton = (gcnew System::Windows::Forms::ToolStripButton());
this->打印ToolStripButton = (gcnew System::Windows::Forms::ToolStripButton());
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->固定资产附属设备DataGridView))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->固定资产租借DataGridView))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->固定资产修理DataGridView))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->固定资产明细DataGridView))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->累计折旧查询视图BindingNavigator))->BeginInit();
this->累计折旧查询视图BindingNavigator->SuspendLayout();
this->SuspendLayout();
//
// printDocument1
//
this->printDocument1->PrintPage += gcnew System::Drawing::Printing::PrintPageEventHandler(this, &PrintCardForm::printDocument1_PrintPage);
//
// printPreviewDialog1
//
this->printPreviewDialog1->AutoScrollMargin = System::Drawing::Size(0, 0);
this->printPreviewDialog1->AutoScrollMinSize = System::Drawing::Size(0, 0);
this->printPreviewDialog1->ClientSize = System::Drawing::Size(400, 300);
this->printPreviewDialog1->Enabled = true;
this->printPreviewDialog1->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"printPreviewDialog1.Icon")));
this->printPreviewDialog1->Name = L"printPreviewDialog1";
this->printPreviewDialog1->Visible = false;
//
// 固定资产附属设备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->Location = System::Drawing::Point(5, 107);
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(532, 95);
this->固定资产附属设备DataGridView->TabIndex = 10;
//
// 固定资产租借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->Location = System::Drawing::Point(5, 314);
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(532, 97);
this->固定资产租借DataGridView->TabIndex = 9;
//
// 固定资产修理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->Location = System::Drawing::Point(5, 208);
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(532, 100);
this->固定资产修理DataGridView->TabIndex = 8;
//
// 固定资产明细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->Location = System::Drawing::Point(5, 27);
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(532, 74);
this->固定资产明细DataGridView->TabIndex = 7;
this->固定资产明细DataGridView->SelectionChanged += gcnew System::EventHandler(this, &PrintCardForm::固定资产明细DataGridView_SelectionChanged);
//
// toolStripLabel1
//
this->toolStripLabel1->Name = L"toolStripLabel1";
this->toolStripLabel1->Size = System::Drawing::Size(65, 22);
this->toolStripLabel1->Text = L"资产名称:";
//
// bindingNavigatorSeparator2
//
this->bindingNavigatorSeparator2->Name = L"bindingNavigatorSeparator2";
this->bindingNavigatorSeparator2->Size = System::Drawing::Size(6, 25);
//
// 累计折旧查询视图BindingNavigator
//
this->累计折旧查询视图BindingNavigator->AddNewItem = nullptr;
this->累计折旧查询视图BindingNavigator->CountItem = nullptr;
this->累计折旧查询视图BindingNavigator->DeleteItem = nullptr;
this->累计折旧查询视图BindingNavigator->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(5) {this->bindingNavigatorSeparator2,
this->toolStripLabel1, this->资产名称ToolStripTextBox, this->查询ToolStripButton, this->打印ToolStripButton});
this->累计折旧查询视图BindingNavigator->Location = System::Drawing::Point(0, 0);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -