public void UpdateApConsStauts(string id_apcons) { OrdApConsDO cons = apvm.GetApConsById(id_apcons); cons.Id_su_cons = CiDictCodeConst.ID_CIDI_DYWSP; cons.Sd_su_cons = CiDictCodeConst.SD_CIDI_DYWSP; cons.SetUpdated(); apvm.Save(new OrdApConsDO[] { cons }); }
public override void OnSelected(object sender, TargetEventArgs e) { if (!(sender is IXapListControl) || !(e.Object is OrdApConsDO)) { return; } this.iXapListControl = sender as IXapListControl; this.consDo = e.Object as OrdApConsDO; this.id_orcons = consDo.Id_apcons; this.LoadData(); }
/// <summary> /// 根据id值查找会诊申请单AggDO数据 /// </summary> /// <param name="id"></param> /// <returns></returns> public OrdApConsDO 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; OrdApConsDO rtn = si.invoke <OrdApConsDO>("findById", param.ToArray()); return(rtn); }
public ConsRptViewModel(string id_orcons) { this.consDoService = XapServiceMgr.find <ICiorappconsultMDOCrudService>(); this.consrptService = XapServiceMgr.find <IConsrptCrudService>(); this.ordService = XapServiceMgr.find <ICiorderMDOCrudService>(); this.enservice = XapServiceMgr.find <IEnOutQryService>(); this.consDo = this.consDoService.findById(id_orcons); rptArray = this.consrptService.find(" a0.id_apcons='" + id_orcons + "' ", null, FBoolean.False); if (rptArray.Count() == 0) { this.consDTO = this.AddConsDo(); } else { this.consDTO = this.EditConsDo(); } }