private void CanCelData() { CB_Soko.SelectedIndex = 1; CB_year.Text = string.Empty; CB_OrderAttentionCD.Text = string.Empty; CB_ReserveCD.Text = String.Empty; CB_PostageCD.Text = String.Empty; CB_Season.Text = string.Empty; CB_NoticesCD.Text = string.Empty; CB_Tagu1.Text = String.Empty; CB_Tagu2.Text = String.Empty; CB_Tagu3.Text = String.Empty; CB_Tagu4.Text = String.Empty; CB_Tagu5.Text = String.Empty; TB_item.Text = string.Empty; TB_mekashohinCD.Text = string.Empty; TB_Bikokeyword.Text = string.Empty; TB_mekashohinCD.Text = string.Empty; TB_Catalog.Text = string.Empty; TB_item.Text = string.Empty; TB_Shijishobengo.Text = string.Empty; TB_ShinkitorokuF.Text = String.Empty; TB_ShinkitorokuT.Text = string.Empty; TB_Shohinmei.Text = string.Empty; TB_ShoninbiF.Text = string.Empty; TB_ShoninbiT.Text = string.Empty; TB_RackNoF.Text = string.Empty; TB_RackNoT.Text = string.Empty; TB_SaiShuhenkobiF.Text = string.Empty; TB_SaiShuhenkobiT.Text = String.Empty; jan.Clear(); sku.Clear(); Shiiresaki.Clear(); SearchBrand.Clear(); Maker.Clear(); Sports.Clear(); ckM_RB_or.Checked = true; ckM_RB_and.Checked = false; ckM_CKB_Mishohin.Checked = false; ckM_CKB_suru.Checked = false; CKB_searchsuru.Checked = false; RB_item.Checked = false; RB_Makashohincd.Checked = false; CB_Soko.Focus(); GV_Zaiko.DataSource = null; dtData.Clear(); }
private void SearchBrand_CodeKeyDownEvent(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { SearchBrand.ChangeDate = bbl.GetDate(); if (!string.IsNullOrEmpty(SearchBrand.TxtCode.Text)) { if (!SearchBrand.SelectData()) { //SearchBrand.Value1 = SearchBrand.TxtCode.Text; //SearchBrand.Value2 = SearchBrand.LabelText; bbl.ShowMessage("E101"); SearchBrand.SetFocus(1); } //else //{ // bbl.ShowMessage("E101"); // SearchBrand.SetFocus(1); //} } } }
private bool ErrorCheck() { if (!String.IsNullOrEmpty(Shiiresaki.TxtCode.Text)) { if (!Shiiresaki.IsExists(2)) { bbl.ShowMessage("E101"); Shiiresaki.SetFocus(1); return(false); } } if (!String.IsNullOrEmpty(Maker.TxtCode.Text)) { if (!Maker.IsExists(2)) { bbl.ShowMessage("E101"); Maker.SetFocus(1); return(false); } } if (!String.IsNullOrEmpty(SearchBrand.TxtCode.Text)) { if (!SearchBrand.IsExists(2)) { bbl.ShowMessage("E101"); SearchBrand.SetFocus(1); return(false); } } if (!String.IsNullOrEmpty(jan.TxtCode.Text)) { if (!jan.IsExists(2)) { bbl.ShowMessage("E101"); jan.SetFocus(1); return(false); } } if (!String.IsNullOrEmpty(sku.TxtCode.Text)) { if (!sku.IsExists(2)) { bbl.ShowMessage("E101"); sku.SetFocus(1); return(false); } } if (!String.IsNullOrEmpty(Sports.TxtCode.Text)) { if (!Sports.IsExists(2)) { bbl.ShowMessage("E101"); Sports.SetFocus(1); return(false); } } if (!String.IsNullOrEmpty(TB_ShinkitorokuF.Text) && !String.IsNullOrEmpty(TB_ShinkitorokuT.Text)) { if (Convert.ToDateTime(TB_ShinkitorokuF.Text) > Convert.ToDateTime(TB_ShinkitorokuT.Text)) { bbl.ShowMessage("E104"); TB_ShinkitorokuF.Focus(); return(false); } } if (!String.IsNullOrEmpty(TB_RackNoF.Text) && !String.IsNullOrEmpty(TB_RackNoT.Text)) { if (String.Compare(TB_RackNoF.Text, TB_RackNoT.Text) == 1) { bbl.ShowMessage("E106"); TB_RackNoF.Focus(); return(false); } } if (!String.IsNullOrEmpty(TB_SaiShuhenkobiF.Text) && !String.IsNullOrEmpty(TB_SaiShuhenkobiT.Text)) { if (Convert.ToDateTime(TB_SaiShuhenkobiF.Text) > Convert.ToDateTime(TB_SaiShuhenkobiT.Text)) { bbl.ShowMessage("E104"); TB_SaiShuhenkobiF.Focus(); return(false); } } if (!String.IsNullOrEmpty(TB_ShoninbiF.Text) && !String.IsNullOrEmpty(TB_ShoninbiT.Text)) { if (Convert.ToDateTime(TB_ShoninbiF.Text) > Convert.ToDateTime(TB_ShoninbiT.Text)) { bbl.ShowMessage("E104"); TB_ShoninbiF.Focus(); return(false); } } return(true); }