Пример #1
0
        /// <summary>
        /// 获取用户在soft_time表设置的限定容量
        /// </summary>
        /// <returns>KB为单位的总可用容量</returns>
        public int getMark4()
        {
            //获取token
            string token = FinanceToken.getFinanceCheckToken().getToken();
            //获取对象
            Account account = FinanceToken.getFinanceCheckToken().checkToken(token);

            SpaceModel        spaceModel = new SpaceModel();
            control_soft_time user       = spaceModel.getUserSpaceInfo(account.company);

            if (user != null)
            {
                if (user.mark4 != null)
                {
                    return(int.Parse(user.mark4.Trim()) * 1024);
                }
                else
                {
                    return(0);
                }
            }
            else
            {
                return(0);
            }
        }
Пример #2
0
        /// <summary>
        /// 获取已用行数
        /// </summary>
        /// <returns>以KB为单位的已用行数</returns>
        public int getUseMark4()
        {
            //获取token
            string token = FinanceToken.getFinanceCheckToken().getToken();
            //获取对象
            Account account = FinanceToken.getFinanceCheckToken().checkToken(token);

            VoucherSummaryModel voucherSummaryModel = new VoucherSummaryModel();

            return(voucherSummaryModel.getCount(account.company) * 10);
        }