Beispiel #1
0
        private void tsbtn_POEdit_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count != 0)
            {
                FrmNEPurchaseOrder fnepo = new FrmNEPurchaseOrder();
                fnepo.po = 1;

                fnepo.poid                = dataGridView1.SelectedCells[0].Value.ToString().Trim();
                fnepo.pogsupplier         = dataGridView1.SelectedCells[1].Value.ToString().Trim();
                fnepo.podate              = dataGridView1.SelectedCells[2].Value.ToString().Trim();
                fnepo.pogid               = dataGridView1.SelectedCells[3].Value.ToString().Trim();
                fnepo.pogname             = dataGridView1.SelectedCells[4].Value.ToString().Trim();
                fnepo.pogcid              = dataGridView1.SelectedCells[5].Value.ToString().Trim();
                fnepo.pogunit             = dataGridView1.SelectedCells[6].Value.ToString().Trim();
                fnepo.pogbid              = dataGridView1.SelectedCells[7].Value.ToString().Trim();
                fnepo.pogprice            = dataGridView1.SelectedCells[8].Value.ToString().Trim();
                fnepo.poamount            = dataGridView1.SelectedCells[9].Value.ToString().Trim();
                fnepo.pogminimuminventory = dataGridView1.SelectedCells[10].Value.ToString().Trim();
                fnepo.pogshelflife        = dataGridView1.SelectedCells[11].Value.ToString().Trim();
                fnepo.pogproductiondate   = dataGridView1.SelectedCells[12].Value.ToString().Trim();
                fnepo.pognotes            = dataGridView1.SelectedCells[13].Value.ToString().Trim();
                fnepo.id = dataGridView1.SelectedCells[14].Value.ToString().Trim();

                fnepo.Show();
            }
            else
            {
                MessageBox.Show("请选择要修改的数据!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Beispiel #2
0
        private void btn_Replenishment_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedCells.Count > 0)
            {
                FrmNEPurchaseOrder fnepo = new FrmNEPurchaseOrder();
                fnepo.po = 1;
                //fnepo.pogid = pobh;
                fnepo.pogname             = dataGridView1.SelectedCells[1].Value.ToString().Trim();
                fnepo.pogcid              = dataGridView1.SelectedCells[2].Value.ToString().Trim();
                fnepo.pogprice            = dataGridView1.SelectedCells[3].Value.ToString().Trim();
                fnepo.pogbid              = dataGridView1.SelectedCells[4].Value.ToString().Trim();
                fnepo.pogminimuminventory = dataGridView1.SelectedCells[6].Value.ToString().Trim();
                fnepo.pogsupplier         = dataGridView1.SelectedCells[7].Value.ToString().Trim();

                fnepo.podate            = DateTime.Now.ToString();
                fnepo.pogshelflife      = "个月";
                fnepo.pogproductiondate = DateTime.Now.ToString();
                fnepo.Show();
            }
            else
            {
                MessageBox.Show("暂时没有缺货商品!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                dgBindData();
            }
        }
Beispiel #3
0
        private void tsbtn_POAdd_Click(object sender, EventArgs e)
        {
            FrmNEPurchaseOrder fnepo = new FrmNEPurchaseOrder();

            fnepo.po = 0;
            fnepo.Show();
        }