public Tuple<VOX_SYS_HEAD, VOX_SYS_ERROR, VO_WF_LZSXW[]> WFGL_CXLZSXW(VO_WF_LZSXW vo_WF_LZSXW) { 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_LZSXW>(svcName, sysHead, vo_WF_LZSXW); return result; }
public void QueryLZSXW(VO_WF_LZXX 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(); }
public Tuple<VOX_SYS_HEAD, VOX_SYS_ERROR, VO_WF_SLXX> WFGL_SLCL(VO_WF_CZRZ vo_WF_CZRZ, VO_WF_SLXX vo_WF_SLXX, VO_WF_GZLHD vo_WF_GZLHD, VO_WF_LZSXW vo_WF_LZSXW) { 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_SLXX>(svcName, sysHead, vo_WF_CZRZ,vo_WF_SLXX,vo_WF_GZLHD,vo_WF_LZSXW); if (result.Item3.Length > 0) return new Tuple<VOX_SYS_HEAD, VOX_SYS_ERROR, VO_WF_SLXX>(result.Item1, result.Item2, result.Item3[0]); else return null; }
/// <summary> /// 创建实体 /// </summary> /// <param name="fields">字段集合接口</param> /// <returns>实体接口</returns> public override IEntity2 Create(IEntityFields2 fields) { IEntity2 toReturn = new VO_WF_LZSXW(fields); return(toReturn); }
/// <summary> /// 创建实体 /// </summary> /// <returns>实体接口</returns> public override IEntity2 Create() { IEntity2 toReturn = new VO_WF_LZSXW(); return(toReturn); }
/// <summary> /// 创建实体 /// </summary> /// <param name="fields">字段集合接口</param> /// <returns>实体接口</returns> public override IEntity2 Create(IEntityFields2 fields) { IEntity2 toReturn = new VO_WF_LZSXW(fields); return toReturn; }
/// <summary> /// 创建实体 /// </summary> /// <returns>实体接口</returns> public override IEntity2 Create() { IEntity2 toReturn = new VO_WF_LZSXW(); return toReturn; }