private void F11()
 {
     if (ErrorCheck())
     {
         mve = GetSearchInfo();
         DataTable dt = vbl.M_SearchVendor(mve);
         if (dt.Rows.Count > 0)
         {
             dgvSearchVendor.DataSource = dt;
         }
         else
         {
             vbl.ShowMessage("E128");
             dgvSearchVendor.DataSource = null;
             txtChangeDate.Focus();
         }
     }
 }
        private bool CheckDetail(int index)
        {
            switch (index)
            {
            case (int)EIndex.MakerCD:
                //入力なければチェックなし
                if (detailControls[index].Text == "")
                {
                    ScMaker.LabelText = "";
                    return(true);
                }
                else
                {
                    //仕入先マスタデータチェック
                    Vendor_BL       mbl = new Vendor_BL();
                    M_Vendor_Entity mse = new M_Vendor_Entity
                    {
                        VendorCD   = detailControls[index].Text,
                        ChangeDate = ckM_Label1.Text
                    };
                    bool ret = mbl.M_Vendor_SelectTop1(mse);
                    if (ret)
                    {
                        ScMaker.LabelText = mse.VendorName;
                    }
                    else
                    {
                        //E136
                        mbl.ShowMessage("E136");
                        ScMaker.LabelText = "";
                        return(false);
                    }
                }
                break;

            case (int)EIndex.BrandName:

                break;
            }

            return(true);
        }