public void getCiRptlabDO(string Id_appathgy) { CiRptPathgyDO[] cipat = this.service.find("a0.id_appathgy='" + Id_appathgy + "'", null, FBoolean.False); if (cipat != null && cipat.Count() > 0) { this.CiRptPathgyDo = cipat[0]; } }
public CiRptPathgyDO getRptPathgyByReqNo(CiRptPathgyDO reqNo) { List <object> param = new List <object>(); param.Add(reqNo); CiRptPathgyDO rtn = si.invoke <CiRptPathgyDO>("getRptPathgyByReqNo", param.ToArray()); return(rtn); }
public CiRptpathgyViewModel(BaseContext baseContext) { this._Service = XapServiceMgr.find <ICirptpathgyCrudService>(); this.ICService = XapServiceMgr.find <ICiRptPathgyService>(); this.extService = XapServiceMgr.find <ICirptExtService>(); ciDO = new CiRptPathgyDO(); ciDO.Dt_rptpathgy = this.NowTime(); ciDO.Id_emp_rpt = baseContext.PsnInfo.Id_psndoc; ciDO.Rpt_name = baseContext.PsnInfo.Name; }
/// <summary> /// 根据id值查找病理报告单AggDO数据 /// </summary> /// <param name="id"></param> /// <returns></returns> public CiRptPathgyDO findById(String id) { #region "缓存处理" if (ch.IsCached("findById")) { return(ch.findById(id)); } #endregion List <object> param = new List <object>(); param.Add(id); si.url = url_r; CiRptPathgyDO rtn = si.invoke <CiRptPathgyDO>("findById", param.ToArray()); return(rtn); }
public void xapFormControl_DataChanged(object sender, DataChangedEventArgs e) { switch (e.PropName) { case "Applyformno": CiRptPathgyDO ciDO = e.Data as CiRptPathgyDO; if (ciDO.Applyformno == null) { CiRptPathgyDO ciRptDO = new CiRptPathgyDO(); ciRptDO.Dt_rptpathgy = this.NowTime(); ciRptDO.Id_emp_rpt = this.Context.PsnInfo.Id_psndoc; ciRptDO.Rpt_name = this.Context.PsnInfo.Name; this.model.ciDO.Replace(ciRptDO); this.LoadData(); this.SetEditable(true); } break; } }
void xapFormControl1_ModelFilled(object sender, EventArgs e) { CiRptPathgyDO ciDO = this.model.getCiDO(); if (ciDO == null) { return; } XLabel srvName = xapFormControl1.GetUserRender("applyform", "srv_name") as XLabel; XLabel applyNoValue = xapFormControl1.GetUserRender("applyform", "apply_no_value") as XLabel; XLabel reportDateValue = xapFormControl1.GetUserRender("applyform", "report_date_value") as XLabel; XLabel reportStatusValue = xapFormControl1.GetUserRender("applyform", "report_status_value") as XLabel; if (srvName != null) { srvName.ValueText = ciDO.Name_or; applyNoValue.ValueText = ciDO.No_applyform; reportDateValue.ValueText = ciDO.Dt_rptpathgy == null?"":ciDO.Dt_rptpathgy.ToString(); reportStatusValue.ValueText = ciDO.Su_name; } }
/// <summary> /// 参照控件数据选中 /// </summary> protected override void OnRefResult(object sender, RefResultEventArgs e) { switch (e.BindingFieldName) { case "Applyformno": CiRptPathgyDO ciDO = this.model.findByIdAF(e.DataObject as CiRptPathgyDO); if (ciDO == null) { ciDO = new CiRptPathgyDO(); ciDO.No_applyform = (e.DataObject as CiRptPathgyDO).No_applyform; } ciDO.Applyformno = (e.DataObject as CiRptPathgyDO).Applyformno; ciDO.Dt_rptpathgy = this.NowTime(); ciDO.Id_emp_rpt = this.Context.PsnInfo.Id_psndoc; ciDO.Rpt_name = this.Context.PsnInfo.Name; this.model.ciDO.Replace(ciDO); this.OnFillData(); this.SetEditable(true); break; } }
public CiRptPathgyDO findByIdAF(CiRptPathgyDO ciRptPathgy) { CiRptPathgyDO pathgyDO = this.ICService.getRptPathgyByReqNo(ciRptPathgy); return(pathgyDO); }