Exemplo n.º 1
0
        private static void AddTransaction(int Account, DateTime RDate, ref TTransactionInfo info)
        {
            ETransactionInfo item = new ETransactionInfo
            {
                Account  = Account,
                RDate    = RDate,
                CheckNo  = info.CheckNo,
                Comment  = info.Comment,
                Kind     = info.Kind,
                LogDate  = info.LogDate,
                RestCode = info.RestCode,
                Summa    = info.Summa,
                UnitNum  = info.UnitNum
            };

            ListTransactions.Add(item);
        }
Exemplo n.º 2
0
        public static bool CashTransaction(int Account, TTransactionInfo Info)
        {
            bool flag;

            try
            {
                Info.Size = (ushort)Marshal.SizeOf(typeof(TTransactionInfo));
                if (CashTransaction(Account, ref Info))
                {
                    LastMsg = "The request CashTransaction is successful";
                    return(true);
                }
                LastMsg = GetError();
                flag    = false;
            }
            catch (Exception exception1)
            {
                LastMsg = exception1.ToString();
                flag    = false;
            }
            return(flag);
        }
Exemplo n.º 3
0
 private static extern bool CashTransaction(int Account, ref TTransactionInfo Info);
Exemplo n.º 4
0
 public static bool SendTransaction(int Account, TTransactionInfo info)
 {
     return(RKeeperApi.CashTransaction(Account, info));
 }