Exemplo n.º 1
0
        private void DgvHead_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (DgvHead.SelectedRows[0].Cells[12].Value.ToString() == "ยกเลิก")
            {
                MessageBox.Show("รายการนี้ถูกยกเลิกไม่สามารถแก้ไขได้ กรุณาเพิ่มรายการใหม่");
                return;
            }
            try
            {
                if (DgvHead.Rows.Count <= 0) return;

                string HeadId = DgvHead.Rows[e.RowIndex].Cells["PmwHeadId"].Value.ToString();

                ProductionNew.CreateMakingNetsWage c = new CreateMakingNetsWage(HeadId);
                c.StartPosition = FormStartPosition.CenterScreen;
                c.ShowDialog();

                if (c.DialogResult == DialogResult.OK)
                {
                    LoadFirst();
                }
            }
            catch { }
        }
Exemplo n.º 2
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            ProductionNew.CreateMakingNetsWage c = new CreateMakingNetsWage();
            c.StartPosition = FormStartPosition.CenterScreen;
            c.ShowDialog();

            if (c.DialogResult == DialogResult.OK)
            {
                LoadFirst();
            }
        }