private void m_cmdChangeTime_Click(object sender, System.EventArgs e) { if (m_nmudSetTime.Text != "") { int intModifyTime = 0; try { intModifyTime = int.Parse(m_nmudSetTime.Text); } catch (Exception ex) { MDIParent.ShowInformationMessageBox("设置的时限须为整数!"); return; } com.digitalwave.PublicMiddleTier.clsPublicMiddleTier m_objService = (com.digitalwave.PublicMiddleTier.clsPublicMiddleTier)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.PublicMiddleTier.clsPublicMiddleTier)); long lngRes = m_objService.m_lngSetRTBChangeTime(intModifyTime.ToString(), "3001"); //m_objService.Dispose(); if (lngRes > 0) { new ctlRichTextBox().m_IntCanModifyTime = intModifyTime; MDIParent.ShowInformationMessageBox("设置成功!"); this.Close(); } else { MDIParent.ShowInformationMessageBox("未能成功设置!"); } } }
private void frmSetRTBChangeTime_Load(object sender, System.EventArgs e) { string strRTBChangeTime = ""; com.digitalwave.PublicMiddleTier.clsPublicMiddleTier objServ = (com.digitalwave.PublicMiddleTier.clsPublicMiddleTier)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.PublicMiddleTier.clsPublicMiddleTier)); objServ.m_lngGetRTBChangeTime("3001", out strRTBChangeTime); m_nmudSetTime.Text = strRTBChangeTime; }
public void m_mthInit(Form p_frmMDI, com.digitalwave.iCare.ValueObject.clsLoginInfo p_objLoginInfo) { s_frmMDI = p_frmMDI; m_objLoginInfo = p_objLoginInfo; clsLoginContext objLogin = clsLoginContext.s_ObjLoginContext; objLogin.m_StrEmployeeID = p_objLoginInfo.m_strEmpNo; MDIParent.m_mthClearAll(); m_objCurDeptOfEmpArr = null; new clsForWholeHosInfoManager().m_lngGetDepartmentByUserID(p_objLoginInfo.m_strEmpID, out m_objCurDeptOfEmpArr); m_mthGetCurrentHospitalInfo(); #region 设置全局员工变量,新员工类,该静态类会被外部其他模块调用到,要保证正确赋值 tfzhang 2006-04-07 iCareData.clsEmrEmployeeBase_VO m_objEmployeeTemp; com.digitalwave.emr.BEDExplorer.clsHospitalManagerDomain objsrv = new com.digitalwave.emr.BEDExplorer.clsHospitalManagerDomain(); long lngRes = objsrv.m_lngGetEmpByID(m_objLoginInfo.m_strEmpID, out m_objEmployeeTemp); //未保存状态 用于签名集合 m_objEmployeeTemp.m_intSTATUS_INT = 0; com.digitalwave.emr.BEDExplorer.frmHRPExplorer.objpCurrentEmployee = m_objEmployeeTemp; #endregion iCare.CustomForm.clsExteriorFunctionInterface.m_ObjUserInfo = p_objLoginInfo; iCare.CustomForm.clsExteriorFunctionInterface.m_ObjCurDeptOfEmpArr = m_objCurDeptOfEmpArr; //获取修改时限 小时 if (clsEMR_StaticObject.s_IntCanModifyTime <= 0) { com.digitalwave.PublicMiddleTier.clsPublicMiddleTier objPM = (com.digitalwave.PublicMiddleTier.clsPublicMiddleTier)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.PublicMiddleTier.clsPublicMiddleTier)); objPM.m_lngGetRTBChangeTime("3001", out strCanModifyTime); } else { strCanModifyTime = clsEMR_StaticObject.s_IntCanModifyTime.ToString(); } m_strDoctorID = p_objLoginInfo.m_strEmpNo; }
/// <summary> /// 是否获取全院员工 /// </summary> /// <param name="p_strSetID">配置ID</param> /// <param name="p_intConfig">签名配置</param> /// <returns></returns> public long m_lngGetSignConfig(string p_strSetID, out int p_intConfig) { p_intConfig = 0; long lngRes = 0; try { string strReturnValue = string.Empty; com.digitalwave.PublicMiddleTier.clsPublicMiddleTier objServ = (com.digitalwave.PublicMiddleTier.clsPublicMiddleTier)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.PublicMiddleTier.clsPublicMiddleTier)); lngRes = objServ.m_lngGetConfigBySettingID(p_strSetID, out strReturnValue); objServ = null; int.TryParse(strReturnValue, out p_intConfig); } catch (Exception Ex) { string strEx = Ex.Message; } return lngRes; }
// public void m_mthQuery(DateTime startDate,DateTime EndDate) // { // DataTable deptDt=new DataTable(); // string anyWhere=""; // if(this.m_objViewer.m_rdbAllDept.Checked) // { // bugQuery.m_lngGetDept(out deptDt,""); // } // if(this.m_objViewer.m_rdbMedical.Checked) // { // bugQuery.m_lngGetDept(out deptDt,this.m_objViewer.m_rdbMedical.Text); // } // if(this.m_objViewer.m_rdbSurgery.Checked) // { // bugQuery.m_lngGetDept(out deptDt,this.m_objViewer.m_rdbSurgery.Text); // } // if(deptDt.Rows.Count>0) // { // for(int i1=0;i1<deptDt.Rows.Count;i1++) // { // if(i1==0) // anyWhere+=deptDt.Rows[i1]["DEPTID_CHR"].ToString(); // else // anyWhere+=","+deptDt.Rows[i1]["DEPTID_CHR"].ToString(); // } // } // if(this.m_objViewer.m_rdbAllDept.Checked) // { // anyWhere=(string)this.m_objViewer.m_txtDept.Tag; // } // string strSQL="select count(*) as totailcounts from (select DISTINCT a.INPATIENTID,a.INPATIENTDATE from INPATIENTCASE_GRADE a,"+@" // T_OPR_BIH_REGISTER b,T_OPR_BIH_LEAVE c where a.INPATIENTID=b.INPATIENTID_CHR and a.INPATIENTDATE=b.MODIFY_DAT "+@" // and b.REGISTERID_CHR=c.LEAVEID_CHR and c.OUTHOSPITAL_DAT between '"+startDate.ToShortDateString()+" 00:00:00' "+@" // and '"+EndDate.ToShortDateString()+" 23:59:59' and c.OUTDEPTID_CHR in("+anyWhere+") left join"; // string strSQL1=""; // if(this.m_objViewer.m_trvItems.Nodes.Count>0) // { // for(int i1=0;i1<this.m_objViewer.m_trvItems.Nodes.Count;i1++) // { // if(this.m_objViewer.m_trvItems.Nodes[i1].Checked) // { // if(this.m_objViewer.m_trvItems.Nodes[i1].Nodes.Count>0) // { // strSQL+="select count(*) as counts from (select DISTINCT INPATIENTID,INPATIENTDATE from INPATIENTCASE_GRADE where "; // for(int f2=0;f2<this.m_objViewer.m_trvItems.Nodes[i1].Nodes.Count;f2++) // { // if(f2==0) // { // strSQL+="ITEMID='"+this.m_objViewer.m_trvItems.Nodes[i1].Nodes[f2].Tag.ToString()+"'"; // } // else // { // if(f2==this.m_objViewer.m_trvItems.Nodes[i1].Nodes.Count-1) // strSQL+=" or ITEMID='"+this.m_objViewer.m_trvItems.Nodes[i1].Nodes[f2].Tag.ToString()+"')"; // else // strSQL+=" or ITEMID='"+this.m_objViewer.m_trvItems.Nodes[i1].Nodes[f2].Tag.ToString()+"'"; // } // if(this.m_objViewer.m_trvItems.Nodes[i1].Nodes[f2].Checked) // { // if(strSQL1=="") // { // strSQL1=" select count(*) as counts from (select DISTINCT INPATIENTID,INPATIENTDATE from INPATIENTCASE_GRADE where ITEMID='"+this.m_objViewer.m_trvItems.Nodes[i1].Nodes[f2].Tag.ToString()+"')"; // } // else // { // strSQL1+=" left join select count(*) as counts from (select DISTINCT INPATIENTID,INPATIENTDATE from INPATIENTCASE_GRADE where ITEMID='"+this.m_objViewer.m_trvItems.Nodes[i1].Nodes[f2].Tag.ToString()+"')"; // } // } // } // strSQL+=" left join"; // } // } // } // } // strSQL=strSQL+strSQL1; // } #endregion Old internal void m_mthQuery() { m_arlFlawed.Clear(); string strWhere = ""; ArrayList arlParam = new ArrayList(4); if (m_objViewer.m_rdbSingleDept.Checked && m_objViewer.m_txtDept.Tag is String) { strWhere = " and b.deptid_chr = ?"; arlParam.Add(m_objViewer.m_txtDept.Tag.ToString()); } else if (m_objViewer.m_lsvFind.Tag is DataTable) { if (m_objViewer.m_rdbMedical.Checked) { string strDeptId = m_strGetDeptId("0000002", (DataTable)m_objViewer.m_lsvFind.Tag); if (strDeptId != "") { strWhere = strDeptId; } } else if (m_objViewer.m_rdbSurgery.Checked) { string strDeptId = m_strGetDeptId("0000027", (DataTable)m_objViewer.m_lsvFind.Tag); if (strWhere == "" || strDeptId == "") { strWhere = strDeptId; } else { strWhere += "," + strDeptId; } } if (strWhere != "") { if (strWhere[0] == ',') { strWhere = strWhere.Remove(0, 1); } string[] strArr = strWhere.Split(','); string str1 = "?"; arlParam.Add(strArr[0]); for (int i = 1; i < strArr.Length; i++) { str1 += ",?"; arlParam.Add(strArr[i]); } strWhere = "and b.deptid_chr in (" + str1 + ") "; } } // strWhere += " and le.modify_dat between '"+m_objViewer.m_dtpStart.Value.ToShortDateString()+" 00:00:00' and '"+m_objViewer.m_dtpEnd.Value.ToShortDateString()+" 23:59:59'"; strWhere += " and le.modify_dat between ? and ?"; arlParam.Add(m_objViewer.m_dtpStart.Value.Date); arlParam.Add(m_objViewer.m_dtpEnd.Value.AddDays(1).Date); com.digitalwave.PublicMiddleTier.clsPublicMiddleTier objServ = (com.digitalwave.PublicMiddleTier.clsPublicMiddleTier)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.PublicMiddleTier.clsPublicMiddleTier)); DataTable dtb = new DataTable(); object[] objArr = arlParam.ToArray(); long lngRes = objServ.m_lngGetDataWithParam(c_strSql + strWhere, objArr, ref dtb); if (lngRes <= 0 || dtb.Rows.Count == 0) { return; } m_mthBeginCalculation(dtb); dtb.Clear(); dtb.Dispose(); }