public string QueryInventory(String username, String uuid, String warehouse, String materials) { ApiPlatformService aps = new ApiPlatformService(); if (ApiUtil.isLogin(username, uuid)) { String data = aps.QueryEASInventory(warehouse, materials); return(ApiUtil.renderResultJson("success", null, data)); } else { return(ApiUtil.renderResultJson("fail", "not login", null)); } }
public string QuerySupBillApi(String key, params String[] paramArray) { ApiPlatformService aps = new ApiPlatformService(); if (ApiUtil.isLogin(paramArray[0], paramArray[1])) { JObject data = aps.QuerySupBill(key, paramArray); return(ApiUtil.renderResultJson("success", aps.errorDetail, data)); } else { return(ApiUtil.renderResultJson("fail", "not login", null)); } }
public string GoodsPicUpload(String key, byte[] bytes, params String[] paramArray) { ApiPlatformService aps = new ApiPlatformService(); if (ApiUtil.isLogin(paramArray[0], paramArray[1])) { string data = aps.SaveGoodsPic(key, bytes, paramArray); return(data);//ApiUtil.renderResultJson(data ? "success" : "fail", aps.errorDetail, data); } else { return("没有返回路径!");//ApiUtil.renderResultJson("fail", "not login", null); } }
public string BulkExecBillApi(String key, params String[] paramArray) { ApiPlatformService aps = new ApiPlatformService(); if (ApiUtil.isLogin(paramArray[0], paramArray[1])) { Boolean data = aps.BulkExecuteBill(key, paramArray); return(ApiUtil.renderResultJson(data ? "success" : "fail", aps.errorDetail, data)); } else { return(ApiUtil.renderResultJson("fail", "not login", null)); } }
public string CommonExecApi(String key, params String[] paramArray) { ApiPlatformService aps = new ApiPlatformService(); if (ApiUtil.isLogin(paramArray[0], paramArray[1])) { int data = aps.Execute(key, paramArray); return(ApiUtil.renderResultJson("success", aps.errorDetail, data)); } else { return(ApiUtil.renderResultJson("fail", "not login", null)); } }
public string QueryEASBillApi(String username, String uuid, String type, String[] paramArray) { ApiPlatformService aps = new ApiPlatformService(); if (ApiUtil.isLogin(username, uuid)) { String data = ""; if ("DHD".Equals(type)) { data = aps.QueryEASDHDBill(paramArray); } if ("DRK".Equals(type)) { data = aps.QueryEASDRKBill(paramArray); } return(data); } else { return("-1"); } }