附加数据库后 即可使用,无需修改密码,数据库在 CHEXC\DataBase 目录
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace CHEXC{ public partial class Main : Form { public Main() { InitializeComponent(); } public Main(string strName) { InitializeComponent(); SendNameValue = strName; } public string SendNameValue; private void menuGoodsIn_Click(object sender, EventArgs e) { //进贷信息 JhGoodsInfo jhGOOD = new JhGoodsInfo(); jhGOOD.Owner = this; jhGOOD.ShowDialog(); } private void menuEmployee_Click(object sender, EventArgs e) { //员工信息 EmpInfo empinfo = new EmpInfo(); empinfo.Owner = this; empinfo.ShowDialog(); } private void menuCompany_Click(object sender, EventArgs e) { //供应商信息 CompanyInfo frmComp = new CompanyInfo(); frmComp.Owner = this; frmComp.ShowDialog(); } private void menuFind_Click(object sender, EventArgs e) { //商品信息查查询 FindGood findgood = new FindGood(); findgood.Owner = this; findgood.ShowDialog(); } private void menuDepotAlarm_Click(object sender, EventArgs e) { //库存警报 KcGoods kcGood = new KcGoods(); kcGood.Owner = this; kcGood.ShowDialog(); } private void menuDepotFind_Click(object sender, EventArgs e) { //库存查询 KcGoodFind kcfrmFind = new KcGoodFind(); kcfrmFind.Owner = this; kcfrmFind.ShowDialog(); } private void menuSellGoods_Click(object sender, EventArgs e) { //商品销售信息 SellGoods frmSell = new SellGoods(); frmSell.Owner = this; frmSell.ShowDialog(); } private void menuSellFind_Click(object sender, EventArgs e) { //退货信息 ThGoodsInfo frmTh = new ThGoodsInfo(); frmTh.Owner = this; frmTh.ShowDialog(); } private void 数据备份HToolStripMenuItem_Click(object sender, EventArgs e) { //数据备份 DataBack frmBack = new DataBack(); frmBack.Owner = this; frmBack.ShowDialog(); } private void 数据还原IToolStripMenuItem_Click(object sender, EventArgs e) { //数据还源 DataReole frmReole = new DataReole(); frmReole.Owner = this; frmReole.ShowDialog(); } private void frmMain_Load(object sender, EventArgs e) { timer2.Enabled = true; this.statusUser.Text = "系统操作员:" SendNameValue; } private void timer2_Tick(object sender, EventArgs e) { this.statusTime.Text = "当前时间:" DateTime.Now.ToString(); } private void frmMain_FormClosing(object sender, FormClosingEventArgs e) { Application.Exit(); } }}
评论