public int require(string time, string id) { int acc = 0; try { ForecastWarehouseAccessor Accessor = new ForecastWarehouseAccessor(); acc = Accessor.require(time, id); } catch (Exception ex) { LogError(ex); } return(acc); }
public int mail_Select(ForecastOrders info) { int acc = 0; try { ForecastWarehouseAccessor Accessor = new ForecastWarehouseAccessor(); acc = Accessor.mail_Select(info); } catch (Exception ex) { LogError(ex); } return(acc); }
public int deblocking2(string id) { int acc = 0; try { ForecastWarehouseAccessor Accessor = new ForecastWarehouseAccessor(); acc = Accessor.deblocking2(id); } catch (Exception ex) { LogError(ex); } return(acc); }
public int cancellation(string id) { int acc = 0; try { ForecastWarehouseAccessor Accessor = new ForecastWarehouseAccessor(); acc = Accessor.cancellation(id); } catch (Exception ex) { LogError(ex); } return(acc); }
public IEnumerable <ForecastOrders> xiangxi(string id) { Response <GetForecastWarehouseRequest> response = new Response <GetForecastWarehouseRequest>() { Result = new GetForecastWarehouseRequest() }; try { ForecastWarehouseAccessor Accessor = new ForecastWarehouseAccessor(); response.Result.IEnumerableForecastOrders = Accessor.xiangxi(id); } catch (Exception ex) { LogError(ex); } return(response.Result.IEnumerableForecastOrders); }
public IEnumerable <ForecastOrders> carrierslist(string id, string cs, string WaveReleaseTime, string sb) { Response <GetForecastWarehouseRequest> response = new Response <GetForecastWarehouseRequest>() { Result = new GetForecastWarehouseRequest() }; try { ForecastWarehouseAccessor Accessor = new ForecastWarehouseAccessor(); response.Result.IEnumerableForecastOrders = Accessor.carrierslist(id, cs, WaveReleaseTime, sb); } catch (Exception ex) { LogError(ex); } return(response.Result.IEnumerableForecastOrders); }
public DataTable export2(string sb) { DataTable dt = new DataTable(); Response <GetForecastWarehouseRequest> response = new Response <GetForecastWarehouseRequest>() { Result = new GetForecastWarehouseRequest() }; try { ForecastWarehouseAccessor Accessor = new ForecastWarehouseAccessor(); dt = Accessor.export2(sb); } catch (Exception ex) { LogError(ex); } return(dt); }
/// <summary> /// 获取信息 /// </summary> /// <param name="Sqlwhere"></param> /// <returns></returns> public Response <GetForecastWarehouseRequest> GetCRMInfo2(GetForecastWarehouseRequest request) { Response <GetForecastWarehouseRequest> response = new Response <GetForecastWarehouseRequest>() { Result = new GetForecastWarehouseRequest() }; if (request == null) { ArgumentNullException ex = new ArgumentNullException("GetForecastOrdersRequestID request"); LogError(ex); response.ErrorCode = ErrorCode.Argument; response.Exception = ex; return(response); } try { ForecastWarehouseAccessor Accessor = new ForecastWarehouseAccessor(); int Rowcount; response.Result.IEnumerableForecastOrders = Accessor.GetCRMInfo2(request.PageIndex, request.PageSize, out Rowcount); response.Result.PageIndex = request.PageIndex; response.Result.PageCount = Rowcount % request.PageSize == 0 ? Rowcount / request.PageSize : Rowcount / request.PageSize + 1; response.IsSuccess = true; } catch (Exception ex) { LogError(ex); response.IsSuccess = false; response.Exception = ex; response.ErrorCode = ErrorCode.Technical; } return(response); }