Ejemplo n.º 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (treeView1.SelectedNode.Text != "商品名称")
     {
         if (treeView1.SelectedNode.Parent.Text != "商品名称")
         {
             if (this.Owner is frmSellGoodInfo)
             {
                 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 if (this.Owner is frmJhGoodsInfo)
             {
                 frmJhGoodsInfo jh      = (frmJhGoodsInfo)this.Owner;
                 string         strName = treeView1.SelectedNode.Text;
                 jh.txtGoodsName.Text = strName;
                 this.Close();
             }
         }
         else
         {
             MessageBox.Show("选择商品名称");
         }
     }
 }
Ejemplo n.º 2
0
        private void menuSellGoods_Click(object sender, EventArgs e)
        {
            //商品销售信息
            frmSellGoods frmSell = new frmSellGoods();

            frmSell.Owner = this;
            frmSell.ShowDialog();
        }
Ejemplo n.º 3
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (treeView1.SelectedNode.Text != "")
     {
         frmSellGoods sellGood = (frmSellGoods)this.Owner;
         sellGood.txtEmpID.Text = treeView1.SelectedNode.Text;
         this.Close();
     }
     else
     {
         MessageBox.Show("选择员工信息");
     }
 }
Ejemplo n.º 4
0
        private void menuSellGoods_Click(object sender, EventArgs e)
        {
            //商品销售信息

            /*frmSellGoods frmSell = new frmSellGoods();
             * frmSell.Owner = this;
             * frmSell.ShowDialog();*/
            frmSellGoods delmember = new frmSellGoods();

            delmember.TopLevel  = false;
            delmember.MdiParent = this;
            delmember.Show();
        }