frmGoodID.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CHEXC.GoodMenhod;
using CHEXC.ClassInfo;
namespace CHEXC
{
public partial class frmGoodID : Form
{
public frmGoodID()
{
InitializeComponent();
}
tb_SellGoodsMenthod tbsell = new tb_SellGoodsMenthod();
private void frmGoodID_Load(object sender, EventArgs e)
{
tbsell.filltProd(treeView1,imageList1);
}
//添加商品信息
private void button1_Click(object sender, EventArgs e)
{
frmJhGoodsInfo JhGoods = new frmJhGoodsInfo(1);
JhGoods.Owner = this;
JhGoods.ShowDialog();
}
private void button2_Click(object sender, EventArgs e)
{
if (treeView1.SelectedNode.Text != "商品名称")
{
if (treeView1.SelectedNode.Parent.Text != "商品名称")
{
frmSellGoods selld = (frmSellGoods)this.Owner;
string strName = treeView1.SelectedNode.Text;
selld.txtGoodsName.Text =strName;
selld.kcId = tbsell.fillfrmKcGoods(treeView1.SelectedNode.Parent.Text);
selld.GoodId = treeView1.SelectedNode.Parent.Text.ToString();
this.Close();
}
else
{
MessageBox.Show("选择商品名称");
}
}
}
private void button3_Click(object sender, EventArgs e)
{
this.Close();
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
