Beispiel #1
0
 public EnterpriseTerminal(TerminalDS.LocalTerminalTableRow terminal)
 {
     //Constructor
     try {
         //Configure this terminal from the terminal configuration information
         if (terminal != null)
         {
             this.mTerminalID  = terminal.TerminalID;
             this.mDescription = terminal.Description;
         }
         getLocalTerminal();
     }
     catch (Exception ex) { throw ex; }
 }
Beispiel #2
0
        public DataSet ToDataSet()
        {
            //Return a dataset containing values for this terminal
            TerminalDS ds = null;

            try {
                ds = new TerminalDS();
                TerminalDS.LocalTerminalTableRow terminal = ds.LocalTerminalTable.NewLocalTerminalTableRow();
                terminal.TerminalID  = this.mTerminalID;
                terminal.Description = this.mDescription;
                ds.LocalTerminalTable.AddLocalTerminalTableRow(terminal);
            }
            catch (Exception) { }
            return(ds);
        }
Beispiel #3
0
 public EnterpriseTerminal(TerminalDS.LocalTerminalTableRow terminal, Mediator mediator)
 {
     //Constructor
     this.mMediator = mediator;
     try {
         //Configure this terminal from the terminal configuration information
         if (terminal != null)
         {
             this.mTerminalID  = terminal.TerminalID;
             this.mDescription = terminal.Description;
         }
         getLocalTerminal();
     }
     catch (Exception ex) { throw new ApplicationException("Unexpected error while creating new EnterpriseTerminal instance.", ex); }
 }