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

📄 cinstorequery.h

📁 MFC程序开发参考大全 【明日科技】宋坤 刘锐宁 李伟明 【丛 书 名】 软件工程师典藏 【出 版 社】 人民邮电出版社 本书详细介绍了MFC框架中所有常用类及控件的应用
💻 H
📖 第 1 页 / 共 2 页
字号:
#pragma once
#include "CDataManage.h"

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;



namespace BOOKMANAGE {

	/// <summary>
	/// CInStoreQuery 摘要
	///
	/// 警告: 如果更改此类的名称,则需要更改
	///          与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
	///          “资源文件名”属性。否则,
	///          设计器将不能与此窗体的关联
	///          本地化资源正确交互。
	/// </summary>
	public ref class CInStoreQuery : public System::Windows::Forms::Form
	{
	public:
		CInStoreQuery(void)
		{
			InitializeComponent();
			//
			//TODO: 在此处添加构造函数代码
			//
		}

	protected:
		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		~CInStoreQuery()
		{
			if (components)
			{
				delete components;
			}
		}
		CDataManage DataManage;
		String ^    FieldName;  //查询字段名称

	private: System::Windows::Forms::Label^  label1;
	protected: 
	private: System::Windows::Forms::GroupBox^  groupBox1;
	private: System::Windows::Forms::CheckBox^  CheckField;

	private: System::Windows::Forms::DateTimePicker^  EndTime;

	private: System::Windows::Forms::Label^  label2;
	private: System::Windows::Forms::DateTimePicker^  StartTime;
	private: System::Windows::Forms::TextBox^  FieldValue;


	private: System::Windows::Forms::CheckBox^  CheckTimeQuery;

	private: System::Windows::Forms::ComboBox^  QueryField;

	private: System::Windows::Forms::DataGridView^  DataList;
	private: System::Windows::Forms::Button^  ButtonQuery;




	private: System::Windows::Forms::BindingSource^  BandDataSource;
	private: System::Windows::Forms::DataGridViewTextBoxColumn^  BookName;
	private: System::Windows::Forms::DataGridViewTextBoxColumn^  Barcode;
	private: System::Windows::Forms::DataGridViewTextBoxColumn^  BookAuthor;
	private: System::Windows::Forms::DataGridViewTextBoxColumn^  Num;
	private: System::Windows::Forms::DataGridViewTextBoxColumn^  Rebate;
	private: System::Windows::Forms::DataGridViewTextBoxColumn^  Price;
	private: System::Windows::Forms::DataGridViewTextBoxColumn^  SumMoney;


	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());
			this->label1 = (gcnew System::Windows::Forms::Label());
			this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
			this->ButtonQuery = (gcnew System::Windows::Forms::Button());
			this->EndTime = (gcnew System::Windows::Forms::DateTimePicker());
			this->label2 = (gcnew System::Windows::Forms::Label());
			this->StartTime = (gcnew System::Windows::Forms::DateTimePicker());
			this->FieldValue = (gcnew System::Windows::Forms::TextBox());
			this->CheckTimeQuery = (gcnew System::Windows::Forms::CheckBox());
			this->QueryField = (gcnew System::Windows::Forms::ComboBox());
			this->CheckField = (gcnew System::Windows::Forms::CheckBox());
			this->DataList = (gcnew System::Windows::Forms::DataGridView());
			this->BookName = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
			this->Barcode = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
			this->BookAuthor = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
			this->Num = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
			this->Rebate = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
			this->Price = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
			this->SumMoney = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
			this->BandDataSource = (gcnew System::Windows::Forms::BindingSource(this->components));
			this->groupBox1->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->DataList))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->BandDataSource))->BeginInit();
			this->SuspendLayout();
			// 
			// label1
			// 
			this->label1->AutoSize = true;
			this->label1->BackColor = System::Drawing::Color::Transparent;
			this->label1->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
			this->label1->Font = (gcnew System::Drawing::Font(L"隶书", 21.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(134)));
			this->label1->ForeColor = System::Drawing::Color::Red;
			this->label1->Location = System::Drawing::Point(310, 20);
			this->label1->Name = L"label1";
			this->label1->Size = System::Drawing::Size(199, 29);
			this->label1->TabIndex = 1;
			this->label1->Text = L"图书入库查询";
			// 
			// groupBox1
			// 
			this->groupBox1->Controls->Add(this->ButtonQuery);
			this->groupBox1->Controls->Add(this->EndTime);
			this->groupBox1->Controls->Add(this->label2);
			this->groupBox1->Controls->Add(this->StartTime);
			this->groupBox1->Controls->Add(this->FieldValue);
			this->groupBox1->Controls->Add(this->CheckTimeQuery);
			this->groupBox1->Controls->Add(this->QueryField);
			this->groupBox1->Controls->Add(this->CheckField);
			this->groupBox1->Location = System::Drawing::Point(12, 63);
			this->groupBox1->Name = L"groupBox1";
			this->groupBox1->Size = System::Drawing::Size(835, 61);
			this->groupBox1->TabIndex = 3;
			this->groupBox1->TabStop = false;
			this->groupBox1->Text = L"查询条件";
			// 
			// ButtonQuery
			// 
			this->ButtonQuery->Location = System::Drawing::Point(746, 20);
			this->ButtonQuery->Name = L"ButtonQuery";
			this->ButtonQuery->Size = System::Drawing::Size(71, 21);
			this->ButtonQuery->TabIndex = 11;
			this->ButtonQuery->Text = L"查询";
			this->ButtonQuery->UseVisualStyleBackColor = true;
			this->ButtonQuery->Click += gcnew System::EventHandler(this, &CInStoreQuery::ButtonQuery_Click);
			// 
			// EndTime
			// 
			this->EndTime->Location = System::Drawing::Point(629, 21);
			this->EndTime->Name = L"EndTime";
			this->EndTime->Size = System::Drawing::Size(107, 21);
			this->EndTime->TabIndex = 10;
			// 
			// label2
			// 
			this->label2->AutoSize = true;
			this->label2->Location = System::Drawing::Point(606, 27);
			this->label2->Name = L"label2";
			this->label2->Size = System::Drawing::Size(17, 12);
			this->label2->TabIndex = 9;
			this->label2->Text = L"到";
			// 
			// StartTime
			// 
			this->StartTime->Location = System::Drawing::Point(493, 22);
			this->StartTime->Name = L"StartTime";
			this->StartTime->Size = System::Drawing::Size(107, 21);
			this->StartTime->TabIndex = 8;
			// 
			// FieldValue
			// 
			this->FieldValue->Location = System::Drawing::Point(223, 24);
			this->FieldValue->Name = L"FieldValue";
			this->FieldValue->Size = System::Drawing::Size(163, 21);
			this->FieldValue->TabIndex = 7;
			// 
			// CheckTimeQuery
			// 
			this->CheckTimeQuery->AutoSize = true;
			this->CheckTimeQuery->Location = System::Drawing::Point(406, 26);
			this->CheckTimeQuery->Name = L"CheckTimeQuery";
			this->CheckTimeQuery->Size = System::Drawing::Size(84, 16);
			this->CheckTimeQuery->TabIndex = 6;
			this->CheckTimeQuery->Text = L"时间段查询";
			this->CheckTimeQuery->UseVisualStyleBackColor = true;
			// 
			// QueryField
			// 
			this->QueryField->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;

⌨️ 快捷键说明

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