private void ChangeMode(EOperationMode OperationMode)
 {
     base.OperationMode = OperationMode;
     switch (OperationMode)
     {
     case EOperationMode.INSERT:
         cboStore.Text = string.Empty;
         Clear(PanelHeader);
         Clear(panel1);
         //EnablePanel(PanelHeader);
         //GvTana.Enabled = false;
         F2Visible  = false;
         F3Visible  = false;
         F4Visible  = false;
         F5Visible  = false;
         F9Visible  = false;
         F10Visible = true;
         //Btn_F10.Text = "Excel出力(F10)";
         F12Visible      = false;
         Btn_F10.Enabled = false;
         //Btn_Display.Enabled = F11Enable = true;
         chkOk.Checked    = true;
         chkNotOK.Checked = true;
         dgv_PurchaseDetails.DataSource = null;
         break;
     }
 }
        private void ChangeMode(EOperationMode OperationMode)
        {
            base.OperationMode = OperationMode;
            switch (OperationMode)
            {
            case EOperationMode.INSERT:
                Clear(PanelHeader);
                Clear(PanelDetail);
                EnablePanel(PanelHeader);
                DisablePanel(PanelDetail);
                ScStaff.SearchEnable       = false;
                ScStaffCopyCD.SearchEnable = true;
                F9Visible          = false;
                F12Enable          = true;
                btnDisplay.Enabled = F11Enable = true;
                break;

            case EOperationMode.UPDATE:
            case EOperationMode.DELETE:
            case EOperationMode.SHOW:
                Clear(PanelHeader);
                Clear(PanelDetail);
                EnablePanel(PanelHeader);
                DisablePanel(PanelCopy);
                DisablePanel(PanelDetail);
                ScStaff.SearchEnable       = true;
                ScStaffCopyCD.SearchEnable = false;
                F9Visible          = true;
                F12Enable          = false;
                btnDisplay.Enabled = F11Enable = true;
                break;
            }
            ScStaff.SetFocus(1);
        }
예제 #3
0
        /// <summary>
        /// Disable/Enable,Clear Handle on ModeChange
        /// </summary>
        private void ChangeMode(EOperationMode OperationMode)
        {
            base.OperationMode = OperationMode;
            switch (OperationMode)
            {
            case EOperationMode.INSERT:
                Clear(panel3);
                Clear(panelDetail);
                EnablePanel(panel3);
                DisablePanel(panelDetail);
                ScKey.SearchEnable     = false;
                ScCopyKey.SearchEnable = false;
                F9Visible          = false;
                F12Enable          = true;
                BtnF11Show.Enabled = F11Enable = true;
                break;

            case EOperationMode.UPDATE:
            case EOperationMode.DELETE:
            case EOperationMode.SHOW:
                Clear(panel3);
                Clear(panelDetail);
                EnablePanel(panel3);
                DisablePanel(panelDetail);
                ScKey.SearchEnable = true;
                ScCopyKey.Enabled  = false;
                F12Enable          = false;
                BtnF11Show.Enabled = F11Enable = true;
                break;
            }
            ScID.SetFocus(1);
        }
        private void ChangeMode(EOperationMode OperationMode)
        {
            base.OperationMode = OperationMode;
            switch (OperationMode)
            {
            case EOperationMode.INSERT:
                F9Visible = false;
                Clear(PanelHeader);
                Clear(PanelDetail);
                EnablePanel(PanelHeader);
                ginKou_CD.SearchEnable = false;
                DisablePanel(PanelDetail);
                BtnF11Show.Enabled          = F11Enable = true;
                copy_ginKou_CD.SearchEnable = true;
                F9Visible = false;
                break;

            case EOperationMode.UPDATE:
            case EOperationMode.DELETE:
            case EOperationMode.SHOW:
                Clear(PanelHeader);
                Clear(PanelDetail);
                EnablePanel(PanelHeader);
                DisablePanel(panelCopy);
                Btn_F11.Enabled    = true;
                BtnF11Show.Enabled = true;
                DisablePanel(PanelDetail);
                ginKou_CD.SearchEnable      = true;
                copy_ginKou_CD.SearchEnable = false;
                F9Visible = true;
                break;
            }
            ginKou_CD.SetFocus(1);
        }
예제 #5
0
        /// <summary>
        /// Disable/Enable,Clear Handle on ModeChange
        /// </summary>
        private void ChangeMode(EOperationMode OperationMode)
        {
            base.OperationMode = OperationMode;
            switch (OperationMode)
            {
            case EOperationMode.INSERT:
            case EOperationMode.UPDATE:
                F9Visible = false;
                Clear(panel1);
                Clear(panelDetail);
                EnablePanel(panel1);
                //EnablePanel(panelDetail);
                DisablePanel(panelDetail);
                BtnF11Show.Enabled = F11Enable = true;
                F12Enable          = true;
                break;

            case EOperationMode.DELETE:
            case EOperationMode.SHOW:
                F9Visible = false;
                Clear(panel1);
                Clear(panelDetail);
                EnablePanel(panel1);
                Btn_F11.Enabled    = true;
                BtnF11Show.Enabled = true;
                DisablePanel(panelDetail);
                break;
            }
            cboStore.Focus();
        }
예제 #6
0
        public bool GetOperationMode(ref EOperationMode mode)
        {
            uint lastErrorCode = 0;

            var result = VcsWrapper.Device.VcsGetOperationMode(KeyHandle, NodeId, ref mode, ref lastErrorCode) > 0;

            LastErrorCode = lastErrorCode;

            return(result);
        }
        private void ChangeMode(EOperationMode OperationMode)
        {
            base.OperationMode = OperationMode;
            switch (OperationMode)
            {
            case EOperationMode.INSERT:
                Clear(PanelHeader);
                Clear(PanelDetail);
                EnablePanel(PanelHeader);
                DisablePanel(PanelDetail);
                ScPaymentProcessNum.Enabled = false;
                ScPaymentNum.Enabled        = false;
                ScPayee.Enabled             = true;
                ScPayee.SearchEnable        = true;
                txtDueDate1.Focus();
                F9Visible          = false;
                F12Enable          = true;
                F11Enable          = true;
                btnF11Show.Enabled = true;
                //F11Visible = false;
                Clear();
                break;

            case EOperationMode.UPDATE:
            case EOperationMode.DELETE:
            case EOperationMode.SHOW:
                Clear(PanelHeader);
                Clear(PanelDetail);
                EnablePanel(PanelHeader);
                DisablePanel(PanelDetail);
                ScPaymentProcessNum.Enabled      = true;
                ScPaymentProcessNum.SearchEnable = true;
                ScPaymentNum.Enabled             = true;
                ScPaymentNum.SearchEnable        = true;
                ScPaymentProcessNum.SetFocus(1);
                txtDueDate1.Enabled  = false;
                txtDueDate2.Enabled  = false;
                ScPayee.Enabled      = false;
                ScPayee.SearchEnable = false;
                F12Enable            = true;
                F11Enable            = false;
                btnF11Show.Enabled   = F11Enable = false;
                //F11Visible = false;
                Clear();
                break;
            }
            ScPaymentProcessNum.SetFocus(1);
        }
예제 #8
0
 private void ChangeMode(EOperationMode OperationMode)
 {
     base.OperationMode = OperationMode;
     switch (OperationMode)
     {
     case EOperationMode.UPDATE:
     case EOperationMode.SHOW:
         Clear(PanelHeader);
         Clear(PanelDetail);
         EnablePanel(PanelHeader);
         DisablePanel(PanelDetail);
         F12Enable          = false;
         btnDisplay.Enabled = F11Enable = true;
         BindGridCombo();
         break;
     }
     PanelHeader.Focus();
     txtZip1from.Focus();
 }
예제 #9
0
        public override bool Execute(string source)
        {
            bool           result     = false;
            var            eposDevice = Device as EposDevice;
            EOperationMode mode       = 0;

            var deviceCommunication = eposDevice?.Communication;

            if (deviceCommunication is Epos4DeviceCommunication communication)
            {
                var commandResult = communication.GetOperationMode(ref mode);

                SetParameterValue("Mode", (sbyte)mode);
                SetParameterValue("ErrorCode", communication.LastErrorCode);
                SetParameterValue("Result", commandResult);

                result = true;
            }

            return(result);
        }
 private void ChangeMode(EOperationMode OperationMode)
 {
     base.OperationMode = OperationMode;
     switch (OperationMode)
     {
     case EOperationMode.INSERT:
         cboProcessType.Text         = string.Empty;
         cboProcessType.SelectedText = "支払締";
         txtPayCloseDate.Text        = string.Empty;
         Shiiresaki.TxtCode.Text     = string.Empty;
         Shiiresaki.LabelText        = string.Empty;
         F2Visible  = false;
         F3Visible  = false;
         F4Visible  = false;
         F5Visible  = false;
         F9Visible  = false;
         F11Visible = false;
         dgvPaymentClose.DataSource = null;
         cboProcessType.Focus();
         break;
     }
 }
        private void ChangeMode(EOperationMode OperationMode)
        {
            base.OperationMode = OperationMode;
            switch (OperationMode)
            {
            case EOperationMode.INSERT:
                Clear(PanelHeader);
                Clear(PanelDetail);
                EnablePanel(PanelHeader);
                DisablePanel(PanelDetail);
                GvTana.ClearSelection();
                GvTana.Enabled             = false;
                ScSoukoCD.SearchEnable     = false;
                ScCopySoukoCD.SearchEnable = true;
                ScCopySoukoCD.Enabled      = true;
                F9Visible          = false;
                F12Enable          = true;
                btnDisplay.Enabled = F11Enable = true;
                break;

            case EOperationMode.UPDATE:
            case EOperationMode.DELETE:
            case EOperationMode.SHOW:
                Clear(PanelHeader);
                Clear(PanelDetail);
                EnablePanel(PanelHeader);
                DisablePanel(PanelDetail);
                GvTana.Enabled = false;
                GvTana.ClearSelection();
                ScSoukoCD.SearchEnable = true;
                ScCopySoukoCD.Enabled  = false;
                F12Enable          = false;
                btnDisplay.Enabled = F11Enable = true;
                break;
            }
            ScSoukoCD.Focus();
        }
 private void HandleMode(EOperationMode mode, int index)
 {
 }
예제 #13
0
 private void HandleMode(EOperationMode mode, int index)
 {
     OperationMode = mode;
     CheckMode();
     txtPrefixValue.Focus();
 }