internal void LoadTheDate() { this.m_objViewer.m_dtvAreaList.Rows.Clear(); DataTable m_dtItem; long lngRes = m_objInputOrder.m_lngFindSendArea(this.m_objViewer.m_strAreaID, out m_dtItem); for (int i = 0; i < m_dtItem.Rows.Count; i++) { //a.SEQ_INT,a.put_dat,b.deptid_chr,b.deptname_vchr,b.code_vchr this.m_objViewer.m_dtvAreaList.Rows.Add(); DataGridViewRow row = this.m_objViewer.m_dtvAreaList.Rows[this.m_objViewer.m_dtvAreaList.Rows.Count - 1]; row.Cells["No"].Value = Convert.ToString(i + 1); row.Cells["m_dtvAreaCode"].Value = m_dtItem.Rows[0]["code_vchr"].ToString().Trim(); row.Cells["m_dtvAreaName"].Value = m_dtItem.Rows[0]["deptname_vchr"].ToString().Trim(); row.Cells["m_dtvAreaId"].Value = m_dtItem.Rows[0]["deptid_chr"].ToString().Trim(); row.Cells["m_dtvfinishtime"].Value = m_dtItem.Rows[0]["put_dat"].ToString().Trim(); } }
internal void sendTheBill() { IPutMadicine madicine; ArrayList m_arrRegisterid = getListArray(); madicine = PutMadicineFactory.GetInstance(); long ret = madicine.CreatePutMedDetail(m_arrRegisterid, this.m_objViewer.LoginInfo.m_strEmpID); if (ret > 0) { bool ifAll = madicine.IsAllPatSend((string)this.m_objViewer.m_txtArea.Tag); if (ifAll) { string m_strAreaID = ""; if (this.m_objViewer.m_txtArea.Tag != null) { m_strAreaID = (string)this.m_objViewer.m_txtArea.Tag; } if (!m_strAreaID.Equals("")) { DataTable m_dtItem = new DataTable(); long lngRes = m_objInputOrder.m_lngFindSendArea(m_strAreaID, out m_dtItem); if (m_dtItem.Rows.Count == 0) { lngRes = madicine.GetAreaComplete(m_strAreaID, out m_dtItem); if (m_dtItem.Rows.Count == 0) { if (MessageBox.Show("病区病人全部发送完毕,是否置全区摆药标志? ", "提示框!", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes) { madicine = PutMadicineFactory.GetInstance(); ret = madicine.SetAreaComplete(m_strAreaID, this.m_objViewer.LoginInfo.m_strEmpID, this.m_objViewer.LoginInfo.m_strEmpName); } } } } } } LoadTheDate(); }