Пример #1
0
        private void textBox_KeyDown(object sender, KeyEventArgs e)
        {
            TextBox tb = ( TextBox )sender;

            //if( e.KeyCode == Keys.Enter || e.KeyCode == Keys.Tab )
            //{

            //}

            if ((e.Modifiers & Keys.Control) != Keys.Control)
            {
                return;                                                    // Ctrlキーが押下された時のみ以下処理
            }
            if (e.KeyCode == Keys.A)
            {
                switch (tb.Name)
                {
                case "textBoxSubCo":
                    PartnersScData psds = FormSubComList.ReceiveItems(psd);
                    if (psds == null)
                    {
                        return;
                    }
                    textBoxSubCo.Text   = psds.PartnerName;
                    labelSubCoCode.Text = psds.PartnerCode;
                    break;

                default:
                    break;
                }
            }
        }
Пример #2
0
        private void choosePartnerData()
        {
            PartnersScData psds = FormSubComList.ReceiveItems(psd);

            if (psds == null)
            {
                return;
            }
            textBoxPartner.Text = psds.PartnerName;
        }
Пример #3
0
        // 取引先マスタ外注データをFormSubComList画面から得る
        private void choosePartnersScData(DataGridViewRow dgvRow)
        {
            PartnersScData psds = FormSubComList.ReceiveItems(psd);

            if (psds == null)
            {
                return;
            }
            dgvRow.Cells["CoCompany"].Value = psds.PartnerName;
            ListFormDataOp lo = new ListFormDataOp();

            string editPartnerName = psds.PartnerName;

            cmd = lo.SelectCostData(Conv.OfficeCode, "CostCode", "F", editPartnerName.RemoveCorpForm());
        }