private bool ErrorCheck(int index)
        {
            if (index == 11)
            {
                //HeaderCheck on F11
                if (OperationMode == EOperationMode.INSERT)
                {
                    if (type == 1)//New
                    {
                        if (!RequireCheck(new Control[] { ScSoukoCD.TxtCode, ScSoukoCD.TxtChangeDate }))
                        {
                            return(false);
                        }

                        if (ScSoukoCD.IsExists(1))
                        {
                            //***show Message mtsbl.ShowMessage("E132");
                            mtsbl.ShowMessage("E132");
                            ScSoukoCD.SetFocus(1);
                            return(false);
                        }
                    }
                    else//Copy
                    {
                        if (!RequireCheck(new Control[] { ScSoukoCD.TxtCode, ScSoukoCD.TxtChangeDate }))
                        {
                            return(false);
                        }

                        if (!RequireCheck(new Control[] { ScCopySoukoCD.TxtCode }, ScCopySoukoCD.TxtChangeDate))
                        {
                            return(false);
                        }

                        if (!RequireCheck(new Control[] { ScCopySoukoCD.TxtChangeDate }, ScCopySoukoCD.TxtCode))
                        {
                            return(false);
                        }

                        if (ScSoukoCD.IsExists(1))
                        {
                            mtsbl.ShowMessage("E132");
                            ScSoukoCD.SetFocus(1);
                            return(false);
                        }

                        if (!string.IsNullOrWhiteSpace(ScCopySoukoCD.TxtCode.Text) && !string.IsNullOrWhiteSpace(ScCopySoukoCD.TxtChangeDate.Text))
                        {
                            if (!ScCopySoukoCD.IsExists(1))
                            {
                                //*** show Message
                                mtsbl.ShowMessage("E133");
                                ScCopySoukoCD.SetFocus(1);
                                return(false);
                            }
                        }
                    }
                }
                else
                {
                    if (!RequireCheck(new Control[] { ScSoukoCD.TxtCode, ScSoukoCD.TxtChangeDate }))
                    {
                        return(false);
                    }
                    //if (!ScSoukoCD.IsExists(1))
                    //{
                    //    //*** Show Message
                    //    mtsbl.ShowMessage("E133");
                    //    ScSoukoCD.SetFocus(1);
                    //    return false;
                    //}
                }
            }
            else if (index == 12)
            {
                if (!RequireCheck(new Control[] { ScSoukoCD.TxtCode, ScSoukoCD.TxtChangeDate, TxtSoukoName, CboStoreCD }))
                {
                    return(false);
                }

                if (!RequireCheck(new Control[] { txtZipCD1 }, txtZipCD2))
                {
                    return(false);
                }

                if (!RequireCheck(new Control[] { txtZipCD2 }, txtZipCD1))
                {
                    return(false);
                }

                //if (!CheckZipCD(txtZipCD1))
                //    return false;

                if (!CheckZipCDEvent())
                {
                    return(false);
                }

                if (!RequireCheck(new Control[] { CboSoukoType }))
                {
                    return(false);
                }

                if (ScSoukoMakerCD.Enabled.Equals(true)) //△
                {
                    if (!RequireCheck(new Control[] { ScSoukoMakerCD.TxtCode }))
                    {
                        return(false);
                    }
                }

                if (!MakerCheck())
                {
                    return(false);
                }

                if (!TanaCDCheck())
                {
                    return(false);
                }

                if (OperationMode == EOperationMode.INSERT)
                {
                    if (ScSoukoCD.IsExists(1))
                    {
                        //*** ShowMessage
                        mtsbl.ShowMessage("E132");
                        ScSoukoCD.SetFocus(1);
                        return(false);
                    }
                }

                if (OperationMode == EOperationMode.DELETE)
                {
                    if (ScSoukoCD.IsExistsDeleteCheck())
                    {
                        mtsbl.ShowMessage("E154");
                        ScSoukoCD.SetFocus(1);
                        return(false);
                    }
                }
                //*** Insert Other Error Check
            }
            return(true);
        }
        /// <summary>
/// F2 & F3 Mode
/// </summary>
/// <param name="mode"></param>
        #region Function 11 & 12
        private void F11()
        {
            if (ErrorCheck(11))
            {
                switch (OperationMode)
                {
                case EOperationMode.INSERT:

                    if (type == 1)
                    {
                        ScCopySoukoCD.SetFocus(1);
                    }
                    else
                    {
                        if (string.IsNullOrWhiteSpace(ScCopySoukoCD.TxtChangeDate.Text) || DisplayData(ScCopySoukoCD))
                        {
                            DisablePanel(PanelHeader);
                            EnablePanel(PanelDetail);
                            GvTana.Enabled     = true;
                            F11Enable          = false;
                            btnDisplay.Enabled = false;
                            TxtSoukoName.Focus();
                        }
                    }


                    break;

                case EOperationMode.UPDATE:
                    if (DisplayData(ScSoukoCD))
                    {
                        DisablePanel(PanelHeader);
                        EnablePanel(PanelDetail);
                        F12Enable          = true;
                        F11Enable          = false;
                        GvTana.Enabled     = true;
                        btnDisplay.Enabled = false;
                        SelectNextControl(PanelDetail, true, true, true, true);
                    }
                    break;

                case EOperationMode.DELETE:
                    if (DisplayData(ScSoukoCD))
                    {
                        DisablePanel(PanelHeader);
                        DisablePanel(PanelDetail);
                        GvTana.Enabled = false;
                        GvTana.ClearSelection();
                        F11Enable          = false;
                        btnDisplay.Enabled = false;
                        SelectNextControl(PanelDetail, true, true, true, true);
                        F12Enable = true;
                    }
                    break;

                case EOperationMode.SHOW:
                    if (DisplayData(ScSoukoCD))
                    {
                        DisablePanel(PanelHeader);
                        DisablePanel(PanelDetail);
                        GvTana.Enabled     = false;
                        F11Enable          = false;
                        btnDisplay.Enabled = false;
                        F12Enable          = false;
                    }
                    break;
                }
                CustomEnable();
                //***Add Control Enable/Disable;
            }
        }