protected override void OnXapFormControl_DataDisplay(object sender, XDataDisplayEventArgs e) { var row = sender as XDataRow; var drug = e.Object as EmsOrDrug; this.UpdateCustomerControlInfo(row, drug); }
protected void xapFormControl1_DataDisplay(object sender, XDataDisplayEventArgs e) { var row = sender as XDataRow; var drug = e.Object as EmsOrDrug; // 更新用户自定义列信息 this.updateCustomerControlInfo(row, drug); }
private void tabControl_DataDisplay(Object sender, XDataDisplayEventArgs e) { var row = sender as XDataRow; OrderConfirmUtils.OrContentDisplay(row); if (row != null && row.ColumnCellDict.ContainsKey("customercolumn_addfeecell")) { (row.ColumnCellDict["customercolumn_addfeecell"] as XCellRender).Value = ""; } }
/// <summary> /// XapFormControl 数据显示时间响应 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void xfc_DataDisplay(object sender, XDataDisplayEventArgs e) { XDataRow row = sender as XDataRow; PresDrugDTO drug = e.Object as PresDrugDTO; if (drug.Id_freq.Equals(CiDictCodeConst.ID_FREQ_ONCE)) { drug.Use_day = null; } this.updateCustomerControlInfo(row, drug); }
protected override void OnXapFormControl_DataDisplay(object sender, XDataDisplayEventArgs e) { base.OnXapFormControl_DataDisplay(sender, e); EmsObsItemDO model = this.GetViewModel().GetFormDataSource() as EmsObsItemDO; if (model != null) { this.updateCustomerControlInfo(sender as XDataRow, model); } }
void tabControl_DataDisplay(Object sender, XDataDisplayEventArgs e) { XDataRow row = sender as XDataRow; if (row != null) { foreach (UserRender render in row.UserRenderList) { if (render is DoctorOrderCard) { DoctorOrderCard card = render as DoctorOrderCard; card.ConfigPath = "\\modules\\iihci\\ui\\commoncontent\\OrderContent.xml"; } } } }
/// <summary> /// 医嘱表格数据显示时的处理事件,这里主要用于处理医嘱显示内容 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tabControl_DataDisplay(Object sender, XDataDisplayEventArgs e) { CiOrderDO ciorder = e.Object as CiOrderDO; string id_or = ciorder.Id_or; var row = sender as XDataRow; if (row != null) { foreach (UserRender render in row.UserRenderList) { if (render is DoctorOrderCard) { var card = render as DoctorOrderCard; card.DoctorOrderConfig = this.doctorOrderConfig; } } } // 设置最后一列显示价格 XCellRender priceCell = (row.ColumnCellDict["customercolumn_price"] as XCellRender); if (priceCell.Visible == true) // 住院不可见 { FDouble pri = ciOrdViewModel.PriMap[id_or] as FDouble; priceCell.Value = pri; } XCellRender cell = row.ColumnCellDict["customercolumn_报告查看"] as XCellRender; if (ciOrdViewModel.OrdStatusMap.Keys.Contains(id_or)) { DoctorOrderCard contentOrCell = row.ColumnCellDict["Content_or"] as DoctorOrderCard; row.Enabled = false; row.TooltipText = ciOrdViewModel.OrdStatusMap[id_or] as string; contentOrCell.ForeColor = Color.Red; row.UserForeColor = Color.Red; } this.setCellContent(cell, ciorder); }
/// <summary> /// 处理在表格数据行显示的时候,自定义列的单元格数据处理 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected override void OnXapFormControl_DataDisplay(object sender, XDataDisplayEventArgs e) { base.OnXapFormControl_DataDisplay(sender, e); var row = sender as XDataRow; if (row != null) { foreach (UserRender render in row.UserRenderList) { if (render is DoctorOrderCard) { var card = render as DoctorOrderCard; card.DoctorOrderConfig = this.doctorOrderConfig; } } // 更新用户自定义列信息 this.UpdateCustomerControlInfo(row, e.Object as CiOrdFeeSrvDTO); } }
protected void tabControl_DataDisplay(Object sender, XDataDisplayEventArgs e) { var row = sender as XDataRow; if (row != null) { foreach (UserRender render in row.UserRenderList) { if (render is DoctorOrderCard) { var card = render as DoctorOrderCard; card.DoctorOrderConfig = this.doctorOrderConfig; } } } if (row != null && row.ColumnCellDict.ContainsKey("customercolumn_check_result")) { var ciorderdo = row.RowDataSource as CiOrderDO; var resultList = OrReportPictureButton.GetInstance().buildOrderResultData(ciorderdo); (row.ColumnCellDict["customercolumn_check_result"] as XCellRender).Value = resultList; } }
protected override void OnXapFormControl_DataDisplay(object sender, XDataDisplayEventArgs e) { XDataRow row = sender as XDataRow; EmsOpitemDO opItemDO = e.Object as EmsOpitemDO; if (row != null && row.ColumnCellDict.ContainsKey("customercolumn_optime_limit")) { string value = ""; if (opItemDO.Fg_xq_sug != null && opItemDO.Fg_xq_sug.Value) { value = "1";// "限期"; } else if (opItemDO.Fg_er_sug != null && opItemDO.Fg_er_sug.Value) { value = "2";// "急症"; } else { opItemDO.Fg_zq_sug = true; value = "0";// "择期"; } row.ColumnCellDict["customercolumn_optime_limit"].SetValue(value); } }
void tabControl_DataDisplay(Object sender, XDataDisplayEventArgs e) { XDataRow row = sender as XDataRow; //0两个都不选,1:first选择,2:second选择 if (row != null && row.ColumnCellDict.ContainsKey("Eu_uncpordoctorjudge")) { XCheckboxGroup cell = row.ColumnCellDict["Eu_uncpordoctorjudge"] as XCheckboxGroup; cell.Enabled = this.getCanEdit(); cell.checFirst.Text = "确认"; cell.checSecond.Text = "取消"; CiOrderDO ciOrderDO = row.RowDataSource as CiOrderDO; ciOrderDO.Eu_uncpordoctorjudge = 0; if (ciOrderDO.Eu_uncporjudge != null && ciOrderDO.Eu_uncporjudge == (int)HpIndicJudgeEnum.JUDGED) { cell.checFirst.Checked = true; ciOrderDO.Eu_uncpordoctorjudge = 1; } else { ciOrderDO.Eu_uncpordoctorjudge = 0; } } }
protected override void OnXapFormControl_DataDisplay(object sender, XDataDisplayEventArgs e) { }
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; } } } } }