public SearchResult SearchOrderScheduling(Sender sender, SearchOrderSchedulingArgs args) { try { using (ObjectProxy op = new ObjectProxy()) { return(op.SearchOrderScheduling(args)); } } catch (Exception ex) { PLogger.LogError(ex); throw ex; } }
private void biForm() { using (ProxyBE p = new ProxyBE()) { SearchOrderSchedulingArgs args = new SearchOrderSchedulingArgs(); args.OrderBy = "[BattchNum],[Sequence]"; if (WorkFlowID != null) { args.WorkFlowID = WorkFlowID; } SearchResult sr = p.Client.SearchOrderScheduling(CGlobal.SenderUser, args); this.dgDetail.AutoGenerateColumns = false; this.dgDetail.DataSource = sr.DataSet.Tables[0]; this.dgDetail.Refresh(); } }
public void SearchWorkFlowss() { try { using (ProxyBE p = new ProxyBE()) { SearchOrderSchedulingArgs args = new SearchOrderSchedulingArgs(); string WorkFlowID = Request["WorkFlowID"]; args.OrderBy = "[BattchNum],[Sequence]"; if (WorkFlowID != null) { args.WorkFlowID = new Guid(WorkFlowID); } SearchResult sr = p.Client.SearchOrderScheduling(SenderUser, args); Response.Write(JSONHelper.Dataset2Json(sr.DataSet)); } } catch (Exception ex) { Response.Write(ex); } }