示例#1
0
 public LocalTerminal(TerminalDS.DBATerminalTableRow terminal) : base(terminal)
 {
     //Constructor
     try {
         //Configure this terminal from the terminal configuration information
         this.mIndirectAssignments = new Hashtable();
     }
     catch (Exception ex) { throw new ApplicationException("Unexpected error while creating new LocalTerminal instance.", ex); }
 }
示例#2
0
        public DataSet ToDataSet()
        {
            //Return a dataset containing values for this terminal
            TerminalDS ds = null;

            try {
                ds = new TerminalDS();
                TerminalDS.DBATerminalTableRow terminal = ds.DBATerminalTable.NewDBATerminalTableRow();
                terminal.TerminalID  = this.mTerminalID;
                terminal.Description = this.mDescription;
                ds.DBATerminalTable.AddDBATerminalTableRow(terminal);
            }
            catch (Exception) { }
            return(ds);
        }
示例#3
0
 public EnterpriseTerminal(TerminalDS.DBATerminalTableRow terminal)
 {
     //Constructor
     try {
         //Configure this terminal from the terminal configuration information
         if (terminal != null)
         {
             this.mTerminalID  = terminal.TerminalID;
             this.mDescription = terminal.Description;
             this.mMediator    = new SQLMediator(terminal.SQLConnection);
         }
         //getLocalTerminal();
     }
     catch (Exception ex) { throw ex; }
 }