public void m_lngSaveHospitalinfo() { if (m_objViewer.m_txtName.Text.Trim() == "") { m_ephHandler.m_mthAddControl(m_objViewer.m_txtName); m_ephHandler.m_mthShowControlsErrorProvider(); m_ephHandler.m_mthClearControl(); return; } long lngRes = 0; clsHISInfoDefine_VO objResult = new clsHISInfoDefine_VO(); objResult.m_strHOSPITAL_NAME_CHR = m_objViewer.m_txtName.Text; objResult.m_strADDRESS_VCHR = m_objViewer.m_txtAddress.Text; objResult.m_strPHONE_NUMBER_CHR = m_objViewer.m_txtPhone1.Text; objResult.m_strPHONE_NUMBER2_CHR = m_objViewer.m_txtPhone2.Text; objResult.m_strZIP_CHR = m_objViewer.m_txtZIP.Text; objResult.m_strMEMO_VCHR = m_objViewer.m_txtMemo.Text; lngRes = clsDomain.m_lngDoUpdHospitalInfo(objResult); if (lngRes > 0) { MessageBox.Show("保存成功!", "提示"); } else { MessageBox.Show("保存失败!", "提示"); } }
public long m_lngDoUpdHospitalInfo(clsHISInfoDefine_VO p_objResultArr) { long lngRes = 0; com.digitalwave.iCare.middletier.HIS.clsHISInfoDefineSvc objSvc = (com.digitalwave.iCare.middletier.HIS.clsHISInfoDefineSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsHISInfoDefineSvc)); lngRes = objSvc.m_lngDoUpdHospitalInfo(objPrincipal, p_objResultArr); objSvc.Dispose(); return(lngRes); }
public long m_lngFindHospitalInfo(System.Security.Principal.IPrincipal p_objPrincipal, out clsHISInfoDefine_VO[] objResult) { long lngRes = 0; objResult = new clsHISInfoDefine_VO[0]; //权限类 clsPrivilegeHandleService objPrivilege = new clsPrivilegeHandleService(); //检查是否有使用些函数的权限 lngRes = objPrivilege.m_lngCheckCallPrivilege(p_objPrincipal, "com.digitalwave.iCare.middletier.HIS.clsHISInfoDefineSvc", "m_lngFindHospitalInfo"); if (lngRes < 0) //没有使用的权限 { return(-1); } string strSQL = "Select HOSPITAL_NAME_CHR sName,ADDRESS_VCHR sAddress,PHONE_NUMBER_CHR sPhone,PHONE_NUMBER2_CHR sPhone2,ZIP_CHR sZIP,MEMO_VCHR sMemo From t_bse_hospitalinfo "; try { DataTable dtResult = new DataTable(); com.digitalwave.iCare.middletier.HRPService.clsHRPTableService objHRPSvc = new clsHRPTableService(); lngRes = objHRPSvc.lngGetDataTableWithoutParameters(strSQL, ref dtResult); if (lngRes > 0 && dtResult.Rows.Count > 0) { objResult = new clsHISInfoDefine_VO[dtResult.Rows.Count]; for (int i1 = 0; i1 < objResult.Length; i1++) { objResult[i1] = new clsHISInfoDefine_VO(); objResult[i1].m_strHOSPITAL_NAME_CHR = dtResult.Rows[i1][0].ToString().Trim(); objResult[i1].m_strADDRESS_VCHR = dtResult.Rows[i1][1].ToString().Trim(); objResult[i1].m_strPHONE_NUMBER_CHR = dtResult.Rows[i1][2].ToString().Trim(); objResult[i1].m_strPHONE_NUMBER2_CHR = dtResult.Rows[i1][3].ToString().Trim(); objResult[i1].m_strZIP_CHR = dtResult.Rows[i1][4].ToString().Trim(); objResult[i1].m_strMEMO_VCHR = dtResult.Rows[i1][5].ToString().Trim(); } } } catch (Exception objEx) { com.digitalwave.Utility.clsLogText objLogger = new clsLogText(); bool blnRes = objLogger.LogError(objEx); } return(lngRes); }
public long m_lngDoUpdHospitalInfo(System.Security.Principal.IPrincipal p_objPrincipal, clsHISInfoDefine_VO objResult) { long lngRes = 0; //权限类 clsPrivilegeHandleService objPrivilege = new clsPrivilegeHandleService(); //检查是否有使用些函数的权限 lngRes = objPrivilege.m_lngCheckCallPrivilege(p_objPrincipal, "com.digitalwave.iCare.middletier.HIS.clsHISInfoDefineSvc", "m_lngDoUpdHospitalInfo"); if (lngRes < 0) //没有使用的权限 { return(-1); } string strSQL = "UPDate t_bse_hospitalinfo Set " + "HOSPITAL_NAME_CHR='" + objResult.m_strHOSPITAL_NAME_CHR + "' " + ", ADDRESS_VCHR='" + objResult.m_strADDRESS_VCHR + "' " + ", PHONE_NUMBER_CHR='" + objResult.m_strPHONE_NUMBER_CHR + "' " + ", PHONE_NUMBER2_CHR='" + objResult.m_strPHONE_NUMBER2_CHR + "' " + ", ZIP_CHR='" + objResult.m_strZIP_CHR + "' " + ", MEMO_VCHR='" + objResult.m_strMEMO_VCHR + "' "; try { com.digitalwave.iCare.middletier.HRPService.clsHRPTableService objHRPSvc = new clsHRPTableService(); lngRes = objHRPSvc.DoExcute(strSQL); } catch (Exception objEx) { com.digitalwave.Utility.clsLogText objLogger = new clsLogText(); bool blnRes = objLogger.LogError(objEx); } return(lngRes); }