コード例 #1
0
        /// <summary>
        /// Ekzekuto komanden Total
        /// </summary>
        /// <returns>True nese ekzekutohet mire.
        /// False nese nuk ekzekutohet mire.</returns>
        private bool CommandTotal()
        {
            DriverCommand cmd = new DriverCommand();

            cmd.SetCommand(DriverCommand.INP);
            cmd.AddParameterConfirm();
            if (!cmd.Execute())
            {
                return(false);
            }
            return(true);
        }
コード例 #2
0
        /// <summary>
        /// Merr nr serial te kases. Psh. AE0100....
        /// </summary>
        /// <returns>Kthen nje string, seriali i kases</returns>
        public static string GetFiscalNumber()
        {
            DriverCommand cmd = new DriverCommand();

            cmd.SetCommand(DriverCommand.INFO);
            cmd.AddParameter("1", "1");
            if (!cmd.Execute(connection))
            {
                return(String.Empty);
            }

            return(cmd.GetResultString());
        }