📄 fixedassetsform.h
字号:
this->使用状态ComboBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->固定资产明细BindingSource, L"使用状态", true)));
this->使用状态ComboBox->FormattingEnabled = true;
this->使用状态ComboBox->Items->AddRange(gcnew cli::array< System::Object^ >(4) {L"使用中", L"未使用", L"不需用", L"经营性租出"});
this->使用状态ComboBox->Location = System::Drawing::Point(285, 56);
this->使用状态ComboBox->Name = L"使用状态ComboBox";
this->使用状态ComboBox->Size = System::Drawing::Size(100, 20);
this->使用状态ComboBox->TabIndex = 72;
//
// 增加方式ComboBox
//
this->增加方式ComboBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->固定资产明细BindingSource, L"增加方式", true)));
this->增加方式ComboBox->FormattingEnabled = true;
this->增加方式ComboBox->Items->AddRange(gcnew cli::array< System::Object^ >(6) {L"购入", L"接受投资", L"接受捐赠", L"融资租入", L"自建", L"盘盈"});
this->增加方式ComboBox->Location = System::Drawing::Point(285, 83);
this->增加方式ComboBox->Name = L"增加方式ComboBox";
this->增加方式ComboBox->Size = System::Drawing::Size(100, 20);
this->增加方式ComboBox->TabIndex = 74;
//
// 类别ComboBox
//
this->类别ComboBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->固定资产明细BindingSource, L"类别", true)));
this->类别ComboBox->FormattingEnabled = true;
this->类别ComboBox->Items->AddRange(gcnew cli::array< System::Object^ >(4) {L"生产设备", L"运输设备", L"管理用具", L"房屋及建筑物"});
this->类别ComboBox->Location = System::Drawing::Point(285, 110);
this->类别ComboBox->Name = L"类别ComboBox";
this->类别ComboBox->Size = System::Drawing::Size(100, 20);
this->类别ComboBox->TabIndex = 76;
//
// 数量TextBox
//
this->数量TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->固定资产明细BindingSource, L"数量", true)));
this->数量TextBox->Location = System::Drawing::Point(285, 136);
this->数量TextBox->Name = L"数量TextBox";
this->数量TextBox->Size = System::Drawing::Size(100, 21);
this->数量TextBox->TabIndex = 78;
//
// 单位ComboBox
//
this->单位ComboBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->固定资产明细BindingSource, L"单位", true)));
this->单位ComboBox->FormattingEnabled = true;
this->单位ComboBox->Items->AddRange(gcnew cli::array< System::Object^ >(5) {L"台", L"套", L"个", L"辆", L"平方米"});
this->单位ComboBox->Location = System::Drawing::Point(285, 164);
this->单位ComboBox->Name = L"单位ComboBox";
this->单位ComboBox->Size = System::Drawing::Size(100, 20);
this->单位ComboBox->TabIndex = 80;
//
// 单价TextBox
//
this->单价TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->固定资产明细BindingSource, L"单价", true)));
this->单价TextBox->Location = System::Drawing::Point(285, 190);
this->单价TextBox->Name = L"单价TextBox";
this->单价TextBox->Size = System::Drawing::Size(100, 21);
this->单价TextBox->TabIndex = 82;
//
// 金额TextBox
//
this->金额TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->固定资产明细BindingSource, L"金额", true)));
this->金额TextBox->Location = System::Drawing::Point(285, 217);
this->金额TextBox->Name = L"金额TextBox";
this->金额TextBox->Size = System::Drawing::Size(100, 21);
this->金额TextBox->TabIndex = 84;
//
// 资产原值TextBox
//
this->资产原值TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->固定资产明细BindingSource, L"资产原值", true)));
this->资产原值TextBox->Location = System::Drawing::Point(459, 28);
this->资产原值TextBox->Name = L"资产原值TextBox";
this->资产原值TextBox->Size = System::Drawing::Size(77, 21);
this->资产原值TextBox->TabIndex = 86;
//
// 累计折旧TextBox
//
this->累计折旧TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->固定资产明细BindingSource, L"累计折旧", true)));
this->累计折旧TextBox->Location = System::Drawing::Point(459, 55);
this->累计折旧TextBox->Name = L"累计折旧TextBox";
this->累计折旧TextBox->Size = System::Drawing::Size(77, 21);
this->累计折旧TextBox->TabIndex = 88;
//
// 折旧方法ComboBox
//
this->折旧方法ComboBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->固定资产明细BindingSource, L"折旧方法", true)));
this->折旧方法ComboBox->FormattingEnabled = true;
this->折旧方法ComboBox->Items->AddRange(gcnew cli::array< System::Object^ >(5) {L"平均年限法", L"工作量法", L"双倍余额递减法", L"年数总和法", L"不计提折旧"});
this->折旧方法ComboBox->Location = System::Drawing::Point(459, 83);
this->折旧方法ComboBox->Name = L"折旧方法ComboBox";
this->折旧方法ComboBox->Size = System::Drawing::Size(77, 20);
this->折旧方法ComboBox->TabIndex = 90;
//
// 折旧月数TextBox
//
this->折旧月数TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->固定资产明细BindingSource, L"折旧月数", true)));
this->折旧月数TextBox->Location = System::Drawing::Point(459, 109);
this->折旧月数TextBox->Name = L"折旧月数TextBox";
this->折旧月数TextBox->Size = System::Drawing::Size(77, 21);
this->折旧月数TextBox->TabIndex = 92;
//
// 已提月数TextBox
//
this->已提月数TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->固定资产明细BindingSource, L"已提月数", true)));
this->已提月数TextBox->Location = System::Drawing::Point(459, 136);
this->已提月数TextBox->Name = L"已提月数TextBox";
this->已提月数TextBox->Size = System::Drawing::Size(77, 21);
this->已提月数TextBox->TabIndex = 94;
//
// 月度折旧额TextBox
//
this->月度折旧额TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->固定资产明细BindingSource, L"月度折旧额", true)));
this->月度折旧额TextBox->Location = System::Drawing::Point(471, 163);
this->月度折旧额TextBox->Name = L"月度折旧额TextBox";
this->月度折旧额TextBox->Size = System::Drawing::Size(65, 21);
this->月度折旧额TextBox->TabIndex = 96;
//
// 预计净残值TextBox
//
this->预计净残值TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->固定资产明细BindingSource, L"预计净残值", true)));
this->预计净残值TextBox->Location = System::Drawing::Point(471, 190);
this->预计净残值TextBox->Name = L"预计净残值TextBox";
this->预计净残值TextBox->Size = System::Drawing::Size(65, 21);
this->预计净残值TextBox->TabIndex = 98;
//
// 说明TextBox
//
this->说明TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->固定资产明细BindingSource, L"说明", true)));
this->说明TextBox->Location = System::Drawing::Point(67, 244);
this->说明TextBox->Name = L"说明TextBox";
this->说明TextBox->Size = System::Drawing::Size(469, 21);
this->说明TextBox->TabIndex = 100;
//
// bindingNavigatorMoveLastItem
//
this->bindingNavigatorMoveLastItem->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->bindingNavigatorMoveLastItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"bindingNavigatorMoveLastItem.Image")));
this->bindingNavigatorMoveLastItem->Name = L"bindingNavigatorMoveLastItem";
this->bindingNavigatorMoveLastItem->RightToLeftAutoMirrorImage = true;
this->bindingNavigatorMoveLastItem->Size = System::Drawing::Size(23, 22);
this->bindingNavigatorMoveLastItem->Text = L"移到最后一条记录";
//
// bindingNavigatorSeparator2
//
this->bindingNavigatorSeparator2->Name = L"bindingNavigatorSeparator2";
this->bindingNavigatorSeparator2->Size = System::Drawing::Size(6, 25);
//
// bindingNavigatorMoveNextItem
//
this->bindingNavigatorMoveNextItem->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->bindingNavigatorMoveNextItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"bindingNavigatorMoveNextItem.Image")));
this->bindingNavigatorMoveNextItem->Name = L"bindingNavigatorMoveNextItem";
this->bindingNavigatorMoveNextItem->RightToLeftAutoMirrorImage = true;
this->bindingNavigatorMoveNextItem->Size = System::Drawing::Size(23, 22);
this->bindingNavigatorMoveNextItem->Text = L"移到下一条记录";
//
// bindingNavigatorPositionItem
//
this->bindingNavigatorPositionItem->AccessibleName = L"位置";
this->bindingNavigatorPositionItem->AutoSize = false;
this->bindingNavigatorPositionItem->Name = L"bindingNavigatorPositionItem";
this->bindingNavigatorPositionItem->Size = System::Drawing::Size(50, 21);
this->bindingNavigatorPositionItem->Text = L"0";
this->bindingNavigatorPositionItem->ToolTipText = L"当前位置";
//
// bindingNavigatorSeparator1
//
this->bindingNavigatorSeparator1->Name = L"bindingNavigatorSeparator1";
this->bindingNavigatorSeparator1->Size = System::Drawing::Size(6, 25);
//
// dataGridViewTextBoxColumn3
//
this->dataGridViewTextBoxColumn3->DataPropertyName = L"名称";
this->dataGridViewTextBoxColumn3->HeaderText = L"名称";
this->dataGridViewTextBoxColumn3->Name = L"dataGridViewTextBoxColumn3";
this->dataGridViewTextBoxColumn3->ReadOnly = true;
//
// dataGridViewTextBoxColumn4
//
this->dataGridViewTextBoxColumn4->DataPropertyName = L"型号";
this->dataGridViewTextBoxColumn4->HeaderText = L"型号";
this->dataGridViewTextBoxColumn4->Name = L"dataGridViewTextBoxColumn4";
this->dataGridViewTextBoxColumn4->ReadOnly = true;
//
// dataGridViewTextBoxColumn2
//
this->dataGridViewTextBoxColumn2->DataPropertyName = L"资产编号";
this->dataGridViewTextBoxColumn2->HeaderText = L"资产编号";
this->dataGridViewTextBoxColumn2->Name = L"dataGridViewTextBoxColumn2";
this->dataGridViewTextBoxColumn2->ReadOnly = true;
//
// 固定资产明细BindingNavigatorSaveItem
//
this->固定资产明细BindingNavigatorSaveItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"固定资产明细BindingNavigatorSaveItem.Image")));
this->固定资产明细BindingNavigatorSaveItem->Name = L"固定资产明细BindingNavigatorSaveItem";
this->固定资产明细BindingNavigatorSaveItem->Size = System::Drawing::Size(49, 22);
this->固定资产明细BindingNavigatorSaveItem->Text = L"保存";
this->固定资产明细BindingNavigatorSaveItem->Click += gcnew System::EventHandler(this, &FixedAssetsForm::固定资产明细BindingNavigatorSaveItem_Click);
//
// dataGridViewTextBoxColumn1
//
this->dataGridViewTextBoxColumn1->DataPropertyName = L"自编号";
this->dataGridViewTextBoxColumn1->HeaderText = L"自编号";
this->dataGridViewTextBoxColumn1->Name = L"dataGridViewTextBoxColumn1";
this->dataGridViewTextBoxColumn1->ReadOnly = true;
//
// bindingNavigatorSeparator
//
this->bindingNavigatorSeparator->Name = L"bindingNavigatorSeparator";
this->bindingNavigatorSeparator->Size = System::Drawing::Size(6, 25);
//
// bindingNavigatorAddNewItem
//
this->bindingNavigatorAddNewItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"bindingNavigatorAddNewItem.Image")));
this->bindingNavigatorAddNewItem->Name = L"bindingNavigatorAddNewItem";
this->bindingNavigatorAddNewItem->RightToLeftAutoMirrorImage = true;
this->bindingNavigatorAddNewItem->Size = System::Drawing::Size(49, 22);
this->bindingNavigatorAddNewItem->Text = L"新增";
this->bindingNavigatorAddNewItem->MouseUp += gcnew System::Windows::Forms::MouseEventHandler(this, &FixedAssetsForm::bindingNavigatorAddNewItem_MouseUp);
//
// bindingNavigatorCountItem
//
this->bindingNavigatorCountItem->Name = L"bindingNavigatorCountItem";
this->bindingNavigatorCountItem->Size = System::Drawing::Size(35, 22);
this->bindingNavigatorCountItem->Text = L"/ {0}";
this->bindingNavigatorCountItem->ToolTipText = 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->AutoGenerateColumns = false;
this->固定资产明细DataGridView->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^ >(24) {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->dataGridViewTextBoxColumn15, this->dataGridViewTextBoxColumn16, this->dataGridViewTextBoxColumn17,
this->dataGridViewTextBoxColumn18, this->dataGridViewTextBoxColumn19, this->dataGridViewTextBoxColumn20, this->dataGridViewTextBoxColumn21,
this->dataGridViewTextBoxColumn22, this->dataGridViewTextBoxColumn23, this->dataGridViewTextBoxColumn24});
this->固定资产明细DataGridView->DataSource = this->固定资产明细BindingSource;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -