예제 #1
0
        private void showHpDialog(EmsOrDrug emsordrug)
        {
            BdHpIndicationDTO bdhpdto = emsordrug.BdHpIndicationDTO[0] as BdHpIndicationDTO;
            var  code_hpindicjudged   = bdhpdto.Code_hpindicjudged;
            bool?isDefault            = null;

            if (code_hpindicjudged == "12")
            {
                isDefault = emsordrug.Fg_treat;
            }
            using (BdHpIndicationDTOForm dialog = new BdHpIndicationDTOForm(emsordrug.Limit, emsordrug.Name_srv, isDefault))
            {
                DialogResult dialogResult = dialog.ShowDialog();
                if (dialogResult == DialogResult.OK)
                {
                    emsordrug.Fg_treat         = true;
                    emsordrug.Fg_selfpay       = false;
                    emsordrug.Fg_hpindicjudged = (int)HpIndicJudgeEnum.JUDGED;//0不需要判断,1待判断,2已判断;
                }
                else if (dialogResult == DialogResult.No)
                {
                    emsordrug.Fg_treat         = false;
                    emsordrug.Fg_selfpay       = true;
                    emsordrug.Fg_hpindicjudged = (int)HpIndicJudgeEnum.JUDGED;//0不需要判断,1待判断,2已判断
                }
            }
        }
예제 #2
0
        public void ShowHpDialog(object sender)
        {
            var       row       = sender as XDataRow;
            EmsOrDrug emsordrug = row.DataSource as EmsOrDrug;

            if (emsordrug != null)
            {
                if (row.ClickCell.FieldName.Equals("Fg_treat"))
                {
                    FArrayList bdhpdtos = emsordrug.BdHpIndicationDTO;
                    if (bdhpdtos == null)
                    {
                        bdhpdtos = new FArrayList();
                        BdHpIndicationDTO dto = HpJudgeUtil.getInstance().getBdHpIndicationDTO(emsordrug.Id_srv, emsordrug.Id_mm, this.GetModel().getEnt4BannerDTO());
                        if (dto != null)
                        {
                            bdhpdtos.Add(dto);
                        }
                        emsordrug.BdHpIndicationDTO = bdhpdtos;
                    }
                    if (bdhpdtos != null && bdhpdtos.Count > 0)
                    {
                        BdHpIndicationDTO bdhpdto            = bdhpdtos[0] as BdHpIndicationDTO;
                        string            code_hpindicjudged = bdhpdto.Code_hpindicjudged;
                        bool?isDefault = null;
                        if (code_hpindicjudged == "12")
                        {
                            isDefault = emsordrug.Fg_treat;
                        }
                        if (code_hpindicjudged != null)
                        {
                            switch (code_hpindicjudged)
                            {
                            case "12":
                            case "21":
                                BdHpIndicationDTOForm dialog       = new BdHpIndicationDTOForm(emsordrug.Limit, emsordrug.Name_srv, isDefault);
                                DialogResult          dialogResutl = dialog.ShowDialog();
                                if (dialogResutl == DialogResult.OK)
                                {
                                    emsordrug.Fg_treat         = true;
                                    emsordrug.Fg_selfpay       = false;
                                    emsordrug.Fg_hpindicjudged = (int)HpIndicJudgeEnum.JUDGED;    //0不需要判断,1待判断,2已判断;
                                }
                                else if (dialogResutl == DialogResult.No)
                                {
                                    emsordrug.Fg_treat         = false;
                                    emsordrug.Fg_selfpay       = true;
                                    emsordrug.Fg_hpindicjudged = (int)HpIndicJudgeEnum.JUDGED;    //0不需要判断,1待判断,2已判断;
                                }
                                break;
                            }
                        }
                    }
                }
            }
        }
예제 #3
0
        public void showHpDialog(object sender)
        {
            var            row       = sender as XDataRow;
            CiOrdFeeSrvDTO emsordrug = row.DataSource as CiOrdFeeSrvDTO;

            if (emsordrug != null)
            {
                if (row.ClickCell.FieldName.Equals("Fg_indic"))
                {
                    FArrayList bdhpdtos = emsordrug.BdHpIndicationList;
                    if (bdhpdtos == null)
                    {
                        bdhpdtos = new FArrayList();
                        BdHpIndicationDTO dto = HpJudgeUtil.getInstance().getBdHpIndicationDTO(emsordrug.Id_srv, emsordrug.Id_mm, this.GetModel().GetEnt4BannerDTO());
                        if (dto != null)
                        {
                            bdhpdtos.Add(dto);
                        }
                        emsordrug.BdHpIndicationList = bdhpdtos;
                    }
                    if (bdhpdtos != null && bdhpdtos.Count > 0)
                    {
                        BdHpIndicationDTO bdhpdto            = bdhpdtos[0] as BdHpIndicationDTO;
                        string            code_hpindicjudged = bdhpdto.Code_hpindicjudged;
                        bool?isDefault = null;
                        if (code_hpindicjudged == "12")
                        {
                            isDefault = emsordrug.Fg_treat;
                        }
                        if (code_hpindicjudged != null)
                        {
                            switch (code_hpindicjudged)
                            {
                            case "12":
                            case "21":
                                BdHpIndicationDTOForm dialog = new BdHpIndicationDTOForm(emsordrug.Limit, emsordrug.Name_srv, isDefault);
                                if (dialog.ShowDialog() == DialogResult.OK)
                                {
                                    emsordrug.Fg_indic   = true;
                                    emsordrug.Fg_selfpay = false;
                                }
                                else
                                {
                                    emsordrug.Fg_indic   = false;
                                    emsordrug.Fg_selfpay = true;
                                }
                                break;
                            }
                        }
                    }
                }
            }
        }
예제 #4
0
        /// <summary>
        /// 医保适应症弹窗处理
        /// </summary>
        private void showFgTreatDialog(EmsOrDrug drug)
        {
            EmsOrDrug drugitem = null;

            if (drug != null)
            {
                drugitem = drug;
            }
            else
            {
                drugitem = this.GetViewModel().GetSelectedObject() as EmsOrDrug;
            }

            BdHpIndicationDTO bdhpdto     = drugitem.BdHpIndicationDTO[0] as BdHpIndicationDTO;
            FArrayList        bdhpdtolist = new FArrayList();

            bdhpdtolist.Add(bdhpdto);
            drugitem.BdHpIndication = bdhpdtolist;
            var  code_hpindicjudged = bdhpdto.Code_hpindicjudged;
            bool?isDefault          = null;

            if (code_hpindicjudged == HpIndicationRuleEnum.SYS_JUD_DOCCONFIRM)
            {
                isDefault = drugitem.Fg_treat;
            }

            using (dialog = new BdHpIndicationDTOForm(drugitem.Limit, drugitem.Name_srv, isDefault))
            {
                // 适应症复选框
                var fg_treat = this.GetXapFormControl().GetUserRender(FORM_CARD_PAGECODE, "fg_treat") as XLabelBaseUserRender;
                // 自费复选框
                var    fg_selfpay = this.GetXapFormControl().GetUserRender(FORM_CARD_PAGECODE, "fg_selfpay") as XLabelBaseUserRender;
                String ishp       = SysParamUtils.getSysParam().SYS_PARAM_IsRemind4FgIndicFalseConfirmed.OrgParam;
                if (bdhpdto.Fg_indic != FBoolean.True && code_hpindicjudged != null && ishp != null &&
                    ishp.StartsWith("true") && code_hpindicjudged == HpIndicationRuleEnum.SYS_CONFIRM)
                {
                    dialog.saveButton.Visible  = false;
                    dialog.saveButton1.Visible = false;
                    dialog.saveButton2.Visible = false;
                    DialogResult dialogResult = dialog.ShowDialog();

                    if (dialogResult == DialogResult.OK)
                    {
                        if (!this.GetXapFormControl().IsLoading)
                        {
                            fg_treat.Checked   = true;
                            fg_selfpay.Checked = false;
                        }
                        drugitem.Fg_treat         = true;
                        drugitem.Fg_selfpay       = false;
                        drugitem.Fg_hpindicjudged = (int)HpIndicJudgeEnum.JUDGED;  //0不需要判断,1待判断,2已判断;
                    }
                    else if (dialogResult == DialogResult.No)
                    {
                        if (!this.GetXapFormControl().IsLoading)
                        {
                            fg_treat.Checked = false;
                            // 执行完fg_treat.Checked 后,fg_selfpay.Enabled = false 导致赋值的时候,没有处方datachange事件,费用列表中的fg_selfpay状态不改变,导致后续保存自费标识错误
                            // 先修改自费服复选框可用,在设置选中状态
                            fg_selfpay.Enabled = true;
                            fg_selfpay.Checked = true;
                        }
                        drugitem.Fg_treat         = false;
                        drugitem.Fg_selfpay       = true;
                        drugitem.Fg_hpindicjudged = (int)HpIndicJudgeEnum.JUDGED;  //0不需要判断,1待判断,2已判断;
                    }
                }
                else if (code_hpindicjudged == HpIndicationRuleEnum.SYS_JUD_DOCCONFIRM)
                {
                    dialog.saveButton1.Visible = false;
                    dialog.saveButton2.Visible = false;
                    drugitem.Fg_selfpay        = false;
                    DialogResult dialogResult = dialog.ShowDialog();
                    dialog.saveButton1.Visible = false;
                    dialog.saveButton2.Visible = false;

                    if (dialogResult == DialogResult.OK)
                    {
                        if (!this.GetXapFormControl().IsLoading)
                        {
                            fg_treat.Checked   = true;
                            fg_selfpay.Checked = false;
                        }
                        drugitem.Fg_treat         = true;
                        drugitem.Fg_selfpay       = false;
                        drugitem.Fg_hpindicjudged = (int)HpIndicJudgeEnum.JUDGED; //0不需要判断,1待判断,2已判断;
                    }
                    else if (dialogResult == DialogResult.No)
                    {
                        if (!this.GetXapFormControl().IsLoading)
                        {
                            fg_treat.Checked = false;
                            // 执行完fg_treat.Checked 后,fg_selfpay.Enabled = false 导致赋值的时候,没有处方datachange事件,费用列表中的fg_selfpay状态不改变,导致后续保存自费标识错误
                            // 先修改自费服复选框可用,在设置选中状态
                            fg_selfpay.Enabled = true;
                            fg_selfpay.Checked = true;
                        }
                        drugitem.Fg_treat         = false;
                        drugitem.Fg_selfpay       = true;
                        drugitem.Fg_hpindicjudged = (int)HpIndicJudgeEnum.JUDGED; //0不需要判断,1待判断,2已判断;
                    }
                }
                else if (code_hpindicjudged == HpIndicationRuleEnum.DOC_CONFIRM)
                {
                    Dictionary <String, MPayRatioDfDO> dic = new Dictionary <string, MPayRatioDfDO>();

                    FArrayList list = bdhpdto.Mutipayratio_list;

                    if (list != null && list.Count > 0)
                    {
                        int i = 1;
                        foreach (MPayRatioDfDO mPayRatio in list)
                        {
                            dic.Add(i + "", mPayRatio);
                            i++;
                        }
                        dialog.dic = dic;
                        if (dic != null && dic.Count > 0)
                        {
                            if (dic != null && dic.Count == 2)
                            {
                                dialog.saveButton1.Text = dic["1"].Name;
                                dialog.saveButton2.Text = dic["2"].Name;
                            }
                            else if (dic != null && dic.Count == 1)
                            {
                                dialog.saveButton1.Text    = dic["1"].Name;
                                dialog.saveButton2.Visible = false;
                            }
                            dialog.saveButton.Visible = false;
                        }
                        else
                        {
                            dialog.saveButton1.Visible = false;
                            dialog.saveButton2.Visible = false;
                        }
                    }
                    else
                    {
                        dialog.saveButton1.Visible = false;
                        dialog.saveButton2.Visible = false;
                    }

                    drugitem.Fg_selfpay = false;
                    DialogResult dialogResult = dialog.ShowDialog();

                    if (dialogResult == DialogResult.OK)
                    {
                        if (!this.GetXapFormControl().IsLoading)
                        {
                            fg_treat.Checked   = true;
                            fg_selfpay.Checked = false;
                        }

                        drugitem.Fg_treat         = true;
                        drugitem.Fg_selfpay       = false;
                        drugitem.Fg_hpindicjudged = (int)HpIndicJudgeEnum.JUDGED; //0不需要判断,1待判断,2已判断;
                    }
                    else if (dialogResult == DialogResult.Retry)
                    {
                        if (!this.GetXapFormControl().IsLoading)
                        {
                            fg_treat.Checked   = true;
                            fg_selfpay.Checked = false;
                        }
                        drugitem.Indicitemid      = dic["1"].Id_hpmpayratiodf;
                        drugitem.Fg_treat         = true;
                        drugitem.Fg_selfpay       = false;
                        drugitem.Fg_hpindicjudged = (int)HpIndicJudgeEnum.JUDGED;  //0不需要判断,1待判断,2已判断;
                    }
                    else if (dialogResult == DialogResult.Yes)
                    {
                        if (!this.GetXapFormControl().IsLoading)
                        {
                            fg_treat.Checked   = true;
                            fg_selfpay.Checked = false;
                        }
                        if (dic.Count == 2)
                        {
                            drugitem.Indicitemid = dic["2"].Id_hpmpayratiodf;
                        }
                        drugitem.Fg_treat         = true;
                        drugitem.Fg_selfpay       = false;
                        drugitem.Fg_hpindicjudged = (int)HpIndicJudgeEnum.JUDGED; //0不需要判断,1待判断,2已判断
                    }
                    else if (dialogResult == DialogResult.No)
                    {
                        if (!this.GetXapFormControl().IsLoading)
                        {
                            fg_treat.Checked = false;
                            // 执行完fg_treat.Checked 后,fg_selfpay.Enabled = false 导致赋值的时候,没有处方datachange事件,费用列表中的fg_selfpay状态不改变,导致后续保存自费标识错误
                            // 先修改自费服复选框可用,在设置选中状态
                            fg_selfpay.Enabled = true;
                            fg_selfpay.Checked = true;
                        }
                        drugitem.Fg_treat         = false;
                        drugitem.Fg_selfpay       = true;
                        drugitem.Fg_hpindicjudged = (int)HpIndicJudgeEnum.JUDGED;  //0不需要判断,1待判断,2已判断;
                    }
                }
                setFgSefPayRenderEnable(!fg_selfpay.Checked);
            }
        }