Ejemplo n.º 1
0
        public FrmError()
        {
            InitializeComponent();
            this.Width  = 800;
            this.Height = 600;

            this.m_formularManager = ClsSingeltonFormularManager.CreateInstance(this, this.Name);
            this.CreateFormular(FormularType.Error);
        }
Ejemplo n.º 2
0
        public FrmErrorReportingSystem()
        {
            InitializeComponent();
            this.m_language = ClsSingeltonLanguage.CreateInstance(this);
            this.m_plc      = ClsSingeltonPlc.GetInstance();


            this.tabControl1.DrawMode  = TabDrawMode.OwnerDrawFixed;
            this.tabControl1.DrawItem += new DrawItemEventHandler(this.TabControl_DrawItem);

            this.Width              = 800;
            this.Height             = 600;
            this.m_parameter        = ClsSingeltonParameter.CreateInstance();
            this.m_formularManager  = ClsSingeltonFormularManager.CreateInstance(this, this.Name);
            this.m_sqliteConnection = new SQLiteConnection();
            this.m_sqliteConnection.ConnectionString = this.m_parameter.ConnectionString;
            this.m_sqliteConnection.Open();


            this.m_sqliteCommandActual                         = new SQLiteCommand();
            this.m_sqliteCommandActual.CommandText             = this.m_plc.GetSqlAkuell();
            this.m_sqliteCommandActual.Connection              = this.m_sqliteConnection;
            this.m_sqliteDataAdapterActual                     = new SQLiteDataAdapter(this.m_sqliteCommandActual);
            this.m_sqliteDataAdapterActual.MissingSchemaAction = MissingSchemaAction.AddWithKey;
            this.m_dataSetActual = new DataSet();
            this.m_sqliteDataAdapterActual.Fill(this.m_dataSetActual, "Aktuell");
            this.dataGridView1.DataSource = this.m_dataSetActual;
            this.dataGridView1.DataMember = "Aktuell";
            this.dataGridView1.ReadOnly   = true;
            dataGridView1.Rows[0].DefaultCellStyle.BackColor = Color.Red;
            this.dataGridView1.Columns[0].Width = 130;
            this.dataGridView1.Columns[1].Width = 90;
            this.dataGridView1.Columns[2].Width = 1000;

            this.m_sqliteCommandHistorie             = new SQLiteCommand();
            this.m_sqliteCommandHistorie.CommandText = this.GetSqlHistorie();
            this.m_sqliteCommandHistorie.Connection  = this.m_sqliteConnection;

            this.m_sqliteDataAdapterHistorie = new SQLiteDataAdapter(this.m_sqliteCommandHistorie);
            this.m_sqliteDataAdapterHistorie.MissingSchemaAction = MissingSchemaAction.AddWithKey;
            this.m_dataSetHistorie = new DataSet();
            this.m_sqliteDataAdapterHistorie.Fill(this.m_dataSetHistorie, "Historie");
            this.dataGridView2.DataSource = this.m_dataSetHistorie;
            this.dataGridView2.DataMember = "Historie";
            this.dataGridView2.ReadOnly   = true;
            dataGridView2.Rows[0].DefaultCellStyle.BackColor = Color.Aqua;
            this.dataGridView2.Columns[0].Width = 130;
            this.dataGridView2.Columns[1].Width = 130;
            this.dataGridView2.Columns[2].Width = 90;
            this.dataGridView2.Columns[3].Width = 1000;

            this.timer1.Interval = 1000;
            this.timer1.Enabled  = true;

            this.m_ClsPDF = new ClsPDF();
        }
Ejemplo n.º 3
0
 public FrmPara()
 {
     this.m_FontLabelXAxis = new System.Drawing.Font("Arial", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     InitializeComponent();
     this.Width             = 880;
     this.Height            = 660;
     this.m_formularManager = ClsSingeltonFormularManager.CreateInstance(this, this.Name);
     this.CreateFormular(FormularType.Parameter);
     this.CreateO2Curve();
     this.CreateCompoundDriveGas();
 }
Ejemplo n.º 4
0
        public FrmMain()
        {
            this.m_errorTickerCounter = 0;
            this.m_errorNoRecords     = 0;
            this.m_errorList          = new List <string>();
            this.m_errorList.Clear();
            this.m_parameter        = ClsSingeltonParameter.CreateInstance();
            this.m_sqliteConnection = new SQLiteConnection();
            this.m_sqliteConnection.ConnectionString = this.m_parameter.ConnectionString;
            this.m_sqliteConnection.Open();

            this.m_sqliteCommand = new SQLiteCommand(this.m_sqliteConnection);

            FuncGeneral.Start();

            this.InitializeComponent();
            this.Width  = 1024;
            this.Height = 768;

            this.m_formularManager   = ClsSingeltonFormularManager.CreateInstance();
            this.m_userManagement    = ClsSingeltonUserManagement.CreateInstance(this);
            this.m_varCollect        = ClsSingeltonVariablesCollecter.CreateInstance();
            this.m_dataBinding       = ClsSingeltonDataBinding.CreateInstance();
            this.m_plcPara.ProgBar   = this.BarPlcProgress;
            this.m_plcPara.LblStatus = this.lblState;
            this.m_plcPara.BtnStart  = this.BtnStartPlc;
            this.m_plcPara.BtnStopp  = this.BtnStoppPlc;
            this.m_plcPara.IP        = this.m_parameter.PlcIp;
            this.m_plcPara.IP        = "192.168.56.1";

            this.m_plcPara.Rack   = this.m_parameter.PlcRack;
            this.m_plcPara.Slot   = this.m_parameter.PlcSlot;
            this.m_plcPara.LblPlc = this.LblPlcNoConnect;

            this.m_plc      = ClsSingeltonPlc.CreateInstance(this.m_plcPara);
            this.m_language = ClsSingeltonLanguage.CreateInstance(this);

            this.FrmHeater               = new FrmHeater();
            this.FrmParameter            = new FrmPara();
            this.FrmInformation          = new FrmInfo();
            this.FrmService              = new FrmServ();
            this.FrmError                = new FrmError();
            this.FrmRelease              = new FrmRelease();
            this.FrmErrorReportingSystem = new FrmErrorReportingSystem();
            this.FrmO2Curve              = new FrmO2Curve();

            this.BtnStartPlc.Click += new System.EventHandler(this.BtnStartPlc_Click);
            this.BtnStoppPlc.Click += new System.EventHandler(this.BtnStoppPlc_Click);

            this.TmrErrorTicker.Enabled = true;
        }
Ejemplo n.º 5
0
        public FrmHeater()
        {
            InitializeComponent();
            this.m_formularManager = ClsSingeltonFormularManager.CreateInstance(this, this.Name.ToString());
            this.m_language        = ClsSingeltonLanguage.CreateInstance(this);
            this.m_dataBinding     = ClsSingeltonDataBinding.CreateInstance();
            this.m_userManagement  = ClsSingeltonUserManagement.CreateInstance(this);
            this.m_parameter       = ClsSingeltonParameter.CreateInstance();
            this.m_dataBinding.AddList(this, "Txt01", "Text", "DB50.P1_Qmin_1");
            this.m_dataBinding.AddList(this, "Txt02", "Text", "DB50.P1_Qmin_3");
            this.m_dataBinding.AddList(this, "Txt03", "Text", "DB50.P1_Qmin_2");

            this.m_dataBinding.AddList(this, "Led01", "State", "DB54.Bit20");

            this.m_dataBinding.AddList(this, "Vnt01", "State", "DB52.Valve04");

            this.m_dataBinding.AddList(this, "Pip01", "Flow", "DB53.Bit04");
        }
Ejemplo n.º 6
0
 public FrmO2Curve()
 {
     InitializeComponent();
     this.m_formularManager = ClsSingeltonFormularManager.CreateInstance(this, this.Name);
 }