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

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

	protected:
		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		~COutStoreQuery()
		{
			if (components)
			{
				delete components;
			}
		}

	CDataManage DataManage;
	String ^    FieldName;  //查询字段名称

	private: System::Windows::Forms::DataGridViewTextBoxColumn^  BookAuthor;
	protected: 
	private: System::Windows::Forms::DataGridViewTextBoxColumn^  Num;
	private: System::Windows::Forms::DataGridViewTextBoxColumn^  Barcode;
	private: System::Windows::Forms::DataGridView^  DataList;
	private: System::Windows::Forms::DataGridViewTextBoxColumn^  BookName;
	private: System::Windows::Forms::DataGridViewTextBoxColumn^  Rebate;
	private: System::Windows::Forms::DataGridViewTextBoxColumn^  Price;
	private: System::Windows::Forms::DataGridViewTextBoxColumn^  SumMoney;
	private: System::Windows::Forms::GroupBox^  groupBox1;
	private: System::Windows::Forms::Button^  ButtonQuery;
	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::CheckBox^  CheckField;
	private: System::Windows::Forms::BindingSource^  BandDataSource;
	private: System::Windows::Forms::Label^  label1;
	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->BookAuthor = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
			this->Num = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
			this->Barcode = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
			this->DataList = (gcnew System::Windows::Forms::DataGridView());
			this->BookName = (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->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->BandDataSource = (gcnew System::Windows::Forms::BindingSource(this->components));
			this->label1 = (gcnew System::Windows::Forms::Label());
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->DataList))->BeginInit();
			this->groupBox1->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->BandDataSource))->BeginInit();
			this->SuspendLayout();
			// 
			// BookAuthor
			// 
			this->BookAuthor->DataPropertyName = L"BookAuthor";
			this->BookAuthor->HeaderText = L"作者";
			this->BookAuthor->Name = L"BookAuthor";
			this->BookAuthor->ReadOnly = true;
			// 
			// Num
			// 
			this->Num->DataPropertyName = L"Num";
			this->Num->HeaderText = L"数量";
			this->Num->Name = L"Num";
			this->Num->ReadOnly = true;
			// 
			// Barcode
			// 
			this->Barcode->DataPropertyName = L"Barcode";
			this->Barcode->HeaderText = L"条形码";
			this->Barcode->Name = L"Barcode";
			this->Barcode->ReadOnly = true;
			// 
			// DataList
			// 
			this->DataList->AutoSizeColumnsMode = System::Windows::Forms::DataGridViewAutoSizeColumnsMode::Fill;
			this->DataList->ColumnHeadersHeightSizeMode = System::Windows::Forms::DataGridViewColumnHeadersHeightSizeMode::AutoSize;
			this->DataList->Columns->AddRange(gcnew cli::array< System::Windows::Forms::DataGridViewColumn^  >(7) {this->BookName, this->Barcode, 
				this->BookAuthor, this->Num, this->Rebate, this->Price, this->SumMoney});
			this->DataList->Location = System::Drawing::Point(18, 137);
			this->DataList->Name = L"DataList";
			this->DataList->RowHeadersVisible = false;
			this->DataList->RowTemplate->DefaultCellStyle->SelectionBackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(255)), 
				static_cast<System::Int32>(static_cast<System::Byte>(255)), static_cast<System::Int32>(static_cast<System::Byte>(192)));
			this->DataList->RowTemplate->DefaultCellStyle->SelectionForeColor = System::Drawing::Color::Red;
			this->DataList->RowTemplate->Height = 20;
			this->DataList->RowTemplate->ReadOnly = true;
			this->DataList->SelectionMode = System::Windows::Forms::DataGridViewSelectionMode::FullRowSelect;
			this->DataList->Size = System::Drawing::Size(852, 413);
			this->DataList->TabIndex = 7;
			// 
			// BookName
			// 
			this->BookName->DataPropertyName = L"BookName";
			this->BookName->HeaderText = L"图书名称";
			this->BookName->Name = L"BookName";
			this->BookName->ReadOnly = true;
			// 
			// Rebate
			// 
			this->Rebate->DataPropertyName = L"Rebate";
			this->Rebate->HeaderText = L"折扣";
			this->Rebate->Name = L"Rebate";
			this->Rebate->ReadOnly = true;
			// 
			// Price
			// 
			this->Price->DataPropertyName = L"Price";
			this->Price->HeaderText = L"价格";
			this->Price->Name = L"Price";
			this->Price->ReadOnly = true;
			// 
			// SumMoney
			// 
			this->SumMoney->DataPropertyName = L"NumMoney";
			this->SumMoney->HeaderText = L"小计";
			this->SumMoney->Name = L"SumMoney";
			this->SumMoney->ReadOnly = true;
			// 
			// 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(18, 61);
			this->groupBox1->Name = L"groupBox1";
			this->groupBox1->Size = System::Drawing::Size(852, 61);
			this->groupBox1->TabIndex = 6;
			this->groupBox1->TabStop = false;
			this->groupBox1->Text = L"查询条件";
			// 
			// ButtonQuery
			// 
			this->ButtonQuery->Location = System::Drawing::Point(750, 20);

⌨️ 快捷键说明

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