private void SearchDate_ByOption() { string ymd = bbl.GetDate(); if (RdoJanCD.Checked) { TempoRegiShouhinKensaku tpoShouhin = new TempoRegiShouhinKensaku(InOperatorCD); tpoShouhin.ShowDialog(); if (!string.IsNullOrWhiteSpace(tpoShouhin.JANCD)) { txtCD.Text = tpoShouhin.JANCD; lblAdminNO.Text = tpoShouhin.AdminNO; lblSearchName.Text = tpoShouhin.SKUName; } } else { TempoRegiKaiinKensaku tgkkk = new TempoRegiKaiinKensaku(); tgkkk.ShowDialog(); if (!string.IsNullOrEmpty(tgkkk.CustomerCD)) { txtCD.Text = tgkkk.CustomerCD; lblSearchName.Text = tgkkk.CustomerName; lblAdminNO.Text = string.Empty; } } lblSearchName.Visible = true; txtBtnNameDown.Focus(); }
private void btnCustomerSearch_Click(object sender, EventArgs e) { TempoRegiKaiinKensaku tgkkk = new TempoRegiKaiinKensaku(); tgkkk.ShowDialog(); if (!string.IsNullOrEmpty(tgkkk.CustomerCD)) { txtCustomerNo.Text = tgkkk.CustomerCD; } }
private void btnCustomerCD_Click(object sender, EventArgs e) { TempoRegiKaiinKensaku kaiinkensaku = new TempoRegiKaiinKensaku(); kaiinkensaku.ShowDialog(); if (!(string.IsNullOrWhiteSpace(kaiinkensaku.CustomerCD)) && !(string.IsNullOrWhiteSpace(kaiinkensaku.CustomerName))) { txtCustomerCD.Text = kaiinkensaku.CustomerCD; lblCustomerName.Text = kaiinkensaku.CustomerName; txtCustomerCD.Focus(); } }