📄 reportform.h
字号:
this->结束日期ToolStripTextBox->Name = L"结束日期ToolStripTextBox";
this->结束日期ToolStripTextBox->Size = System::Drawing::Size(100, 25);
this->结束日期ToolStripTextBox->Text = L"2099-12-31";
//
// 查询ToolStripButton
//
this->查询ToolStripButton->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"查询ToolStripButton.Image")));
this->查询ToolStripButton->Name = L"查询ToolStripButton";
this->查询ToolStripButton->Size = System::Drawing::Size(49, 22);
this->查询ToolStripButton->Text = L"查询";
this->查询ToolStripButton->Click += gcnew System::EventHandler(this, &ReportForm::查询ToolStripButton_Click);
//
// dataGridViewTextBoxColumn7
//
this->dataGridViewTextBoxColumn7->DataPropertyName = L"经办人";
this->dataGridViewTextBoxColumn7->HeaderText = L"经办人";
this->dataGridViewTextBoxColumn7->Name = L"dataGridViewTextBoxColumn7";
this->dataGridViewTextBoxColumn7->ReadOnly = true;
//
// dataGridViewTextBoxColumn8
//
this->dataGridViewTextBoxColumn8->DataPropertyName = L"呈送单位";
this->dataGridViewTextBoxColumn8->HeaderText = L"呈送单位";
this->dataGridViewTextBoxColumn8->Name = L"dataGridViewTextBoxColumn8";
this->dataGridViewTextBoxColumn8->ReadOnly = true;
//
// dataGridViewTextBoxColumn9
//
this->dataGridViewTextBoxColumn9->DataPropertyName = L"说明";
this->dataGridViewTextBoxColumn9->HeaderText = L"说明";
this->dataGridViewTextBoxColumn9->Name = L"dataGridViewTextBoxColumn9";
this->dataGridViewTextBoxColumn9->ReadOnly = true;
//
// dataGridViewTextBoxColumn6
//
this->dataGridViewTextBoxColumn6->DataPropertyName = L"份数";
this->dataGridViewTextBoxColumn6->HeaderText = L"份数";
this->dataGridViewTextBoxColumn6->Name = L"dataGridViewTextBoxColumn6";
this->dataGridViewTextBoxColumn6->ReadOnly = true;
//
// 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;
//
// dataGridViewTextBoxColumn5
//
this->dataGridViewTextBoxColumn5->DataPropertyName = L"报表名称";
this->dataGridViewTextBoxColumn5->HeaderText = L"报表名称";
this->dataGridViewTextBoxColumn5->Name = L"dataGridViewTextBoxColumn5";
this->dataGridViewTextBoxColumn5->ReadOnly = true;
//
// 自编号TextBox
//
this->自编号TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->呈送报表管理BindingSource, L"自编号", true)));
this->自编号TextBox->Location = System::Drawing::Point(57, 27);
this->自编号TextBox->Name = L"自编号TextBox";
this->自编号TextBox->Size = System::Drawing::Size(119, 21);
this->自编号TextBox->TabIndex = 23;
//
// 呈送日期DateTimePicker
//
this->呈送日期DateTimePicker->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Value", this->呈送报表管理BindingSource, L"呈送日期",
true)));
this->呈送日期DateTimePicker->Location = System::Drawing::Point(247, 28);
this->呈送日期DateTimePicker->Name = L"呈送日期DateTimePicker";
this->呈送日期DateTimePicker->Size = System::Drawing::Size(126, 21);
this->呈送日期DateTimePicker->TabIndex = 25;
//
// 保密级别ComboBox
//
this->保密级别ComboBox->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
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(444, 28);
this->保密级别ComboBox->Name = L"保密级别ComboBox";
this->保密级别ComboBox->Size = System::Drawing::Size(93, 20);
this->保密级别ComboBox->TabIndex = 27;
//
// 呈送方式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^ >(3) {L"邮寄", L"快递", L"自送"});
this->呈送方式ComboBox->Location = System::Drawing::Point(69, 54);
this->呈送方式ComboBox->Name = L"呈送方式ComboBox";
this->呈送方式ComboBox->Size = System::Drawing::Size(69, 20);
this->呈送方式ComboBox->TabIndex = 29;
//
// 报表名称TextBox
//
this->报表名称TextBox->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->报表名称TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->呈送报表管理BindingSource, L"报表名称", true)));
this->报表名称TextBox->Location = System::Drawing::Point(69, 80);
this->报表名称TextBox->Name = L"报表名称TextBox";
this->报表名称TextBox->Size = System::Drawing::Size(468, 21);
this->报表名称TextBox->TabIndex = 31;
//
// 份数TextBox
//
this->份数TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->呈送报表管理BindingSource, L"份数", true)));
this->份数TextBox->Location = System::Drawing::Point(184, 53);
this->份数TextBox->Name = L"份数TextBox";
this->份数TextBox->Size = System::Drawing::Size(35, 21);
this->份数TextBox->TabIndex = 33;
//
// 经办人TextBox
//
this->经办人TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->呈送报表管理BindingSource, L"经办人", true)));
this->经办人TextBox->Location = System::Drawing::Point(276, 53);
this->经办人TextBox->Name = L"经办人TextBox";
this->经办人TextBox->Size = System::Drawing::Size(68, 21);
this->经办人TextBox->TabIndex = 35;
//
// 呈送单位TextBox
//
this->呈送单位TextBox->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->呈送单位TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->呈送报表管理BindingSource, L"呈送单位", true)));
this->呈送单位TextBox->Location = System::Drawing::Point(420, 53);
this->呈送单位TextBox->Name = L"呈送单位TextBox";
this->呈送单位TextBox->Size = System::Drawing::Size(117, 21);
this->呈送单位TextBox->TabIndex = 37;
//
// 说明TextBox
//
this->说明TextBox->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left)
| System::Windows::Forms::AnchorStyles::Right));
this->说明TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->呈送报表管理BindingSource, L"说明", true)));
this->说明TextBox->Location = System::Drawing::Point(46, 107);
this->说明TextBox->Name = L"说明TextBox";
this->说明TextBox->Size = System::Drawing::Size(491, 21);
this->说明TextBox->TabIndex = 39;
//
// bindingNavigatorDeleteItem
//
this->bindingNavigatorDeleteItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"bindingNavigatorDeleteItem.Image")));
this->bindingNavigatorDeleteItem->Name = L"bindingNavigatorDeleteItem";
this->bindingNavigatorDeleteItem->RightToLeftAutoMirrorImage = true;
this->bindingNavigatorDeleteItem->Size = System::Drawing::Size(49, 22);
this->bindingNavigatorDeleteItem->Text = L"删除";
//
// 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"新增";
//
// 开始日期ToolStripTextBox
//
this->开始日期ToolStripTextBox->Name = L"开始日期ToolStripTextBox";
this->开始日期ToolStripTextBox->Size = System::Drawing::Size(100, 25);
this->开始日期ToolStripTextBox->Text = L"2000-1-1";
//
// toolStripLabel1
//
this->toolStripLabel1->Name = L"toolStripLabel1";
this->toolStripLabel1->Size = System::Drawing::Size(59, 22);
this->toolStripLabel1->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->AutoGenerateColumns = false;
this->呈送报表管理DataGridView->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^ >(9) {this->dataGridViewTextBoxColumn1,
this->dataGridViewTextBoxColumn2, this->dataGridViewTextBoxColumn3, this->dataGridViewTextBoxColumn4, this->dataGridViewTextBoxColumn5,
this->dataGridViewTextBoxColumn6, this->dataGridViewTextBoxColumn7, this->dataGridViewTextBoxColumn8, this->dataGridViewTextBoxColumn9});
this->呈送报表管理DataGridView->DataSource = this->呈送报表管理BindingSource;
this->呈送报表管理DataGridView->Location = System::Drawing::Point(4, 134);
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(533, 277);
this->呈送报表管理DataGridView->TabIndex = 21;
//
// 呈送报表管理BindingNavigator
//
this->呈送报表管理BindingNavigator->AddNewItem = this->bindingNavigatorAddNewItem;
this->呈送报表管理BindingNavigator->BindingSource = this->呈送报表管理BindingSource;
this->呈送报表管理BindingNavigator->CountItem = nullptr;
this->呈送报表管理BindingNavigator->DeleteItem = this->bindingNavigatorDeleteItem;
this->呈送报表管理BindingNavigator->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(9) {this->toolStripLabel1,
this->开始日期ToolStripTextBox, this->toolStripLabel2, this->结束日期ToolStripTextBox, this->查询ToolStripButton, this->bindingNavigatorSeparator2,
this->bindingNavigatorAddNewItem, this->bindingNavigatorDeleteItem, this->呈送报表管理BindingNavigatorSaveItem});
this->呈送报表管理BindingNavigator->Location = System::Drawing::Point(0, 0);
this->呈送报表管理BindingNavigator->MoveFirstItem = nullptr;
this->呈送报表管理BindingNavigator->MoveLastItem = nullptr;
this->呈送报表管理BindingNavigator->MoveNextItem = nullptr;
this->呈送报表管理BindingNavigator->MovePreviousItem = nullptr;
this->呈送报表管理BindingNavigator->Name = L"呈送报表管理BindingNavigator";
this->呈送报表管理BindingNavigator->PositionItem = nullptr;
this->呈送报表管理BindingNavigator->Size = System::Drawing::Size(542, 25);
this->呈送报表管理BindingNavigator->TabIndex = 20;
this->呈送报表管理BindingNavigator->Text = L"bindingNavigator1";
//
// ReportForm
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 12);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System::Drawing::Size(542, 416);
this->Controls->Add(自编号Label);
this->Controls->Add(this->自编号TextBox);
this->Controls->Add(呈送日期Label);
this->Controls->Add(this->呈送日期DateTimePicker);
this->Controls->Add(保密级别Label);
this->Controls->Add(this->保密级别ComboBox);
this->Controls->Add(this->呈送方式ComboBox);
this->Controls->Add(this->报表名称TextBox);
this->Controls->Add(this->份数TextBox);
this->Controls->Add(this->经办人TextBox);
this->Controls->Add(this->呈送单位TextBox);
this->Controls->Add(this->说明TextBox);
this->Controls->Add(呈送方式Label);
this->Controls->Add(报表名称Label);
this->Controls->Add(份数Label);
this->Controls->Add(经办人Label);
this->Controls->Add(呈送单位Label);
this->Controls->Add(说明Label);
this->Controls->Add(this->呈送报表管理DataGridView);
this->Controls->Add(this->呈送报表管理BindingNavigator);
this->Name = L"ReportForm";
this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
this->Text = L"呈送报表管理";
this->Load += gcnew System::EventHandler(this, &ReportForm::ReportForm_Load);
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->MyOfficeDataSet))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->呈送报表管理BindingSource))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->呈送报表管理DataGridView))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->呈送报表管理BindingNavigator))->EndInit();
this->呈送报表管理BindingNavigator->ResumeLayout(false);
this->呈送报表管理BindingNavigator->PerformLayout();
this->ResumeLayout(false);
this->PerformLayout();
}
#pragma endregion
private: System::Void 呈送报表管理BindingNavigatorSaveItem_Click(System::Object^ sender, System::EventArgs^ e) {
this->Validate();
this->呈送报表管理BindingSource->EndEdit();
this->呈送报表管理TableAdapter->Update(this->MyOfficeDataSet->呈送报表管理);
}
private: System::Void ReportForm_Load(System::Object^ sender, System::EventArgs^ e) {
// TODO: 这行代码将数据加载到表“MyOfficeDataSet.呈送报表管理”中。您可以根据需要移动或移除它。
this->呈送报表管理TableAdapter->Fill(this->MyOfficeDataSet->呈送报表管理);
}
private: System::Void 查询ToolStripButton_Click(System::Object^ sender, System::EventArgs^ e) {
try
{
this->呈送报表管理TableAdapter->FillBy(this->MyOfficeDataSet->呈送报表管理, System::Nullable<System::DateTime >((*cli::safe_cast<System::DateTime^>(System::Convert::ChangeType(开始日期ToolStripTextBox->Text,
System::DateTime::typeid)))), System::Nullable<System::DateTime >((*cli::safe_cast<System::DateTime^>(System::Convert::ChangeType(结束日期ToolStripTextBox->Text, System::DateTime::typeid)))));
}
catch (System::Exception^ ex)
{
System::Windows::Forms::MessageBox::Show(ex->Message);
}
}
};
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -