Exemplo n.º 1
0
        public Dictionary <string, decimal> GetItemStock(string branch_no)
        {
            JsonRequest r = new JsonRequest();

            r.Write("branch_no", branch_no);

            r.request("/item?t=GetItemStock");

            if (!r.ReadSuccess())
            {
                throw new Exception(r.ReadMessage());
            }

            Dictionary <string, decimal> dic = r.GetDic <string, decimal>("dic");

            return(dic);
        }