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

            if (chkUnissued1.Checked == true)
            {
                int result = txtDateFrom1.Text.CompareTo(txtDateTo1.Text);
                if (result > 0)
                {
                    bbl.ShowMessage("E104");
                    txtDateTo1.Focus();
                    return(false);
                }
            }
            if (chkReissued1.Checked == true)
            {
                if (!ScPickingNo1.IsExists(2))
                {
                    bbl.ShowMessage("E128");
                    return(false);
                }
            }
            if (string.IsNullOrWhiteSpace(txtDateTo1.Text) && string.IsNullOrWhiteSpace(txtShipmentDate.Text))
            {
                bbl.ShowMessage("E202", "出荷予定日(To)", "出荷予定日");
                return(false);
            }
            if ((!string.IsNullOrWhiteSpace(txtDateFrom1.Text) || !string.IsNullOrWhiteSpace(txtDateTo1.Text)) && !string.IsNullOrWhiteSpace(txtShipmentDate.Text))
            {
                bbl.ShowMessage("E188", "出荷予定日(To)", "出荷予定日");
                return(false);
            }

            if (chkUnissued2.Checked == true)
            {
                int result = txtDateFrom2.Text.CompareTo(txtDateTo2.Text);
                if (result > 0)
                {
                    bbl.ShowMessage("E104");
                    txtDateTo2.Focus();
                    return(false);
                }
            }

            if (chkReissued2.Checked == true)
            {
                if (!ScPickingNo2.IsExists(2))
                {
                    bbl.ShowMessage("E128");
                    return(false);
                }
            }



            return(true);
        }
 private void ScPickingNo1_CodeKeyDownEvent(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         if (!string.IsNullOrWhiteSpace(ScPickingNo1.TxtCode.Text))
         {
             if (!ScPickingNo1.IsExists(2))
             {
                 bbl.ShowMessage("E128");
                 ScPickingNo1.SetFocus(1);
             }
         }
     }
 }