示例#1
0
        /// <summary>
        /// 保存申请单图片
        /// </summary>
        /// <returns>是否保存成功</returns>
        public bool SaveReqScanImages()
        {
            switch (GetConfig.DALAndModel)
            {
            case "SIS":
                SIS_Model.MWorkList smWorkList = (SIS_Model.MWorkList) this.reg.iWorkList;
                SIS_Model.MUser     smUser     = (SIS_Model.MUser) this.reg.iUser;
                return(this.reg.reqScanImage.SaveScanImg(smWorkList.EXAM_ACCESSION_NUM, smUser.DOCTOR_ID));

            case "PACS":
                PACS_Model.MWorkList pmWorkList = (PACS_Model.MWorkList) this.reg.iWorkList;
                PACS_Model.MUser     pmUser     = (PACS_Model.MUser) this.reg.iUser;
                return(this.reg.reqScanImage.SaveScanImg(pmWorkList.EXAM_ACCESSION_NUM, pmUser.DB_USER));

            default:
                return(false);
            }
        }
示例#2
0
        /// <summary>
        /// 更新超声科的用户信息
        /// </summary>
        private void UpdateSISUser()
        {
            BUser buser = new BUser();

            SIS_Model.MUser user = (SIS_Model.MUser)buser.GetModel(this.tx_LoginName.Text.Trim());
            if (user == null)
            {
                MessageBoxEx.Show("输入的工号不存在,请检查!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            else
            {
                if (user.DOCTOR_PWD != this.tx_OldPwd.Text.Trim())
                {
                    MessageBoxEx.Show("旧密码不正确!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
                else
                {
                    user.DOCTOR_PWD = this.tx_NewPwd.Text.Trim();
                    buser.Update((ILL.IModel)user, " where DOCTOR_ID='" + user.DOCTOR_ID + "'");
                    MessageBoxEx.Show("修改密码成功,请记住您的新密码!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    this.Close();
                }
            }
        }
示例#3
0
        /// <summary>
        /// 开始新的检查登记
        /// </summary>
        public bool NewExam()
        {
            if (!this.IsNeedSave())
            {
                return(false);
            }
            this.reg.Mode = "6";
            TextBoxClear();
            this.reg.reqScanImage.NewScan();
            this.reg.Mode = "7";
            this.reg.localIdCreater.Init();

            this.reg.iWorkList          = DALFactory.Model.CreateMWorkList();
            this.reg.iPatientInfLocalId = DALFactory.Model.CreateMPatientInfLocalId();
            this.reg.iArchives          = DALFactory.Model.CreateMArchives();

            this.reg.IsNew = false;
            this.reg.computeCharge.Init();

            this.reg.cmb_AgeUnit.SelectedIndex   = 0;
            this.reg.cmb_ExamClass.SelectedIndex = 0;
            this.reg.cmb_Sex.SelectedIndex       = 0;
            this.reg.cmb_ExamDept.Text           = GetConfig.ExamDeptName;
            this.reg.cmb_ExamDept.SelectedValue  = GetConfig.ExamDeptCode;
            CtlComboBox.SetDisplay("标准", this.reg.cmb_ChargeType);
            CtlComboBox.SetDisplay(GetConfig.RM_DefaultSex, this.reg.cmb_Sex);

            this.reg.dtp_Birth.Value           = DateTime.Now;
            this.reg.dtp_ReqDateTime.Value     = System.DateTime.Now;
            this.reg.dtp_ScheduledDate.Value   = System.DateTime.Now;
            this.reg.dtp_ScheduledDate.Checked = false; //add by liu kun at 2010-6-30 默认不选中
            CtlComboBox.SetDisplay(GetConfig.Group, this.reg.cmb_ExamGroup);
            switch (GetConfig.DALAndModel)
            {
            case "SIS":
                SIS_Model.MUser     smUser     = (SIS_Model.MUser) this.reg.iUser;
                SIS_Model.MWorkList smWorkList = (SIS_Model.MWorkList) this.reg.iWorkList;
                smWorkList.SCH_OPERATOR   = smUser.DOCTOR_ID;
                smWorkList.EXAM_DEPT      = smUser.CLINIC_OFFICE_CODE;
                smWorkList.EXAM_DEPT_NAME = smUser.CLINIC_OFFICE;
                smWorkList.IS_BACK_INQ    = 0;
                smWorkList.IS_CONFIRMED   = 1;
                smWorkList.IS_INQUIRY     = 0;
                smWorkList.IS_TEMPORARY   = 0;
                smWorkList.REPORT_STATUS  = 0;
                smWorkList.IS_ONLINE      = 1;
                smWorkList.IS_PACKPROCESS = 0;
                smWorkList.IMAGE_COUNTS   = 0;
                CtlComboBox.SetDisplay(GetConfig.ImgEquipment, this.reg.cmb_ImgEquipment);
                CtlComboBox.SetDisplay(smUser.DOCTOR_NAME, this.reg.cmb_ExamDoctor);
                break;

            case "PACS":
                PACS_Model.MUser     pmUser     = (PACS_Model.MUser) this.reg.iUser;
                PACS_Model.MWorkList pmWorkList = (PACS_Model.MWorkList) this.reg.iWorkList;
                pmWorkList.SCH_OPERATOR   = pmUser.DB_USER;
                pmWorkList.EXAM_DEPT      = pmUser.USER_DEPT;
                pmWorkList.EXAM_DEPT_NAME = pmUser.DEPT_NAME;
                pmWorkList.IS_CONFIRMED   = 1;
                pmWorkList.IS_TEMPORARY   = 0;
                pmWorkList.REPORT_STATUS  = 0;
                break;
            }
            if (!this.NewExamAccessionNum())
            {
                MessageBoxEx.Show("无法生成检查申请序号,不能进行登记!", "错误");
                return(false);
            }
            this.reg.btn_OpenRpt.Enabled          = false;
            this.reg.lb_Notice.Text               = "新检查登记:请在红色输入框中输入病人信息,查找检查申请记录!";
            this.reg.dtp_ScheduledDate.Checked    = false;  //add by liukun at 2010-7-30 预约时间默认为不选中
            this.reg.groupBox_OrderNotice.Enabled = false;  //add by liukun at 2010-7-30 预约注意事项默认为不编辑
            return(true);
        }