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 ScPickingNo2_CodeKeyDownEvent(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         if (!string.IsNullOrWhiteSpace(ScPickingNo2.TxtCode.Text))
         {
             if (!ScPickingNo2.IsExists(2))
             {
                 bbl.ShowMessage("E128");
                 ScPickingNo2.SetFocus(1);
             }
         }
     }
 }