Example #1
0
        private void btnWFMAG_Click(object sender, EventArgs e)
        {
            FrmWFMagPicker frmWFMagPicker = new FrmWFMagPicker();

            if (frmWFMagPicker.ShowDialog() == DialogResult.OK)
            {
                txtKTM.Text        = frmWFMagPicker.ChosenKTM;
                txtDescriptor.Text = frmWFMagPicker.ChosenDescriptor;
            }

            this.SetPositionChangesPending(true);
        }
Example #2
0
        private void btnArticlesWFMAG_Click(object sender, EventArgs e)
        {
            FrmWFMagPicker frmWFMagPicker = new FrmWFMagPicker();

            if (frmWFMagPicker.ShowDialog() == DialogResult.OK)
            {
                gridArticlesRepo.AddRow(new RelatedArticle()
                {
                    AgreementId = this.agreement.Id,
                    KTM         = frmWFMagPicker.ChosenKTM,
                    Descriptor  = frmWFMagPicker.ChosenDescriptor
                });
            }

            this.SetAgreementChangesPending(true);
        }
Example #3
0
        private void btnProductsWFMAG_Click(object sender, EventArgs e)
        {
            FrmWFMagPicker frmWFMagPicker = new FrmWFMagPicker();

            if (frmWFMagPicker.ShowDialog() == DialogResult.OK)
            {
                gridRelatedProductsRepo.AddRow(new RelatedProduct()
                {
                    AgreementPositionId = this.selectedPosition.Id,
                    KTM        = frmWFMagPicker.ChosenKTM,
                    Descriptor = frmWFMagPicker.ChosenDescriptor
                });
            }

            this.SetPositionChangesPending(true);
        }
Example #4
0
        private void btnPositionsWFMAG_Click(object sender, EventArgs e)
        {
            this.AddPosition();

            FrmWFMagPicker frmWFMagPicker = new FrmWFMagPicker();

            if (frmWFMagPicker.ShowDialog() == DialogResult.OK)
            {
                gridExPositions.CurrentRow.Cells["Tytul"].Value      = frmWFMagPicker.ChosenTitle;
                gridExPositions.CurrentRow.Cells["KTM"].Value        = frmWFMagPicker.ChosenKTM;
                gridExPositions.CurrentRow.Cells["Deskryptor"].Value = frmWFMagPicker.ChosenDescriptor;

                txtKTM.Text        = frmWFMagPicker.ChosenKTM;
                txtDescriptor.Text = frmWFMagPicker.ChosenDescriptor;
            }
        }
Example #5
0
        private void btnAgreementWFMAG_Click(object sender, EventArgs e)
        {
            FrmWFMagPicker frmWFMagPicker = new FrmWFMagPicker();

            if (frmWFMagPicker.ShowDialog() == DialogResult.OK)
            {
                txtReportTitle.Text = frmWFMagPicker.ChosenTitle;

                this.SaveAgreement();

                this.AddPosition(frmWFMagPicker.ChosenDeliveryDate, frmWFMagPicker.ChosenKTM, frmWFMagPicker.ChosenDescriptor);

                gridExPositions.CurrentRow.Cells["Tytul"].Value      = frmWFMagPicker.ChosenTitle;
                gridExPositions.CurrentRow.Cells["KTM"].Value        = frmWFMagPicker.ChosenKTM;
                gridExPositions.CurrentRow.Cells["Deskryptor"].Value = frmWFMagPicker.ChosenDescriptor;
            }

            this.SetPositionChangesPending(true);
        }