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

代码片段和文件信息
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个文件信息
- 上一篇:asp.net留言板源代码(C#)
- 下一篇:asp.net 操作百度地图
相关资源
- ASP.NET实验室预约管理系统
- 020ASP.NET车辆综合管理系统.zip
- 基于c#的实验室设备管理系统621530
- c# 高校档案信息管理系统
- 用C#做的鲜花管理系统
- C#winfrom漂亮的登陆界面
- ASP.NET C# 工资管理系统
- 班级管理系统(C#实现)
- ASP.NET客户管理系统(毕业设计 C#
- 医院门诊管理系统 aspc#access数据库
- 医院业务管理系统(C#源代码)
- 学生信息管理系统(C# 控制台下)
- 酒店管理系统(c#.net源码)
- 图书管理系统-----------C# 版
- C#(Winfrom)窗体传值问题(子窗体回
- 海益ERP数据管理系统2.0源码
- C# 简单学生管理系统(附数据库)
- C#图书管理系统(源码+数据库)
- 宿舍管理系统(源码+数据库脚本)
- 开源版C#商场超市收银商品管理财务管
- 企业OA管理系统
- 门禁管理系统源码(设备设置、机构
- VS2019图书管理系统-C#
- 学生宿舍管理系统(毕业设计 C#实现
- C# 网吧管理系统源码(附数据库脚本
- 网吧管理系统(包附数据库)
-
winfrom中TreeView控件xm
l与树之间相互 - Keep100sec
- 班级考勤管理系统(源码+数据库)
- 书店销售管理系统(源码+数据库)
评论
共有 条评论