private void toolStripButton2_Click(object sender, EventArgs e)
        {
            ProductionNew.CreateReportProduction c = new CreateReportProduction();
            c.StartPosition = FormStartPosition.CenterScreen;
            c.ShowDialog();

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

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

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

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