Ejemplo n.º 1
0
        public void m_mthPickPatInfo(com.digitalwave.iCare.gui.LIS.frmLisAppl p_frmLisApp_In)
        {
            com.digitalwave.iCare.ValueObject.clsPatientVO objPatientVO = (clsPatientVO)p_frmLisApp_In.m_lsvPatFussQuery.SelectedItems[0].Tag;
            p_frmLisApp_In.m_txtPatCardID.Text = objPatientVO.strPatientCardID;
            if (objPatientVO.strName != null)
            {
                p_frmLisApp_In.m_txtPatName.Text = objPatientVO.strName;
            }
            if (objPatientVO.strSex != null)
            {
                p_frmLisApp_In.m_cboSex.Text = objPatientVO.strSex;
            }
            p_frmLisApp_In.m_txtInhospNO.Text  = objPatientVO.strInPatientID;
            p_frmLisApp_In.m_txtPatientID.Text = objPatientVO.strPatientID;

            if (objPatientVO.strBirthDate != null && Microsoft.VisualBasic.Information.IsDate(objPatientVO.strBirthDate))
            {
                string strAge = clsAgeConverter.s_strToAge(DateTime.Parse(objPatientVO.strBirthDate), " 岁| 月| 天");

                p_frmLisApp_In.m_txtAge.Text     = clsAgeConverter.m_strGetAgeNum(strAge);
                p_frmLisApp_In.m_cboAgeUnit.Text = clsAgeConverter.m_strGetAgeUnit(strAge);
            }
        }
Ejemplo n.º 2
0
        public void m_mthGetAppl(com.digitalwave.iCare.gui.LIS.frmLisAppl p_frmLisAppl)
        {
            long lngRes = 0;
            //string strFromDate = p_frmLisAppl.m_dtpApplBegin.Value.ToString("yyyy-MM-dd");
            //string strToDate = p_frmLisAppl.m_dtpApplEnd.Value.AddDays(1).ToString("yyyy-MM-dd");
            string strFromDate = p_frmLisAppl.m_dtpApplBegin.Value.ToShortDateString() + " 00:00:00";
            string strToDate   = p_frmLisAppl.m_dtpApplEnd.Value.ToShortDateString() + " 23:59:59";
            bool   blnSend     = false;
            bool   blnUnsend   = false;

            if (p_frmLisAppl.m_rdbNotSend.Checked)
            {
                blnUnsend = true;
            }
            else if (p_frmLisAppl.m_rdbHaveSended.Checked)
            {
                blnSend = true;
            }
            else if (p_frmLisAppl.m_rdbAll.Checked)
            {
                blnUnsend = true;
                blnSend   = true;
            }
            clsLisApplMainVO[] objAppVOArr = null;

            lngRes = new clsDomainController_ApplicationManage().m_lngGetApplicationVOArrByCondition(strFromDate, strToDate, blnSend, blnUnsend, out objAppVOArr);
            p_frmLisAppl.m_lsvAppl.Items.Clear();
            if ((lngRes > 0) && (objAppVOArr != null))
            {
                for (int i = 0; i < objAppVOArr.Length; i++)
                {
                    System.Windows.Forms.ListViewItem objListViewItem = new System.Windows.Forms.ListViewItem();

                    if (objAppVOArr[i].m_strAPPLICATION_ID != null)
                    {
                        objListViewItem.Text = objAppVOArr[i].m_strAPPLICATION_ID.Substring(8, 10);;
                        objListViewItem.SubItems.Add(objAppVOArr[i].m_strPatient_Name);
                        if (objAppVOArr[i].m_intPStatus_int == 1)
                        {
                            objListViewItem.SubItems.Add("未发送");
                        }
                        else if (objAppVOArr[i].m_intPStatus_int > 1)
                        {
                            objListViewItem.SubItems.Add("已发送");
                        }
                        else if (objAppVOArr[i].m_intPStatus_int == 0)
                        {
                            objListViewItem.SubItems.Add("已作废");
                        }

                        //先诊疗后交费的判断,和显示的颜色设置
                        if (objAppVOArr[i].m_intIsGreen == 1)
                        {
                            objListViewItem.BackColor = Color.Orange;
                        }

                        objListViewItem.Tag = objAppVOArr[i];
                        p_frmLisAppl.m_lsvAppl.Items.Add(objListViewItem);
                    }
                }
            }
            if (p_frmLisAppl.m_lsvAppl.Items.Count > 0)
            {
                p_frmLisAppl.m_lsvAppl.Items[0].Selected = true;
            }
            else
            {
                p_frmLisAppl.m_mthEnterInitStatus();//清空数据
            }
        }
Ejemplo n.º 3
0
        public void m_mthFussQueryPat(com.digitalwave.iCare.gui.LIS.frmLisAppl p_frmLisAppl, System.Windows.Forms.Control p_objControl)
        {
            p_frmLisAppl.m_lsvPatFussQuery.Items.Clear();
            p_frmLisAppl.m_lsvPatFussQuery.Left = p_frmLisAppl.m_grpPatientInfo.Left + p_objControl.Left;
            p_frmLisAppl.m_lsvPatFussQuery.Top  = p_frmLisAppl.m_grpPatientInfo.Top + p_objControl.Top + p_objControl.Height;

            string strControlName  = p_objControl.Name;
            string p_strFussField  = null;
            string p_strFussValue  = null;
            string p_strOrderField = "patientid_chr";
            int    intQueryType    = 0;

            switch (strControlName)
            {
            case "m_txtPatCardID":
                p_strFussField = "PATIENTCARDID_CHR";
                p_strFussValue = p_frmLisAppl.m_txtPatCardID.Text;
                intQueryType   = 1;
                break;

            case "m_txtPatName":
                p_strFussField = "name_vchr";
                p_strFussValue = p_frmLisAppl.m_txtPatName.Text;
                break;

            case "m_txtInhospNO":
                p_strFussField = "inpatientid_chr";
                p_strFussValue = p_frmLisAppl.m_txtInhospNO.Text;
                break;
            }

            com.digitalwave.iCare.middletier.PatientSvc.clsPatientSvc objPatSvc = null;
            objPatSvc = (com.digitalwave.iCare.middletier.PatientSvc.clsPatientSvc)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.PatientSvc.clsPatientSvc));
            System.Security.Principal.IPrincipal p_objPrincipal = null;
            long lngRes = 0;

            com.digitalwave.iCare.ValueObject.clsPatientVO[] objPatList = null;

            lngRes = objPatSvc.m_lngGetPatientListByFuzzyCriteria(p_objPrincipal, intQueryType, p_strFussField, p_strFussValue, p_strOrderField, false, out objPatList);

            if (lngRes == 1 && objPatList != null)
            {
                if (objPatList.Length > 1)
                {
                    for (int i = 0; i < objPatList.Length; i++)
                    {
                        System.Windows.Forms.ListViewItem objListViewItem = new System.Windows.Forms.ListViewItem();
                        objListViewItem.Text = objPatList[i].strPatientID;
                        objListViewItem.SubItems.Add(objPatList[i].strPatientCardID);
                        objListViewItem.SubItems.Add(objPatList[i].strInPatientID);
                        objListViewItem.SubItems.Add(objPatList[i].strName);
                        objListViewItem.Tag = objPatList[i];
                        p_frmLisAppl.m_lsvPatFussQuery.Items.Add(objListViewItem);
                    }
                    p_frmLisAppl.m_lsvPatFussQuery.Select();
                    p_frmLisAppl.m_lsvPatFussQuery.Visible = true;
                    p_frmLisAppl.m_lsvPatFussQuery.Focus();
                    p_frmLisAppl.m_lsvPatFussQuery.Items[0].Selected = true;
                    p_frmLisAppl.m_lsvPatFussQuery.Items[0].Focused  = true;
                }
                else if (objPatList.Length == 1)
                {
                    p_frmLisAppl.m_txtPatCardID.Text = objPatList[0].strPatientCardID;
                    p_frmLisAppl.m_txtPatName.Text   = objPatList[0].strName;
                    p_frmLisAppl.m_cboSex.Text       = objPatList[0].strSex;
                    p_frmLisAppl.m_txtInhospNO.Text  = objPatList[0].strInPatientID;
                    p_frmLisAppl.m_txtPatientID.Text = objPatList[0].strPatientID;
                    if (objPatList[0].strBirthDate != null && Microsoft.VisualBasic.Information.IsDate(objPatList[0].strBirthDate))
                    {
                        string strAge = clsAgeConverter.s_strToAge(DateTime.Parse(objPatList[0].strBirthDate), " 岁| 月| 天");

                        p_frmLisAppl.m_txtAge.Text     = clsAgeConverter.m_strGetAgeNum(strAge);
                        p_frmLisAppl.m_cboAgeUnit.Text = clsAgeConverter.m_strGetAgeUnit(strAge);
                    }
                }
            }
        }