/// <summary> /// 根据流水号获取签名集合 /// </summary> /// <param name="p_objPrincipal"></param> /// <param name="p_lngSequence">流水号</param> /// <param name="p_dtbValue">返回列表</param> /// <returns></returns> public long m_lngGetSignBySequence(long p_lngSequence, out clsEmrSigns_VO[] p_objSignsArr) { //初始化 long lngRes = 0; p_objSignsArr = null; clsSignature_srv objSvc = new clsSignature_srv(); try { DataTable dtbValue = new DataTable(); lngRes = objSvc.m_lngGetSignBySequence(null, p_lngSequence, out dtbValue); int intSignCount = dtbValue.Rows.Count; //从DataTable.Rows中获取结果 if (lngRes > 0) { p_objSignsArr = new clsEmrSigns_VO[intSignCount]; for (int i = 0; i < intSignCount; i++) { p_objSignsArr[i] = new clsEmrSigns_VO(); p_objSignsArr[i].objEmployee = new clsEmrEmployeeBase_VO(); p_objSignsArr[i].objEmployee.m_strEMPID_CHR = dtbValue.Rows[i]["empid_vchr"].ToString(); p_objSignsArr[i].objEmployee.m_strLASTNAME_VCHR = dtbValue.Rows[i]["lastname_vchr"].ToString(); p_objSignsArr[i].objEmployee.m_strEMPNO_CHR = dtbValue.Rows[i]["empno_chr"].ToString(); p_objSignsArr[i].objEmployee.m_strTECHNICALRANK_CHR = dtbValue.Rows[i]["technicalrank_chr"].ToString(); p_objSignsArr[i].objEmployee.m_strLEVEL_CHR = dtbValue.Rows[i]["technicallevel_chr"].ToString(); p_objSignsArr[i].objEmployee.m_strEMPPWD_VCHR = dtbValue.Rows[i]["psw_chr"].ToString(); p_objSignsArr[i].objEmployee.m_strEMPKEY_VCHR = dtbValue.Rows[i]["digitalsign_dta"].ToString(); p_objSignsArr[i].objEmployee.m_strPYCODE_VCHR = dtbValue.Rows[i]["pycode_chr"].ToString(); p_objSignsArr[i].objEmployee.m_intSTATUS_INT = dtbValue.Rows[i]["status_int"] == DBNull.Value ? 1 : int.Parse(dtbValue.Rows[i]["status_int"].ToString()); p_objSignsArr[i].controlName = dtbValue.Rows[i]["CAGETORY_VCHR"].ToString(); p_objSignsArr[i].m_strFORMID_VCHR = dtbValue.Rows[i]["FORMNAME_VCHR"].ToString(); p_objSignsArr[i].m_strREGISTERID_CHR = dtbValue.Rows[i]["REGISTERID_VCHR"].ToString(); } } } catch (Exception objEx) { com.digitalwave.Utility.clsLogText objLogger = new com.digitalwave.Utility.clsLogText(); bool blnRes = objLogger.LogError(objEx); } finally { //objSvc.Dispose(); } //返回 return(lngRes); }
/// <summary> /// Print /// </summary> void Print() { if (this.dtpOpDate.Tag == null) { MessageBox.Show("手术申请还未保存,不能打印。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } DataRow dr = this.dtpOpDate.Tag as DataRow; clsSchedulingPrintTool print = new clsSchedulingPrintTool(); clsOperation operation = new clsOperation(); clsOperationRequisition prtVo = new clsOperationRequisition(); clsPatientBaseInfo_VO pVo = new clsPatientBaseInfo_VO(); #region prtVo if (dr["approval_date"] != DBNull.Value) { prtVo.m_dtConfirmdat_dat = Convert.ToDateTime(dr["approval_date"]); prtVo.m_intIfconfirm = 1; prtVo.m_intIfConfirm = 1; prtVo.m_intIscomfim_int = 1; } prtVo.m_dtmApplyOperationDate = dr["operationdate_dat"] == DBNull.Value ? DateTime.Now : Convert.ToDateTime(dr["operationdate_dat"]); // Convert.ToDateTime("2016-11-10 10:10:00"); prtVo.m_dtmNoticeDate = Convert.ToDateTime(this.lblNoticeDate.Text); prtVo.m_dtmOperationDate = prtVo.m_dtmApplyOperationDate; //Convert.ToDateTime(dr["operationdate_dat"]); prtVo.m_dtmOperationEnd = prtVo.m_dtmOperationDate; // Convert.ToDateTime(""); prtVo.m_dtmInPatientDate = dr["inpatientdate_dat"] == DBNull.Value ? DateTime.Now : Convert.ToDateTime(dr["inpatientdate_dat"]); prtVo.m_dtmCreateDate = Convert.ToDateTime(dr["opendate_dat"]); //prtVo.m_dtmDeActivedDate = Convert.ToDateTime("2016-11-12 10:10:00"); prtVo.m_dtmModifyDate = dr["modifydate_dat"] == DBNull.Value ? DateTime.Now : Convert.ToDateTime(dr["modifydate_dat"]); prtVo.m_dtmOpenDate = Convert.ToDateTime(dr["opendate_dat"]); prtVo.m_dtmOperationEnd = prtVo.m_dtmOpenDate; //Convert.ToDateTime("2016-11-12 10:10:00"); prtVo.m_intBacterium = 0; prtVo.m_intEmergency = dr["isemergency_int"] == DBNull.Value ? 0 : Convert.ToInt32(dr["isemergency_int"]); prtVo.m_intFrom_int = dr["from_int"] == DBNull.Value ? 0 : Convert.ToInt32(dr["from_int"]); prtVo.m_intIsContinuedOperation = dr["iscontinuedoperation_int"] == DBNull.Value ? 0 : Convert.ToInt32(dr["iscontinuedoperation_int"]); prtVo.m_intISMINIINVASIVE = dr["isminiinvasive_int"] == DBNull.Value ? 0 : Convert.ToInt32(dr["isminiinvasive_int"]); prtVo.m_intIsOperationICF = dr["issignedicf"] == DBNull.Value ? 0 : Convert.ToInt32(dr["issignedicf"]); prtVo.m_strAge_vchr = dr["age_vchr"].ToString(); prtVo.m_strAnadeptid_chr = dr["anadeptid_chr"].ToString(); prtVo.m_strAnaMode = dr["anamode_chr"].ToString(); prtVo.m_strBedno_vchr = dr["bedno_vchr"].ToString(); prtVo.m_strConfirmid_vchr = dr["confirmid_vchr"].ToString(); prtVo.m_strContinuedoperation_vchr = dr["continuedoperation_vchr"].ToString(); prtVo.m_strDeptID = dr["deptid_chr"].ToString(); prtVo.m_strDiagnose = dr["preoperativediagnosis_chr"].ToString(); //prtVo.m_strDiagnoseicd10_vchr = dr[""].ToString(); prtVo.m_strDiseaseName = dr["diseasename_chr"].ToString(); prtVo.m_strEmergency = dr["emergency_chr"].ToString(); if (dr["isisolated_int"] != DBNull.Value) { if (dr["isisolated_int"].ToString() == "1") { prtVo.m_strIsOlationIndicator = "正常"; } else if (dr["isisolated_int"].ToString() == "2") { prtVo.m_strIsOlationIndicator = "隔离"; } else if (dr["isisolated_int"].ToString() == "3") { prtVo.m_strIsOlationIndicator = "放射"; } } //prtVo.m_strOperationcode_vchr = dr[""].ToString(); prtVo.m_strOperationName = dr["operationname_chr"].ToString(); prtVo.m_strOperationPart = dr["operationpart_chr"].ToString(); prtVo.m_strOperationRoomID = dr["operationroomid_chr"].ToString(); //prtVo.m_strOperationRoomName = dr[""].ToString(); //prtVo.m_strOperationScale = dr[""].ToString(); //prtVo.m_strORDERID_CHR = dr[""].ToString(); prtVo.m_strPatientname_vchr = dr["patientname_vchr"].ToString(); prtVo.m_strRemark = dr["remark_chr"].ToString(); prtVo.m_strRollbackreason = dr["rollbackreason"].ToString(); //prtVo.m_strSequence = dr["signsequence_int"].ToString(); prtVo.m_strSex_vchr = dr["sex_vchr"].ToString(); prtVo.m_strSpecialCase = dr["specialcase_chr"].ToString(); prtVo.m_strVisitor = dr["visitor_chr"].ToString(); prtVo.m_strWeight = dr["weight_chr"].ToString(); prtVo.strOPENDATEOriginal = dr["opendate_dat"].ToString(); clsBIHOrderService svc = new clsDcl_GetSvcObject().m_GetOrderSvcObject(); DataTable dtSign = svc.GetOpRecordSign(Convert.ToDecimal(dr["signsequence_int"])); if (dtSign != null && dtSign.Rows.Count > 0) { string doctType = string.Empty; string doctName = string.Empty; clsEmrSigns_VO signVo = null; prtVo.objSignerArr = new List <clsEmrSigns_VO>(); //new clsEmrSigns_VO[dtSign.Rows.Count];//List<clsEmrSigns_VO>(); //for (int j = 0; j < dtSign.Rows.Count; j++) //{ // doctType = dtSign.Rows[j]["tag_chr"].ToString().Trim(); // doctName = dtSign.Rows[j]["employeename_chr"].ToString().Trim(); // prtVo.objSignerArr[j]. //} foreach (DataRow dr2 in dtSign.Rows) { if (dr2["tag_chr"] != DBNull.Value && dr2["employeename_chr"] != DBNull.Value) { doctType = dr2["tag_chr"].ToString().Trim(); doctName = dr2["employeename_chr"].ToString().Trim(); signVo = new clsEmrSigns_VO(); signVo.controlName = doctType; signVo.objEmployee = new clsEmrEmployeeBase_VO(); signVo.objEmployee.m_strLASTNAME_VCHR = doctName; prtVo.objSignerArr.Add(signVo); } } } #endregion #region patVo pVo.m_datBirthDate = patVo.m_dtBorn; pVo.m_datEmrInPatientDate = patVo.m_dtInHospital; pVo.m_datInPatientDate = patVo.m_dtInHospital; pVo.m_intInPatientCount = 1; pVo.m_strAge = patVo.m_strAge; pVo.m_strBedID = patVo.m_strBedID; pVo.m_strBedName = patVo.m_strBedName; pVo.m_strDaptName = patVo.m_strDeptName; pVo.m_strDeptID = patVo.m_strDeptID; pVo.m_strDeptName = patVo.m_strDeptName; pVo.m_strEmrInPatientID = patVo.m_strInHospitalNo; pVo.m_strInPatientID = patVo.m_strInHospitalNo; pVo.m_strName = patVo.m_strPatientName; pVo.m_strPatientCardNO = patVo.m_strPATIENTCARDID_CHR; pVo.m_strPatientID = patVo.m_strPatientID; pVo.m_strPatientName = patVo.m_strPatientName; pVo.m_strRegisterID = patVo.m_strRegisterID; pVo.m_strSex = patVo.m_strSex; #endregion operation.m_objRequisition = prtVo; operation.m_objPatient = pVo; operation.m_objPatient.m_strDaptName = patVo.m_strDeptName; print.m_mthPrintSingle(operation); print.isPrintLandscape = true; }