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); }
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); }
private static extern bool CashTransaction(int Account, ref TTransactionInfo Info);
public static bool SendTransaction(int Account, TTransactionInfo info) { return(RKeeperApi.CashTransaction(Account, info)); }