Пример #1
0
        public AswlinquiryAdapter(IProgressConnection connection) : base(connection)
        {
            try
            {
                this.proxyAppObject = new WLProxyAppObject(connection.Connection);
                this.pdsContext     = new pdsContextDataSet();

                this.OnCreated();
            }
            catch (Exception ex)
            {
                NLogLogger.ErrorException("Failed in adapter ", ex);
                ErrorReportingHelper.ReportProgramErrors($"Error in AswlinquiryAdapter constructor - {ex.Message}");
            }
        }
Пример #2
0
        public WletAdapter(IProgressConnection connection) : base(connection)
        {
            try
            {
                this.proxyAppObject = new WLProxyAppObject(connection.Connection);
                this.pdsContext     = new pdsContextDataSet();
                this.dataSet        = new pdswletDataSet()
                {
                    DataSetName = DataSetName
                };
                this.wletTableControlKey = this.dataSet.ttblwlet.GetTableControlParametersKey();

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