예제 #1
0
 public void PtbDbClick(userCtrPicture ctl)
 {
     CurrentCtl            = ctl;
     this.ptb_Gather.Image = ctl.Image;
     this.Lb_ImgName.Text  = ctl.FileName;
     this.mImage           = (MImage)((ImgObj)ctl.ImgObj).MImage;
     this.mLocMap          = (MLocationMap)((ImgObj)ctl.ImgObj).MLocationMap;
     if (this.mLocMap != null && this.mLocMap.MAP_NAME != null && this.mLocMap.MAP_NAME != "")
     {
         this.SetLocMap(this.mLocMap.MAP_NAME);
         CtlComboBox.SetDisplay(this.mLocMap.MAP_PART, this.cmb_Part);
         this.BindExplain(this.mLocMap.MAP_NAME, this.mLocMap.MAP_PART);
         CtlComboBox.SetDisplay(this.mLocMap.MAP_EXPLAIN, this.cmb_Explain);
         if (this.mLocMap.MARK_INF != null && this.mLocMap.MARK_INF != "")
         {
             read.SetPoint(this.drawArea, this.mLocMap.MARK_INF);
         }
         else
         {
             drawArea.ActiveTool = BaseControls.ImageBox.ImageCtl.DrawToolType.Point;
         }
     }
     else
     {
         drawArea.ActiveTool = BaseControls.ImageBox.ImageCtl.DrawToolType.Point;
     }
 }
예제 #2
0
 public void Get(userCtrPicture ctl)
 {
     this.drawArea.Initialize();
     CurrentCtl   = ctl;
     this.mImage  = (MImage)((ImgObj)ctl.ImgObj).MImage;
     this.mLocMap = (MLocationMap)((ImgObj)ctl.ImgObj).MLocationMap;
     if (this.mLocMap != null && this.mLocMap.MAP_NAME != null && this.mLocMap.MAP_NAME != "")
     {
         this.SetLocMap(this.mLocMap.MAP_NAME);
         CtlComboBox.SetDisplay(this.mLocMap.MAP_PART, this.cmb_Part);
         this.BindExplain(this.mLocMap.MAP_NAME, this.mLocMap.MAP_PART);
         CtlComboBox.SetDisplay(this.mLocMap.MAP_EXPLAIN, this.cmb_Explain);
         if (this.mLocMap.MARK_INF != null && this.mLocMap.MARK_INF != "")
         {
             read.SetPoint(this.drawArea, this.mLocMap.MARK_INF);
         }
         else
         {
             drawArea.ActiveTool = BaseControls.ImageBox.ImageCtl.DrawToolType.Point;
         }
     }
     else
     {
         this.cmb_Part.Text    = "";
         this.cmb_Explain.Text = "";
         drawArea.ActiveTool   = BaseControls.ImageBox.ImageCtl.DrawToolType.Point;
     }
     if (this.cmb_TagImage.SelectedIndex == -1)
     {
         this.cmb_TagImage.SelectedIndex = 0;
     }
 }
예제 #3
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);
        }