Ejemplo n.º 1
0
 private void btnsave_Click(object sender, EventArgs e)
 {
     if (tv.SelectedNode.Text != "")
     {
         FrmGoodsInManage jhGood = (FrmGoodsInManage)this.Owner;
         //jhGood.txtJhCompName.Text = tv.SelectedNode.Text;
         this.Close();
     }
     else
     {
         MessageBox.Show("选择供应商信息");
     }
 }
Ejemplo n.º 2
0
        private void btnsave_Click(object sender, EventArgs e)
        {
            if (tv.SelectedNode.Text != "")
            {
                if (opertype == 1)
                {
                    //进货界面
                    FrmGoodsInManage frm = (FrmGoodsInManage)this.Owner;
                    frm.txtGoodsName.Text    = tv.SelectedNode.Text;
                    frm.txtGoodsName.Enabled = false;
                    frm.goodsId          = Convert.ToInt32(tv.SelectedNode.Tag.ToString().Split(',')[0]);
                    frm.unitId           = Convert.ToInt32(tv.SelectedNode.Tag.ToString().Split(',')[1]);
                    frm.lblUnitName.Text = frm.dickeys[frm.unitId].KeyName;
                    this.Close();
                }
                else if (opertype == 2)
                {
                    FrmGoodsSales frm = (FrmGoodsSales)this.Owner;
                    frm.txtGoodsName.Text    = tv.SelectedNode.Text;
                    frm.txtGoodsName.Enabled = false;
                    frm.goodsId          = Convert.ToInt32(tv.SelectedNode.Tag.ToString().Split(',')[0]);
                    frm.unitId           = Convert.ToInt32(tv.SelectedNode.Tag.ToString().Split(',')[1]);
                    frm.lblUnitName.Text = frm.dickeys[frm.unitId].KeyName;
                    this.Close();
                }
                else if (opertype == 3)
                {
                    FrmStockWarn frm = (FrmStockWarn)this.Owner;
                    frm.txtGoodsName.Text    = tv.SelectedNode.Text;
                    frm.txtGoodsName.Enabled = false;

                    frm.goodId          = Convert.ToInt32(tv.SelectedNode.Tag.ToString().Split(',')[0]);
                    frm.txtWarnNum.Text = tv.SelectedNode.Tag.ToString().Split(',')[2];
                    this.Close();
                }
            }
            else
            {
                MessageBox.Show("请选择商品信息");
            }
        }
Ejemplo n.º 3
0
 private void tsGoodsAdd_Click(object sender, EventArgs e)
 {
     FrmGoodsInManage frm = new FrmGoodsInManage();
     frm.Show();
 }