コード例 #1
0
 public IcswbAdapter(IProgressConnection connection) : base(connection)
 {
     try
     {
         this.proxyAppObject = new ICProxyAppObject(connection.Connection);
         this.pdsContext     = new pdsContextDataSet();
         this.dataSet        = new pdsicswbDataSet()
         {
             DataSetName = DataSetName
         };
         this.icswbTableControlKey = this.dataSet.ttblicswb.GetTableControlParametersKey();
         this.icspTableControlKey  = this.dataSet.ttblicsp.GetTableControlParametersKey(); this.icswTableControlKey = this.dataSet.ttblicsw.GetTableControlParametersKey();
         if (!this.tempTableControlParameters.ContainsKey(this.icswbTableControlKey))
         {
             this.CreateTableControlParameters(this.icswbTableControlKey);
         }
         if (!this.tempTableControlParameters.ContainsKey(this.icspTableControlKey))
         {
             this.CreateTableControlParameters(this.icspTableControlKey);
         }
         if (!this.tempTableControlParameters.ContainsKey(this.icswTableControlKey))
         {
             this.CreateTableControlParameters(this.icswTableControlKey);
         }
         this.OnCreated();
     }
     catch (Exception ex)
     {
         NLogLogger.ErrorException("Failed in adapter ", ex);
         ErrorReportingHelper.ReportProgramErrors($"Error in IcswbAdapter constructor - {ex.Message}");
     }
 }
コード例 #2
0
        public AsicwhseprodAdapter(IProgressConnection connection) : base(connection)
        {
            try
            {
                this.proxyAppObject = new ICProxyAppObject(connection.Connection);
                this.pdsContext     = new pdsContextDataSet();

                this.OnCreated();
            }
            catch (Exception ex)
            {
                NLogLogger.ErrorException("Failed in adapter ", ex);
                ErrorReportingHelper.ReportProgramErrors($"Error in AsicwhseprodAdapter constructor - {ex.Message}");
            }
        }