private void DgvHead_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (DgvHead.Rows.Count <= 0) return;
            if (DgvHead.SelectedRows.Count <= 0) return;

            if (from == 1)
            {
                string OutstandingId = DgvHead.SelectedRows[0].Cells["OutstandingId"].Value.ToString();
                //string FmId = DgvHead.SelectedRows[0].Cells["FmId"].Value.ToString();

                ProductionNew.ProductionOutstanding m = new ProductionOutstanding(OutstandingId, "", DgvHead.SelectedRows[0].Cells["statusid"].Value.ToString());
                m.StartPosition = FormStartPosition.CenterScreen;
                m.ShowDialog();
                if (m.DialogResult == DialogResult.OK) {
                    LoadData("");
                }
            }
            else
            {
                string OutstandingFailId = DgvHead.SelectedRows[0].Cells["OutstandingFailId"].Value.ToString();

                ProductionNew.ProductionOutstandingFail m = new ProductionOutstandingFail(OutstandingFailId);
                m.StartPosition = FormStartPosition.CenterScreen;
                m.ShowDialog();
                if (m.DialogResult == DialogResult.OK)
                {
                    DgvItem.DataSource = null;
                    loadFailDetail();
                }
            }
        }
 private void toolStripLabelOutstandingReapir_Click(object sender, EventArgs e)
 {
     ProductionNew.ProductionOutstandingFail a = new ProductionOutstandingFail();
     a.StartPosition = FormStartPosition.CenterScreen;
     a.ShowDialog();
     if (a.DialogResult == DialogResult.OK) {
         DgvItem.DataSource = null;
         LoadDataFail();
     }
 }