public EnterpriseTerminal(TerminalDS.LocalTerminalTableRow terminal) { //Constructor try { //Configure this terminal from the terminal configuration information this.mStores = new StoreDS(); } catch (Exception ex) { throw new ApplicationException("Unexpected error while creating new terminal.", ex); } }
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; } } catch (Exception ex) { throw new ApplicationException("Could not create new Enterprise Terminal.", ex); } }
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); }
public Terminal(TerminalDS.LocalTerminalTableRow terminal) { //Constructor if (terminal != null) { if (!terminal.IsTerminalIDNull()) { this._terminalID = terminal.TerminalID; } if (!terminal.IsNumberNull()) { this._number = terminal.Number; } if (!terminal.IsDescriptionNull()) { this._description = terminal.Description; } if (!terminal.IsDBServerNameNull()) { this._dbservername = terminal.DBServerName; } if (!terminal.IsLinkedServerNameNull()) { this._linkedservername = terminal.LinkedServerName; } if (!terminal.IsDBTypeNull()) { this._dbtype = terminal.DBType; } if (!terminal.IsAgentIDNull()) { this._agentID = terminal.AgentID; } if (!terminal.IsAgentNumberNull()) { this._agentnumber = terminal.AgentNumber; } if (!terminal.IsShipperIDNull()) { this._shipperid = terminal.ShipperID; } if (!terminal.IsIsActiveNull()) { this._isactive = terminal.IsActive; } } }