⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 documentform.h

📁 有关办公管理的系统
💻 H
📖 第 1 页 / 共 3 页
字号:
			this->签收人TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->收文登记管理BindingSource, L"签收人", true)));
			this->签收人TextBox->Location = System::Drawing::Point(50, 77);
			this->签收人TextBox->Name = L"签收人TextBox";
			this->签收人TextBox->Size = System::Drawing::Size(67, 21);
			this->签收人TextBox->TabIndex = 69;
			// 
			// 分送单位TextBox
			// 
			this->分送单位TextBox->DataBindings->Add((gcnew System::Windows::Forms::Binding(L"Text", this->收文登记管理BindingSource, L"分送单位", true)));
			this->分送单位TextBox->Location = System::Drawing::Point(191, 77);
			this->分送单位TextBox->Name = L"分送单位TextBox";
			this->分送单位TextBox->Size = System::Drawing::Size(200, 21);
			this->分送单位TextBox->TabIndex = 71;
			// 
			// 处理情况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(462, 77);
			this->处理情况TextBox->Name = L"处理情况TextBox";
			this->处理情况TextBox->Size = System::Drawing::Size(75, 21);
			this->处理情况TextBox->TabIndex = 73;
			// 
			// 存放路径TextBox
			// 
			this->存放路径TextBox->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Bottom | 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(67, 206);
			this->存放路径TextBox->Name = L"存放路径TextBox";
			this->存放路径TextBox->ReadOnly = true;
			this->存放路径TextBox->Size = System::Drawing::Size(289, 21);
			this->存放路径TextBox->TabIndex = 75;
			// 
			// 说明TextBox
			// 
			this->说明TextBox->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Bottom | 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(43, 233);
			this->说明TextBox->Name = L"说明TextBox";
			this->说明TextBox->Size = System::Drawing::Size(494, 21);
			this->说明TextBox->TabIndex = 77;
			// 
			// 收文登记管理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, &DocumentForm::收文登记管理BindingNavigatorSaveItem_Click);
			// 
			// bindingNavigatorSeparator2
			// 
			this->bindingNavigatorSeparator2->Name = L"bindingNavigatorSeparator2";
			this->bindingNavigatorSeparator2->Size = System::Drawing::Size(6, 25);
			// 
			// 查询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, &DocumentForm::查询ToolStripButton_Click);
			// 
			// dataGridViewTextBoxColumn2
			// 
			this->dataGridViewTextBoxColumn2->DataPropertyName = L"收文日期";
			this->dataGridViewTextBoxColumn2->HeaderText = L"收文日期";
			this->dataGridViewTextBoxColumn2->Name = L"dataGridViewTextBoxColumn2";
			this->dataGridViewTextBoxColumn2->ReadOnly = true;
			// 
			// dataGridViewTextBoxColumn1
			// 
			this->dataGridViewTextBoxColumn1->DataPropertyName = L"自编号";
			this->dataGridViewTextBoxColumn1->HeaderText = L"自编号";
			this->dataGridViewTextBoxColumn1->Name = L"dataGridViewTextBoxColumn1";
			this->dataGridViewTextBoxColumn1->ReadOnly = true;
			// 
			// 收文登记管理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::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^  >(13) {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->收文登记管理DataGridView->DataSource = this->收文登记管理BindingSource;
			this->收文登记管理DataGridView->Location = System::Drawing::Point(4, 262);
			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, 150);
			this->收文登记管理DataGridView->TabIndex = 51;
			// 
			// 结束日期ToolStripTextBox
			// 
			this->结束日期ToolStripTextBox->Name = L"结束日期ToolStripTextBox";
			this->结束日期ToolStripTextBox->Size = System::Drawing::Size(100, 25);
			this->结束日期ToolStripTextBox->Text = L"2099-12-31";
			// 
			// 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"新增";
			// 
			// 收文登记管理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 = 50;
			this->收文登记管理BindingNavigator->Text = L"bindingNavigator1";
			// 
			// toolStripLabel1
			// 
			this->toolStripLabel1->Name = L"toolStripLabel1";
			this->toolStripLabel1->Size = System::Drawing::Size(59, 22);
			this->toolStripLabel1->Text = L"开始日期:";
			// 
			// 开始日期ToolStripTextBox
			// 
			this->开始日期ToolStripTextBox->Name = L"开始日期ToolStripTextBox";
			this->开始日期ToolStripTextBox->Size = System::Drawing::Size(100, 25);
			this->开始日期ToolStripTextBox->Text = L"2000-1-1";
			// 
			// toolStripLabel2
			// 
			this->toolStripLabel2->Name = L"toolStripLabel2";
			this->toolStripLabel2->Size = System::Drawing::Size(59, 22);
			this->toolStripLabel2->Text = L"结束日期:";
			// 
			// DocumentForm
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 12);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->ClientSize = System::Drawing::Size(542, 416);
			this->Controls->Add(this->显示文件Button);
			this->Controls->Add(this->选择文件Button);
			this->Controls->Add(this->自编号TextBox);
			this->Controls->Add(this->收文日期DateTimePicker);
			this->Controls->Add(this->类别ComboBox);
			this->Controls->Add(this->原文字号TextBox);
			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(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(标题Label);
			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"DocumentForm";
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
			this->Text = L"收文登记管理";
			this->Load += gcnew System::EventHandler(this, &DocumentForm::DocumentForm_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 DocumentForm_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);
			 }

		 }
		private: System::Void 选择文件Button_Click(System::Object^  sender, System::EventArgs^  e) {
			OpenFileDialog^ MyDlg = gcnew OpenFileDialog();
			if (MyDlg->ShowDialog() == System::Windows::Forms::DialogResult::OK)
            {
                this->存放路径TextBox->Text = MyDlg->FileName;
            }
		 }
		private: System::Void 显示文件Button_Click(System::Object^  sender, System::EventArgs^  e) {
			System::Diagnostics::Process::Start(this->存放路径TextBox->Text);
		 }
	};
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -