예제 #1
0
        private void CTLM_AfterButtonClick(object sender, EspackFormControlsNS.CTLMEventArgs e)
        {
            btnACheck.Enabled   = lstFlags["PALETAGS"] == false && lstFlags["RECEIVED"] == true && ServiceFlags.Contains("AUTOCHECK");
            btnReceived.Enabled = lstFlags["RECEIVED"] == false && txtEntrada.ToString() != "";

            if (ServiceFlags != null)
            {
                btnLabelCMs.Enabled = !ServiceFlags.Contains("AUTOCHECK");
            }
            else
            {
                btnLabelCMs.Enabled = false;
            }
        }
예제 #2
0
        private void CTLM_BeforeButtonClick(object sender, EspackFormControlsNS.CTLMEventArgs e)
        {
            //(new string[]{"btnOk" }).Contains(e.ButtonClick)

            switch (e.ButtonClick)
            {
            case "btnUpp":
            case "btnDel":
                if (getROBOT_Status() == EnumROBOT_Status.RUN || getROBOT_Status() == EnumROBOT_Status.INI)
                {
                    MessageBox.Show(string.Format("Action not allowed: ROBOT process is running."), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    e.Cancel = true;
                    return;
                }
                break;

            case "btnOK":
                tmrRobot.Enabled = false;
                if (CTLM.Status == EnumStatus.EDIT || CTLM.Status == EnumStatus.ADDNEW)
                {
                    using (var _RS = new StaticRS(string.Format("Select 0 from servicios where codigo='{0}' and dbo.checkflag(flags,'HSA')=1 and cod3='{1}'", cboService.Value, Values.COD3), Values.gDatos))
                    {
                        _RS.Open();
                        if (_RS.RecordCount == 0)
                        {
                            MessageBox.Show(string.Format("Wrong service."), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
                            e.Cancel = true;
                        }
                    }
                }
                break;

            default:
                tmrRobot.Enabled = false;
                break;
            }
        }
예제 #3
0
 private void CTLM_AfterButtonClick(object sender, EspackFormControlsNS.CTLMEventArgs e)
 {
     ROBOT_GetReceivalStatus(txtReceivalCode.Text);
 }
예제 #4
0
 private void CTLM_AfterButtonClick(object sender, EspackFormControlsNS.CTLMEventArgs e)
 {
     UpdateLists();
 }
예제 #5
0
 private void CTLM_AfterButtonClick(object sender, EspackFormControlsNS.CTLMEventArgs e)
 {
     VS.Size = new Size(491, 240);
 }