public void QueryLZSXW(VO_WF_LZXX_LS vo) { D_LZSXWView.Clear(); IsProcessed = false; _AsyncWorker = new BackgroundWorker(); _AsyncWorker.DoWork += (obj, args) => { var client = new S_GZLGL(); var voLZSXW = new VO_WF_LZSXW(); voLZSXW.SXWID = vo.SXWID; args.Result = client.WFGL_CXLZSXW(voLZSXW); }; _AsyncWorker.RunWorkerCompleted += (obj, args) => { try { var result = args.Result as Tuple<VOX_SYS_HEAD, VOX_SYS_ERROR, VO_WF_LZSXW[]>; if (result.Item2 != null) { MessageX.ShowError(result.Item2.TSXX); } else { D_LZSXWView.AddRange(result.Item3.Select(a => { return a; }) ); D_LZSXW = D_LZSXWView[0]; } } catch (Exception ex) { MessageBox.Show(ex.Message, "错误信息", MessageBoxButton.OK, MessageBoxImage.Error); } IsProcessed = true; }; _AsyncWorker.RunWorkerAsync(); }
private void QueryLZXX(VO_WF_SLXX_CX vo) { D_SLLZView.Clear(); IsProcessed = false; _AsyncWorker = new BackgroundWorker(); _AsyncWorker.DoWork += (obj, args) => { var client = new S_GZLGL(); var voLZXX = new VO_WF_LZXX_LS(); voLZXX.SLGUID = vo.SLGUID; args.Result = client.WFGL_CXLZXX_LS(voLZXX); }; _AsyncWorker.RunWorkerCompleted += (obj, args) => { try { var result = args.Result as Tuple<VOX_SYS_HEAD, VOX_SYS_ERROR, VO_WF_LZXX_LS[]>; if (result.Item2 != null) { MessageX.ShowError(result.Item2.TSXX); } else { D_SLLZView.AddRange(result.Item3.Select(a => { a.JRRQX = DateTimeHelper.GetDateTime(a.JRRQ, a.JRSJ); a.LCRQX = DateTimeHelper.GetDateTime(a.LCRQ, a.LCSJ); switch (Decimal.ToInt32(a.ZYZT)) { case 0: a.ZYZTX = "正常通过"; break; case 1: a.ZYZTX = "未通过结束"; break; case 2: a.ZYZTX = "待流转"; break; case 3: a.ZYZTX = "强制跳转"; break; case 4: a.ZYZTX = "作废"; break; }; return a; }) ); } } catch (Exception ex) { MessageBox.Show(ex.Message, "错误信息", MessageBoxButton.OK, MessageBoxImage.Error); } IsProcessed = true; }; _AsyncWorker.RunWorkerAsync(); }
public Tuple<VOX_SYS_HEAD, VOX_SYS_ERROR, VO_WF_LZXX_LS[]> WFGL_CXLZXX_LS(VO_WF_LZXX_LS vo_WF_LZXX_LS) { var client = new ServiceClient(); var sysHead = new VOX_SYS_HEAD(0, "", true); String ServicePrifix = "WF.WFGL."; var svcName = ServicePrifix + MethodBase.GetCurrentMethod().Name; var result = client.CallService<VOX_SYS_HEAD, VOX_SYS_ERROR, VO_WF_LZXX_LS>(svcName, sysHead, vo_WF_LZXX_LS); return result; }
/// <summary> /// 创建实体 /// </summary> /// <param name="fields">字段集合接口</param> /// <returns>实体接口</returns> public override IEntity2 Create(IEntityFields2 fields) { IEntity2 toReturn = new VO_WF_LZXX_LS(fields); return(toReturn); }
/// <summary> /// 创建实体 /// </summary> /// <returns>实体接口</returns> public override IEntity2 Create() { IEntity2 toReturn = new VO_WF_LZXX_LS(); return(toReturn); }
public void Initialize(VO_WF_LZXX_LS d_LZOriginal) { Title = "上下文信息"; QueryLZSXW(d_LZOriginal); }
/// <summary> /// 创建实体 /// </summary> /// <param name="fields">字段集合接口</param> /// <returns>实体接口</returns> public override IEntity2 Create(IEntityFields2 fields) { IEntity2 toReturn = new VO_WF_LZXX_LS(fields); return toReturn; }
/// <summary> /// 创建实体 /// </summary> /// <returns>实体接口</returns> public override IEntity2 Create() { IEntity2 toReturn = new VO_WF_LZXX_LS(); return toReturn; }