public void DataChanged(CiOrdBtTestDO ciRpDO, BaseContext baseContext) { if (ciRpDO.Applyformno == null) { return; } CiordrptbttestAggDO ciAggDO = this._Service.getRptBtTestByReqNo(ciRpDO.Applyformno); if (ciAggDO == null) { ciAggDO = new CiordrptbttestAggDO(); } CiOrdBtTestDO CiDO = ciAggDO.Parent as CiOrdBtTestDO; if (CiDO.Id_rptbttest == null) { ciAggDO.Status = DOStatus.NEW; CiDO.Status = DOStatus.NEW; } else { ciAggDO.Status = DOStatus.UPDATED; CiDO.Status = DOStatus.UPDATED; } CiDO.No_applyform = ciRpDO.No_applyform; CiDO.Applyformno = ciRpDO.Applyformno; CiDO.Dt_recheck = this.NowTime(); CiDO.Id_emp_recheck = baseContext.PsnInfo.Id_psndoc; CiDO.Recheck_name = baseContext.PsnInfo.Name; CiDO.SetUpdated(); //this.AggDo = new XapAggDO<CiordrptbttestAggDO>(this.service, ciAggDO); this.AggDo.Replace(ciAggDO); }
public CiordrptbttestAggDO getRptBtTestByReqNo(string reqNo) { List <object> param = new List <object>(); param.Add(reqNo); CiordrptbttestAggDO rtn = si.invoke <CiordrptbttestAggDO>("getRptBtTestByReqNo", param.ToArray()); return(rtn);; }
/// <summary> /// 备血信息查询 /// </summary> /// <param name="no_applyForm"></param> /// <returns></returns> public CiordrptbttestAggDO findApbt(String no_applyForm) { List <object> param = new List <object>(); param.Add(no_applyForm); si.url = url_r; CiordrptbttestAggDO rnt = si.invoke <CiordrptbttestAggDO>("findApbt", param.ToArray()); return(rnt); }
/// <summary> /// 更新备血余量 /// </summary> /// <param name="Id_rptbttest"></param> /// <returns></returns> public CiordrptbttestAggDO saveApbt(CiordrptbttestAggDO aggDO, FBoolean fg_submit) { List <object> param = new List <object>(); param.Add(aggDO); param.Add(fg_submit); si.url = url_r; CiordrptbttestAggDO rnt = si.invoke <CiordrptbttestAggDO>("saveApbt", param.ToArray()); return(rnt); }
/// <summary> /// 根据id值查找备血检验结果AggDO数据 /// </summary> /// <param name="id"></param> /// <returns></returns> public CiordrptbttestAggDO 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; CiordrptbttestAggDO rtn = si.invoke <CiordrptbttestAggDO>("findById", param.ToArray()); return(rtn); }
public CiBloodCardViewModel(BaseContext baseContext) { this.service = XapServiceMgr.find <ICiordrptbttestCrudService>(); this._Service = XapServiceMgr.find <ICiRptBtTestService>(); this.itemService = XapServiceMgr.find <ICiOrdBtTestItmDOCrudService>(); this.iciOrdService = XapServiceMgr.find <ICiOrdMaintainService>(); CiordrptbttestAggDO CiAggDO = new CiordrptbttestAggDO(); CiOrdBtTestDO CiDO = CiAggDO.Parent as CiOrdBtTestDO; CiDO.Dt_recheck = this.NowTime(); CiDO.Id_emp_recheck = baseContext.PsnInfo.Id_psndoc; CiDO.Recheck_name = baseContext.PsnInfo.Name; this.AggDo = new XapAggDO <CiordrptbttestAggDO>(this.service, CiAggDO); }
public string CiOrdSubmit(CiordrptbttestAggDO xapAggDO) { CiOrdBtTestDO ciOrdBtTestDo = xapAggDO.getParentDO(); return(null);//this.iciOrdService.UpdateApbtRemaining(ciOrdBtTestDo.Id_rptbttest); }