/// <summary>
        /// Error Check for F11 and F12 btn
        /// </summary>
        /// <param name="index"></param>
        /// <returns></returns>
        private bool ErrorCheck(int index)
        {
            mtugsbl = new MasterTouroku_UnsouGaisya_BL();
            if (index == 11)
            {
                if (OperationMode == EOperationMode.INSERT)
                {
                    if (type == 1)//New
                    {
                        if (!RequireCheck(new Control[] { ScShippingCD.TxtCode, ScShippingCD.TxtChangeDate }))
                        {
                            return(false);
                        }

                        //if (ScShippingCD.IsExists())
                        //{
                        //    mtugsbl.ShowMessage("E132");
                        //    ScShippingCD.SetFocus(1);
                        //    return false;
                        //}
                    }
                    else//Copy
                    {
                        if (!RequireCheck(new Control[] { ScShippingCD.TxtCode, ScShippingCD.TxtChangeDate }))
                        {
                            return(false);
                        }

                        if (ScShippingCD.IsExists(1))
                        {
                            mtugsbl.ShowMessage("E132");
                            ScShippingCD.SetFocus(1);
                            return(false);
                        }
                        else
                        {
                            if (!string.IsNullOrWhiteSpace(ScCopyShippingCD.TxtCode.Text))
                            {
                                if (!ScCopyShippingCD.IsExists(1))
                                {
                                    mtugsbl.ShowMessage("E133");
                                    ScCopyShippingCD.SetFocus(1);
                                    return(false);
                                }
                            }
                        }
                    }
                }
                else
                {
                    if (!ScShippingCD.IsExists(1))
                    {
                        mtugsbl.ShowMessage("E133");
                        ScShippingCD.SetFocus(1);
                        return(false);
                    }
                }
            }
            else if (index == 12)
            {
                if (!RequireCheck(new Control[] { ScShippingCD.TxtCode, ScShippingCD.TxtChangeDate }))
                {
                    return(false);
                }

                if (OperationMode == EOperationMode.INSERT)
                {
                    if (ScShippingCD.IsExists(1))
                    {
                        mtugsbl.ShowMessage("E132");
                        ScShippingCD.SetFocus(1);
                        return(false);
                    }
                }

                if (string.IsNullOrWhiteSpace(txtShippingName.Text))
                {
                    mtugsbl.ShowMessage("E102");
                    txtShippingName.Focus();
                    return(false);
                }

                if (string.IsNullOrWhiteSpace(cboIdentity.Text.ToString()))
                {
                    mtugsbl.ShowMessage("E102");
                    cboIdentity.Focus();
                    return(false);
                }

                if (string.IsNullOrWhiteSpace(cboNormalType.Text.ToString()))
                {
                    mtugsbl.ShowMessage("E102");
                    cboNormalType.Focus();
                    return(false);
                }

                //*** Insert Other Error Check
            }
            return(true);
        }
        private void F11()
        {
            if (ErrorCheck(11))
            {
                switch (OperationMode)
                {
                case EOperationMode.INSERT:
                    if (type == 1)
                    {
                        ScCopyShippingCD.SetFocus(1);
                    }
                    else
                    {
                        if (string.IsNullOrWhiteSpace(ScCopyShippingCD.ChangeDate) || (DisplayData(ScCopyShippingCD)))
                        {
                            DisablePanel(PanelNormal);
                            DisablePanel(PanelCopy);
                            EnablePanel(panel1);
                            btnDisplay.Enabled = false;
                            F11Enable          = false;
                            txtShippingName.Focus();
                        }
                        //SelectNextControl(PanelDetail, true, true, true, true);
                    }
                    break;

                case EOperationMode.UPDATE:
                    DisplayData(ScShippingCD);
                    DisablePanel(PanelNormal);
                    DisablePanel(PanelCopy);
                    btnDisplay.Enabled = false;
                    EnablePanel(PanelDetail);
                    F12Enable = true;
                    F11Enable = false;
                    SelectNextControl(PanelDetail, true, true, true, true);

                    break;

                case EOperationMode.DELETE:
                    DisplayData(ScShippingCD);
                    DisablePanel(PanelNormal);
                    DisablePanel(PanelCopy);
                    btnDisplay.Enabled = false;
                    DisablePanel(PanelDetail);
                    SelectNextControl(PanelDetail, true, true, true, true);
                    F12Enable = true;
                    F11Enable = false;

                    break;

                case EOperationMode.SHOW:
                    DisplayData(ScShippingCD);
                    DisablePanel(PanelNormal);
                    DisablePanel(PanelCopy);
                    btnDisplay.Enabled = false;
                    DisablePanel(PanelDetail);
                    F12Enable = false;
                    F11Enable = false;
                    break;
                }
            }
        }