📄 form1.h
字号:
#pragma once
#include "LinkDataBase.h"
#include "SubjectSetting.h"
#include "AccountSetting.h"
#include "TrialBalance.h"
#include "WarrentInput.h"
#include "LedgerQuery.h"
#include "DetailQuery.h"
#include "FinancialReport.h"
namespace My
{
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Form1 摘要
///
/// 警告: 如果您更改该类的名称,则需要更改
/// 与该类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。 否则,
/// 设计器将不能与此窗体关联的
/// 本地化资源正确交互。
/// </summary>
public __gc class Form1 : public System::Windows::Forms::Form
{
//--------------------成员声明------------------------
private:
LinkDataBase* MyDataBase; //数据库连接类
DataSet* ds;
//-------------------成员声明结束-----------------------
public:
Form1(void)
{
InitializeComponent();
//生成数据库连接类
MyDataBase = new LinkDataBase();
}
protected:
void Dispose(Boolean disposing)
{
if (disposing && components)
{
components->Dispose();
}
__super::Dispose(disposing);
}
private: System::Windows::Forms::MainMenu * mainMenu1;
private: System::Windows::Forms::StatusBar * statusBar1;
private: System::Windows::Forms::StatusBarPanel * statusBarPanel2;
private: System::Windows::Forms::StatusBarPanel * statusBarPanel3;
private: System::Windows::Forms::MenuItem * menuItem1;
private: System::Windows::Forms::MenuItem * menuItem2;
private: System::Windows::Forms::MenuItem * menuItem3;
private: System::Windows::Forms::MenuItem * menuItem4;
private: System::Windows::Forms::MenuItem * menuItem5;
private: System::Windows::Forms::MenuItem * menuItem6;
private: System::Windows::Forms::MenuItem * menuItem7;
private: System::Windows::Forms::MenuItem * menuItem8;
private: System::Windows::Forms::MenuItem * menuItem9;
private: System::Windows::Forms::MenuItem * menuItem10;
private: System::Windows::Forms::MenuItem * menuItem11;
private: System::Windows::Forms::MenuItem * menuItem12;
private: System::Windows::Forms::MenuItem * menuItem13;
private: System::Windows::Forms::MenuItem * menuItem14;
private: System::Windows::Forms::MenuItem * menuItem15;
private:
/// <summary>
/// 必需的设计器变量。
/// </summary>
System::ComponentModel::Container * components;
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
void InitializeComponent(void)
{
this->mainMenu1 = new System::Windows::Forms::MainMenu();
this->menuItem1 = new System::Windows::Forms::MenuItem();
this->menuItem2 = new System::Windows::Forms::MenuItem();
this->menuItem3 = new System::Windows::Forms::MenuItem();
this->menuItem4 = new System::Windows::Forms::MenuItem();
this->menuItem5 = new System::Windows::Forms::MenuItem();
this->menuItem6 = new System::Windows::Forms::MenuItem();
this->menuItem7 = new System::Windows::Forms::MenuItem();
this->menuItem8 = new System::Windows::Forms::MenuItem();
this->menuItem9 = new System::Windows::Forms::MenuItem();
this->menuItem10 = new System::Windows::Forms::MenuItem();
this->menuItem11 = new System::Windows::Forms::MenuItem();
this->menuItem12 = new System::Windows::Forms::MenuItem();
this->menuItem13 = new System::Windows::Forms::MenuItem();
this->menuItem14 = new System::Windows::Forms::MenuItem();
this->menuItem15 = new System::Windows::Forms::MenuItem();
this->statusBar1 = new System::Windows::Forms::StatusBar();
this->statusBarPanel2 = new System::Windows::Forms::StatusBarPanel();
this->statusBarPanel3 = new System::Windows::Forms::StatusBarPanel();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->statusBarPanel2))->BeginInit();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->statusBarPanel3))->BeginInit();
this->SuspendLayout();
//
// mainMenu1
//
System::Windows::Forms::MenuItem* __mcTemp__1[] = new System::Windows::Forms::MenuItem*[5];
__mcTemp__1[0] = this->menuItem1;
__mcTemp__1[1] = this->menuItem4;
__mcTemp__1[2] = this->menuItem7;
__mcTemp__1[3] = this->menuItem11;
__mcTemp__1[4] = this->menuItem15;
this->mainMenu1->MenuItems->AddRange(__mcTemp__1);
//
// menuItem1
//
this->menuItem1->Index = 0;
System::Windows::Forms::MenuItem* __mcTemp__2[] = new System::Windows::Forms::MenuItem*[2];
__mcTemp__2[0] = this->menuItem2;
__mcTemp__2[1] = this->menuItem3;
this->menuItem1->MenuItems->AddRange(__mcTemp__2);
this->menuItem1->Text = S"基础数据管理";
this->menuItem1->Click += new System::EventHandler(this, menuItem1_Click);
//
// menuItem2
//
this->menuItem2->Index = 0;
this->menuItem2->Text = S"科目设置";
this->menuItem2->Click += new System::EventHandler(this, menuItem2_Click);
//
// menuItem3
//
this->menuItem3->Index = 1;
this->menuItem3->Text = S"帐户设置";
this->menuItem3->Click += new System::EventHandler(this, menuItem3_Click);
//
// menuItem4
//
this->menuItem4->Index = 1;
System::Windows::Forms::MenuItem* __mcTemp__3[] = new System::Windows::Forms::MenuItem*[2];
__mcTemp__3[0] = this->menuItem5;
__mcTemp__3[1] = this->menuItem6;
this->menuItem4->MenuItems->AddRange(__mcTemp__3);
this->menuItem4->Text = S"凭证管理";
//
// menuItem5
//
this->menuItem5->Index = 0;
this->menuItem5->Text = S"凭证输入";
this->menuItem5->Click += new System::EventHandler(this, menuItem5_Click);
//
// menuItem6
//
this->menuItem6->Index = 1;
this->menuItem6->Text = S"凭证过帐";
this->menuItem6->Click += new System::EventHandler(this, menuItem6_Click);
//
// menuItem7
//
this->menuItem7->Index = 2;
System::Windows::Forms::MenuItem* __mcTemp__4[] = new System::Windows::Forms::MenuItem*[1];
__mcTemp__4[0] = this->menuItem8;
this->menuItem7->MenuItems->AddRange(__mcTemp__4);
this->menuItem7->Text = S"帐簿管理";
//
// menuItem8
//
this->menuItem8->Index = 0;
System::Windows::Forms::MenuItem* __mcTemp__5[] = new System::Windows::Forms::MenuItem*[2];
__mcTemp__5[0] = this->menuItem9;
__mcTemp__5[1] = this->menuItem10;
this->menuItem8->MenuItems->AddRange(__mcTemp__5);
this->menuItem8->Text = S"帐簿查询";
//
// menuItem9
//
this->menuItem9->Index = 0;
this->menuItem9->Text = S"总分类帐";
this->menuItem9->Click += new System::EventHandler(this, menuItem9_Click);
//
// menuItem10
//
this->menuItem10->Index = 1;
this->menuItem10->Text = S"明细帐";
this->menuItem10->Click += new System::EventHandler(this, menuItem10_Click);
//
// menuItem11
//
this->menuItem11->Index = 3;
System::Windows::Forms::MenuItem* __mcTemp__6[] = new System::Windows::Forms::MenuItem*[3];
__mcTemp__6[0] = this->menuItem12;
__mcTemp__6[1] = this->menuItem13;
__mcTemp__6[2] = this->menuItem14;
this->menuItem11->MenuItems->AddRange(__mcTemp__6);
this->menuItem11->Text = S"结帐及报表";
//
// menuItem12
//
this->menuItem12->Index = 0;
this->menuItem12->Text = S"试算平衡表";
this->menuItem12->Click += new System::EventHandler(this, menuItem12_Click);
//
// menuItem13
//
this->menuItem13->Index = 1;
this->menuItem13->Text = S"期末结帐";
this->menuItem13->Click += new System::EventHandler(this, menuItem13_Click);
//
// menuItem14
//
this->menuItem14->Index = 2;
this->menuItem14->Text = S"资产负债表";
this->menuItem14->Click += new System::EventHandler(this, menuItem14_Click);
//
// menuItem15
//
this->menuItem15->Index = 4;
this->menuItem15->Text = S"退出系统";
this->menuItem15->Click += new System::EventHandler(this, menuItem15_Click);
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -