• 大小: 3.97MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-18
  • 语言: C#
  • 标签: WInfrom  超市  管理系统  

资源简介

超市进销存管理系统,实现超市的进货,销售,以及管理方面简单的功能。学习期很好的一个案例

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using CHEXC.ClassInfo;
using CHEXC.GoodMenhod;
using System.Data.SqlClient;
using System.Windows.Forms;

namespace CHEXC
{
    public partial class frmCompanyInfo : Form
    {
        public frmCompanyInfo()
        {
            InitializeComponent();
        }
        public frmCompanyInfo(int intResult)
        {
            InitializeComponent();
            intReturn = intResult;
        }
        public static int intReturn = 0;
        tb_Company Company = new tb_Company();
        tb_CompanyMenthod CompanyMenthod=new tb_CompanyMenthod();
        tb_JhGoodsInfoMenthod jhgood = new tb_JhGoodsInfoMenthod();
        public static int intFalg = 0; //控件状态

        /// 
        /// 控件状态
        /// 

        private void ControlStatus()
        {
            this.toolSave.Enabled = !this.toolSave.Enabled;
            this.toolAdd.Enabled = !this.toolAdd.Enabled;
            this.toolCancel.Enabled = !this.toolCancel.Enabled;
            this.toolAmend.Enabled = !this.toolAmend.Enabled;
            this.toolDelete.Enabled = !this.toolDelete.Enabled;
        }

        /// 
        /// 将控件恢复到原始状态
        /// 

        private void ClearControls()
        {

            txtCompanyDirector.Text = ““;
            txtCompanyAddress.Text = ““;
            txtCompanyFax.Text = ““;
            txtCompanyName.Text = ““;
            txtCompanyPhone.Text = ““;
            txtCompanyRemark.Text = ““;

        }

        private void toolAdd_Click(object sender EventArgs e)
        {
            ClearControls(); //清空控件内容
            ControlStatus(); //控件控制状态
            intFalg = 1; //添加标
        }

        private void toolAmend_Click(object sender EventArgs e)
        {
            ClearControls(); //清空控件内容
            ControlStatus(); //控件控制状态
            intFalg = 2; //修改标
        }

        private void toolDelete_Click(object sender EventArgs e)
        {
            ControlStatus(); //控件控制状态
            intFalg = 3; //修改标
        }

        private void toolCancel_Click(object sender EventArgs e)
        {
            ClearControls(); //清空控件内容
            ControlStatus(); //控件控制状态
        }

        private void toolSave_Click(object sender EventArgs e)
        {
            if (GetCount() == 1)
            {
                if (intFalg == 1)
                {
                    if (CompanyMenthod.tb_CompanyMenthodAdd(Company) == 1)
                    {
                        if ( intReturn == 1)
                        {
                            frmGonYingShang frmCop = (frmGonYingShang)this.Owner;
                            jhgood.fillProd(frmCop.treeView1 frmCop.imageList1);
                            ClearControls();
                            ControlStatus();
        

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      10554  2010-02-22 03:52  CHEXC\Backup\CHEXC\CHEXC.csproj

     文件       1767  2010-02-10 22:00  CHEXC\Backup\CHEXC\ClassInfo\tb_Company.cs

     文件       2686  2010-02-09 00:39  CHEXC\Backup\CHEXC\ClassInfo\tb_EmpInfo.cs

     文件       2750  2010-02-12 10:56  CHEXC\Backup\CHEXC\ClassInfo\tb_JhGoodsInfo.cs

     文件       2312  2010-02-12 14:38  CHEXC\Backup\CHEXC\ClassInfo\tb_KcGoods.cs

     文件       2362  2010-02-15 00:04  CHEXC\Backup\CHEXC\ClassInfo\tb_SellGoods.cs

     文件       2190  2010-02-22 01:52  CHEXC\Backup\CHEXC\ClassInfo\tb_ThGoodsInfo.cs

     目录          0  2010-06-02 13:32  CHEXC\Backup\CHEXC\ClassInfo

     文件       8979  2010-02-11 16:53  CHEXC\Backup\CHEXC\frmCompanyInfo.cs

     文件      20009  2010-02-11 01:30  CHEXC\Backup\CHEXC\frmCompanyInfo.Designer.cs

     文件      13390  2010-02-11 01:30  CHEXC\Backup\CHEXC\frmCompanyInfo.resx

     文件       2016  2010-02-11 17:27  CHEXC\Backup\CHEXC\frmDataBack.cs

     文件       5017  2010-02-11 17:27  CHEXC\Backup\CHEXC\frmDataBack.Designer.cs

     文件       6022  2010-02-11 17:27  CHEXC\Backup\CHEXC\frmDataBack.resx

     文件       3166  2010-02-14 23:58  CHEXC\Backup\CHEXC\frmDataReole.cs

     文件       4149  2010-02-14 23:58  CHEXC\Backup\CHEXC\frmDataReole.Designer.cs

     文件       6017  2010-02-14 23:58  CHEXC\Backup\CHEXC\frmDataReole.resx

     文件       1356  2010-02-22 03:58  CHEXC\Backup\CHEXC\frmEmp1.cs

     文件       4665  2010-02-22 03:58  CHEXC\Backup\CHEXC\frmEmp1.Designer.cs

     文件       9858  2010-02-22 03:58  CHEXC\Backup\CHEXC\frmEmp1.resx

     文件       1367  2010-02-22 03:48  CHEXC\Backup\CHEXC\frmEmpID.cs

     文件       4666  2010-02-22 03:48  CHEXC\Backup\CHEXC\frmEmpID.Designer.cs

     文件       9858  2010-02-16 02:30  CHEXC\Backup\CHEXC\frmEmpID.resx

     文件      10040  2010-02-16 02:11  CHEXC\Backup\CHEXC\frmEmpInfo.cs

     文件      24430  2010-02-11 01:31  CHEXC\Backup\CHEXC\frmEmpInfo.Designer.cs

     文件      12654  2010-02-11 01:31  CHEXC\Backup\CHEXC\frmEmpInfo.resx

     文件       1532  2010-02-14 23:58  CHEXC\Backup\CHEXC\frmFindGood.cs

     文件       7315  2010-02-14 23:58  CHEXC\Backup\CHEXC\frmFindGood.Designer.cs

     文件       7102  2010-02-14 23:58  CHEXC\Backup\CHEXC\frmFindGood.resx

     文件       1378  2010-02-12 12:15  CHEXC\Backup\CHEXC\frmGonYingShang.cs

............此处省略191个文件信息

评论

共有 条评论