Ejemplo n.º 1
0
        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));
            }
        }
Ejemplo n.º 2
0
        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));
            }
        }
Ejemplo n.º 3
0
        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);
            }
        }
Ejemplo n.º 4
0
        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));
            }
        }
Ejemplo n.º 5
0
        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));
            }
        }
Ejemplo n.º 6
0
        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");
            }
        }