Ejemplo n.º 1
0
        private void m_cmdOK_Click(object sender, System.EventArgs e)
        {
            string strPsw = "";

            com.digitalwave.emr.HospitalManagerService.clsHospitalManagerService objServ =
                (com.digitalwave.emr.HospitalManagerService.clsHospitalManagerService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.emr.HospitalManagerService.clsHospitalManagerService));

            objServ.m_lngGetEmpPSWByID(null, m_cboUser1.GetItem(m_cboUser.SelectedIndex).ToString(), out strPsw, true);

            if (strPsw == m_txtPW.Text.Trim() || (strPsw == null && m_txtPW.Text.Trim() == ""))
            {
                m_blnValidateResult = true;
                this.Close();
            }
            else if (strPsw != m_txtPW.Text.Trim())
            {
                MDIParent.ShowInformationMessageBox("验证错误,请重新输入!");
                return;
            }
        }