void xapFormControl_ModelFilled(object sender, EventArgs e) { UserRender quan_med = xapFormControl.GetUserRender("common", "quan_med"); quan_med.Focus(); SetGridPolicy(!IsReadOnly); setEndTimeRenderEnabled(); }
void xapFormControl1_ModelFilled(object sender, EventArgs e) { UserRender name_dep_to = xapFormControl1.GetUserRender("trans", "name_dep_to"); name_dep_to.Focus(); xapFormControl1.SetEditPolicy(!IsReadOnly); TimerComboBoxMaxAndMin.GetInstance().setMinTime(this.xapFormControl1, this.Context, "trans", "dt_end", this.EmsHeadDO.Emsaptrans.Dt_effe); }
private void XapFormControl_ModelFilled(object sender, EventArgs e) { SetGridDataSource(); if (EmsHeadDO.Emsapcons.EmsConsItem.Count == 1) { //consItemGrid.DataTable.Rows[0].SetMultiSelectStatus(true); consItemGrid.DataTable.Rows[0].Selected = true; } UserRender dt_plan = xapFormControl.GetUserRender("cons", "dt_plan"); dt_plan.Focus(); }
void xapFormControl1_ModelFilled(object sender, EventArgs e) { //xapFormControl1.SetTabPageEnabled("drugsUse", !IsReadOnly); //xapFormControl1.SetEditable(!IsReadOnly); SetGridPolicy(!IsReadOnly); her.DataSource = this.EmsHeadDO.Emsdrugs.EmsOrDrugList; her.Enabled = true; gv.DataTable.DataSource = null; if (gv.DataTable.Rows.Count == 0 && this.EmsHeadDO.Emsdrugs.EmsOrDrugList.Count > 0) { gv.DataTable.DataSource = new BindingList <EmsOrDrug>() { this.EmsHeadDO.Emsdrugs.EmsOrDrugList.LastOrDefault() }; } //-------------------------------- ((XNumbericUpDown)((XLabelBaseUserRender)xapFormControl1.GetUserRender("drugsUse", "orders_boil")).UserRender).MaxValue = this.EmsHeadDO.Emsdrugs.Orders == null ? 0 : (double)this.EmsHeadDO.Emsdrugs.Orders; //限制开始时间的时间范围,入院日期,最大提前日期 TimerComboBoxMaxAndMin.GetInstance().setMaxMinTime(xapFormControl1, this.Context, "drugsUse", "dt_begin_ui", EmsHeadDO.PatInfo.Id_ent); try { //限制结束日期为可拆分的最大天数 int maxDays = this.Context.GetOrgParam <int>(ICiOrdNSysParamConst.SYS_PARAM_ORSRVSPLITDTENDMAXALLOWDAYS); TimerComboBoxMaxAndMin.GetInstance().setMaxTime(xapFormControl1, this.Context, "drugsUse", "dt_end_ui", ((DateTime)this.EmsHeadDO.Emsdrugs.Dt_begin_ui).AddDays(maxDays)); TimerComboBoxMaxAndMin.GetInstance().setMinTime(xapFormControl1, this.Context, "drugsUse", "dt_end_ui", (DateTime)this.EmsHeadDO.Emsdrugs.Dt_begin_ui); } catch //(Exception ex) { } //UserRender us = xapFormControl1.GetUserRender("drugsUse", "dt_begin_ui"); //xap.cli.sdk.render.Items.XCalendarTimerComboBox dt_begin = us.Renders[0] as xap.cli.sdk.render.Items.XCalendarTimerComboBox; //DateTime? dataA = new GetInHosTime().GetPatInHosTime(this.EmsHeadDO.PatInfo.Id_ent); //dt_begin.MinDate = dataA; //dt_begin.MaxDate = cof.GetServerDataTime().AddDays(OrdParam.GetOrdParam.orBeforStartDays); //重新填充数据时,设置为false UserRender orders = xapFormControl1.GetUserRender("drugsUse", "orders"); orders.Focus(); userEditFlag = !this.EmsHeadDO.IsNEW; if (this.EmsHeadDO.IsNEW) { cof.SetNoteOr(this.EmsHeadDO); } BindingList <EmsOrDrug> bds = gv.DataTable.DataSource as BindingList <EmsOrDrug>; her.FocusIndex = this.EmsHeadDO.Emsdrugs.EmsOrDrugList.IndexOf(bds.FirstOrDefault()); }
void xapFormControl1_ModelFilled(object sender, EventArgs e) { UserRender name_dep_to = xapFormControl1.GetUserRender("trans", "name_dep_to"); name_dep_to.Focus(); xapFormControl1.SetEditPolicy(!IsReadOnly); //限制开始时间的时间范围,入院日期,最大提前日期 TimerComboBoxMaxAndMin.GetInstance().setMaxMinTime(xapFormControl1, this.Context, "trans", "dt_effe", EmsHeadDO.PatInfo.Id_ent); if (this.EmsHeadDO.MedSrvDO.Sd_srvtp == BdSrvDictCodeConst.SD_SRVTP_PATIMAN_TRANSWARD) { name_dep_to.Enabled = false; this.EmsHeadDO.Emsaptrans.Id_dep_to = EmsHeadDO.PatInfo.Id_dep_phy; this.EmsHeadDO.Emsaptrans.Name_dep_to = EmsHeadDO.PatInfo.Name_dep_phy; } }
private void XapFormControl_ModelFilled(object sender, EventArgs e) { UserRender dt_plan = xapFormControl.GetUserRender("cons", "dt_plan"); dt_plan.Focus(); if (EmsHeadDO.IsNEW && EmsHeadDO.Emsapcons.EmsConsAssistItem != null && EmsHeadDO.Emsapcons.EmsConsAssistItem.Count == 0) { EmsItemInCons itemDO = new EmsItemInCons(); if (consDo != null && consDo.Fg_inorg == true) { itemDO.Id_org = UserManager.getInstance().CurrentOrg.Id_org; itemDO.Name_org = UserManager.getInstance().CurrentOrg.Name; } EmsHeadDO.Emsapcons.EmsConsAssistItem.Add(itemDO); } SetGridDataSource(); SetGridPolicy(!IsReadOnly); if (this.pageCommands != null && consDo != null) { foreach (XapCommand conmmands in this.pageCommands[0].Commands) { // 当多科室会诊时,并且当前表单不是只读状态才显示添加按钮 consDo.Fg_deps 是否多科室会诊 conmmands.Visible = consDo.Fg_deps == FBoolean.True && !IsReadOnly; } } //this.consDo = cof.GetCons(EmsHeadDO.MedSrvDO.Id_srv); if (consDo != null && consDo.Fg_inorg == true) { assistGrid.DataTable.Columns["Name_org"].ReadOnly = true; assistGrid.DataTable.Columns["Name_dep_emp"].ReadOnly = false; assistGrid.DataTable.Columns["Name_dep_emp"].NullFlag = false; assistGrid.DataTable.Columns["Name_emp_doctor"].ReadOnly = false; } else { assistGrid.DataTable.Columns["Name_org"].ReadOnly = true; assistGrid.DataTable.Columns["Name_org"].NullFlag = true; assistGrid.DataTable.Columns["Name_dep_emp"].ReadOnly = true; assistGrid.DataTable.Columns["Name_dep_emp"].NullFlag = true; assistGrid.DataTable.Columns["Name_emp_doctor"].ReadOnly = true; } //限制开始时间的时间范围,入院日期,最大提前日期 TimerComboBoxMaxAndMin.GetInstance().setMaxMinTime(xapFormControl, this.Context, "cons", "dt_plan", EmsHeadDO.PatInfo.Id_ent); }
protected virtual void xapFormControl1_ModelFilled(object sender, EventArgs e) { UserRender dt_out = xapFormControl1.GetUserRender("pathgy", "name_samptp"); dt_out.Focus(); xapFormControl1.SetEditable(!IsReadOnly); if (org_pathgy_old != null) { org_pathgy_old.Enabled = this.EmsHeadDO.Emsappathgy.Fg_outer == true; no_pathgy_old.Visible = this.EmsHeadDO.Emsappathgy.Fg_outer != true; ex_no_pathgy.ValueText = this.EmsHeadDO.Emsappathgy.No_pathgy_old; ex_no_pathgy.Visible = this.EmsHeadDO.Emsappathgy.Fg_outer == true; dt_pathgy_old.Enabled = this.EmsHeadDO.Emsappathgy.Fg_outer == true; } }
void xapFormControl1_ModelFilled(object sender, EventArgs e) { UserRender dt_out = xapFormControl1.GetUserRender("ordout", "dt_out"); dt_out.Focus(); //if (this.EmsHeadDO.Emsapout.IsNEW) //{ // (this.xapFormControl1.GetUserRender("ordout", "des_again31") as XLabelBaseUserRender).Enabled = false; //} //else //{ // (this.xapFormControl1.GetUserRender("ordout", "des_again31") as XLabelBaseUserRender).Enabled =(bool)this.EmsHeadDO.Emsapout.Fg_again31; //} xapFormControl1.SetEditPolicy(!IsReadOnly); //限制开始时间的时间范围,入院日期,最大提前日期 TimerComboBoxMaxAndMin.GetInstance().setMaxMinTime(xapFormControl1, this.Context, "ordout", "dt_out", EmsHeadDO.PatInfo.Id_ent); TimerComboBoxMaxAndMin.GetInstance().setMaxTime(xapFormControl1, this.Context, "ordout", "dt_out", CommonExtentions.NowTime(this)); }
void xapFormControl1_ModelFilled(object sender, EventArgs e) { xapFormControl1.SetTabPageEnabled("drugsUse", !IsReadOnly); gv.DataTable.DataSource = this.EmsHeadDO.Emsdrugs.EmsOrDrugList; mapUnit = new Dictionary <string, string>(); //记录单位名称 mapUnit.Add(this.EmsHeadDO.Emsdrugs.EmsOrDrugList[0].Id_srv, this.EmsHeadDO.Emsdrugs.EmsOrDrugList[0].Name_unit_sale); if (this.EmsHeadDO.IsNEW) { //获取执行时刻,和首次执行次数 GetMpTimes(this.EmsHeadDO.Emsdrugs.Id_freq); this.EmsHeadDO.Emsdrugs.EmsOrDrugList[0].Name_unit_sale = ""; } else { string exctime = cof.GetWorkTime(this.EmsHeadDO.Emsdrugs.Id_freq); if (exctime != null && exctime != "") { exctimes = exctime.Split(';'); Array.Sort(exctimes); Array.Reverse(exctimes); } if (exctimes == null) { exctimes = new string[] { } } ; cof.setMpWorkTimesOnEdit(this.EmsHeadDO, exctimes); XLabelBaseUserRender tmpUserRender = this.xapFormControl1.GetUserRender("drugsUse", "quan_firday_mp") as XLabelBaseUserRender; XNumbericUpDown numRender = tmpUserRender.UserRender as XNumbericUpDown; if (this.EmsHeadDO.Emsdrugs.Quan_firday_mp != null) { numRender.MaxValue = (double)this.EmsHeadDO.Emsdrugs.Quan_firday_mp; } numRender.MinValue = 0; } // 治疗用药、预防用药:只有抗生素类型的药品(BD_SRV_DRUG.fg_anti抗菌药物标志),才显示这两个控件。这两个选项框互斥。 if (!cof.IsAntDrug(this.EmsHeadDO.Emsdrugs.Id_srv)) { //cof.getControlByName(xapFormControl1,"drugsUse", "fg_treat").Visible = false;//治疗用药 cof.getControlByName(xapFormControl1, "drugsUse", "fg_propc").Visible = false;//预防用药 } if (this.EmsHeadDO.Emsdrugs.Id_route == null) { RouteDosageRefDO[] routeRefs = new GetSrvVsRouteImp().GetDosageVsRountes("'" + string.Join("','", this.EmsHeadDO.Emsdrugs.EmsOrDrugList.Select(p => p.Id_srv).ToList()) + "'"); this.EmsHeadDO.Emsdrugs.Id_route = routeRefs[0].Id_route; this.EmsHeadDO.Emsdrugs.Name_route = routeRefs[0].Route_name; } else if (this.EmsHeadDO.Emsdrugs.Name_route == null) { String name = ""; RouteDosageRefDO[] routeRefs = new GetSrvVsRouteImp().GetDosageVsRountes("'" + string.Join("','", this.EmsHeadDO.Emsdrugs.EmsOrDrugList.Select(p => p.Id_srv).ToList()) + "'"); for (int i = 0; i < routeRefs.Length; i++) { if (this.EmsHeadDO.Emsdrugs.Id_route == routeRefs[i].Id_route) { name = routeRefs[i].Route_name; } } if (name == "" && routeRefs.Length > 0) { name = routeRefs[0].Route_name; } this.EmsHeadDO.Emsdrugs.Name_route = name; } //备用药结束时间 dt_fail.MinDate = this.EmsHeadDO.Emsdrugs.Dt_begin_ui.Value.AddDays(-1); dt_fail.MaxDate = cof.GetServerDataTime().AddHours(this.Context.GetOrgParam <int>(ICiOrdNSysParamConst.SYS_PARAM_TemporaryPrnOrValidTime)); this.EmsHeadDO.Emsdrugs.EmsOrDeleteDrugList = new XapDataList <EmsOrDrug>() { }; cof.setDrugConStateAfterFilled(this.EmsHeadDO.Emsdrugs.Id_freq, this.adjustHeightIds, this.xapFormControl1); cof.setGridColumnEdit(gv, this.EmsHeadDO); UserRender name_route = xapFormControl1.GetUserRender("drugsUse", "name_route"); name_route.Focus(); } OrderSrvDoseViewModel drugChangeModel = new OrderSrvDoseViewModel();
void xapFormControl_ModelFilled(object sender, EventArgs e) { UserRender name_place = xapFormControl.GetUserRender("cons", "name_place"); name_place.Focus(); }
private void XapFormControl_ModelFilled(object sender, EventArgs e) { this.isCreating = true; //设置输血量单位 (bloodQuanRender.UserRender as XUnitTextBoxMul).UnitText = EmsHeadDO.Emsapbt.Name_unit_med; (bloodQuanRender.UserRender as XUnitTextBoxMul).ValueText = Convert.ToString(EmsHeadDO.Emsapbt.Quan_med); SetIndicatorControl(); if (isMove) { resetLocation(); isMove = false; } UserRender ur = xapFormControl.GetUserRender("bt_card", "no_db"); if (this.CiEmsDTO.Sd_su_or != "0" && this.CiEmsDTO.Sd_su_or != null) { cof.setEnable(this.xapFormControl, "bt_card", setEnableIds, false); this.xapFormControl.SetEditPolicy(false); this.indicatorControl.Enabled = false; ur.Enabled = false; } else { cof.setEnable(this.xapFormControl, "bt_card", setEnableIds, true); this.xapFormControl.SetEditPolicy(true); this.indicatorControl.Enabled = true; ur.Enabled = EmsHeadDO.Emsapbt.Fg_db == true ? true : false; } //1=男,2=女 if (EmsHeadDO.PatInfo.Sd_sex == "2" && EmsHeadDO.PatInfo.Dt_birth != null) { DateTime dt = Convert.ToDateTime(EmsHeadDO.PatInfo.Dt_birth); int age = (DateTime.Now - dt).Days / 365; if (age >= 18 && (EmsHeadDO.Emsapbt.Parturition_cnt == null || EmsHeadDO.Emsapbt.Pregnat_num == null)) { (xapFormControl.GetUserRender("bt_card", "pregnat_num") as XLabelBaseUserRender).NullFlag = false; (xapFormControl.GetUserRender("bt_card", "parturition_cnt") as XLabelBaseUserRender).NullFlag = false; } } //男性不显示孕史 if (EmsHeadDO.PatInfo.Sd_sex == "1") { xapFormControl.GetUserRender("bt_card", "growth").Enabled = false; xapFormControl.GetUserRender("bt_card", "pregnat_num").Enabled = false; xapFormControl.GetUserRender("bt_card", "parturition_cnt").Enabled = false; Invalidate(true); } //设置输血前检查说明是否必填 (xapFormControl.GetUserRender("bt_card", "name_labitmexplain") as XLabelBaseUserRender).NullFlag = labitmexplainNullFlag; UserRender dt_bt = xapFormControl.GetUserRender("bt_card", "dt_bt"); dt_bt.Focus(); //限制开始时间的时间范围,入院日期,最大提前日期 TimerComboBoxMaxAndMin.GetInstance().setMaxMinTime(xapFormControl, this.Context, "bt_card", "dt_bt", EmsHeadDO.PatInfo.Id_ent); this.isCreating = false; }
void xapFormControl1_ModelFilled(object sender, EventArgs e) { //xapFormControl1.SetEditable(!IsReadOnly); xapFormControl1.SetTabPageEnabled("drugsUse", !IsReadOnly); //getControlByName("drugsUse", "work_time").Enabled = false;//首日执行时间 //SetGridPolicy(!IsReadOnly); //group = this.xapFormControl1.GetUserRender("drugsUse", "group") as XGroupBox; EmsHeadDO.Emsdrugs.EmsOrDrug = cof.MmSortList(EmsHeadDO.Emsdrugs.EmsOrDrug); if (gv != null) { gv.DataTable.DataSource = EmsHeadDO.Emsdrugs.EmsOrDrugList; EmsHeadDO.Emsdrugs.Id_dep = EmsHeadDO.Emsdrugs.EmsOrDrugList.FirstOrDefault().Id_mp_dep; EmsHeadDO.Emsdrugs.Name_dep = EmsHeadDO.Emsdrugs.EmsOrDrugList.FirstOrDefault().Name_mp_dep; } GetMpTimes(EmsHeadDO.Emsdrugs.Id_freq); // 治疗用药、预防用药:只有抗生素类型的药品(BD_SRV_DRUG.fg_anti抗菌药物标志),才显示这两个控件。这两个选项框互斥。 //if (cof.IsAntDrug(EmsHeadDO.Emsdrugs.Id_srv)) //{ // getControlByName("drugsUse", "fg_treat").Visible = true;//治疗用药 // getControlByName("drugsUse", "fg_propc").Visible = true;//预防用药 // EmsHeadDO.Emsdrugs.Fg_treat = true;//默认治疗用药 //} //else //{ // getControlByName("drugsUse", "fg_treat").Visible = false;//治疗用药 // getControlByName("drugsUse", "fg_propc").Visible = false;//预防用药 //} //限制开始时间的时间范围,入院日期,最大提前日期 UserRender us = xapFormControl1.GetUserRender("drugsUse", "dt_begin_ui"); xap.cli.sdk.render.Items.XCalendarTimerComboBox dt_begin = us.Renders[0] as xap.cli.sdk.render.Items.XCalendarTimerComboBox; DateTime?dataA = new GetInHosTime().GetPatInHosTime(EmsHeadDO.PatInfo.Id_ent); dt_begin.MinDate = dataA; dt_begin.MaxDate = cof.GetServerDataTime().AddDays(OrdParam.GetOrdParam.orBeforStartDays); //限制结束时间的时间范围,入院日期,最大提前日期 UserRender usend = xapFormControl1.GetUserRender("drugsUse", "dt_end_ui"); xap.cli.sdk.render.Items.XCalendarTimerComboBox dt_end = usend.Renders[0] as xap.cli.sdk.render.Items.XCalendarTimerComboBox; dt_end.MinDate = EmsHeadDO.Emsdrugs.Dt_begin_ui; //dt_end.MaxDate = cof.GetServerDataTime().AddDays(OrdParam.GetOrdParam.orBeforStartDays); //备用药结束时间 //UserRender usfail = xapFormControl1.GetUserRender("drugsUse", "dt_fail"); //xap.cli.sdk.render.Items.XCalendarTimerComboBox dt_fail = usfail.Renders[0] as xap.cli.sdk.render.Items.XCalendarTimerComboBox; UserRender name_route = xapFormControl1.GetUserRender("drugsUse", "name_route"); name_route.Focus(); //dt_fail.MinDate = EmsHeadDO.Emsdrugs.Dt_begin_ui; //dt_fail.MaxDate = cof.GetServerDataTime().AddHours(this.Context.GetOrgParam<int>(ICiOrdNSysParamConst.SYS_PARAM_TemporaryPrnOrValidTime)); mapUnit = new Dictionary <string, string>(); //记录单位名称 mapUnit.Add(EmsHeadDO.Emsdrugs.EmsOrDrugList[0].Id_srv, EmsHeadDO.Emsdrugs.EmsOrDrugList[0].Name_unit_sale); EmsHeadDO.Emsdrugs.EmsOrDrugList[0].Name_unit_sale = ""; //--------变动用药------------- //drugChange = this.xapFormControl1.GetUserRender("drugsUse", "fg_dose_anoma") as XLabelBaseUserRender; //gv_change.Visible = drugChange.Checked; //gv_change.Parent.Parent.Parent.Visible = drugChange.Checked; drugChange.ValueTextChanged += new EventHandler(drugChange_ValueChanged); if (!drugChange.Checked) { if (isMove) { //cof.adjustHeight(this.xapFormControl1, "drugsUse", this.adjustHeightIds, -110); isMove = false; } else { } //group.Location = new Point(group.Location.X, group.Location.Y - 108); } GetMpTimes(EmsHeadDO.Emsdrugs.Id_freq); initPoint = getControlByName("drugsUse", "fg_dose_anoma").Location; }
void xapFormControl1_ModelFilled(object sender, EventArgs e) { //xapFormControl1.SetEditable(!IsReadOnly); // xapFormControl1.SetTabPageEnabled("drugsUse", !IsReadOnly); cof.getControlByName(xapFormControl1, "drugsUse", "work_time").Enabled = false;//首日执行时间 //SetGridPolicy(!IsReadOnly); group = this.xapFormControl1.GetUserRender("drugsUse", "group") as XGroupBox; this.EmsHeadDO.Emsdrugs.EmsOrDrug = cof.MmSortList(this.EmsHeadDO.Emsdrugs.EmsOrDrug); if (gv != null) { gv.DataTable.DataSource = this.EmsHeadDO.Emsdrugs.EmsOrDrugList; } mapUnit = new Dictionary <string, string>(); //记录单位名称 mapUnit.Add(this.EmsHeadDO.Emsdrugs.EmsOrDrugList[0].Id_srv, this.EmsHeadDO.Emsdrugs.EmsOrDrugList[0].Name_unit_sale); if (this.EmsHeadDO.IsNEW) { GetMpTimes(this.EmsHeadDO.Emsdrugs.Id_freq); //设置执行次数的最大值和最小值 cof.setFreqctMaxMin(this.EmsHeadDO, xapFormControl1); this.EmsHeadDO.Emsdrugs.EmsOrDrugList[0].Name_unit_sale = ""; } else { string exctime = cof.GetWorkTime(this.EmsHeadDO.Emsdrugs.Id_freq); if (exctime != null && exctime != "") { exctimes = exctime.Split(';'); Array.Sort(exctimes); Array.Reverse(exctimes); } cof.setMpWorkTimesOnEdit(this.EmsHeadDO, exctimes); XLabelBaseUserRender tmpUserRender = this.xapFormControl1.GetUserRender("drugsUse", "quan_firday_mp") as XLabelBaseUserRender; XNumbericUpDown numRender = tmpUserRender.UserRender as XNumbericUpDown; numRender.MaxValue = (double)this.EmsHeadDO.Emsdrugs.Quan_firday_mp; numRender.MinValue = 0; } // 治疗用药、预防用药:只有抗生素类型的药品(BD_SRV_DRUG.fg_anti抗菌药物标志),才显示这两个控件。这两个选项框互斥。 if (cof.IsAntDrug(this.EmsHeadDO.Emsdrugs.Id_srv)) { cof.getControlByName(xapFormControl1, "drugsUse", "fg_treat").Visible = true; //治疗用药 cof.getControlByName(xapFormControl1, "drugsUse", "fg_propc").Visible = true; //预防用药 this.EmsHeadDO.Emsdrugs.Fg_treat = true; //默认治疗用药 } else { cof.getControlByName(xapFormControl1, "drugsUse", "fg_treat").Visible = false; //治疗用药 cof.getControlByName(xapFormControl1, "drugsUse", "fg_propc").Visible = false; //预防用药 } //限制开始时间的时间范围,入院日期,最大提前日期 UserRender us = xapFormControl1.GetUserRender("drugsUse", "dt_begin_ui"); xap.cli.sdk.render.Items.XCalendarTimerComboBox dt_begin = us.Renders[0] as xap.cli.sdk.render.Items.XCalendarTimerComboBox; DateTime?dataA = new GetInHosTime().GetPatInHosTime(this.EmsHeadDO.PatInfo.Id_ent); dt_begin.MinDate = dataA; dt_begin.MaxDate = cof.GetServerDataTime().AddDays(OrdParam.GetOrdParam.orBeforStartDays); //限制结束时间的时间范围,入院日期,最大提前日期 UserRender usend = xapFormControl1.GetUserRender("drugsUse", "dt_end_ui"); xap.cli.sdk.render.Items.XCalendarTimerComboBox dt_end = usend.Renders[0] as xap.cli.sdk.render.Items.XCalendarTimerComboBox; UserRender name_route = xapFormControl1.GetUserRender("drugsUse", "name_route"); name_route.Focus(); dt_end.MinDate = this.EmsHeadDO.Emsdrugs.Dt_begin_ui; //dt_end.MaxDate = cof.GetServerDataTime().AddDays(OrdParam.GetOrdParam.orBeforStartDays); //备用药失效时间 dt_fail.MinDate = this.EmsHeadDO.Emsdrugs.Dt_begin_ui.Value.AddDays(-1); dt_fail.MaxDate = this.EmsHeadDO.Emsdrugs.Dt_begin_ui.Value.AddHours(this.Context.GetOrgParam <int>(ICiOrdNSysParamConst.SYS_PARAM_TemporaryPrnOrValidTime)); //cof.GetServerDataTime().AddHours(OrdParam.GetOrdParam.backOrActiveTime); cof.setDrugConStateAfterFilled(this.EmsHeadDO.Emsdrugs.Id_freq, this.adjustHeightIds, this.xapFormControl1); cof.setGridColumnEdit(gv, this.EmsHeadDO); }