private void CustomEnable()
        {
            if (CboSoukoType.Enabled)
            {
                if (CboSoukoType.SelectedValue.Equals("5"))
                {
                    ScSoukoMakerCD.Enabled = true;
                    ScSoukoMakerCD.Focus();
                }
                else
                {
                    ScSoukoMakerCD.Clear();
                    ScSoukoMakerCD.Enabled = false;
                }

                if (CboSoukoType.SelectedValue.Equals("8"))
                {
                    TxtHikiateOrder.Text    = string.Empty;
                    TxtHikiateOrder.Enabled = false;
                }
                else
                {
                    TxtHikiateOrder.Enabled = true;
                }
            }
        }
        private bool MakerCheck()
        {
            if (CboSoukoType.SelectedValue.Equals("5"))
            {
                if (!RequireCheck(new Control[] { ScSoukoMakerCD.TxtCode }))
                {
                    return(false);
                }

                if (!ScSoukoMakerCD.IsExists(2))
                {
                    mtsbl.ShowMessage("E101");
                    ScSoukoMakerCD.Focus();
                    return(false);
                }
            }

            return(true);
        }
 private void SupplierCode_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         if (!string.IsNullOrEmpty(ScSoukoMakerCD.TxtCode.Text))
         {
             if (ScSoukoMakerCD.SelectData())
             {
                 ScSoukoMakerCD.Value1 = ScSoukoMakerCD.TxtCode.Text;
                 ScSoukoMakerCD.Value2 = ScSoukoMakerCD.LabelText;
             }
             else
             {
                 mtsbl.ShowMessage("E101");
                 ScSoukoMakerCD.SetFocus(1);
             }
         }
         else
         {
             mtsbl.ShowMessage("E102");//△
             ScSoukoMakerCD.SetFocus(1);
         }
     }
 }