private void m_txtDoc_KeyDown_1(object sender, System.Windows.Forms.KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { if (this.ListDor.SelectedItems.Count > 0) { clsEmployeeVO selectItem = new clsEmployeeVO(); selectItem = (clsEmployeeVO)this.ListDor.SelectedItems[0].Tag; this.m_txtDoc.Clear(); this.m_txtDoc.Text = selectItem.strName.Trim(); this.m_txtDoc.Tag = selectItem.strEmpID.Trim(); this.m_txtNum.Tag = selectItem.strEmpNO.Trim(); this.ListDor.Visible = false; m_cboRegType.Focus(); } } if (e.KeyCode == Keys.Up) { if (this.ListDor.SelectedItems.Count > 0 && this.ListDor.SelectedItems[0].Index != 0) { this.ListDor.Items[this.ListDor.SelectedItems[0].Index - 1].Selected = true; this.ListDor.Items[this.ListDor.SelectedItems[0].Index].EnsureVisible(); this.m_txtDoc.Focus(); } } if (e.KeyCode == Keys.Down) { if (this.ListDor.SelectedItems.Count > 0 && this.ListDor.SelectedItems[0].Index < this.ListDor.Items.Count - 1) { this.ListDor.Items[this.ListDor.SelectedItems[0].Index + 1].Selected = true; this.ListDor.Items[this.ListDor.SelectedItems[0].Index].EnsureVisible(); this.m_txtDoc.Focus(); } } }
/// <summary> /// 构造函数 /// </summary> public clsControlMedStoreAcct() { // // TODO: 在此处添加构造函数逻辑 // m_objManage = new clsDomainControlMedStore(); m_objMedStore = new clsMedStore_VO(); m_objOperator = new clsEmployeeVO(); m_objCurPeriod = new clsPeriod_VO(); }
/// <summary> /// /// </summary> public clsControlMedStoreMedAppl() { m_objManage = new clsDomainControlMedStore(); m_objMedStore = new clsMedStore_VO(); m_objOperator = new clsEmployeeVO(); m_objStorages = new clsStorage_VO[0]; m_objDoAddNewArr = new clsMedStoreMedApplDe_VO[0]; m_objDoUpdateArr = new clsMedStoreMedApplDe_VO[0]; m_objDoDeleteArr = new clsMedStoreMedApplDe_VO[0]; }
private void ListDor_Click(object sender, System.EventArgs e) { if (this.ListDor.SelectedItems.Count > 0) { clsEmployeeVO selectItem = new clsEmployeeVO(); selectItem = (clsEmployeeVO)this.ListDor.SelectedItems[0].Tag; this.m_txtDoc.Text = selectItem.strName.Trim(); this.m_txtDoc.Tag = selectItem.strEmpID.Trim(); this.m_txtNum.Tag = selectItem.strEmpNO.Trim(); this.ListDor.Visible = false; m_cboRegType.Focus(); } }
/// <summary> /// 根据科室ID取回医生信息 /// </summary> public long m_lngGetDocByDepID(string empId, out clsEmployeeVO[] p_objResultArr) { p_objResultArr = new clsEmployeeVO[0]; long lngRes = 0; System.Security.Principal.IPrincipal objPrincipal = null; com.digitalwave.iCare.middletier.HIS.clsGetBase objSvc = (com.digitalwave.iCare.middletier.HIS.clsGetBase)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsGetBase)); lngRes = objSvc.m_lngGetEmployeeList(objPrincipal, empId, null, out p_objResultArr); objSvc.Dispose(); objSvc = null; return lngRes; }
public long m_lngGetEmployeeList(System.Security.Principal.IPrincipal p_objPrincipal, string strEmpID, string strDepID, out clsEmployeeVO[] objResult) { objResult = new clsEmployeeVO[0]; long lngRes = 0; //权限类 clsPrivilegeHandleService objPrivilege = new clsPrivilegeHandleService(); //检查是否有使用些函数的权限 lngRes = objPrivilege.m_lngCheckCallPrivilege(p_objPrincipal, "com.digitalwave.iCare.middletier.HIS.clsGetBase", "m_lngGetOPDoctorListByDate"); if (lngRes < 0) //没有使用的权限 { return(-1); } string strSQL = ""; if (strDepID == null && strEmpID == null) { strSQL = @"select empid_chr, begindate_dat, firstname_vchr, lastname_vchr, empidcard_chr, pycode_chr, sex_chr, educationallevel_chr, maritalstatus_chr, technicalrank_chr, languageability_vchr, birthdate_dat, officephone_vchr, homephone_vchr, mobile_vchr, officeaddress_vchr, officezip_chr, homeaddress_vchr, homezip_chr, email_vchr, contactname_vchr, contactphone_vchr, remark_vchr, status_int, deactivate_dat, shortname_chr, operatorid_chr, hasprescriptionright_chr, haspsychosisprescriptionright_, hasopiateprescriptionright_chr, isexpert_chr, expertfee_mny, isexternalexpert_chr, ancestoraddr_vchar, experience_vchr, psw_chr, deptcode_chr, technicallevel_chr, digitalsign_dta, extendid_vchr, isemployee_int, empno_chr, employeeidentity_int, empduty_int from t_bse_employee "; } if (strEmpID != null) //取回一员工 { strSQL = @"select empid_chr, begindate_dat, firstname_vchr, lastname_vchr, empidcard_chr, pycode_chr, sex_chr, educationallevel_chr, maritalstatus_chr, technicalrank_chr, languageability_vchr, birthdate_dat, officephone_vchr, homephone_vchr, mobile_vchr, officeaddress_vchr, officezip_chr, homeaddress_vchr, homezip_chr, email_vchr, contactname_vchr, contactphone_vchr, remark_vchr, status_int, deactivate_dat, shortname_chr, operatorid_chr, hasprescriptionright_chr, haspsychosisprescriptionright_, hasopiateprescriptionright_chr, isexpert_chr, expertfee_mny, isexternalexpert_chr, ancestoraddr_vchar, experience_vchr, psw_chr, deptcode_chr, technicallevel_chr, digitalsign_dta, extendid_vchr, isemployee_int, empno_chr, employeeidentity_int, empduty_int from t_bse_employee Where EMPID_CHR='" + strEmpID + "'"; } else { if (strDepID != null) //取回一员工 { strSQL = @"SELECT a.empid_chr, a.begindate_dat, a.firstname_vchr, a.lastname_vchr, a.empidcard_chr, a.pycode_chr, a.sex_chr, a.educationallevel_chr, a.maritalstatus_chr, a.technicalrank_chr, a.languageability_vchr, a.birthdate_dat, a.officephone_vchr, a.homephone_vchr, a.mobile_vchr, a.officeaddress_vchr, a.officezip_chr, a.homeaddress_vchr, a.homezip_chr, a.email_vchr, a.contactname_vchr, a.contactphone_vchr, a.remark_vchr, a.status_int, a.deactivate_dat, a.shortname_chr, a.operatorid_chr, a.hasprescriptionright_chr, a.haspsychosisprescriptionright_, a.hasopiateprescriptionright_chr, a.isexpert_chr, a.expertfee_mny, a.isexternalexpert_chr, a.ancestoraddr_vchar, a.experience_vchr, a.psw_chr, a.deptcode_chr, a.technicallevel_chr, a.digitalsign_dta, a.extendid_vchr, a.isemployee_int, a.empno_chr, a.employeeidentity_int, a.empduty_int from t_bse_employee a,t_bse_deptemp b " + " Where a.empid_chr=b.empid_chr And b.deptid_chr='" + strDepID + "' "; } } try { DataTable dtbResult = new DataTable(); com.digitalwave.iCare.middletier.HRPService.clsHRPTableService objHRPSvc = new clsHRPTableService(); lngRes = objHRPSvc.lngGetDataTableWithoutParameters(strSQL, ref dtbResult); objHRPSvc.Dispose(); if (lngRes > 0 && dtbResult.Rows.Count > 0) { objResult = new clsEmployeeVO[dtbResult.Rows.Count]; for (int i1 = 0; i1 < objResult.Length; i1++) { objResult[i1] = new clsEmployeeVO(); if (dtbResult.Rows[i1]["STATUS_INT"].ToString().Trim() != "") { objResult[i1].intStatus = int.Parse(dtbResult.Rows[i1]["STATUS_INT"].ToString().Trim()); } objResult[i1].strBeginDate = dtbResult.Rows[i1]["BEGINDATE_DAT"].ToString().Trim(); objResult[i1].strBirthDate = dtbResult.Rows[i1]["BIRTHDATE_DAT"].ToString().Trim(); //objResult[i1].strBirthPlace=dtbResult.Rows[i1][""].ToString().Trim(); //objResult[i1].strContactAddress=dtbResult.Rows[i1][""].ToString().Trim(); objResult[i1].strContactName = dtbResult.Rows[i1]["CONTACTNAME_VCHR"].ToString().Trim(); objResult[i1].strContactPhone = dtbResult.Rows[i1]["CONTACTPHONE_VCHR"].ToString().Trim(); //objResult[i1].strContactRelation=dtbResult.Rows[i1][""].ToString().Trim(); //objResult[i1].strContactZip=dtbResult.Rows[i1][""].ToString().Trim(); objResult[i1].strDeactiveDate = dtbResult.Rows[i1]["DEACTIVATE_DAT"].ToString().Trim(); objResult[i1].strEducationalLevel = dtbResult.Rows[i1]["EDUCATIONALLEVEL_CHR"].ToString().Trim(); objResult[i1].strEMail = dtbResult.Rows[i1]["EMAIL_VCHR"].ToString().Trim(); objResult[i1].strEmpID = dtbResult.Rows[i1]["EMPID_CHR"].ToString().Trim(); objResult[i1].strEmpIDCard = dtbResult.Rows[i1]["EMPIDCARD_CHR"].ToString().Trim(); objResult[i1].strExperience = dtbResult.Rows[i1]["EXPERIENCE_VCHR"].ToString().Trim(); objResult[i1].strExpertFee = dtbResult.Rows[i1]["EXPERTFEE_MNY"].ToString().Trim(); objResult[i1].strFirstName = dtbResult.Rows[i1]["FIRSTNAME_VCHR"].ToString().Trim(); objResult[i1].strHasOpiatePrescriptionRight = dtbResult.Rows[i1]["HASOPIATEPRESCRIPTIONRIGHT_CHR"].ToString().Trim(); objResult[i1].strHasPrescriptionRight = dtbResult.Rows[i1]["HASPRESCRIPTIONRIGHT_CHR"].ToString().Trim(); objResult[i1].strHomeAddress = dtbResult.Rows[i1]["HOMEADDRESS_VCHR"].ToString().Trim(); objResult[i1].strHomePhone = dtbResult.Rows[i1]["HOMEPHONE_VCHR"].ToString().Trim(); objResult[i1].strHomeZip = dtbResult.Rows[i1]["HOMEZIP_CHR"].ToString().Trim(); objResult[i1].strIsExpert = dtbResult.Rows[i1]["ISEXPERT_CHR"].ToString().Trim(); objResult[i1].strIsExternalExpert = dtbResult.Rows[i1]["ISEXTERNALEXPERT_CHR"].ToString().Trim(); //objResult[i1].strLanguageAbility=dtbResult.Rows[i1][""].ToString().Trim(); objResult[i1].strLastName = dtbResult.Rows[i1]["LASTNAME_VCHR"].ToString().Trim(); objResult[i1].strMaritalStatus = dtbResult.Rows[i1]["MARITALSTATUS_CHR"].ToString().Trim(); objResult[i1].strMobile = dtbResult.Rows[i1]["MOBILE_VCHR"].ToString().Trim(); objResult[i1].strName = dtbResult.Rows[i1]["LASTNAME_VCHR"].ToString().Trim(); //objResult[i1].strNationality=dtbResult.Rows[i1][""].ToString().Trim(); //objResult[i1].strNativePlace=dtbResult.Rows[i1][""].ToString().Trim(); objResult[i1].strOfficeAddress = dtbResult.Rows[i1]["OFFICEADDRESS_VCHR"].ToString().Trim(); objResult[i1].strOfficePhone = dtbResult.Rows[i1]["OFFICEPHONE_VCHR"].ToString().Trim(); objResult[i1].strOfficeZip = dtbResult.Rows[i1]["OFFICEZIP_CHR"].ToString().Trim(); //objResult[i1].strOperatorID=dtbResult.Rows[i1][""].ToString().Trim(); objResult[i1].strPYCode = dtbResult.Rows[i1]["PYCODE_CHR"].ToString().Trim(); //objResult[i1].strRace=dtbResult.Rows[i1][""].ToString().Trim(); objResult[i1].strRemark = dtbResult.Rows[i1]["REMARK_VCHR"].ToString().Trim(); objResult[i1].strSex = dtbResult.Rows[i1]["SEX_CHR"].ToString().Trim(); objResult[i1].strShortName = dtbResult.Rows[i1]["SHORTNAME_CHR"].ToString().Trim(); objResult[i1].strTechnicalRank = dtbResult.Rows[i1]["TECHNICALRANK_CHR"].ToString().Trim(); } } } catch (Exception objEx) { string strTmp = objEx.Message; com.digitalwave.Utility.clsLogText objLogger = new clsLogText(); bool blnRes = objLogger.LogError(objEx); } return(lngRes); }