/// <summary> /// 得到数据库中对应项目的签名 /// </summary> /// <param name="p_strInPatientID">病人住院号</param> /// <param name="p_strInPatientDate">病人住院日期</param> /// <param name="p_altIdiographObject">需要查询签名对象集合(字符串类型)</param> public void m_mthGetIdiograph(string p_strInPatientID, string p_strInPatientDate, string p_strOpenDate, ArrayList p_altIdiographObject) { m_hasIdiographResult.Clear(); string strKey = m_strFormName + "_" + p_strInPatientID + "_" + p_strInPatientDate + "_" + p_strOpenDate; DataTable dtRecord = null; clsElectronIdiograph m_objElectronIdiograph = (clsElectronIdiograph)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsElectronIdiograph)); m_objElectronIdiograph.m_lngGetIdiographResultArry(strKey, ref dtRecord); if (dtRecord != null) { for (int i = 0; i < dtRecord.Rows.Count; i++) { for (int j = 0; j < p_altIdiographObject.Count; j++) { if (dtRecord.Rows[i]["SIGN_ID_VCHR"].ToString().ToUpper() == (strKey.ToUpper() + "_" + p_altIdiographObject[j].ToString().ToUpper())) { m_hasIdiographResult.Add(p_altIdiographObject[i].ToString(), dtRecord.Rows[i]["SIGN_DATA_VCHR"].ToString()); break; } } } } }
public long m_lngSaveIdiographResultArry(string p_strInPatientID, string p_strInPatientDate, string p_strOpenDate) { ArrayList altkey = new ArrayList(); ArrayList altIdiographResult = new ArrayList(); string[] strarrykey = new string[m_hasIdiographResult.Keys.Count]; m_hasIdiographResult.Keys.CopyTo(strarrykey, 0); for (int i = 0; i < strarrykey.Length; i++) { string strkey = m_strFormName + "_" + p_strInPatientID + "_" + p_strInPatientDate + "_" + p_strOpenDate + "_" + strarrykey[i]; string strIdiographResult = m_hasIdiographResult[strarrykey[i]].ToString(); altkey.Add(strkey); altIdiographResult.Add(strIdiographResult); } clsElectronIdiograph m_objElectronIdiograph = (clsElectronIdiograph)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsElectronIdiograph)); return(m_objElectronIdiograph.m_lngSaveIdiographResultArry(altkey, altIdiographResult)); }