private void 新建单据ToolStripMenuItem_Click(object sender, EventArgs e) { m_lnqQuality = null; 质量问题整改处置明细 form = new 质量问题整改处置明细(""); form.ShowDialog(); m_lnqQuality = form.LnqQualityProblem; RefreshDataGirdView(m_serverQualityProblem.GetAllBill(checkBillDateAndStatus1.dtpStartTime.Value, checkBillDateAndStatus1.dtpEndTime.Value, checkBillDateAndStatus1.cmbBillStatus.Text)); PositioningRecord(m_lnqQuality.Bill_ID); }
public 质量问题整改处置明细(string billID) { InitializeComponent(); ClearMessage(); if (billID == "") { lbBill_ID.Text = m_serverQualityProblem.GetBillID("质量整改处置单"); lbBillStatus.Text = "新建单据"; } else { m_lnqQualityProblem = m_serverQualityProblem.GetQualityProblemMessage(billID); SetMessage(); } //if (lbBillStatus.Text != "等待分析判定") //{ // txtInterimMeasure.Enabled = false; // chbInterimMeasureIsNeedTesting.Enabled = false; // btnInterimMeasureFileUp.Enabled = false; // txtAnalyseAndJudge.Enabled = false; // chbAnalyseAndJudgeIsNeedAffirm.Enabled = false; // btnAnalyseAndJudgeFileUp.Enabled = false; // txtRelevantDepartment.Enabled = false; // dtpRequiredTime.Enabled = false; //} //if (lbBillStatus.Text != "等待整改措施") //{ // txtCauseAnalysis.Enabled = false; // chbCauseAnalysisIsNeedTesting.Enabled = false; // btnCauseAnalysisFileUp.Enabled = false; // txtRectificationMeasures.Enabled = false; // chbRectificationMeasuresIsNeedChange.Enabled = false; // btnRectificationMeasuresFileUp.Enabled = false; //} }
private void dataGridView1_DoubleClick(object sender, EventArgs e) { if (dataGridView1.Rows.Count == 0) { return; } if (dataGridView1.CurrentRow.Cells["单据号"].Value.ToString() == "") { return; } m_lnqQuality = null; 质量问题整改处置明细 form = new 质量问题整改处置明细(dataGridView1.CurrentRow.Cells["单据号"].Value.ToString()); form.ShowDialog(); m_lnqQuality = form.LnqQualityProblem; RefreshDataGirdView(m_serverQualityProblem.GetAllBill(checkBillDateAndStatus1.dtpStartTime.Value, checkBillDateAndStatus1.dtpEndTime.Value, checkBillDateAndStatus1.cmbBillStatus.Text)); PositioningRecord(m_lnqQuality.Bill_ID); }