public SearchResult SearchTransportMain(Sender sender, SearchTransportMainArgs args) { try { using (ObjectProxy op = new ObjectProxy(true)) { return(op.SearchTransportMain(args)); } } catch (Exception ex) { PLogger.LogError(ex); throw ex; } }
public void SearchWarehouseOutMain() { try { using (ProxyBE p = new ProxyBE()) { SearchTransportMainArgs args = new SearchTransportMainArgs(); args.OrderBy = "[Created] Desc"; if (!string.IsNullOrEmpty(Parm.TransportNo)) { args.TransportNo = Parm.TransportNo; } if (!string.IsNullOrEmpty(Request["PlateNo"])) { args.PlateNo = Request["PlateNo"]; } if (!string.IsNullOrEmpty(Request["DriverName"])) { args.DriverName = Request["DriverName"]; } if (!string.IsNullOrEmpty(Request["EnterpriseName"])) { args.EnterpriseName = Request["EnterpriseName"]; } if (!string.IsNullOrEmpty(Parm.Source)) { args.DriverName = Parm.Source; } if (!string.IsNullOrEmpty(Parm.Target)) { args.DriverName = Parm.Target; } args.RowNumberFrom = pagingParm.RowNumberFrom; args.RowNumberTo = pagingParm.RowNumberTo; SearchResult sr = p.Client.SearchTransportMain(SenderUser, args); Response.Write(JSONHelper.Dataset2Json(sr.DataSet)); } } catch (Exception ex) { throw ex; } }
/// <summary> /// 获取对应OutMain数据 /// </summary> public void GetOutMain() { try { if (string.IsNullOrEmpty(Request["TransportID"])) { throw new Exception("出库ID参数无效。"); } using (ProxyBE p = new ProxyBE()) { SearchTransportMainArgs args = new SearchTransportMainArgs(); args.TransportID = new Guid(Request["TransportID"]); SearchResult sr = p.Client.SearchTransportMain(SenderUser, args); Response.Write(JSONHelper.Dataset2Json(sr.DataSet)); } } catch (Exception ex) { WriteError(ex.Message, ex); } }