📄 computeform.h
字号:
//文件名:ComputeForm.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>
/// ComputeForm 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class ComputeForm : public System::Windows::Forms::Form
{
public:
ComputeForm(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~ComputeForm()
{
if (components)
{
delete components;
}
}
private: My::MyAssetsDataSet^ MyAssetsDataSet;
protected:
private: System::Windows::Forms::BindingSource^ 折旧核算表BindingSource;
private: My::MyAssetsDataSetTableAdapters::折旧核算表TableAdapter^ 折旧核算表TableAdapter;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn6;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn7;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn8;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn4;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn5;
private: System::Windows::Forms::DataGridView^ 折旧核算表DataGridView;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn1;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn2;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn3;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn9;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn10;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn11;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn12;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn13;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn14;
private: System::Windows::Forms::ToolStripComboBox^ 折旧年份ToolStripComboBox;
private: System::Windows::Forms::ToolStripLabel^ toolStripLabel2;
private: System::Windows::Forms::ToolStripLabel^ toolStripLabel1;
private: System::Windows::Forms::BindingNavigator^ 折旧核算表BindingNavigator;
private: System::Windows::Forms::ToolStripSeparator^ bindingNavigatorSeparator2;
private: System::Windows::Forms::ToolStripComboBox^ 折旧月份ToolStripComboBox;
private: System::Windows::Forms::ToolStripButton^ 导入数据ToolStripButton;
private: System::Windows::Forms::ToolStripButton^ 折旧核算表BindingNavigatorSaveItem;
private: System::Windows::Forms::ToolStripButton^ toolStripButton1;
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(ComputeForm::typeid));
this->MyAssetsDataSet = (gcnew My::MyAssetsDataSet());
this->折旧核算表BindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));
this->折旧核算表TableAdapter = (gcnew My::MyAssetsDataSetTableAdapters::折旧核算表TableAdapter());
this->dataGridViewTextBoxColumn6 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn7 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn8 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn4 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn5 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->折旧核算表DataGridView = (gcnew System::Windows::Forms::DataGridView());
this->dataGridViewTextBoxColumn1 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn2 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn3 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn9 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn10 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn11 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn12 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn13 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn14 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->折旧年份ToolStripComboBox = (gcnew System::Windows::Forms::ToolStripComboBox());
this->toolStripLabel2 = (gcnew System::Windows::Forms::ToolStripLabel());
this->toolStripLabel1 = (gcnew System::Windows::Forms::ToolStripLabel());
this->折旧核算表BindingNavigator = (gcnew System::Windows::Forms::BindingNavigator(this->components));
this->bindingNavigatorSeparator2 = (gcnew System::Windows::Forms::ToolStripSeparator());
this->折旧月份ToolStripComboBox = (gcnew System::Windows::Forms::ToolStripComboBox());
this->导入数据ToolStripButton = (gcnew System::Windows::Forms::ToolStripButton());
this->折旧核算表BindingNavigatorSaveItem = (gcnew System::Windows::Forms::ToolStripButton());
this->toolStripButton1 = (gcnew System::Windows::Forms::ToolStripButton());
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->MyAssetsDataSet))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->折旧核算表BindingSource))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->折旧核算表DataGridView))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->折旧核算表BindingNavigator))->BeginInit();
this->折旧核算表BindingNavigator->SuspendLayout();
this->SuspendLayout();
//
// MyAssetsDataSet
//
this->MyAssetsDataSet->DataSetName = L"MyAssetsDataSet";
this->MyAssetsDataSet->SchemaSerializationMode = System::Data::SchemaSerializationMode::IncludeSchema;
//
// 折旧核算表BindingSource
//
this->折旧核算表BindingSource->DataMember = L"折旧核算表";
this->折旧核算表BindingSource->DataSource = this->MyAssetsDataSet;
//
// 折旧核算表TableAdapter
//
this->折旧核算表TableAdapter->ClearBeforeFill = true;
//
// dataGridViewTextBoxColumn6
//
this->dataGridViewTextBoxColumn6->DataPropertyName = L"累计折旧";
this->dataGridViewTextBoxColumn6->HeaderText = L"累计折旧";
this->dataGridViewTextBoxColumn6->Name = L"dataGridViewTextBoxColumn6";
this->dataGridViewTextBoxColumn6->ReadOnly = true;
this->dataGridViewTextBoxColumn6->Width = 60;
//
// dataGridViewTextBoxColumn7
//
this->dataGridViewTextBoxColumn7->DataPropertyName = L"折旧方法";
this->dataGridViewTextBoxColumn7->HeaderText = L"折旧方法";
this->dataGridViewTextBoxColumn7->Name = L"dataGridViewTextBoxColumn7";
this->dataGridViewTextBoxColumn7->Width = 80;
//
// dataGridViewTextBoxColumn8
//
this->dataGridViewTextBoxColumn8->DataPropertyName = L"折旧月数";
this->dataGridViewTextBoxColumn8->HeaderText = L"折旧月数";
this->dataGridViewTextBoxColumn8->Name = L"dataGridViewTextBoxColumn8";
this->dataGridViewTextBoxColumn8->ReadOnly = true;
this->dataGridViewTextBoxColumn8->Width = 60;
//
// dataGridViewTextBoxColumn4
//
this->dataGridViewTextBoxColumn4->DataPropertyName = L"名称";
this->dataGridViewTextBoxColumn4->HeaderText = L" 名称";
this->dataGridViewTextBoxColumn4->Name = L"dataGridViewTextBoxColumn4";
this->dataGridViewTextBoxColumn4->ReadOnly = true;
this->dataGridViewTextBoxColumn4->Width = 120;
//
// dataGridViewTextBoxColumn5
//
this->dataGridViewTextBoxColumn5->DataPropertyName = L"资产原值";
this->dataGridViewTextBoxColumn5->HeaderText = L"资产原值";
this->dataGridViewTextBoxColumn5->Name = L"dataGridViewTextBoxColumn5";
this->dataGridViewTextBoxColumn5->ReadOnly = true;
this->dataGridViewTextBoxColumn5->Width = 60;
//
// 折旧核算表DataGridView
//
this->折旧核算表DataGridView->AllowUserToAddRows = false;
this->折旧核算表DataGridView->AllowUserToDeleteRows = false;
this->折旧核算表DataGridView->AllowUserToResizeRows = false;
this->折旧核算表DataGridView->AutoGenerateColumns = false;
this->折旧核算表DataGridView->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^ >(14) {this->dataGridViewTextBoxColumn1,
this->dataGridViewTextBoxColumn2, this->dataGridViewTextBoxColumn3, this->dataGridViewTextBoxColumn4, this->dataGridViewTextBoxColumn5,
this->dataGridViewTextBoxColumn6, this->dataGridViewTextBoxColumn7, this->dataGridViewTextBoxColumn8, this->dataGridViewTextBoxColumn9,
this->dataGridViewTextBoxColumn10, this->dataGridViewTextBoxColumn11, this->dataGridViewTextBoxColumn12, this->dataGridViewTextBoxColumn13,
this->dataGridViewTextBoxColumn14});
this->折旧核算表DataGridView->DataSource = this->折旧核算表BindingSource;
this->折旧核算表DataGridView->Dock = System::Windows::Forms::DockStyle::Fill;
this->折旧核算表DataGridView->Location = System::Drawing::Point(0, 25);
this->折旧核算表DataGridView->Name = L"折旧核算表DataGridView";
this->折旧核算表DataGridView->RowHeadersVisible = false;
this->折旧核算表DataGridView->RowTemplate->Height = 23;
this->折旧核算表DataGridView->SelectionMode = System::Windows::Forms::DataGridViewSelectionMode::CellSelect;
this->折旧核算表DataGridView->Size = System::Drawing::Size(542, 391);
this->折旧核算表DataGridView->TabIndex = 3;
//
// dataGridViewTextBoxColumn1
//
this->dataGridViewTextBoxColumn1->DataPropertyName = L"使用部门";
this->dataGridViewTextBoxColumn1->HeaderText = L"使用部门";
this->dataGridViewTextBoxColumn1->Name = L"dataGridViewTextBoxColumn1";
this->dataGridViewTextBoxColumn1->ReadOnly = true;
this->dataGridViewTextBoxColumn1->Width = 60;
//
// dataGridViewTextBoxColumn2
//
this->dataGridViewTextBoxColumn2->DataPropertyName = L"类别";
this->dataGridViewTextBoxColumn2->HeaderText = L" 类别";
this->dataGridViewTextBoxColumn2->Name = L"dataGridViewTextBoxColumn2";
this->dataGridViewTextBoxColumn2->ReadOnly = true;
this->dataGridViewTextBoxColumn2->Width = 60;
//
// dataGridViewTextBoxColumn3
//
this->dataGridViewTextBoxColumn3->DataPropertyName = L"资产编号";
this->dataGridViewTextBoxColumn3->HeaderText = L" 资产编号";
this->dataGridViewTextBoxColumn3->Name = L"dataGridViewTextBoxColumn3";
this->dataGridViewTextBoxColumn3->ReadOnly = true;
this->dataGridViewTextBoxColumn3->Width = 80;
//
// dataGridViewTextBoxColumn9
//
this->dataGridViewTextBoxColumn9->DataPropertyName = L"已提月数";
this->dataGridViewTextBoxColumn9->HeaderText = L"已提月数";
this->dataGridViewTextBoxColumn9->Name = L"dataGridViewTextBoxColumn9";
this->dataGridViewTextBoxColumn9->ReadOnly = true;
this->dataGridViewTextBoxColumn9->Width = 60;
//
// dataGridViewTextBoxColumn10
//
this->dataGridViewTextBoxColumn10->DataPropertyName = L"月度折旧额";
this->dataGridViewTextBoxColumn10->HeaderText = L"月度折旧额";
this->dataGridViewTextBoxColumn10->Name = L"dataGridViewTextBoxColumn10";
this->dataGridViewTextBoxColumn10->Width = 70;
//
// dataGridViewTextBoxColumn11
//
this->dataGridViewTextBoxColumn11->DataPropertyName = L"预计净残值";
this->dataGridViewTextBoxColumn11->HeaderText = L"预计净残值";
this->dataGridViewTextBoxColumn11->Name = L"dataGridViewTextBoxColumn11";
this->dataGridViewTextBoxColumn11->ReadOnly = true;
this->dataGridViewTextBoxColumn11->Width = 70;
//
// dataGridViewTextBoxColumn12
//
this->dataGridViewTextBoxColumn12->DataPropertyName = L"折旧年份";
this->dataGridViewTextBoxColumn12->HeaderText = L"折旧年份";
this->dataGridViewTextBoxColumn12->Name = L"dataGridViewTextBoxColumn12";
this->dataGridViewTextBoxColumn12->ReadOnly = true;
this->dataGridViewTextBoxColumn12->Width = 60;
//
// dataGridViewTextBoxColumn13
//
this->dataGridViewTextBoxColumn13->DataPropertyName = L"折旧月份";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -