コード例 #1
0
        /// <summary>
        /// 提取HIS在院病人资料库记录数据
        /// </summary>
        private bool SelectPatsInHospital(System.Data.DataTable dt)
        {
            string settled_indicator = dt.Rows[0]["SETTLED_INDICATOR"].ToString();

            if (settled_indicator == "1")
            {
                MessageBox.Show("该病人已出院!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return(false);
            }
            else
            {
                switch (GetConfig.DALAndModel)
                {
                case "SIS":
                    SIS_Model.MWorkList smWorkList = (SIS_Model.MWorkList) this.iWorkList;
                    smWorkList.VISIT_ID = Convert.ToInt32(dt.Rows[0]["VISIT_ID"].ToString());
                    smWorkList.BED_NUM  = dt.Rows[0]["BED_NO"].ToString();
                    break;

                case "PACS":
                    PACS_Model.MWorkList pmWorkList = (PACS_Model.MWorkList) this.iWorkList;
                    pmWorkList.VISIT_ID = Convert.ToInt32(dt.Rows[0]["VISIT_ID"].ToString());
                    pmWorkList.BED_NUM  = dt.Rows[0]["BED_NO"].ToString();
                    break;
                }
                return(true);
            }
        }
コード例 #2
0
ファイル: NewReg.cs プロジェクト: xuanximoming/PIC
        private bool NewExamAccessionNum()
        {
            switch (GetConfig.DALAndModel)
            {
            case "SIS":
                SIS_Model.MWorkList smWorkList = (SIS_Model.MWorkList) this.reg.iWorkList;
                string sAccessionNo            = this.reg.regUPE.GetAccessionNo(); //通过数据库的自动产生序号函数,获取当前检查流水号最大值
                if (sAccessionNo == "")
                {
                    return(false);
                }
                else
                {
                    smWorkList.ACCESSION_NO = Convert.ToInt32(sAccessionNo);
                }
                if (!this.reg.regUPE.GetExamAccessionNum(this.reg.iWorkList))
                {
                    return(false);
                }
                else
                {
                    return(true);
                }

            case "PACS":
                PACS_Model.MWorkList pmWorkList = (PACS_Model.MWorkList) this.reg.iWorkList;
                string pAccessionNo             = this.reg.regPacs.GetAccessionNo(); //通过数据库的自动产生序号函数,获取当前检查流水号最大值
                if (pAccessionNo == "")
                {
                    return(false);
                }
                else
                {
                    pmWorkList.ACCESSION_NO = Convert.ToInt32(pAccessionNo);
                }
                if (!this.reg.regPacs.GetExamAccessionNum(this.reg.iWorkList))
                {
                    return(false);
                }
                else
                {
                    return(true);
                }

            default:
                return(false);
            }
        }
コード例 #3
0
ファイル: SaveReg.cs プロジェクト: xuanximoming/PIC
        /// <summary>
        ///  01:门诊检查申请;
        /// </summary>
        /// <returns></returns>
        private bool Save01()
        {
            if (!this.reg.localIdCreater.UpdatePatientInfLocalId(this.reg.iPatientInfLocalId))
            {
                return(false);
            }
            switch (GetConfig.DALAndModel)
            {
            case "SIS":
                if (!SaveSIS())
                {
                    return(false);
                }
                break;

            case "PACS":
                if (!SavePacs())
                {
                    return(false);
                }
                break;
            }
            if (GetConfig.hisVisit)
            {
                switch (GetConfig.hisVender)
                {
                case "JW":
                    switch (GetConfig.DALAndModel)
                    {
                    case "SIS":
                        SIS_Model.MWorkList smWorkList = (SIS_Model.MWorkList) this.reg.iWorkList;
                        this.reg.regJW.DeleteExamAppoints(smWorkList.EXAM_NO);        //删除EXAM_APPOINTS表记录
                        break;

                    case "PACS":
                        PACS_Model.MWorkList pmWorkList = (PACS_Model.MWorkList) this.reg.iWorkList;
                        this.reg.regJW.DeleteExamAppoints(pmWorkList.EXAM_NO);        //删除EXAM_APPOINTS表记录
                        break;
                    }
                    break;

                case "HT":
                    break;
                }
            }
            this.reg.localIdCreater.ReSetLocalIdMax();
            return(true);
        }
コード例 #4
0
ファイル: SaveReg.cs プロジェクト: xuanximoming/PIC
        /// <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);
            }
        }
コード例 #5
0
        /// <summary>
        /// 双击PACS系统病人列表记录
        /// </summary>
        private void dgv_PatientInf_DoubleClick(object sender, EventArgs e)
        {
            if (this.dgv_PatientInf.SelectedRows.Count > 0)
            {
                SelectPatientInf();
                if (GetConfig.RM_IsSelectOutpDesc && GetConfig.hisVisit)
                {
                    switch (GetConfig.DALAndModel)
                    {
                    case "SIS":
                        SIS_Model.MWorkList   smWorkList = (SIS_Model.MWorkList) this.iWorkList;
                        System.Data.DataTable dt_S       = regJW.SelectOutpOrderDesc("b.patient_id ='" + smWorkList.PATIENT_ID + "'  and a.performed_by ='" + smWorkList.EXAM_DEPT + "'");
                        if (dt_S.Rows.Count != 0)
                        {
                            smWorkList.REFER_DEPT    = dt_S.Rows[0]["ORDERED_BY_DEPT"].ToString();
                            smWorkList.REQ_DEPT_NAME = dt_S.Rows[0]["DEPT_NAME"].ToString();
                            smWorkList.REFER_DOCTOR  = dt_S.Rows[0]["ORDERED_BY_DOCTOR"].ToString();
                        }
                        break;

                    case "PACS":
                        PACS_Model.MWorkList  pmWorkList = (PACS_Model.MWorkList) this.iWorkList;
                        System.Data.DataTable dt_P       = regJW.SelectOutpOrderDesc("b.patient_id ='" + pmWorkList.PATIENT_ID + "'  and a.performed_by ='" + pmWorkList.EXAM_DEPT + "'");
                        if (dt_P.Rows.Count != 0)
                        {
                            pmWorkList.REFER_DEPT    = dt_P.Rows[0]["ORDERED_BY_DEPT"].ToString();
                            pmWorkList.REQ_DEPT_NAME = dt_P.Rows[0]["DEPT_NAME"].ToString();
                            pmWorkList.REFER_DOCTOR  = dt_P.Rows[0]["ORDERED_BY_DOCTOR"].ToString();
                        }
                        break;
                    }
                }
                //if (IsSelectOutpDesc == "3")
                //this.OutpView();
                this.initReg.initMode0(this.iWorkList, this.iArchives, this.mode);
            }
            this.Close();
        }
コード例 #6
0
        /// <summary>
        /// 验证输入信息是否合法
        /// </summary>
        /// <returns>是否合法</returns>
        public bool CheckValidity(frmRegister reg)
        {
            string[] checkFields = GetConfig.RM_CheckField.Split(';');
            foreach (string field in checkFields)
            {
                switch (field)
                {
                case "PATIENT_NAME":
                    if (reg.txt_PatientName.Text == null || reg.txt_PatientName.Text == "")
                    {
                        MessageBoxEx.Show("病人姓名不能为空!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return(false);
                    }
                    break;

                case "PATIENT_ID":
                    if (reg.txt_PatientId.Text == null || reg.txt_PatientId.Text == "")
                    {
                        MessageBoxEx.Show("病人ID不能为空!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return(false);
                    }
                    break;

                case "PATIENT_AGE":
                    if (reg.txt_Age.Text == "")
                    {
                        MessageBoxEx.Show("病人年龄不能为空!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return(false);
                    }
                    break;

                case "PATIENT_AGE_UNIT":
                    if (reg.cmb_AgeUnit.Text == "")
                    {
                        MessageBoxEx.Show("病人年龄单位不能为空!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return(false);
                    }
                    break;

                case "PATIENT_SEX":
                    if (reg.cmb_Sex.Text == "")
                    {
                        MessageBoxEx.Show("病人性别不能为空!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return(false);
                    }
                    break;

                case "PATIENT_BIRTH":
                    if (reg.dtp_Birth.Text == "")
                    {
                        MessageBoxEx.Show("病人出生年龄不能为空!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return(false);
                    }
                    break;

                case "PATIENT_PHONETIC":
                    if (reg.txt_PatientPhonetic.Text == "")
                    {
                        MessageBoxEx.Show("病人姓名拼音不能为空!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return(false);
                    }
                    break;

                case "PATIENT_LOCAL_ID":
                    if (reg.dud_PatientLocalId.Text == "")
                    {
                        MessageBoxEx.Show("病人检查号不能为空!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return(false);
                    }
                    break;

                case "CHARGE_TYPE":
                    if (reg.cmb_ChargeType.Text == "")
                    {
                        MessageBoxEx.Show("收费类别不能为空!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return(false);
                    }
                    break;

                case "PATIENT_SOURCE":
                    if (reg.cmb_PatientSource.Text == "")
                    {
                        MessageBoxEx.Show("病人来源不能为空!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return(false);
                    }
                    break;

                case "EXAM_CLASS":
                    if (reg.cmb_ExamClass.Text == "")
                    {
                        MessageBoxEx.Show("检查类别不能为空!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return(false);
                    }
                    break;

                case "EXAM_SUB_CLASS":
                    if (reg.cmb_ExamSubClass.Text == "")
                    {
                        MessageBoxEx.Show("检查子类不能为空!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return(false);
                    }
                    break;

                case "EXAM_ITEMS":
                    string examItems = "";
                    if (GetConfig.DALAndModel == "SIS")
                    {
                        SIS_Model.MWorkList smWorkList = (SIS_Model.MWorkList)reg.iWorkList;
                        examItems = smWorkList.EXAM_ITEMS;
                    }
                    else
                    {
                        PACS_Model.MWorkList pmWorkList = (PACS_Model.MWorkList)reg.iWorkList;
                        examItems = pmWorkList.EXAM_ITEMS;
                    }
                    if (examItems == "")
                    {
                        MessageBoxEx.Show("检查项目不能为空!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return(false);
                    }
                    break;

                case "EXAM_GROUP":
                    if (reg.cmb_ExamGroup.Text == "")
                    {
                        MessageBoxEx.Show("检查组不能为空!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return(false);
                    }
                    break;

                case "DEVICE":
                    if (reg.cmb_ImgEquipment.Text == "")
                    {
                        MessageBoxEx.Show("检查设备不能为空!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return(false);
                    }
                    break;

                case "REFER_DOCTOR":
                    if (reg.cmb_ReferDoctor.Text == "")
                    {
                        MessageBoxEx.Show("申请医生不能为空!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return(false);
                    }
                    break;

                case "REFER_DEPT":
                    if (reg.cmb_ReferDept.Text == "")
                    {
                        MessageBoxEx.Show("申请科室不能为空!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return(false);
                    }
                    break;

                case "COSTS":
                    if (reg.txt_Costs.Text == "")
                    {
                        MessageBoxEx.Show("标准收费不能为空!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return(false);
                    }
                    break;

                case "CHARGES":
                    if (reg.txt_Charges.Text == "")
                    {
                        MessageBoxEx.Show("实收费用不能为空!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        return(false);
                    }
                    break;
                }
            }
            return(true);
        }
コード例 #7
0
        /// <summary>
        /// 选中HIS病人资料库记录
        /// </summary>
        private void SelectPatMasterIndex()
        {
            DataGridViewRow dr = this.dgv_PatMasterIndex.CurrentRow;

            switch (GetConfig.DALAndModel)
            {
            case "SIS":
                SIS_Model.MWorkList smWorkList = (SIS_Model.MWorkList) this.iWorkList;
                smWorkList.PATIENT_ID   = dr.Cells["C_PATIENT_ID_PAT"].Value.ToString();
                smWorkList.PATIENT_NAME = dr.Cells["C_NAME_PAT"].Value.ToString();
                smWorkList.PATIENT_SEX  = dr.Cells["C_SEX_PAT"].Value.ToString();
                if (dr.Cells["C_DATE_OF_BIRTH_PAT"].Value.ToString() != "")
                {
                    smWorkList.PATIENT_BIRTH = Convert.ToDateTime(dr.Cells["C_DATE_OF_BIRTH_PAT"].Value.ToString());
                }
                smWorkList.BIRTH_PLACE = dr.Cells["C_BIRTH_PLACE_PAT"].Value.ToString();
                //smWorkList.BIRTH_PLACE_CODE = dr.Cells["C_BIRTH_PLACE_CODE_PAT"].Value.ToString();
                if (dr.Cells["C_CHARGE_TYPE_PAT"].Value.ToString() != "")
                {
                    smWorkList.CHARGE_TYPE = Convert.ToInt32(dr.Cells["C_CHARGE_TYPE_PAT"].Value.ToString());
                }
                smWorkList.MAILING_ADDRESS  = dr.Cells["C_MAILING_ADDRESS_PAT"].Value.ToString();
                smWorkList.ZIP_CODE         = dr.Cells["C_ZIP_CODE_PAT"].Value.ToString();
                smWorkList.TELEPHONE_NUM    = dr.Cells["C_PHONE_NUMBER_HOME_PAT"].Value.ToString();
                smWorkList.INP_NO           = dr.Cells["C_INP_NO_PAT"].Value.ToString();
                smWorkList.PATIENT_IDENTITY = dr.Cells["C_IDENTITY_PAT"].Value.ToString();
                smWorkList.PATIENT_PHONETIC = dr.Cells["C_NAME_PHONETIC_PAT"].Value.ToString();
                switch (GetConfig.hisVender)
                {
                case "JW":
                    smWorkList.EXAM_NO = this.regJW.GetExamNo();
                    break;

                case "HT":
                    break;
                }
                SIS_Model.MArchives mArchives = (SIS_Model.MArchives) this.iArchives;
                mArchives.IDENTITY_CARD_NO = dr.Cells["C_ID_NO_PAT"].Value.ToString();
                break;

            case "PACS":
                PACS_Model.MWorkList pmWorkList = (PACS_Model.MWorkList) this.iWorkList;
                pmWorkList.PATIENT_ID   = dr.Cells["C_PATIENT_ID_PAT"].Value.ToString();
                pmWorkList.PATIENT_NAME = dr.Cells["C_NAME_PAT"].Value.ToString();
                pmWorkList.PATIENT_SEX  = dr.Cells["C_SEX_PAT"].Value.ToString();
                if (dr.Cells["C_DATE_OF_BIRTH_PAT"].Value.ToString() != "")
                {
                    pmWorkList.PATIENT_BIRTH = Convert.ToDateTime(dr.Cells["C_DATE_OF_BIRTH_PAT"].Value.ToString());
                }
                pmWorkList.BIRTH_PLACE = dr.Cells["C_BIRTH_PLACE_PAT"].Value.ToString();
                //pmWorkList.BIRTH_PLACE_CODE = dr.Cells["C_BIRTH_PLACE_CODE_PAT"].Value.ToString();
                if (dr.Cells["C_CHARGE_TYPE_PAT"].Value.ToString() != "")
                {
                    pmWorkList.CHARGE_TYPE = Convert.ToInt32(dr.Cells["C_CHARGE_TYPE_PAT"].Value.ToString());
                }
                pmWorkList.MAILING_ADDRESS  = dr.Cells["C_MAILING_ADDRESS_PAT"].Value.ToString();
                pmWorkList.ZIP_CODE         = dr.Cells["C_ZIP_CODE_PAT"].Value.ToString();
                pmWorkList.TELEPHONE_NUM    = dr.Cells["C_PHONE_NUMBER_HOME_PAT"].Value.ToString();
                pmWorkList.INP_NO           = dr.Cells["C_INP_NO_PAT"].Value.ToString();
                pmWorkList.PATIENT_IDENTITY = dr.Cells["C_IDENTITY_PAT"].Value.ToString();
                pmWorkList.PATIENT_PHONETIC = dr.Cells["C_NAME_PHONETIC_PAT"].Value.ToString();
                switch (GetConfig.hisVender)
                {
                case "JW":
                    pmWorkList.EXAM_NO = this.regJW.GetExamNo();
                    break;

                case "HT":
                    break;
                }
                PACS_Model.MArchives mPatientInf = (PACS_Model.MArchives) this.iArchives;
                mPatientInf.IDENTITY_CARD_NO = dr.Cells["C_ID_NO_PAT"].Value.ToString();
                break;
            }
        }
コード例 #8
0
        /* private void SelectExamAppoints1()
         * {
         *   DataGridViewRow dr = this.dgv_ExamAppoints.CurrentRow;
         *   switch (GetConfig.DALAndModel)
         *   {
         *       case "SIS":
         *           SIS_Model.MWorkList smWorkList = (SIS_Model.MWorkList)this.iWorkList;
         *           smWorkList.EXAM_NO = dr.Cells["C_EXAM_NO_HIS"].Value.ToString();
         *           smWorkList.PATIENT_ID = dr.Cells["C_PATIENT_ID_HIS"].Value.ToString();
         *           if (dr.Cells["C_VISIT_ID_HIS"].Value.ToString() != "")
         *               smWorkList.VISIT_ID = Convert.ToInt32(dr.Cells["C_VISIT_ID_HIS"].Value.ToString());
         *           smWorkList.LOCAL_ID_CLASS = dr.Cells["C_LOCAL_ID_CLASS_HIS"].Value.ToString();
         *           smWorkList.PATIENT_LOCAL_ID = dr.Cells["C_PATIENT_LOCAL_ID_HIS"].Value.ToString();
         *           smWorkList.PATIENT_NAME = dr.Cells["C_NAME_HIS"].Value.ToString();
         *           smWorkList.PATIENT_PHONETIC = dr.Cells["C_NAME_PHONETIC_HIS"].Value.ToString();
         *           smWorkList.PATIENT_SEX = dr.Cells["C_SEX_HIS"].Value.ToString();
         *           if (dr.Cells["C_DATE_OF_BIRTH_HIS"].Value.ToString() != "")
         *               smWorkList.PATIENT_BIRTH = Convert.ToDateTime(dr.Cells["C_DATE_OF_BIRTH_HIS"].Value.ToString());
         *           smWorkList.BIRTH_PLACE = dr.Cells["C_BIRTH_PLACE_HIS"].Value.ToString();
         *           //smWorkList.BIRTH_PLACE_CODE = dr.Cells["C_BIRTH_PLACE_CODE_HIS"].Value.ToString();
         *           smWorkList.PATIENT_IDENTITY = dr.Cells["C_IDENTITY_HIS"].Value.ToString();
         *           if (dr.Cells["C_CHARGE_TYPE_HIS"].Value.ToString() != "")
         *               smWorkList.CHARGE_TYPE = Convert.ToInt32(dr.Cells["C_CHARGE_TYPE_HIS"].Value.ToString());
         *           smWorkList.MAILING_ADDRESS = dr.Cells["C_MAILING_ADDRESS_HIS"].Value.ToString();
         *           smWorkList.ZIP_CODE = dr.Cells["C_ZIP_CODE_HIS"].Value.ToString();
         *           smWorkList.TELEPHONE_NUM = dr.Cells["C_PHONE_NUMBER_HIS"].Value.ToString();
         *           smWorkList.EXAM_CLASS = dr.Cells["C_EXAM_CLASS_HIS"].Value.ToString();
         *           smWorkList.EXAM_SUB_CLASS = dr.Cells["C_EXAM_SUB_CLASS_HIS"].Value.ToString();
         *           smWorkList.CLIN_SYMP = dr.Cells["C_CLIN_SYMP_HIS"].Value.ToString();
         *           smWorkList.PHYS_SIGN = dr.Cells["C_PHYS_SIGN_HIS"].Value.ToString();
         *           smWorkList.RELEVANT_LAB_TEST = dr.Cells["C_RELEVANT_LAB_TEST_HIS"].Value.ToString();
         *           smWorkList.RELEVANT_DIAG = dr.Cells["C_RELEVANT_DIAG_HIS"].Value.ToString();
         *           smWorkList.CLIN_DIAG = dr.Cells["C_CLIN_DIAG_HIS"].Value.ToString();
         *           smWorkList.EXAM_MODE = dr.Cells["C_EXAM_MODE_HIS"].Value.ToString();
         *           smWorkList.EXAM_GROUP = dr.Cells["C_EXAM_GROUP_HIS"].Value.ToString();
         *           smWorkList.EXAM_DEPT = dr.Cells["C_PERFORMED_BY_HIS"].Value.ToString();
         *           smWorkList.PATIENT_SOURCE = dr.Cells["C_PATIENT_SOURCE_HIS"].Value.ToString();
         *           smWorkList.OUT_MED_INSTITUTION = dr.Cells["C_FACILITY_HIS"].Value.ToString();
         *           if (dr.Cells["C_REQ_DATE_TIME_HIS"].Value.ToString() != "")
         *               smWorkList.REQ_DATE_TIME = Convert.ToDateTime(dr.Cells["C_REQ_DATE_TIME_HIS"].Value.ToString());
         *           smWorkList.REFER_DEPT = dr.Cells["C_REQ_DEPT_HIS"].Value.ToString();
         *           smWorkList.REFER_DOCTOR = dr.Cells["C_REQ_PHYSICIAN_HIS"].Value.ToString();
         *           smWorkList.REQ_MEMO = dr.Cells["C_REQ_MEMO_HIS"].Value.ToString();
         *           if (dr.Cells["C_SCHEDULED_DATE_HIS"].Value.ToString() != "")
         *               smWorkList.SCHEDULED_DATE = Convert.ToDateTime(dr.Cells["C_SCHEDULED_DATE_HIS"].Value.ToString());
         *           //smWorkList.NOTICE = dr.Cells["C_NOTICE_HIS"].Value.ToString();
         *           if (dr.Cells["C_COSTS_HIS"].Value.ToString() != "")
         *               smWorkList.COSTS = Convert.ToDecimal(dr.Cells["C_COSTS_HIS"].Value.ToString());
         *           if (dr.Cells["C_CHARGES_HIS"].Value.ToString() != "")
         *               smWorkList.CHARGES = Convert.ToDecimal(dr.Cells["C_CHARGES_HIS"].Value.ToString());
         *           break;
         *       case "PACS":
         *           PACS_Model.MWorkList pmWorkList = (PACS_Model.MWorkList)this.iWorkList;
         *           pmWorkList.EXAM_NO = dr.Cells["C_EXAM_NO_HIS"].Value.ToString();
         *           smWorkList.PATIENT_ID = dr.Cells["C_PATIENT_ID_HIS"].Value.ToString();
         *           if (dr.Cells["C_VISIT_ID_HIS"].Value.ToString() != "")
         *               smWorkList.VISIT_ID = Convert.ToInt32(dr.Cells["C_VISIT_ID_HIS"].Value.ToString());
         *           smWorkList.LOCAL_ID_CLASS = dr.Cells["C_LOCAL_ID_CLASS_HIS"].Value.ToString();
         *           smWorkList.PATIENT_LOCAL_ID = dr.Cells["C_PATIENT_LOCAL_ID_HIS"].Value.ToString();
         *           smWorkList.PATIENT_NAME = dr.Cells["C_NAME_HIS"].Value.ToString();
         *           smWorkList.PATIENT_PHONETIC = dr.Cells["C_NAME_PHONETIC_HIS"].Value.ToString();
         *           smWorkList.PATIENT_SEX = dr.Cells["C_SEX_HIS"].Value.ToString();
         *           if (dr.Cells["C_DATE_OF_BIRTH_HIS"].Value.ToString() != "")
         *               smWorkList.PATIENT_BIRTH = Convert.ToDateTime(dr.Cells["C_DATE_OF_BIRTH_HIS"].Value.ToString());
         *           smWorkList.BIRTH_PLACE = dr.Cells["C_BIRTH_PLACE_HIS"].Value.ToString();
         *           //smWorkList.BIRTH_PLACE_CODE = dr.Cells["C_BIRTH_PLACE_CODE_HIS"].Value.ToString();
         *           smWorkList.PATIENT_IDENTITY = dr.Cells["C_IDENTITY_HIS"].Value.ToString();
         *           if (dr.Cells["C_CHARGE_TYPE_HIS"].Value.ToString() != "")
         *               smWorkList.CHARGE_TYPE = Convert.ToInt32(dr.Cells["C_CHARGE_TYPE_HIS"].Value.ToString());
         *           smWorkList.MAILING_ADDRESS = dr.Cells["C_MAILING_ADDRESS_HIS"].Value.ToString();
         *           smWorkList.ZIP_CODE = dr.Cells["C_ZIP_CODE_HIS"].Value.ToString();
         *           smWorkList.TELEPHONE_NUM = dr.Cells["C_PHONE_NUMBER_HIS"].Value.ToString();
         *           smWorkList.EXAM_CLASS = dr.Cells["C_EXAM_CLASS_HIS"].Value.ToString();
         *           smWorkList.EXAM_SUB_CLASS = dr.Cells["C_EXAM_SUB_CLASS_HIS"].Value.ToString();
         *           smWorkList.CLIN_SYMP = dr.Cells["C_CLIN_SYMP_HIS"].Value.ToString();
         *           smWorkList.PHYS_SIGN = dr.Cells["C_PHYS_SIGN_HIS"].Value.ToString();
         *           smWorkList.RELEVANT_LAB_TEST = dr.Cells["C_RELEVANT_LAB_TEST_HIS"].Value.ToString();
         *           smWorkList.RELEVANT_DIAG = dr.Cells["C_RELEVANT_DIAG_HIS"].Value.ToString();
         *           smWorkList.CLIN_DIAG = dr.Cells["C_CLIN_DIAG_HIS"].Value.ToString();
         *           smWorkList.EXAM_MODE = dr.Cells["C_EXAM_MODE_HIS"].Value.ToString();
         *           smWorkList.EXAM_GROUP = dr.Cells["C_EXAM_GROUP_HIS"].Value.ToString();
         *           smWorkList.EXAM_DEPT = dr.Cells["C_PERFORMED_BY_HIS"].Value.ToString();
         *           smWorkList.PATIENT_SOURCE = dr.Cells["C_PATIENT_SOURCE_HIS"].Value.ToString();
         *           smWorkList.OUT_MED_INSTITUTION = dr.Cells["C_FACILITY_HIS"].Value.ToString();
         *           if (dr.Cells["C_REQ_DATE_TIME_HIS"].Value.ToString() != "")
         *               smWorkList.REQ_DATE_TIME = Convert.ToDateTime(dr.Cells["C_REQ_DATE_TIME_HIS"].Value.ToString());
         *           smWorkList.REFER_DEPT = dr.Cells["C_REQ_DEPT_HIS"].Value.ToString();
         *           smWorkList.REFER_DOCTOR = dr.Cells["C_REQ_PHYSICIAN_HIS"].Value.ToString();
         *           smWorkList.REQ_MEMO = dr.Cells["C_REQ_MEMO_HIS"].Value.ToString();
         *           if (dr.Cells["C_SCHEDULED_DATE_HIS"].Value.ToString() != "")
         *               smWorkList.SCHEDULED_DATE = Convert.ToDateTime(dr.Cells["C_SCHEDULED_DATE_HIS"].Value.ToString());
         *           //smWorkList.NOTICE = dr.Cells["C_NOTICE_HIS"].Value.ToString();
         *           if (dr.Cells["C_COSTS_HIS"].Value.ToString() != "")
         *               smWorkList.COSTS = Convert.ToDecimal(dr.Cells["C_COSTS_HIS"].Value.ToString());
         *           if (dr.Cells["C_CHARGES_HIS"].Value.ToString() != "")
         *               smWorkList.CHARGES = Convert.ToDecimal(dr.Cells["C_CHARGES_HIS"].Value.ToString());
         *           break;
         *   }
         *
         *   if (dr.Cells["C_PATIENT_SOURCE_NAME_HIS"].Value.ToString() == "病房")
         *       this.mode = "11";
         *   else
         *       this.mode = "01";
         * }*/
        /// <summary>
        /// 选中PACS系统病人资料库记录
        /// </summary>
        private void SelectPatientInf()
        {
            DataGridViewRow dr = this.dgv_PatientInf.CurrentRow;

            switch (GetConfig.DALAndModel)
            {
            case "SIS":
                SIS_Model.MArchives mArchives = (SIS_Model.MArchives) this.iArchives;
                mArchives.PATIENT_ID   = dr.Cells["C_PATIENT_ID"].Value.ToString();
                mArchives.PATIENT_NAME = dr.Cells["C_PATIENT_NAME"].Value.ToString();
                mArchives.PATIENT_SEX  = dr.Cells["C_PATIENT_SEX"].Value.ToString();
                if (dr.Cells["C_PATIENT_BIRTH"].Value.ToString() != "")
                {
                    mArchives.PATIENT_BIRTH = Convert.ToDateTime(dr.Cells["C_PATIENT_BIRTH"].Value.ToString());
                }
                mArchives.BIRTH_PLACE = dr.Cells["C_BIRTH_PLACE"].Value.ToString();
                //mPatientInf.BIRTH_PLACE_CODE = dr.Cells["C_BIRTH_PLACE_CODE"].Value.ToString();
                mArchives.IDENTITY_CARD_NO = dr.Cells["C_IDENTITY_CARD_NO"].Value.ToString();
                mArchives.MAILING_ADDRESS  = dr.Cells["C_MAILING_ADDRESS"].Value.ToString();
                mArchives.ZIP_CODE         = dr.Cells["C_ZIP_CODE"].Value.ToString();
                mArchives.TELEPHONE_NUM    = dr.Cells["C_TELEPHONE_NUMBER"].Value.ToString();
                mArchives.NATIVE_PLACE     = dr.Cells["C_PATIENT_BIRTH"].Value.ToString();
                mArchives.HABITATION       = dr.Cells["C_HABITATION"].Value.ToString();
                mArchives.OPD_NO           = dr.Cells["C_OPD_NO"].Value.ToString();
                mArchives.INP_NO           = dr.Cells["C_INP_NO"].Value.ToString();
                SIS_Model.MWorkList smWorkList = (SIS_Model.MWorkList) this.iWorkList;
                if (GetConfig.hisVisit)
                {
                    switch (GetConfig.hisVender)
                    {
                    case "JW":
                        smWorkList.EXAM_NO = this.regJW.GetExamNo();
                        break;

                    case "HT":
                        break;
                    }
                }
                if (dr.Cells["C_PATIENT_CLASS"].Value != null && dr.Cells["C_PATIENT_CLASS"].Value.ToString() != "")
                {
                    smWorkList.PATIENT_CLASS = Convert.ToInt32(dr.Cells["C_PATIENT_CLASS"].Value.ToString());
                }
                //smWorkList.PATIENT_PHONETIC = dr.Cells["C_PATIENT_ENGLISH_NAME"].Value.ToString();
                smWorkList.OPD_NO       = dr.Cells["C_OPD_NO"].Value.ToString();
                smWorkList.INP_NO       = dr.Cells["C_INP_NO"].Value.ToString();
                smWorkList.PATIENT_ID   = dr.Cells["C_PATIENT_ID"].Value.ToString();
                smWorkList.PATIENT_NAME = dr.Cells["C_PATIENT_NAME"].Value.ToString();
                smWorkList.PATIENT_SEX  = dr.Cells["C_PATIENT_SEX"].Value.ToString();
                if (dr.Cells["C_PATIENT_BIRTH"].Value.ToString() != "")
                {
                    smWorkList.PATIENT_BIRTH = Convert.ToDateTime(dr.Cells["C_PATIENT_BIRTH"].Value.ToString());
                }
                smWorkList.BIRTH_PLACE     = dr.Cells["C_BIRTH_PLACE"].Value.ToString();
                smWorkList.MAILING_ADDRESS = dr.Cells["C_MAILING_ADDRESS"].Value.ToString();
                smWorkList.ZIP_CODE        = dr.Cells["C_ZIP_CODE"].Value.ToString();
                smWorkList.TELEPHONE_NUM   = dr.Cells["C_TELEPHONE_NUMBER"].Value.ToString();
                break;

            case "PACS":
                PACS_Model.MArchives mPatientInf = (PACS_Model.MArchives) this.iArchives;
                mPatientInf.PATIENT_ID   = dr.Cells["C_PATIENT_ID"].Value.ToString();
                mPatientInf.PATIENT_NAME = dr.Cells["C_PATIENT_NAME"].Value.ToString();
                mPatientInf.PATIENT_SEX  = dr.Cells["C_PATIENT_SEX"].Value.ToString();
                if (dr.Cells["C_PATIENT_BIRTH"].Value.ToString() != "")
                {
                    mPatientInf.PATIENT_BIRTH = Convert.ToDateTime(dr.Cells["C_PATIENT_BIRTH"].Value.ToString());
                }
                mPatientInf.BIRTH_PLACE = dr.Cells["C_BIRTH_PLACE"].Value.ToString();
                //mPatientInf.BIRTH_PLACE_CODE = dr.Cells["C_BIRTH_PLACE_CODE"].Value.ToString();
                mPatientInf.IDENTITY_CARD_NO = dr.Cells["C_IDENTITY_CARD_NO"].Value.ToString();
                mPatientInf.MAILING_ADDRESS  = dr.Cells["C_MAILING_ADDRESS"].Value.ToString();
                mPatientInf.ZIP_CODE         = dr.Cells["C_ZIP_CODE"].Value.ToString();
                mPatientInf.TELEPHONE_NUMBER = dr.Cells["C_TELEPHONE_NUMBER"].Value.ToString();
                mPatientInf.NATIVE_PLACE     = dr.Cells["C_PATIENT_BIRTH"].Value.ToString();
                mPatientInf.HABITATION       = dr.Cells["C_HABITATION"].Value.ToString();
                mPatientInf.OPD_NO           = dr.Cells["C_OPD_NO"].Value.ToString();
                mPatientInf.INP_NO           = dr.Cells["C_INP_NO"].Value.ToString();
                PACS_Model.MWorkList pmWorkList = (PACS_Model.MWorkList) this.iWorkList;
                if (GetConfig.hisVisit)
                {
                    switch (GetConfig.hisVender)
                    {
                    case "JW":
                        pmWorkList.EXAM_NO = this.regJW.GetExamNo();
                        break;

                    case "HT":
                        break;
                    }
                }
                if (dr.Cells["C_PATIENT_CLASS"].Value != null && dr.Cells["C_PATIENT_CLASS"].Value.ToString() != "")
                {
                    pmWorkList.PATIENT_CLASS = Convert.ToInt32(dr.Cells["C_PATIENT_CLASS"].Value.ToString());
                }
                //pmWorkList.PATIENT_PHONETIC = dr.Cells["C_PATIENT_ENGLISH_NAME"].Value.ToString();
                pmWorkList.OPD_NO       = dr.Cells["C_OPD_NO"].Value.ToString();
                pmWorkList.INP_NO       = dr.Cells["C_INP_NO"].Value.ToString();
                pmWorkList.PATIENT_ID   = dr.Cells["C_PATIENT_ID"].Value.ToString();
                pmWorkList.PATIENT_NAME = dr.Cells["C_PATIENT_NAME"].Value.ToString();
                pmWorkList.PATIENT_SEX  = dr.Cells["C_PATIENT_SEX"].Value.ToString();
                if (dr.Cells["C_PATIENT_BIRTH"].Value.ToString() != "")
                {
                    pmWorkList.PATIENT_BIRTH = Convert.ToDateTime(dr.Cells["C_PATIENT_BIRTH"].Value.ToString());
                }
                pmWorkList.BIRTH_PLACE     = dr.Cells["C_BIRTH_PLACE"].Value.ToString();
                pmWorkList.MAILING_ADDRESS = dr.Cells["C_MAILING_ADDRESS"].Value.ToString();
                pmWorkList.ZIP_CODE        = dr.Cells["C_ZIP_CODE"].Value.ToString();
                pmWorkList.TELEPHONE_NUM   = dr.Cells["C_TELEPHONE_NUMBER"].Value.ToString();
                break;
            }
        }
コード例 #9
0
        /// <summary>
        /// 选中HIS检查申请记录
        /// </summary>
        private void SelectExamAppoints()
        {
            DataGridViewRow dr = this.dgv_ExamAppoints.SelectedRows[0];

            switch (GetConfig.DALAndModel)
            {
            case "SIS":

                SIS_Model.MArchives mArchives = (SIS_Model.MArchives) this.iArchives;

                mArchives.PATIENT_NAME = dr.Cells["C_NAME_HIS"].Value.ToString();
                mArchives.PATIENT_SEX  = dr.Cells["SEX"].Value.ToString();
                if (dr.Cells["BIRTHDATE"].Value.ToString() != "")
                {
                    mArchives.PATIENT_BIRTH = Convert.ToDateTime(dr.Cells["BIRTHDATE"].Value.ToString());
                }

                mArchives.IDENTITY_CARD_NO = dr.Cells["PATSTACODE"].Value.ToString();
                mArchives.MAILING_ADDRESS  = dr.Cells["ADDRESS"].Value.ToString();

                mArchives.TELEPHONE_NUM = dr.Cells["TELEPHONE"].Value.ToString();
                //mArchives.PATIENT_ID = dr.Cells["C_PATIENT_ID"].Value.ToString();
                //mArchives.NATIVE_PLACE = dr.Cells["C_PATIENT_BIRTH"].Value.ToString();
                //mArchives.HABITATION = dr.Cells["C_HABITATION"].Value.ToString();
                //mArchives.OPD_NO = dr.Cells["C_OPD_NO"].Value.ToString();床号
                //mArchives.INP_NO = dr.Cells["C_INP_NO"].Value.ToString(); 住院号
                //mArchives.ZIP_CODE = dr.Cells["C_ZIP_CODE"].Value.ToString();
                //mArchives.BIRTH_PLACE = dr.Cells["C_BIRTH_PLACE"].Value.ToString();
                //mPatientInf.BIRTH_PLACE_CODE = dr.Cells["C_BIRTH_PLACE_CODE"].Value.ToString();
                SIS_Model.MWorkList smWorkList = (SIS_Model.MWorkList) this.iWorkList;
                smWorkList.PATIENT_NAME = dr.Cells["C_NAME_HIS"].Value.ToString();
                smWorkList.PATIENT_SEX  = dr.Cells["SEX"].Value.ToString();
                if (dr.Cells["BIRTHDATE"].Value.ToString() != "")
                {
                    smWorkList.PATIENT_BIRTH = Convert.ToDateTime(dr.Cells["BIRTHDATE"].Value.ToString());
                }
                if (dr.Cells["SOURCE"].Value.ToString() == "住院")
                {
                    smWorkList.INP_NO = dr.Cells["INHOSPITALNO"].Value.ToString();    //住院号
                }
                else
                {
                    smWorkList.OPD_NO = dr.Cells["INHOSPITALNO"].Value.ToString();    //门诊号
                }
                // smWorkList.dr.Cells["PATSTACODE"].Value.ToString()         //身份证号
                smWorkList.BED_NUM         = dr.Cells["BEDNO"].Value.ToString();        //床号
                smWorkList.MAILING_ADDRESS = dr.Cells["ADDRESS"].Value.ToString();      //地址
                smWorkList.TELEPHONE_NUM   = dr.Cells["TELEPHONE"].Value.ToString();    //电话
                smWorkList.PATIENT_SOURCE  = dr.Cells["CLIISINPAT"].Value.ToString();   //病人来源
                smWorkList.REFER_DEPT      = dr.Cells["LODGESECTION"].Value.ToString(); //申请科室
                smWorkList.REFER_DOCTOR    = dr.Cells["LODGEDOCTOR"].Value.ToString();  //申请医生
                smWorkList.CLIN_DIAG       = dr.Cells["DIAGNOSIS"].Value.ToString();    //诊断
                //smWorkList.EXAM_ITEMS=dr.Cells[""]                              //检查项目

                smWorkList.EXAM_NO = dr.Cells["ApplyNo"].Value.ToString();    //申请单号
                //smWorkList.INPATIENTNO = dr.Cells["INPATIENTNO"].Value.ToString();//记账号
                smWorkList.JZH = dr.Cells["INPATIENTNO"].Value.ToString();    //记账号



                break;

            case "PACS":
                PACS_Model.MArchives PArchives = (PACS_Model.MArchives) this.iArchives;
                // mArchives.PATIENT_ID = dr.Cells["C_PATIENT_ID"].Value.ToString();
                PArchives.PATIENT_NAME = dr.Cells["C_NAME_HIS"].Value.ToString();
                PArchives.PATIENT_SEX  = dr.Cells["SEX"].Value.ToString();
                if (dr.Cells["BIRTHDATE"].Value.ToString() != "")
                {
                    PArchives.PATIENT_BIRTH = Convert.ToDateTime(dr.Cells["BIRTHDATE"].Value.ToString());
                }
                //mArchives.BIRTH_PLACE = dr.Cells["C_BIRTH_PLACE"].Value.ToString();
                //mPatientInf.BIRTH_PLACE_CODE = dr.Cells["C_BIRTH_PLACE_CODE"].Value.ToString();
                PArchives.IDENTITY_CARD_NO = dr.Cells["PATSTACODE"].Value.ToString();
                PArchives.MAILING_ADDRESS  = dr.Cells["ADDRESS"].Value.ToString();
                //mArchives.ZIP_CODE = dr.Cells["C_ZIP_CODE"].Value.ToString();
                //  PArchives.TELEPHONE_NUM = dr.Cells["TELEPHONE"].Value.ToString();
                //mArchives.NATIVE_PLACE = dr.Cells["C_PATIENT_BIRTH"].Value.ToString();
                // mArchives.HABITATION = dr.Cells["C_HABITATION"].Value.ToString();
                // mArchives.OPD_NO = dr.Cells["C_OPD_NO"].Value.ToString();床号
                //  mArchives.INP_NO = dr.Cells["C_INP_NO"].Value.ToString(); 住院号


                PACS_Model.MWorkList pmWorkList = (PACS_Model.MWorkList) this.iWorkList;
                pmWorkList.PATIENT_NAME = dr.Cells["C_NAME_HIS"].Value.ToString();
                pmWorkList.PATIENT_SEX  = dr.Cells["SEX"].Value.ToString();
                if (dr.Cells["BIRTHDATE"].Value.ToString() != "")
                {
                    pmWorkList.PATIENT_BIRTH = Convert.ToDateTime(dr.Cells["BIRTHDATE"].Value.ToString());
                }
                if (dr.Cells["SOURCE"].Value.ToString() == "住院")
                {
                    pmWorkList.INP_NO = dr.Cells["INHOSPITALNO"].Value.ToString();    //住院号
                }
                else
                {
                    pmWorkList.OPD_NO = dr.Cells["INHOSPITALNO"].Value.ToString();    //门诊号
                }
                // smWorkList.dr.Cells["PATSTACODE"].Value.ToString()         //身份证号
                pmWorkList.BED_NUM         = dr.Cells["BEDNO"].Value.ToString();        //床号
                pmWorkList.MAILING_ADDRESS = dr.Cells["ADDRESS"].Value.ToString();      //地址
                pmWorkList.TELEPHONE_NUM   = dr.Cells["TELEPHONE"].Value.ToString();    //电话
                pmWorkList.PATIENT_SOURCE  = dr.Cells["CLIISINPAT"].Value.ToString();   //病人来源
                pmWorkList.REFER_DEPT      = dr.Cells["LODGESECTION"].Value.ToString(); //申请科室
                pmWorkList.REFER_DOCTOR    = dr.Cells["LODGEDOCTOR"].Value.ToString();  //申请医生
                pmWorkList.CLIN_DIAG       = dr.Cells["DIAGNOSIS"].Value.ToString();    //诊断
                //smWorkList.EXAM_ITEMS=dr.Cells[""]                              //检查项目
                pmWorkList.EXAM_NO = dr.Cells["ApplyNo"].Value.ToString();              //申请单号
                //pmWorkList.INPATIENTNO = dr.Cells["INPATIENTNO"].Value.ToString();//记账号
                pmWorkList.JZH = dr.Cells["INPATIENTNO"].Value.ToString();              //记账号
                break;
            }

            if (dr.Cells["CLIISINPAT"].Value.ToString() == "2")
            {
                this.mode = "11";
            }
            else
            {
                this.mode = "01";
            }

            this.Close();
        }
コード例 #10
0
ファイル: SaveReg.cs プロジェクト: xuanximoming/PIC
        /// <summary>
        /// 11:住院检查申请;
        /// </summary>
        /// <returns></returns>
        private bool Save11()
        {
            if (GetConfig.hisVisit)
            {
                switch (GetConfig.hisVender)
                {
                case "JW":
                    switch (GetConfig.DALAndModel)
                    {
                    case "SIS":
                        SIS_Model.MWorkList smWorkList = (SIS_Model.MWorkList) this.reg.iWorkList;
                        this.chargeItemNo = this.reg.regJW.GetChargeItemNo(smWorkList.PATIENT_ID, smWorkList.VISIT_ID);
                        if (GetConfig.RM_INPIsConfirmed)
                        {
                            if (!this.reg.regJW.AddInpBillDetail(this.reg.computeCharge.Now_DT_VS_Group, this.chargeItemNo, smWorkList.EXAM_DEPT, smWorkList.REFER_DEPT,
                                                                 this.reg.computeCharge.chargeRatio, smWorkList.PATIENT_ID, smWorkList.VISIT_ID, smWorkList.SCH_OPERATOR))
                            {
                                return(false);
                            }
                        }
                        break;

                    case "PACS":
                        PACS_Model.MWorkList pmWorkList = (PACS_Model.MWorkList) this.reg.iWorkList;
                        this.chargeItemNo = this.reg.regJW.GetChargeItemNo(pmWorkList.PATIENT_ID, pmWorkList.VISIT_ID);
                        if (GetConfig.RM_INPIsConfirmed)
                        {
                            if (!this.reg.regJW.AddInpBillDetail(this.reg.computeCharge.Now_DT_VS_Group, this.chargeItemNo, pmWorkList.EXAM_DEPT, pmWorkList.REFER_DEPT,
                                                                 this.reg.computeCharge.chargeRatio, pmWorkList.PATIENT_ID, pmWorkList.VISIT_ID, pmWorkList.SCH_OPERATOR))
                            {
                                return(false);
                            }
                        }
                        break;
                    }
                    break;

                case "HT":
                    break;
                }
            }
            if (!this.reg.localIdCreater.UpdatePatientInfLocalId(this.reg.iPatientInfLocalId))
            {
                return(false);
            }
            switch (GetConfig.DALAndModel)
            {
            case "SIS":
                if (!SaveSIS())
                {
                    return(false);
                }
                break;

            case "PACS":
                if (!SavePacs())
                {
                    return(false);
                }
                break;
            }
            if (GetConfig.hisVisit)
            {
                switch (GetConfig.hisVender)
                {
                case "JW":
                    switch (GetConfig.DALAndModel)
                    {
                    case "SIS":
                        SIS_Model.MWorkList smWorkList = (SIS_Model.MWorkList) this.reg.iWorkList;
                        this.reg.regJW.DeleteExamAppoints(smWorkList.EXAM_NO);        //删除EXAM_APPOINTS表记录
                        break;

                    case "PACS":
                        PACS_Model.MWorkList pmWorkList = (PACS_Model.MWorkList) this.reg.iWorkList;
                        this.reg.regJW.DeleteExamAppoints(pmWorkList.EXAM_NO);        //删除EXAM_APPOINTS表记录
                        break;
                    }
                    break;

                case "HT":
                    break;
                }
            }
            this.reg.localIdCreater.ReSetLocalIdMax();
            return(true);
        }
コード例 #11
0
        public void SetWorkListData(string Field, object Value, IModel iWorkList)
        {
            switch (GetConfig.DALAndModel)
            {
            case "PACS":
                PACS_Model.MWorkList pmWorkList = (PACS_Model.MWorkList)iWorkList;
                switch (Field)
                {
                case "ACCESSION_NO":
                    pmWorkList.ACCESSION_NO = Convert.ToInt32(Value);
                    break;

                case "BED_NUM":
                    pmWorkList.BED_NUM = Value.ToString();
                    break;

                case "BIRTH_PLACE":
                    pmWorkList.BIRTH_PLACE = Value.ToString();
                    break;

                case "CHARGE_TYPE":
                    pmWorkList.CHARGE_TYPE = Convert.ToInt32(Value);
                    break;

                case "CHARGES":
                    pmWorkList.CHARGES = Convert.ToDecimal(Value);
                    break;

                case "CLIN_DIAG":
                    pmWorkList.CLIN_DIAG = Value.ToString();
                    break;

                case "CLIN_SYMP":
                    pmWorkList.CLIN_SYMP = Value.ToString();
                    break;

                case "COSTS":
                    pmWorkList.COSTS = Convert.ToDecimal(Value);
                    break;

                case "DEVICE":
                    pmWorkList.DEVICE = Value.ToString();
                    break;

                case "DISPATCH_STATUS":
                    pmWorkList.DISPATCH_STATUS = Convert.ToInt32(Value);
                    break;

                case "EXAM_ACCESSION_NUM":
                    pmWorkList.EXAM_ACCESSION_NUM = Value.ToString();
                    break;

                case "EXAM_CLASS":
                    pmWorkList.EXAM_CLASS = Value.ToString();
                    break;

                case "EXAM_DEPT":
                    pmWorkList.EXAM_DEPT = Value.ToString();
                    break;

                case "EXAM_DEPT_NAME":
                    pmWorkList.EXAM_DEPT_NAME = Value.ToString();
                    break;

                case "EXAM_DOCTOR":
                    pmWorkList.EXAM_DOCTOR = Value.ToString();
                    break;

                case "EXAM_GROUP":
                    pmWorkList.EXAM_GROUP = Value.ToString();
                    break;

                case "EXAM_INDEX":
                    pmWorkList.EXAM_INDEX = Convert.ToInt32(Value);
                    break;

                case "EXAM_INTRADAYSEQ_NO":
                    pmWorkList.EXAM_INTRADAYSEQ_NO = Convert.ToDecimal(Value);
                    break;

                case "EXAM_ITEMS":
                    pmWorkList.EXAM_ITEMS = Value.ToString();
                    break;

                case "EXAM_MODE":
                    pmWorkList.EXAM_MODE = Value.ToString();
                    break;

                case "EXAM_NO":
                    pmWorkList.EXAM_NO = Value.ToString();
                    break;

                case "EXAM_STEP_STATUS":
                    pmWorkList.EXAM_STEP_STATUS = Convert.ToInt32(Value);
                    break;

                case "EXAM_SUB_CLASS":
                    pmWorkList.EXAM_SUB_CLASS = Value.ToString();
                    break;

                case "FACILITY":
                    pmWorkList.FACILITY = Value.ToString();
                    break;

                case "IMAGE_ARCHIVED":
                    pmWorkList.IMAGE_ARCHIVED = Convert.ToInt32(Value);
                    break;

                case "IMAGE_COUNTS":
                    pmWorkList.IMAGE_COUNTS = Convert.ToInt32(Value);
                    break;

                case "INP_NO":
                    pmWorkList.INP_NO = Value.ToString();
                    break;

                case "IS_CONFIRMED":
                    pmWorkList.IS_CONFIRMED = Convert.ToInt32(Value);
                    break;

                case "IS_TEMPORARY":
                    pmWorkList.IS_TEMPORARY = Convert.ToInt32(Value);
                    break;

                case "LOCAL_ID_CLASS":
                    pmWorkList.LOCAL_ID_CLASS = Value.ToString();
                    break;

                case "MAILING_ADDRESS":
                    pmWorkList.MAILING_ADDRESS = Value.ToString();
                    break;

                case "MATCH_STATUS":
                    pmWorkList.MATCH_STATUS = Convert.ToInt32(Value);
                    break;

                case "OPD_NO":
                    pmWorkList.OPD_NO = Value.ToString();
                    break;

                case "OUT_MED_INSTITUTION":
                    pmWorkList.OUT_MED_INSTITUTION = Value.ToString();
                    break;

                case "PATIENT_AGE":
                    pmWorkList.PATIENT_AGE = Convert.ToInt32(Value);
                    break;

                case "PATIENT_AGE_UNIT":
                    pmWorkList.PATIENT_AGE_UNIT = Value.ToString();
                    break;

                case "PATIENT_BIRTH":
                    pmWorkList.PATIENT_BIRTH = Convert.ToDateTime(Value);
                    break;

                case "PATIENT_CLASS":
                    pmWorkList.PATIENT_CLASS = Convert.ToInt32(Value);
                    break;

                case "PATIENT_ID":
                    pmWorkList.PATIENT_ID = Value.ToString();
                    break;

                case "PATIENT_IDENTITY":
                    pmWorkList.PATIENT_IDENTITY = Value.ToString();
                    break;

                case "PATIENT_LOCAL_ID":
                    pmWorkList.PATIENT_LOCAL_ID = Value.ToString();
                    break;

                case "PATIENT_NAME":
                    pmWorkList.PATIENT_NAME = Value.ToString();
                    break;

                case "PATIENT_PHONETIC":
                    pmWorkList.PATIENT_PHONETIC = Value.ToString();
                    break;

                case "PATIENT_SEX":
                    pmWorkList.PATIENT_SEX = Value.ToString();
                    break;

                case "PATIENT_SOURCE":
                    pmWorkList.PATIENT_SOURCE = Value.ToString();
                    break;

                case "PHYS_SIGN":
                    pmWorkList.PHYS_SIGN = Value.ToString();
                    break;

                case "PRE_FETCH":
                    pmWorkList.PRE_FETCH = Convert.ToInt32(Value);
                    break;

                case "QUERY_STATUS":
                    pmWorkList.QUERY_STATUS = Convert.ToInt32(Value);
                    break;

                case "QUERY_TIME":
                    pmWorkList.QUERY_TIME = Convert.ToDateTime(Value);
                    break;

                case "REFER_DEPT":
                    pmWorkList.REFER_DEPT = Value.ToString();
                    break;

                case "REFER_DOCTOR":
                    pmWorkList.REFER_DOCTOR = Value.ToString();
                    break;

                case "RELEVANT_DIAG":
                    pmWorkList.RELEVANT_DIAG = Value.ToString();
                    break;

                case "RELEVANT_LAB_TEST":
                    pmWorkList.RELEVANT_LAB_TEST = Value.ToString();
                    break;

                case "REPORT_DOCTOR":
                    pmWorkList.REPORT_DOCTOR = Value.ToString();
                    break;

                case "REPORT_STATUS":
                    pmWorkList.REPORT_STATUS = Convert.ToInt32(Value);
                    break;

                case "REQ_DATE_TIME":
                    pmWorkList.REQ_DATE_TIME = Convert.ToDateTime(Value);
                    break;

                case "REQ_DEPT_NAME":
                    pmWorkList.REQ_DEPT_NAME = Value.ToString();
                    break;

                case "REQ_MEMO":
                    pmWorkList.REQ_MEMO = Value.ToString();
                    break;

                case "SCH_OPERATOR":
                    pmWorkList.SCH_OPERATOR = Value.ToString();
                    break;

                case "SCHEDULED_DATE":
                    // modify by liukun at 2010-6-30 begin
                    //修改记录:传入的预约时间为空时,保存到后台数据库的数据也为空,
                    //如果不按如下的方法处理,则Convert.ToDateTime(null)的返回值为:0001-1-1,而不是为空
                    Nullable <DateTime> nulldate = null;
                    pmWorkList.SCHEDULED_DATE = (Value == null ? nulldate : Convert.ToDateTime(Value));
                    // modify by liukun at 2010-6-30 end
                    break;

                case "STUDY_DATE_TIME":
                    pmWorkList.STUDY_DATE_TIME = Convert.ToDateTime(Value);
                    break;

                case "STUDY_INSTANCE_UID":
                    pmWorkList.STUDY_INSTANCE_UID = Value.ToString();
                    break;

                case "STUDY_PATH":
                    pmWorkList.STUDY_PATH = Value.ToString();
                    break;

                case "TELEPHONE_NUM":
                    pmWorkList.TELEPHONE_NUM = Value.ToString();
                    break;

                case "VIP_INDICATOR":
                    pmWorkList.VIP_INDICATOR = Convert.ToInt32(Value);
                    break;

                case "VISIT_ID":
                    pmWorkList.VISIT_ID = Convert.ToInt32(Value);
                    break;

                case "ZIP_CODE":
                    pmWorkList.ZIP_CODE = Value.ToString();
                    break;
                }
                break;

            case "SIS":
                SIS_Model.MWorkList smWorkList = (SIS_Model.MWorkList)iWorkList;
                switch (Field)
                {
                case "ACCESSION_NO":
                    smWorkList.ACCESSION_NO = Convert.ToInt32(Value);
                    break;

                case "BED_NUM":
                    smWorkList.BED_NUM = Value.ToString();
                    break;

                case "BIRTH_PLACE":
                    smWorkList.BIRTH_PLACE = Value.ToString();
                    break;

                case "CHARGE_TYPE":
                    smWorkList.CHARGE_TYPE = Convert.ToInt32(Value);
                    break;

                case "CHARGES":
                    smWorkList.CHARGES = Convert.ToDecimal(Value);
                    break;

                case "CLIN_DIAG":
                    smWorkList.CLIN_DIAG = Value.ToString();
                    break;

                case "CLIN_SYMP":
                    smWorkList.CLIN_SYMP = Value.ToString();
                    break;

                case "COSTS":
                    smWorkList.COSTS = Convert.ToDecimal(Value);
                    break;

                case "DEVICE":
                    smWorkList.DEVICE = Value.ToString();
                    break;

                case "DISPATCH_STATUS":
                    smWorkList.DISPATCH_STATUS = Convert.ToInt32(Value);
                    break;

                case "EXAM_ACCESSION_NUM":
                    smWorkList.EXAM_ACCESSION_NUM = Value.ToString();
                    break;

                case "EXAM_CLASS":
                    smWorkList.EXAM_CLASS = Value.ToString();
                    break;

                case "EXAM_DEPT":
                    smWorkList.EXAM_DEPT = Value.ToString();
                    break;

                case "EXAM_DEPT_NAME":
                    smWorkList.EXAM_DEPT_NAME = Value.ToString();
                    break;

                case "EXAM_DOCTOR":
                    smWorkList.EXAM_DOCTOR = Value.ToString();
                    break;

                case "EXAM_GROUP":
                    smWorkList.EXAM_GROUP = Value.ToString();
                    break;

                case "EXAM_INDEX":
                    smWorkList.EXAM_INDEX = Convert.ToInt32(Value);
                    break;

                case "EXAM_INTRADAYSEQ_NO":
                    smWorkList.EXAM_INTRADAYSEQ_NO = Convert.ToDecimal(Value);
                    break;

                case "EXAM_ITEMS":
                    smWorkList.EXAM_ITEMS = Value.ToString();
                    break;

                case "EXAM_MODE":
                    smWorkList.EXAM_MODE = Value.ToString();
                    break;

                case "EXAM_NO":
                    smWorkList.EXAM_NO = Value.ToString();
                    break;

                case "EXAM_STEP_STATUS":
                    smWorkList.EXAM_STEP_STATUS = Convert.ToInt32(Value);
                    break;

                case "EXAM_SUB_CLASS":
                    smWorkList.EXAM_SUB_CLASS = Value.ToString();
                    break;

                case "FACILITY":
                    smWorkList.FACILITY = Value.ToString();
                    break;

                case "IMAGE_ARCHIVED":
                    smWorkList.IMAGE_ARCHIVED = Convert.ToInt32(Value);
                    break;

                case "IMAGE_COUNTS":
                    smWorkList.IMAGE_COUNTS = Convert.ToInt32(Value);
                    break;

                case "INP_NO":
                    smWorkList.INP_NO = Value.ToString();
                    break;

                case "IS_CONFIRMED":
                    smWorkList.IS_CONFIRMED = Convert.ToInt32(Value);
                    break;

                case "IS_TEMPORARY":
                    smWorkList.IS_TEMPORARY = Convert.ToInt32(Value);
                    break;

                case "LOCAL_ID_CLASS":
                    smWorkList.LOCAL_ID_CLASS = Value.ToString();
                    break;

                case "MAILING_ADDRESS":
                    smWorkList.MAILING_ADDRESS = Value.ToString();
                    break;

                case "MATCH_STATUS":
                    smWorkList.MATCH_STATUS = Convert.ToInt32(Value);
                    break;

                case "OPD_NO":
                    smWorkList.OPD_NO = Value.ToString();
                    break;

                case "OUT_MED_INSTITUTION":
                    smWorkList.OUT_MED_INSTITUTION = Value.ToString();
                    break;

                case "PATIENT_AGE":
                    smWorkList.PATIENT_AGE = Convert.ToInt32(Value);
                    break;

                case "PATIENT_AGE_UNIT":
                    smWorkList.PATIENT_AGE_UNIT = Value.ToString();
                    break;

                case "PATIENT_BIRTH":
                    smWorkList.PATIENT_BIRTH = Convert.ToDateTime(Value);
                    break;

                case "PATIENT_CLASS":
                    smWorkList.PATIENT_CLASS = Convert.ToInt32(Value);
                    break;

                case "PATIENT_ID":
                    smWorkList.PATIENT_ID = Value.ToString();
                    break;

                case "PATIENT_IDENTITY":
                    smWorkList.PATIENT_IDENTITY = Value.ToString();
                    break;

                case "PATIENT_LOCAL_ID":
                    smWorkList.PATIENT_LOCAL_ID = Value.ToString();
                    break;

                case "PATIENT_NAME":
                    smWorkList.PATIENT_NAME = Value.ToString();
                    break;

                case "PATIENT_PHONETIC":
                    smWorkList.PATIENT_PHONETIC = Value.ToString();
                    break;

                case "PATIENT_SEX":
                    smWorkList.PATIENT_SEX = Value.ToString();
                    break;

                case "PATIENT_SOURCE":
                    smWorkList.PATIENT_SOURCE = Value.ToString();
                    break;

                case "PHYS_SIGN":
                    smWorkList.PHYS_SIGN = Value.ToString();
                    break;

                case "PRE_FETCH":
                    smWorkList.PRE_FETCH = Convert.ToInt32(Value);
                    break;

                case "QUERY_STATUS":
                    smWorkList.QUERY_STATUS = Convert.ToInt32(Value);
                    break;

                case "QUERY_TIME":
                    smWorkList.QUERY_TIME = Convert.ToDateTime(Value);
                    break;

                case "REFER_DEPT":
                    smWorkList.REFER_DEPT = Value.ToString();
                    break;

                case "REFER_DOCTOR":
                    smWorkList.REFER_DOCTOR = Value.ToString();
                    break;

                case "RELEVANT_DIAG":
                    smWorkList.RELEVANT_DIAG = Value.ToString();
                    break;

                case "RELEVANT_LAB_TEST":
                    smWorkList.RELEVANT_LAB_TEST = Value.ToString();
                    break;

                case "REPORT_DOCTOR":
                    smWorkList.REPORT_DOCTOR = Value.ToString();
                    break;

                case "REPORT_STATUS":
                    smWorkList.REPORT_STATUS = Convert.ToInt32(Value);
                    break;

                case "REQ_DATE_TIME":
                    smWorkList.REQ_DATE_TIME = Convert.ToDateTime(Value);
                    break;

                case "REQ_DEPT_NAME":
                    smWorkList.REQ_DEPT_NAME = Value.ToString();
                    break;

                case "REQ_MEMO":
                    smWorkList.REQ_MEMO = Value.ToString();
                    break;

                case "SCH_OPERATOR":
                    smWorkList.SCH_OPERATOR = Value.ToString();
                    break;

                case "SCHEDULED_DATE":
                    // modify by liukun at 2010-6-30 begin
                    //修改记录:传入的预约时间为空时,保存到后台数据库的数据也为空,
                    //如果不按如下的方法处理,则Convert.ToDateTime(null)的返回值为:0001-1-1,而不是为空
                    Nullable <DateTime> nulldate = null;
                    smWorkList.SCHEDULED_DATE = (Value == null ? nulldate : Convert.ToDateTime(Value));
                    // modify by liukun at 2010-6-30 end
                    break;

                case "STUDY_DATE_TIME":
                    smWorkList.STUDY_DATE_TIME = Convert.ToDateTime(Value);
                    break;

                case "STUDY_INSTANCE_UID":
                    smWorkList.STUDY_INSTANCE_UID = Value.ToString();
                    break;

                case "STUDY_PATH":
                    smWorkList.STUDY_PATH = Value.ToString();
                    break;

                case "TELEPHONE_NUM":
                    smWorkList.TELEPHONE_NUM = Value.ToString();
                    break;

                case "VIP_INDICATOR":
                    smWorkList.VIP_INDICATOR = Convert.ToInt32(Value);
                    break;

                case "VISIT_ID":
                    smWorkList.VISIT_ID = Convert.ToInt32(Value);
                    break;

                case "ZIP_CODE":
                    smWorkList.ZIP_CODE = Value.ToString();
                    break;
                }
                break;
            }
        }
コード例 #12
0
ファイル: ImageCopy.cs プロジェクト: xuanximoming/PIC
        /// <summary>
        /// 下载报告
        /// </summary>
        /// <returns></returns>
        public IModel ReportDownLoad(IModel iWorklist, string saveDir)
        {
            string ReportPath = saveDir + "\\report.doc";

            try
            {
                if (GetConfig.DALAndModel == "SIS")
                {
                    SIS_Model.MWorkList mWorklist = (SIS_Model.MWorkList)iWorklist;
                    SIS_Model.MReport   mReport   = (SIS_Model.MReport)bReport.GetModel(mWorklist.EXAM_ACCESSION_NUM);
                    if (mReport == null || mReport.REPORT_NAME == null)
                    {
                        if (mReport == null)
                        {
                            mReport = new SIS_Model.MReport();
                        }
                        SIS_Model.MPrintTemplateDict mPrint = (SIS_Model.MPrintTemplateDict)bPrint.GetModel(mWorklist.EXAM_CLASS, mWorklist.EXAM_SUB_CLASS);
                        if (mPrint != null)
                        {
                            FileOp.FileSave(mPrint.FILE_NAME, ReportPath);
                            mReport.FIELD_INF      = mPrint.FIELD_INF;
                            mReport.PRINT_TEMPLATE = mPrint.PRINT_TEMPLATE;
                        }
                        else//无此检查类别,检查子类的打印模版时,下载此检查类别下的默认打印模版
                        {
                            DataTable dt = bPrint.GetList("EXAM_CLASS = '" + mWorklist.EXAM_CLASS + "'");
                            if (dt.Rows.Count > 0)
                            {
                                mPrint = (SIS_Model.MPrintTemplateDict)bPrint.GetModel(dt.Rows[0]);
                                FileOp.FileSave(mPrint.FILE_NAME, ReportPath);
                                mReport.FIELD_INF      = mPrint.FIELD_INF;
                                mReport.PRINT_TEMPLATE = mPrint.PRINT_TEMPLATE;
                            }
                            else
                            {
                                return(null);
                            }
                        }
                    }
                    else
                    {
                        FileOp.FileSave(mReport.REPORT_NAME, ReportPath);
                    }
                    return(mReport);
                }
                else
                {
                    PACS_Model.MWorkList mWorklist = (PACS_Model.MWorkList)iWorklist;
                    PACS_Model.MReport   mReport   = (PACS_Model.MReport)bReport.GetModel(mWorklist.EXAM_ACCESSION_NUM);
                    if (mReport == null || mReport.REPORT_NAME == null)
                    {
                        if (mReport == null)
                        {
                            mReport = new PACS_Model.MReport();
                        }
                        PACS_Model.MPrintTemplateDict mPrint = (PACS_Model.MPrintTemplateDict)bPrint.GetModel(mWorklist.EXAM_CLASS, mWorklist.EXAM_SUB_CLASS);
                        if (mPrint != null)
                        {
                            FileOp.FileSave(mPrint.FILE_NAME, ReportPath);
                            mReport.FIELD_INF      = mPrint.FIELD_INF;
                            mReport.PRINT_TEMPLATE = mPrint.PRINT_TEMPLATE;
                        }
                        else//无此检查类别,检查子类的打印模版时,下载此检查类别下的默认打印模版
                        {
                            DataTable dt = bPrint.GetList("EXAM_CLASS = '" + mWorklist.EXAM_CLASS + "'");
                            if (dt.Rows.Count > 0)
                            {
                                mPrint = (PACS_Model.MPrintTemplateDict)bPrint.GetModel(dt.Rows[0]);
                                FileOp.FileSave(mPrint.FILE_NAME, ReportPath);
                                mReport.FIELD_INF      = mPrint.FIELD_INF;
                                mReport.PRINT_TEMPLATE = mPrint.PRINT_TEMPLATE;
                            }
                            else
                            {
                                return(null);
                            }
                        }
                    }
                    else
                    {
                        FileOp.FileSave(mReport.REPORT_NAME, ReportPath);
                    }
                    return(mReport);
                }
            }
            catch { return(null); }
        }
コード例 #13
0
ファイル: NewReg.cs プロジェクト: xuanximoming/PIC
        /// <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);
        }