Ejemplo n.º 1
0
        //完成盘点
        private void toolTakeDone_Click(object sender, EventArgs e)
        {
            if (dgv.CurrentCell == null)
            {
                BathClass.printErrorMsg("没有选择行!");
                return;
            }

            //仓库  名称 上月结存 本月进货 本月出货 销售消耗 本月盘点损耗  现有库存
            string name   = dgv.CurrentRow.Cells[1].Value.ToString();
            string stock  = dgv.CurrentRow.Cells[0].Value.ToString();
            double amount = Convert.ToDouble(dgv.CurrentRow.Cells[7].Value);
            var    form   = new PanForm(db, name, stock, amount);

            form.ShowDialog();

            dgv_show();
        }
Ejemplo n.º 2
0
        //完成盘点
        private void toolTakeDone_Click(object sender, EventArgs e)
        {
            if (dgv.CurrentCell == null)
            {
                BathClass.printErrorMsg("没有选择行!");
                return;
            }

            //仓库  名称 上月结存 本月进货 本月出货 销售消耗 本月盘点损耗  现有库存
            string name = dgv.CurrentRow.Cells[1].Value.ToString();
            string stock = dgv.CurrentRow.Cells[0].Value.ToString();
            double amount = Convert.ToDouble(dgv.CurrentRow.Cells[7].Value);
            var form = new PanForm(db, name, stock, amount);
            form.ShowDialog();

            dgv_show();
        }