没有合适的资源?快使用搜索试试~ 我知道了~
模块代码
需积分: 9 4 下载量 92 浏览量
2008-04-30
17:33:59
上传
评论
收藏 9KB TXT 举报
温馨提示
![preview](https://dl-preview.csdnimg.cn/txt_preview/436803/436803_thumbnail_1.jpg?x-oss-process=style/thumbnail)
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
试读
8页
2222222222225555555555
资源推荐
资源详情
资源评论
![text/plain](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![html](https://img-home.csdnimg.cn/images/20210720083451.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace 餐饮管理系统
{
public partial class 增加消费 : Form
{
string CurrentAccount = Program.Admin;
float Discount = 1;
string no;
Boolean Exist;
public 增加消费(string no,Boolean Exist)
{
InitializeComponent();
this.no = no;
this.Exist = Exist;
}
private void GetTree()
{
DataTable BigClass = Program.DBOpertor.GetBigClass();
DataTable SmallClass;
string SBigClass;
int i,j;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace 餐饮管理系统
{
public partial class 增加消费 : Form
{
string CurrentAccount = Program.Admin;
float Discount = 1;
string no;
Boolean Exist;
public 增加消费(string no,Boolean Exist)
{
InitializeComponent();
this.no = no;
this.Exist = Exist;
}
private void GetTree()
{
DataTable BigClass = Program.DBOpertor.GetBigClass();
DataTable SmallClass;
string SBigClass;
int i,j;
ProjectTreeView.BeginUpdate();
for (i = 0; i < BigClass.Rows.Count; i++)
{
SBigClass=BigClass.Rows[i]["食品类别"].ToString();
ProjectTreeView.Nodes.Add(SBigClass);
SmallClass = Program.DBOpertor.GetSmallClass(SBigClass);
for (j = 0; j < SmallClass.Rows.Count; j++)
ProjectTreeView.Nodes[i].Nodes.Add(SmallClass.Rows[j]["项目名称"].ToString()+" ¥"+SmallClass.Rows[j]["单价"].ToString());
}
ProjectTreeView.EndUpdate();
}
private void 增加消费_Load(object sender, EventArgs e)
{
// TODO: 这行代码将数据加载到表“dieteticManagementDataSet.餐牌”中。您可以根据需要移动或移除它。
this.餐牌TableAdapter.Fill(this.dieteticManagementDataSet.餐牌);
GetTree();
if (Exist)
{
string[] Column ={ "餐台号" };
string[] data ={ this.no };
string[] sdata = new string[10];
string ColorClass;
DataTable Dtable = Program.DBOpertor.Select("开单", Column, data).Tables[0];
for (int i = 0; i < Dtable.Rows.Count; i++)
{
sdata[0] = Dtable.Rows[i]["编号"].ToString();
sdata[1] = Dtable.Rows[i]["餐台号"].ToString();
sdata[2] = Dtable.Rows[i]["项目名称"].ToString();
sdata[3] = Dtable.Rows[i]["单价"].ToString();
for (i = 0; i < BigClass.Rows.Count; i++)
{
SBigClass=BigClass.Rows[i]["食品类别"].ToString();
ProjectTreeView.Nodes.Add(SBigClass);
SmallClass = Program.DBOpertor.GetSmallClass(SBigClass);
for (j = 0; j < SmallClass.Rows.Count; j++)
ProjectTreeView.Nodes[i].Nodes.Add(SmallClass.Rows[j]["项目名称"].ToString()+" ¥"+SmallClass.Rows[j]["单价"].ToString());
}
ProjectTreeView.EndUpdate();
}
private void 增加消费_Load(object sender, EventArgs e)
{
// TODO: 这行代码将数据加载到表“dieteticManagementDataSet.餐牌”中。您可以根据需要移动或移除它。
this.餐牌TableAdapter.Fill(this.dieteticManagementDataSet.餐牌);
GetTree();
if (Exist)
{
string[] Column ={ "餐台号" };
string[] data ={ this.no };
string[] sdata = new string[10];
string ColorClass;
DataTable Dtable = Program.DBOpertor.Select("开单", Column, data).Tables[0];
for (int i = 0; i < Dtable.Rows.Count; i++)
{
sdata[0] = Dtable.Rows[i]["编号"].ToString();
sdata[1] = Dtable.Rows[i]["餐台号"].ToString();
sdata[2] = Dtable.Rows[i]["项目名称"].ToString();
sdata[3] = Dtable.Rows[i]["单价"].ToString();
剩余7页未读,继续阅读
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
chenjiaxiang
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)