public InvokeResult InputWorkOrder(InputWorkOrderParam param) { InvokeResult result = new InvokeResult { Success = true }; try { Guid stationId = Guid.Parse(GetHttpHeader("StationId")); var spParam = param.ToSPParam(); spParam["StationId"] = stationId; BuilderFactory.DefaultBulder().ExecuteSPNoneQuery("SP_Oca_InputWorkOrderByMerchant", spParam); if (spParam.ErrorCode != 0) { result.ErrorCode = spParam.ErrorCode; result.ErrorMessage = spParam.ErrorMessage; } } catch (Exception ex) { result.Success = false; result.ErrorMessage = ex.Message; } return(result); }
public CollectionInvokeResult <StringObjectDictionary> GetWorkOrderFinished(InputWorkOrderParam param) { CollectionInvokeResult <StringObjectDictionary> result = new CollectionInvokeResult <StringObjectDictionary> { Success = true }; try { Guid stationId = Guid.Parse(GetHttpHeader("StationId")); StringObjectDictionary filters = param.ToStringObjectDictionary(false); filters["StationId"] = stationId; //StringObjectDictionary filters = new { StationId = stationId }.ToStringObjectDictionary(); result.rows = BuilderFactory.DefaultBulder().ListStringObjectDictionary("GetWorkOrderFinished", filters); } catch (Exception ex) { result.Success = false; result.ErrorMessage = ex.Message; } return(result); }