private void btn_StateMan_createPO_Click(object sender, EventArgs e)
        {
            PML_CreatePO openCreatePO = new PML_CreatePO();

            openCreatePO.Show();
            this.Hide();
        }
Example #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            PML_CreatePO openCreatePO = new PML_CreatePO();

            openCreatePO.Show();
            this.Hide();
        }
        public void dataGridView1_Click(object sender, EventArgs e)
        {
            a = dataGridView1.CurrentRow.Cells[5].Value.ToString();

            PML_CreatePO createPO = new PML_CreatePO();

            createPO.Show();

            PML_CreatePO.priceAmount = a;
            MessageBox.Show(PML_CreatePO.priceAmount);
        }
Example #4
0
        private void Dgv_draft_tbl_DoubleClick(object sender, EventArgs e)
        {
            PML_CreatePO pml_create_po = new PML_CreatePO();


            //if (dgv_draft_tbl.CurrentRow.Index != -1)
            //{
            pml_create_po.orderId              = Convert.ToInt32(dgv_draft_tbl.CurrentRow.Cells[0].Value.ToString());
            pml_create_po.txt_refNo.Text       = dgv_draft_tbl.CurrentRow.Cells[1].Value.ToString();
            pml_create_po.cb_material.Text     = dgv_draft_tbl.CurrentRow.Cells[2].Value.ToString();
            pml_create_po.txt_Description.Text = dgv_draft_tbl.CurrentRow.Cells[3].Value.ToString();
            pml_create_po.cb_supplier.Text     = dgv_draft_tbl.CurrentRow.Cells[4].Value.ToString();
            pml_create_po.txt_price.Text       = dgv_draft_tbl.CurrentRow.Cells[5].Value.ToString();
            pml_create_po.txt_qty.Text         = dgv_draft_tbl.CurrentRow.Cells[6].Value.ToString();
            pml_create_po.cmb_site.Text        = dgv_draft_tbl.CurrentRow.Cells[7].Value.ToString();
            //}

            MessageBox.Show(pml_create_po.txt_refNo.Text);
            pml_create_po.ShowDialog();
        }