Beispiel #1
0
        /// <summary>
        /// Init
        /// </summary>
        void Init()
        {
            try
            {
                clsPublic.PlayAvi("请稍候...");
                this.lblPatName.Text    = patVo.m_strPatientName;
                this.lblAreaName.Text   = patVo.m_strAreaName;
                this.lblBedNo.Text      = patVo.m_strBedName;
                this.lblIpNo.Text       = patVo.m_strInHospitalNo;
                this.lblSex.Text        = patVo.m_strSex;
                this.lblAge.Text        = patVo.m_strAge;
                this.lblNoticeDate.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm");

                DataTable dt = null;
                clsOperationRequisitionService_Oracle svc1 = (clsOperationRequisitionService_Oracle)clsObjectGenerator.objCreatorObjectByType(typeof(clsOperationRequisitionService_Oracle));
                svc1.m_lngQueryDiagnosis(patVo.m_strPatientID, out dt);
                svc1 = null;
                if (dt != null && dt.Rows.Count > 0)
                {
                    DataView dv = dt.DefaultView;
                    dv.Sort  = "inpatient_dat desc";
                    diagDesc = dv[0]["primarydiagnoseall"].ToString().Trim();
                }

                clsAssistDicService_2 svc2 = (clsAssistDicService_2)clsObjectGenerator.objCreatorObjectByType(typeof(clsAssistDicService_2));
                svc2.m_lngGetOperationName(out dt);
                svc2 = null;
                if (dt != null && dt.Rows.Count > 0)
                {
                    this.txtOpName.DataSource       = dt;
                    this.txtOpName.TextColumnIndex  = 1;
                    this.txtOpName.ValueColumnIndex = 0;
                    this.txtOpName.AutoMatch        = true;
                    this.txtOpName.MaxDataGridWidth = 1000;
                }

                clsEmrSignToolCollection tools = new clsEmrSignToolCollection();
                tools.m_mthBindEmployeeSign(this.btnDoctMain, this.txtDoctMain, 1, false);
                tools.m_mthBindEmployeeSign(this.btnDoctAss1, this.txtDoctAss1, 1, false);
                tools.m_mthBindEmployeeSign(this.btnDoctAss2, this.txtDoctAss2, 1, false);
                tools.m_mthBindEmployeeSign(this.btnDoctAss3, this.txtDoctAss3, 1, false);

                clsBIHOrderService svc3 = new clsDcl_GetSvcObject().m_GetOrderSvcObject();
                this.isStepControl = svc3.IsOpStepControl();
                svc3 = null;

                GetHistory();
                New();
            }
            finally
            {
                clsPublic.CloseAvi();
            }
        }
Beispiel #2
0
        /// <summary>
        /// Init
        /// </summary>
        void Init()
        {
            try
            {
                clsPublic.PlayAvi("请稍候...");
                this.lblPatName.Text   = patVo.m_strPatientName;
                this.lblAreaName.Text  = patVo.m_strAreaName;
                this.lblBedNo.Text     = patVo.m_strBedName;
                this.lblIpNo.Text      = patVo.m_strInHospitalNo;
                this.lblSex.Text       = patVo.m_strSex;
                this.lblAge.Text       = patVo.m_strAge;
                this.dtpApplyDate.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm");

                DataTable dt = null;
                clsOperationRequisitionService_Oracle svc1 = (clsOperationRequisitionService_Oracle)clsObjectGenerator.objCreatorObjectByType(typeof(clsOperationRequisitionService_Oracle));
                svc1.m_lngQueryDiagnosis(patVo.m_strPatientID, out dt);
                svc1 = null;
                if (dt != null && dt.Rows.Count > 0)
                {
                    DataView dv = dt.DefaultView;
                    dv.Sort  = "inpatient_dat desc";
                    diagDesc = dv[0]["primarydiagnoseall"].ToString().Trim();
                }

                clsEmrSignToolCollection tools = new clsEmrSignToolCollection();
                tools.m_mthBindEmployeeSign(this.btnApplyDoct, this.txtApplyDoct, 1, false);
                tools.m_mthBindEmployeeSign(this.btnConfirmDoct, this.txtConfirmDoct, 1, false);

                GetHistory();
                New();

                // 申请、审核
                this.tsbSave.Enabled        = (this.bizType == 0 ? true : false);
                this.tsbDel.Enabled         = (this.bizType == 0 ? true : false);
                this.tsbConfirm.Enabled     = (this.bizType == 0 ? false : true);
                this.txtConfirmDesc.Enabled = (this.bizType == 0 ? false : true);
                this.txtConfirmDoct.Enabled = (this.bizType == 0 ? false : true);
                this.btnConfirmDoct.Enabled = (this.bizType == 0 ? false : true);
                this.dtpConfirmDate.Enabled = (this.bizType == 0 ? false : true);
            }
            finally
            {
                clsPublic.CloseAvi();
            }
        }