/// <summary> /// 根据流水号进行药房入帐 /// </summary> /// <param name="m_lngAskSeqid">请领主表序列</param> public void m_mthDrugStoreInAccount(long m_lngAskSeqid) { try { if (this.m_objViewer.m_dgvOutStorageMain.SelectedRows.Count == 0) { return; } clsDS_Instorage_VO m_objMainVo = null; m_objMainVo = this.m_objGetMainISVO(); long lngResult = -1; lngResult = m_objDomain.m_lngInAccountAskInfo(m_lngAskSeqid, this.m_objViewer.LoginInfo.m_strEmpID, m_objMainVo.m_strINDRUGSTOREID_VCHR, m_objMainVo.m_strDRUGSTOREID_INT); if (lngResult > 0) { MessageBox.Show("入帐成功!", "药房请领提示", MessageBoxButtons.OK, MessageBoxIcon.Information); for (int i = 0; i < this.m_objViewer.m_dgvAskMedMain.Rows.Count; i++) { if (this.m_objViewer.m_dgvAskMedMain.Rows[i].Cells["m_txtSeq"].Value.ToString() == m_lngAskSeqid.ToString()) { this.m_objViewer.m_dgvAskMedMain.Rows[i].Cells["m_txtStatus"].Value = "入帐"; break; } } this.m_objViewer.m_dgvOutStorageMain.SelectedRows[0].Cells["m_txtAskStausName"].Value = "入帐"; this.m_objViewer.m_dgvOutStorageMain.SelectedRows[0].Cells["m_txtStatus_int"].Value = 5; this.m_objViewer.m_dgvOutStorageMain.SelectedRows[0].DefaultCellStyle.ForeColor = System.Drawing.Color.Magenta; this.m_objViewer.m_btnReturn.PerformClick(); } else { MessageBox.Show("入帐失败!", "药房请领提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } } catch (Exception ex) { MessageBox.Show(ex.Message, "药房请领提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } }