private void dataGridView1_DoubleClick(object sender, EventArgs e) { m_strDJH = dataGridView1.CurrentRow.Cells["单据号"].Value.ToString(); if (m_strDJH != "" || m_strDJH != null) { 样品确认申请单清单 form = new 样品确认申请单清单(m_strDJH); form.ShowDialog(); m_lnqAffirm = form.LnqMuster; m_dtData = m_serverMuster.GetAllBill(); RefrshDate(null, null); PositioningRecord(m_lnqAffirm.DJH); } }
private void 新建单据ToolStripMenuItem_Click(object sender, EventArgs e) { 样品确认申请单清单 form = new 样品确认申请单清单(""); form.ShowDialog(); m_lnqAffirm = form.LnqMuster; m_dtData = m_serverMuster.GetAllBill(); RefrshDate(null, null); if (m_lnqAffirm == null || m_lnqAffirm.DJH == null) { return; } PositioningRecord(m_lnqAffirm.DJH); }