public PastTreeViewModel(String id_pat) { //Code_entp — 就诊类型(必填) //Dt_begin — 查找记录的开始时间(可为null) //Dt_end — 查找记录的结束时间(可为null) //Id_dep — 就诊科室ID(可为null) //Id_emp — 主治医生ID(可为null) EnDiQrySchmDTO[] endiqrys = new EnDiQrySchmDTO[2]; EnDiQrySchmDTO ipEn = new EnDiQrySchmDTO(); ipEn.Code_entp = EnDictCodeConst.SD_ENTP_INPATIENT; ipEn.Dt_begin = logic.GetAfterDateTime(365); ipEn.Dt_end = logic.GetServerDataTime(); ipEn.Id_dep = UserManager.getInstance().CurrentDept.Id_dep; ipEn.Id_emp = UserManager.getInstance().CurrentPsnInfo.Id_psndoc; EnDiQrySchmDTO opEn = new EnDiQrySchmDTO(); opEn.Code_entp = EnDictCodeConst.SD_ENTP_OUTPATIENT; opEn.Dt_begin = logic.GetAfterDateTime(180); opEn.Dt_end = logic.GetServerDataTime(); opEn.Id_dep = UserManager.getInstance().CurrentDept.Id_dep; opEn.Id_emp = UserManager.getInstance().CurrentPsnInfo.Id_psndoc; endiqrys[0] = ipEn; endiqrys[1] = opEn; this.qryService = XapServiceMgr.find <ICiOrdQryService>(); this.ListEntHisDiDTO = this.qryService.getEntHisDiDTO(id_pat); this.ListEntHisDiDTO = this.qryService.getEntHisDiBySchm(id_pat, endiqrys); KeyNodeDataAdapterFactory <EntHisDiDTO> moduleAdapter = new KeyNodeDataAdapterFactory <EntHisDiDTO>("Id_entdi", "Id_entdi"); moduleAdapter.CustomCaptionFunc = (dataobj => dataobj.Dt_acpt + " " + dataobj.Name_didef_dis + "(" + dataobj.Name_dep + ")"); this.TreeModel = new TreeKeyModel <EntHisDiDTO>(moduleAdapter); this.TreeModel.Loader = new OTreeKeyLoader(); this.TreeModel.AddRange(this.ListEntHisDiDTO); }
public static SrvMatchEmsParamDTO GetSrvMatchEmsParamDTO(String id_org, String id_grp, String id_dept, String id_emp, String code_entp, String sd_srvtp, String id_srv, EmsAppModeEnum emsAppMode) { SrvMatchEmsParamDTO dto = new SrvMatchEmsParamDTO(); dto.Id_org = id_org; dto.Id_grp = id_grp; dto.Id_dept = id_dept; dto.Id_emp = id_emp; dto.Code_entp = code_entp; dto.Sd_srvtp = sd_srvtp; dto.Id_srv = id_srv; dto.Dt_or = logic.GetServerDataTime(); dto.Emsappmode = (int)emsAppMode; return(dto); }
void xapFormControl1_ModelFilled(object sender, EventArgs e) { //限制开始时间的时间范围,入院日期,最大提前日期 UserRender us = xapFormControl1.GetUserRender("aplab", "dt_plan"); xap.cli.sdk.render.Items.XCalendarTimerComboBox dt_begin = us.Renders[0] as xap.cli.sdk.render.Items.XCalendarTimerComboBox; DateTime dataA = (LogicEx.GetInstance()).GetServerDataTime(); dt_begin.MinDate = dataA; dt_begin.MaxDate = cof.GetServerDataTime().AddDays(OrdParam.GetOrdParam.orBeforStartDays); gv.DataTable.DataSource = CiHeadDo.Emsaplab.EmsOrObsList; //gv_drug.DataTable.DataSource = CiHeadDo.Emsapobs.EmsOrDrugList; if (CiHeadDo.Emsaplab.EmsOrObsList.Count > 0) { // gv.DataTable.Rows[0].Selected(true); gv.DataTable.Rows[0].Selected = true; } }