private bool ErrorCheck()
        {
            if (!RequireCheck(new Control[] { cboStoreAuthorizations }))
            {
                return(false);
            }

            if (Convert.ToInt32((txtCollectDateF.Text.ToString().Replace("/", ""))) > Convert.ToInt32(txtCollectDateT.Text.ToString().Replace("/", ""))) //対象期間(From)の方が大きい場合Error
            {
                nkih_bl.ShowMessage("E103");
                txtCollectDateF.Focus();
                return(false);
            }

            if (Convert.ToInt32((txtInputDateF.Text.ToString().Replace("/", ""))) > Convert.ToInt32(txtInputDateT.Text.ToString().Replace("/", ""))) //対象期間(From)の方が大きい場合Error
            {
                nkih_bl.ShowMessage("E103");
                txtInputDateF.Focus();
                return(false);
            }

            if (!string.IsNullOrEmpty(ScCollectCustomerCD.Code))
            {
                if (!ScCollectCustomerCD.IsExists())
                {
                    nkih_bl.ShowMessage("E101");
                    ScCollectCustomerCD.SetFocus(1);
                    return(false);
                }
            }
            return(true);
        }
 private void ScCollectCustomerCD_CodeKeyDownEvent(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         if (!string.IsNullOrWhiteSpace(ScCollectCustomerCD.Code))
         {
             if (!ScCollectCustomerCD.SelectData())
             {
                 nkih_bl.ShowMessage("E101");
                 ScCollectCustomerCD.SetFocus(1);
             }
         }
     }
 }