Exemplo n.º 1
0
        public AssainquiryAdapter(IProgressConnection connection) : base(connection)
        {
            try
            {
                this.proxyAppObject = new SAProxyAppObject(connection.Connection);
                this.pdsContext     = new pdsContextDataSet();

                this.OnCreated();
            }
            catch (Exception ex)
            {
                NLogLogger.ErrorException("Failed in adapter ", ex);
                ErrorReportingHelper.ReportProgramErrors($"Error in AssainquiryAdapter constructor - {ex.Message}");
            }
        }
Exemplo n.º 2
0
        public SasglAdapter(IProgressConnection connection) : base(connection)
        {
            try
            {
                this.proxyAppObject = new SAProxyAppObject(connection.Connection);
                this.pdsContext     = new pdsContextDataSet();
                this.dataSet        = new pdssasglDataSet()
                {
                    DataSetName = DataSetName
                };
                this.sasglTableControlKey = this.dataSet.ttblsasgl.GetTableControlParametersKey();

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