예제 #1
0
        void OnMenuButtonCliceked(object sender, EventArgs e)
        {
            try
            {
                string        service = this.Name.ToString();
                List <object> args    = new List <object>();

                if (sender is Control)
                {
                    Control control = sender as Control;
                    args.Add(control.Name);

                    switch (control.Name)
                    {
                    case "lblCurrentUser":
                        args.Add(lblCurrentUser.Text);
                        break;

                    case "btnClose":
                        ACommand command = CUIManager.Inst.GetCommand("TITLE");
                        command.SubCommandName = "SHUTDOWN";
                        command.Execute();
                        break;
                    }
                }

                this.OnRequest(this.Name.ToString(), args.ToArray());
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
예제 #2
0
        private void btnConfirm_Click_1(object sender, EventArgs e)
        {
            List <string>          ids  = new List <string>();
            List <DataGridViewRow> rows = new List <DataGridViewRow>();

            foreach (DataGridViewRow row in dgvListView.Rows)
            {
                Dictionary <string, string> values = new Dictionary <string, string>();
                values.Add("MESSAGE_ID", row.Cells["colID"].Value.ToString());
                values.Add("TOUCH_PANLE_NO", "1");
                //ACommand command = CUIManager.Inst.GetCommand("REQUEST");
                //command.SubCommandName = "MESSAGE_CONFIRM";
                //command.Execute(values);

                rows.Add(row);
            }

            foreach (DataGridViewRow row in rows)
            {
                dgvListView.Rows.Remove(row);
            }

            dgvListView.Rows.Clear();

            //            _main.SendData(new List<string>() { "CIM_MESSAGE_ON", "O", tmpMsg });

            ACommand command = CUIManager.Inst.GetCommand("REQUEST");

            command.SubCommandName = "MESSAGE_ALLCLEAR";
            command.Execute();
        }
예제 #3
0
        private void btnCreate_Click(object sender, EventArgs e)
        {
            if (comboBox1.Text == "")
            {
                MessageBox.Show("PPID Select Error", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            foreach (DataGridViewRow item in dgvPPIDRecipeMapView.Rows)
            {
                if (item.Cells["colPPID"].Value.ToString() == comboBox1.Text)
                {
                    MessageBox.Show("PPID Duplication Error", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
            }

            ACommand command = CUIManager.Inst.GetCommand("REQUEST");

            command.AddParameter("PPID", comboBox1.Text);
            command.AddParameter("RECIPEID", comboBox2.Text);
            command.AddParameter("PPCINFO", "1");
            command.AddParameter("TIME", DateTime.Now.ToString());
            command.AddParameter("USER", textBox2.Text);
            command.AddParameter("DESC", textBox1.Text);
            command.SubCommandName = "PPID_MAP_REPORT";
            command.Execute();
        }
예제 #4
0
        private void btnInitIF_Click(object sender, EventArgs e)
        {
            ACommand command = CUIManager.Inst.GetCommand("REQUEST");

            command.SubCommandName = "STAGE_LINK_SIGNAL_INIT";
            command.Execute();
        }
예제 #5
0
        private void btnUploadRecipe_Click(object sender, EventArgs e)
        {
            ACommand command = CUIManager.Inst.GetCommand("REQUEST");

            command.SubCommandName = "RECIPE_UPLOAD";
            command.Execute();
        }
예제 #6
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (button1.Name == ((Control)sender).Name)
     {
         lblResult.Text = "Total: " + command.Execute().ToString();
     }
 }
예제 #7
0
        private void btnReceve_Click(object sender, EventArgs e)
        {
            ACommand command = CUIManager.Inst.GetCommand("REQUEST");

            command.SubCommandName = "READ_RECEIVED_GLASSDATA";
            command.Execute();
        }
예제 #8
0
        private void btnProc_Click(object sender, EventArgs e)
        {
            ACommand command = CUIManager.Inst.GetCommand("REQUEST");

            command.SubCommandName = "READ_PROCESSING_GLASSDATA";
            command.Execute();
        }
예제 #9
0
        private void btnSentOut_Click(object sender, EventArgs e)
        {
            ACommand command = CUIManager.Inst.GetCommand("REQUEST");

            command.SubCommandName = "READ_SENTOUT_GLASSDATA";
            command.Execute();
        }
예제 #10
0
        private void btnDrvClose_Click(object sender, EventArgs e)
        {
            ACommand command = CUIManager.Inst.GetCommand("REQUEST");

            command.SubCommandName = "YESDRVCLOSE";
            command.Execute();
        }
예제 #11
0
        private void button1_Click(object sender, EventArgs e)
        {
            foreach (DataGridViewRow oRow in dgvAlarmView.SelectedRows)
            {
                //oRow.Cells["colTime"].Value;
                string code = oRow.Cells["colAlarmId"].Value.ToString();

                int eqpAlarmCode = 0;
                int.TryParse(code, out eqpAlarmCode);

                eqpAlarmCode = eqpAlarmCode - 30000;
                //oRow.Cells["colType"].Value;
                //oRow.Cells["colPosition"].Value;
                //oRow.Cells["colMessage"].Value;
                string clearable = oRow.Cells["colClearable"].Value.ToString();

                if (clearable == "Y")
                {
                    ACommand command = CUIManager.Inst.GetCommand("REQUEST");
                    command.SubCommandName = "ALARM_RESET";
                    command.AddParameter("ALARM_CODE", eqpAlarmCode.ToString());
                    command.Execute();
                }
            }
        }
예제 #12
0
        private void EqpModeChange(int mode)
        {
            ACommand command = CUIManager.Inst.GetCommand("MENU");

            command.SubCommandName = "EQP_MODE_CHANGE";
            command.AddParameter("EQP_MODE", mode.ToString());
            command.Execute();
        }
예제 #13
0
        private void CIMModeChange(short cimMode)
        {
            ACommand command = CUIManager.Inst.GetCommand("MENU");

            command.SubCommandName = "CIM_MODE_CHANGE";
            command.AddParameter("CIM_MODE", cimMode.ToString());
            command.Execute();
        }
예제 #14
0
        private void DownstreamInlineModeChange(bool value)
        {
            ACommand command = CUIManager.Inst.GetCommand("MENU");

            command.SubCommandName = "DOWNSTREAM_INLINE_MODE_CHANGE";
            command.AddParameter("DOWNSTREAM_INLINE_MODE", value.ToString());
            command.Execute();
        }
예제 #15
0
        private void ExchangePossibleModeChange(bool value)
        {
            ACommand command = CUIManager.Inst.GetCommand("MENU");

            command.SubCommandName = "EXCHANGE_POSSIBLE_CHANGE";
            command.AddParameter("EXCHANGE_POSSIBLE", value.ToString());
            command.Execute();
        }
예제 #16
0
        private void AutoRecipeModeChange(bool enable)
        {
            ACommand command = CUIManager.Inst.GetCommand("MENU");

            command.SubCommandName = "AUTO_RECIPE_CHANGE";
            command.AddParameter("AUTO_RECIPE_CHANGE", enable.ToString());
            command.Execute();
        }
예제 #17
0
        private void ExchangeModeChange(bool exchangeMode)
        {
            ACommand command = CUIManager.Inst.GetCommand("MENU");

            command.SubCommandName = "EXCHANGE_MODE_CHANGE";
            command.AddParameter("EXCHANGE_MODE", exchangeMode.ToString());
            command.Execute();
        }
예제 #18
0
        private void button1_Click(object sender, EventArgs e)
        {
            Dictionary <string, string> newData = GetDisplayData();

            ACommand command = CUIManager.Inst.GetCommand("REQUEST");

            command.SubCommandName = "JOB_JUDGE_CHANGE";
            command.Execute <Dictionary <string, string> >(newData);
        }
예제 #19
0
        private void btnModify_Click(object sender, EventArgs e)
        {
            Dictionary <string, string> newData = GetDisplayData();

            ACommand command = CUIManager.Inst.GetCommand("REQUEST");

            command.SubCommandName = "GLASS_DATA_MODIFY";
            command.Execute <Dictionary <string, string> >(newData);
        }
예제 #20
0
        private void btnBuzzerOff_Click(object sender, EventArgs e)
        {
            Log_Converter("UI", "BuzzerOff Button Click");

            ACommand command = CUIManager.Inst.GetCommand("REQUEST");

            command.SubCommandName = "BUZZER_OFF";
            command.Execute();
        }
예제 #21
0
        private void frmLinkSignal_VisibleChanged(object sender, EventArgs e)
        {
            _timer.Enabled = this.Visible;

            ACommand command = CUIManager.Inst.GetCommand("REQUEST");

            command.SubCommandName = "LINK_SIGNAL_UPDATE";
            command.AddParameter("UPDATE", this.Visible.ToString());
            command.Execute();
        }
예제 #22
0
    private void OnAnimateOutComplete()
    {
        bIsShown = false;

        if (commandToRun != null)
        {
            commandToRun.Execute();
            Destroy(commandToRun);
            commandToRun = null;
        }
    }
예제 #23
0
        private void btnBuzzerOff_Click(object sender, EventArgs e)
        {
            Log_Converter("UI", "BuzzerOff Button Click");

            KeyValuePair <string, string> values = new KeyValuePair <string, string>();

            ACommand command = CUIManager.Inst.GetCommand("TITLE");

            command.SubCommandName = "BUZZER_OFF";
            command.Execute(values);
        }
예제 #24
0
        private void StageLinkSignaOnOff_Click(object sender, EventArgs e)
        {
            Control control = sender as Control;

            if (control.Tag == null)
            {
                return;
            }
            ACommand command = CUIManager.Inst.GetCommand("REQUEST");

            command.SubCommandName = "STAGE_LINK_SIGNAL_ON/OFF";
            command.AddParameter("SIGNAL_NAME", control.Tag.ToString());
            command.Execute();
        }
예제 #25
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            if (comboBox1.Text == "")
            {
                MessageBox.Show("PPID Select Error", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            ACommand command = CUIManager.Inst.GetCommand("REQUEST");

            command.AddParameter("PPID", comboBox1.Text);
            command.AddParameter("RECIPEID", comboBox2.Text);
            command.AddParameter("PPCINFO", "3");
            command.AddParameter("TIME", DateTime.Now.ToString());
            command.AddParameter("USER", textBox2.Text);
            command.AddParameter("DESC", textBox1.Text);
            command.SubCommandName = "PPID_MAP_REPORT";
            command.Execute();
        }
예제 #26
0
        private void UpstreamInlineModeChange(bool value)
        {
            //if (value)
            //{
            //    lblUpstreamInlineMode.Text = "ON";
            //    lblUpstreamInlineMode.BackColor = Color.Lime;
            //}
            //else
            //{
            //    lblUpstreamInlineMode.Text = "OFF";
            //    lblUpstreamInlineMode.BackColor = Color.Red;
            //}

            ACommand command = CUIManager.Inst.GetCommand("MENU");

            command.SubCommandName = "UPSTREAM_INLINE_MODE_CHANGE";
            command.AddParameter("UPSTREAM_INLINE_MODE", value.ToString());
            command.Execute();
        }
예제 #27
0
        private void btnGlassDataRequest_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(comboBox1.Text))
            {
                MessageBox.Show("Please be sure to select the Request Option", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            try
            {
                string[] temp = comboBox1.Text.Split(':');

                if (string.IsNullOrEmpty(comboBox1.Text))
                {
                    MessageBox.Show("Please be sure to select the Glass Type", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
                else if (string.IsNullOrEmpty(textBox1.Text) && string.IsNullOrEmpty(textBox2.Text))
                {
                    MessageBox.Show("Please be sure to select the Glass ID or Lot ID", "Input Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }

                Log_Convert("UI", string.Format("{0} {1} {2} {3}", "GlassDataRequest_Click", comboBox1.Text, textBox1.Text.Trim(), textBox2.Text.Trim()));

                Dictionary <string, string> values = new Dictionary <string, string>();

                ACommand command = CUIManager.Inst.GetCommand("REQUEST");

                command.SubCommandName = "GLASS_DATA_REQUEST";
                values.Add("REQ_OPTION", temp[0]);
                values.Add("GLS_CODE", textBox1.Text.Trim());
                values.Add("GLS_ID", textBox2.Text.Trim());
                command.Execute(values);
            }
            catch (Exception ex)
            {
                CLogManager.Instance.Log(new CExceptionLogFormat(Catagory.Error, CExceptionLogFormat.DEFAULT_KEY, ex));
            }
        }
예제 #28
0
        private void Button2_Click(object sender, EventArgs e)
        {
            try
            {
                ACommand command = CUIManager.Inst.GetCommand("REQUEST");
                command.SubCommandName = "SCRAP_REPORT";
                command.AddParameter("GLASSID", TextBox3.Text);

                if (comboBox1.Text == "Whole" || comboBox1.Text == "A")
                {
                    command.AddParameter("SCRAPINDEX", "0");
                }
                else
                {
                    command.AddParameter("SCRAPINDEX", "1");
                }

                command.Execute();
            }
            catch
            {
            }
        }
예제 #29
0
        protected void OnMenuButtonCliceked(object sender, EventArgs e)
        {
            try
            {
                Button btn = sender as Button;
                if (btn == btnInlineMode)
                {
                    if (_InlineModeForm.Visible)
                    {
                        _InlineModeForm.BringToFront();
                    }
                    else
                    {
                        _InlineModeForm.Show();
                    }
                }
                //else if (btn == button1)
                //{
                //    ACommand command = CUIManager.Inst.GetCommand("REQUEST");
                //    command.SubCommandName = "EXCHANGE_MODE";
                //    KeyValuePair<string, string> values = new KeyValuePair<string, string>("MODE", true.ToString());
                //    command.Execute(values);
                //}
                else if (btn == button2)
                {
                    ShowForm(btn, _autoRecipeform);
                }
                //else if (btn == btnEqpMode)
                //{
                //    ShowForm(btn, _eqpModeForm);
                //}
                else if (btn == btnCIMMode)
                {
                    ShowForm(btn, _cimModeForm);
                }
                else if (btn == btnA)
                {
                    this.OnRequest("MAIN_VIEW");
                }
                else if (btn == btnB)
                {
                    this.OnRequest("GLASS_DATA_VIEW");

                    //string option = "WHTM";
                    //if (option != "WHTM")
                    //{
                    //    ShowForm(btn, _glassDataformB10);
                    //}
                    //else
                    //{
                    //    ShowForm(btn, _glassDataFormWHTM);
                    //}
                }
                else if (btn == btnRecipe)
                {
                    this.OnRequest("RECIPE_VIEW");
                }
                else if (btn == btnE)
                {
                    //this.OnRequest("LINK_SIGNAL_VIEW");
                    ShowForm(btn, _linkSignalForm);
                }
                else if (btn == btnC)
                {
                    this.OnRequest("LOG_VIEW");
                }
                else if (btn == btnConfiguration)
                {
                    ShowForm(btn, _configForm);
                }
                else if (btn == btnG)
                {
                    ShowForm(btn, _scrapForm);
                }
                else if (btn == btnD)
                {
                    ShowForm(btn, _alarmDisplayForm);
                }
                else if (btn == btnCimMsg)
                {
                    this.OnRequest("CIM_MSG_VIEW");
                }
                else if (btn == btnBuzzerOff)
                {
                    Log_Converter("UI", "BuzzerOff Button Click");

                    KeyValuePair <string, string> values = new KeyValuePair <string, string>();
                    ACommand command = CUIManager.Inst.GetCommand("TITLE");
                    command.SubCommandName = "BUZZER_OFF";
                    command.Execute(values);
                }
                else
                {
                    throw new NotImplementedException("button is not defined.");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
예제 #30
0
        private void btnChange_Click(object sender, EventArgs e)
        {
            if (comboBox1.Text == "")
            {
                MessageBox.Show("PPID Select Error", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            bool mExistFlag = false;

            foreach (DataGridViewRow item in dgvPPIDRecipeMapView.Rows)
            {
                if (item.Cells["colPPID"].Value.ToString() == comboBox1.Text)
                {
                    ACommand command = CUIManager.Inst.GetCommand("REQUEST");
                    command.AddParameter("PPID", comboBox1.Text);
                    command.AddParameter("RECIPEID", comboBox2.Text);
                    command.AddParameter("PPCINFO", "4");
                    command.AddParameter("TIME", DateTime.Now.ToString());
                    command.AddParameter("USER", textBox2.Text);
                    command.AddParameter("DESC", textBox1.Text);
                    command.SubCommandName = "PPID_MAP_REPORT";
                    command.Execute();

                    mExistFlag = true;
                    break;
                }
            }

            if (!mExistFlag)
            {
                MessageBox.Show("PPID Exist Error", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }



            //bool mExistFlag = false;

            //foreach (DataGridViewRow item in dgvPPIDRecipeMapView.Rows)
            //{
            //    if (item.Cells["colPPID"].Value.ToString() == comboBox1.Text)
            //    {

            //        mExistFlag = true;
            //        break;
            //    }
            //}

            //if (mExistFlag)
            //{
            //    MessageBox.Show("PPID Exist Error", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            //    return;
            //}

            //ACommand command = CUIManager.Inst.GetCommand("REQUEST");
            //command.AddParameter("PPID", comboBox1.Text);
            //command.AddParameter("RECIPEID", comboBox2.Text);
            //command.AddParameter("PPCINFO", "4");
            //command.AddParameter("TIME", DateTime.Now.ToString());
            //command.AddParameter("USER", textBox2.Text);
            //command.AddParameter("DESC", textBox1.Text);
            //command.SubCommandName = "PPID_MAP_REPORT";
            //command.Execute();
        }