Esempio n. 1
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);
        }
Esempio n. 2
0
        internal static TerminalDS getLocalTerminal()
        {
            //Get the operating enterprise terminal
            TerminalDS terminal = null;

            try {
                terminal = new TerminalDS();
                DataSet ds = Mediator.FillDataset(USP_LOCALTERMINAL, TBL_LOCALTERMINAL, null);
                if (ds != null)
                {
                    terminal.Merge(ds);
                }
            }
            catch (Exception) { }
            return(terminal);
        }