Esempio n. 1
0
        public static int GetSellable(int unit_id, string code)
        {
            int count_sellable = 0;

            string[] keys = TradeRA.KeySearch("P_" + code + "_A_*_U_" + unit_id);
            foreach (string key in keys)
            {
                count_sellable += TradeRA.GetInt(key, "count_sellable");
            }
            return(count_sellable);
        }
Esempio n. 2
0
        public static int GetSellable(int unit_id, string code, int account_id)
        {
            string key = "P_" + code + "_A_" + account_id + "_U_" + unit_id;

            return(TradeRA.GetInt(key, "count_sellable"));
        }