protected override BaseValueUnitTableCell CreateQuanMedControl() { BaseValueUnitTableCell ctl = base.CreateQuanMedControl(); ctl.AllowUnitNull = SysParamUtils.getSysParam().BD_PP_FG_NULL_UNIT_PRICE.OrgParam.Equals("true"); return(ctl); }
protected override void editorWillAppear(object rowDataSource, XBaseUserRender ctrl) { base.editorWillAppear(rowDataSource, ctrl); // 获取总量编辑模式:1,可以编辑;0,不可以编辑 var sysParamValue = SysParamUtils.getSysParam().SYS_PARAM_OpTotalQuanEditControlMode.DeptParam; (ctrl as XComboBoxUnit).TextBoxIsEnable = (1 == Convert.ToInt32(sysParamValue)); }
protected override void OnXapFormControl_FormCreated(object sender, EventArgs e) { base.OnXapFormControl_FormCreated(sender, e); AttachQuanMedEditor(); bool nullCheck = !SysParamUtils.getSysParam().BD_PP_FG_NULL_UNIT_PRICE.OrgParam.Equals("true"); this.GetGridControl().DataTable.Columns["customercolumn_med_unit"].AllowCheckNull = nullCheck; }
public override string OnRefFilterData(string filedName, StringObjectMap sbm = null) { if (sbm != null) { switch (filedName) { case "Name_srv": if (!sbm.ContainsKey("code_entp")) { sbm.Add("code_entp", "00"); } if (!sbm.ContainsKey("id_pripat")) { sbm.Add("id_pripat", this.ent4BannerDTO.Id_pripat); } CiEnContextDTO ciEnContextDTO = BaseEmsView.BaseEmsInfoContext["CiEnContextDTO"] as CiEnContextDTO; string id_hp = ciEnContextDTO.Id_hp_default; if (!string.IsNullOrEmpty(id_hp)) { if (!sbm.ContainsKey("id_hp")) { sbm.Add("id_hp", id_hp); } } sbm.Add("inputmethod", IndividualSettings.GetUserIndividualSetting(IndividualSettingConst.InputMethod)); sbm.Add("hpinfomode", SysParamUtils.getSysParam().SYS_PARAM_HPInfoMode.GroupParam); string wherePart = ""; if (wherePart != "") { wherePart += string.Format(" and Sd_srvtp!='{0}'", BdSrvDictCodeConst.SD_SRVTP_PATIMAN_CLIDEATH); } else { wherePart += string.Format(" Sd_srvtp!='{0}'", BdSrvDictCodeConst.SD_SRVTP_PATIMAN_CLIDEATH); } return(wherePart); case "Name_freq": wherePart = " Fg_use_op = 'Y' and bd_freq.FG_ACTIVE='Y'"; return(wherePart); case "Name_routedes": wherePart = string.Format("FG_ENTP_OP='Y' or FG_ENTP_ER='Y'"); return(wherePart); } } return(""); }
public void HandleState(object sender, string oldState, string uiEvent, string newState, System.Collections.Generic.Dictionary <string, object> data, xap.rui.engine.BaseContext baseContext) { var action = sender as XBroadcastAction; switch (uiEvent) { case UIEvent.LOAD: action.Visible = true; break; case OpActionConstant.OP_CANCEL_REVERT_VISIBLE_ACTION: string strParam = SysParamUtils.getSysParam().SYS_PARAM_OpOrSysncro2MrHandleMode.DeptParam; action.Visible = "1".Equals(strParam); break; default: break; } }
private void drugHpShow() { if (hpCanEdit()) { EmsOrDrug drugitem = this.GetViewModel().GetSelectedObject() as EmsOrDrug; var bdhpdtos = drugitem.BdHpIndicationDTO; if (bdhpdtos != null && bdhpdtos.Count > 0) { BdHpIndicationDTO bdhpdto = bdhpdtos[0] as BdHpIndicationDTO; var code_hpindicjudged = bdhpdto.Code_hpindicjudged; if (code_hpindicjudged != null && (code_hpindicjudged == HpIndicationRuleEnum.SYS_JUD_DOCCONFIRM || code_hpindicjudged == HpIndicationRuleEnum.DOC_CONFIRM)) { showFgTreatDialog(null); } // 确认为非适应症时是否提醒医生 ,true 提醒,false 不提醒 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) { string limitMsg = drugitem.Limit; if (string.IsNullOrEmpty(limitMsg)) { limitMsg = "医保规则校验结果为自费,但未设置限制条件"; } BizAssMessageBoxUtil.ShowInforMsg(limitMsg); } } // 特殊病患者校验 CiEnContextDTO ctx = BaseEmsView.BaseEmsInfoContext["CiEnContextDTO"] as CiEnContextDTO; string specialDisease = ((EmsDrugsViewModel)this.GetViewModel()).GetSpecialDiseaseJudgeRst(ctx, new List <EmsOrDrug> { drugitem }); if (!string.IsNullOrEmpty(specialDisease)) { BizAssMessageBoxUtil.ShowWarningMsg(specialDisease); } } }
void tabControl_DataDisplay(Object sender, XDataDisplayEventArgs e) { XDataRow row = sender as XDataRow; OrdSrvDO orSrvDO = row.RowDataSource as OrdSrvDO; orSrvDO.Eu_hpdoctorjudge = 0; if (orSrvDO.Indicitemid == null) { orSrvDO.Indicitemid = orSrvDO.Sd_srvtp; } GetSysParamDTO sysParamDto = SysParamUtils.getSysParam().SYS_PARAM_IsAdmintHpIndicJudgeFeeItemUnDrugOR; //0两个都不选,1:first选择,2:second选择 if (row != null && row.ColumnCellDict.ContainsKey("Eu_hpdoctorjudge")) { XCheckboxGroup cell = row.ColumnCellDict["Eu_hpdoctorjudge"] as XCheckboxGroup; // 如果医保目录为丙类的不允许编辑 cell.Enabled = orSrvDO.Sd_hpsrvtp != HpDicCodeConst.SD_HPSRVTP_CLASS_C; if (cell.Enabled) { if (sysParamDto.OrgParam != null && sysParamDto.OrgParam.Equals("true")) { cell.Enabled = this.getCanEdit(); } else { if (this.orderType != null && (this.orderType.StartsWith("02") || this.orderType.StartsWith("03"))) { cell.Enabled = false; } else { cell.Enabled = this.getCanEdit(); } } } //cell.checFirst.Text = "符合-医保 全选"; //cell.checSecond.Text = "不符合-自费 全选"; cell.checFirst.Text = "符合-医保"; cell.checSecond.Text = "不符合-自费"; //待判断 if (orSrvDO.Fg_hpindicjudged == (int)HpIndicJudgeEnum.WAITINGJUDGE) { if (orSrvDO.Fg_indic != null) { //if (orSrvDO.Fg_indic == true) //{ // cell.checFirst.ForeColor = Color.Red; //} //else { // cell.checSecond.ForeColor = Color.Red; //} } orSrvDO.Eu_hpdoctorjudge = 0; }//已判断 else { if (orSrvDO.Fg_indic == null) { // 两个都不选中,该值会设置适应,非适应都不选中 orSrvDO.Eu_hpdoctorjudge = 0; //cell.checFirst.Checked = false; //cell.checSecond.Checked = false; } else { bool firChecked = FBoolean.True == orSrvDO.Fg_indic && FBoolean.False == orSrvDO.Fg_selfpay; //bool secChecked = FBoolean.False == orSrvDO.Fg_indic || FBoolean.True == orSrvDO.Fg_selfpay; if (firChecked) { // 两个都不选中,该值会设置适应症选中 orSrvDO.Eu_hpdoctorjudge = 1; } else { // 两个都不选中,该值会设置非适应症选中 orSrvDO.Eu_hpdoctorjudge = 2; } } } } }
/// <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); } }