Esempio n. 1
0
        public AspoheaderAdapter(IProgressConnection connection) : base(connection)
        {
            try
            {
                this.proxyAppObject = new POProxyAppObject(connection.Connection);
                this.pdsContext     = new pdsContextDataSet();

                this.OnCreated();
            }
            catch (Exception ex)
            {
                NLogLogger.ErrorException("Failed in adapter ", ex);
                ErrorReportingHelper.ReportProgramErrors($"Error in AspoheaderAdapter constructor - {ex.Message}");
            }
        }
Esempio n. 2
0
        public PoehAdapter(IProgressConnection connection) : base(connection)
        {
            try
            {
                this.proxyAppObject = new POProxyAppObject(connection.Connection);
                this.pdsContext     = new pdsContextDataSet();
                this.dataSet        = new pdspoehDataSet()
                {
                    DataSetName = DataSetName
                };
                this.poehTableControlKey = this.dataSet.ttblpoeh.GetTableControlParametersKey();

                if (!this.tempTableControlParameters.ContainsKey(this.poehTableControlKey))
                {
                    this.CreateTableControlParameters(this.poehTableControlKey);
                }
                this.OnCreated();
            }
            catch (Exception ex)
            {
                NLogLogger.ErrorException("Failed in adapter ", ex);
                ErrorReportingHelper.ReportProgramErrors($"Error in PoehAdapter constructor - {ex.Message}");
            }
        }