Exemple #1
0
        private void frmProductDisplayOption_Load(object sender, EventArgs e)
        {
            this.Text = this.Text + " - " + MetriconCommon.WindowTitleInfo;
            ClearForm();
            if (productLookupForm == null)
            {
                productLookupForm = new frmProductLookup();
            }
            productLookupForm.ShowDialog();

            row = productLookupForm.SelectedRow;

            if (row != null)
            {
                productID = row["ProductID"].ToString();
                loadArea();
                loadGroup();
                getStatistics();
                LoadProductDetails();
                LoadPriceList();
                loadPAGList();
                loadDisplayList();
            }
            else
            {
                this.Close();
            }

            // classCustomizeScreenLookAndFeel.customizeMyScreen(this);
        }
Exemple #2
0
        private void btnSelectProduct_Click(object sender, EventArgs e)
        {
            if (productLookupForm == null)
            {
                productLookupForm = new frmProductLookup();
            }
            productLookupForm.ShowDialog();

            DataRow row = productLookupForm.SelectedRow;

            try
            {
                this.txtBaseProductID.Text = row["productID"].ToString();
            }
            catch (RowNotInTableException ep)
            {
                this.txtBaseProductID.Text = "";
                MessageBox.Show(ep.ToString());
            }
            catch (NullReferenceException ep2)
            {
                this.txtBaseProductID.Text = "";
                MessageBox.Show(ep2.ToString());
            }
        }
Exemple #3
0
 private void btnLookupProduct_Click(object sender, EventArgs e)
 {
     if (productLookupForm == null)
     {
         productLookupForm = new frmProductLookup();
     }
     productLookupForm.ShowDialog();
     if ((productLookupForm.SelectedRow != null) && (productLookupForm.SelectedRow.RowState == DataRowState.Unchanged))
     {
         this.txtProductID.Text = productLookupForm.SelectedRow["ProductID"].ToString();
     }
 }
Exemple #4
0
        private void btnLookupPAG_Click(object sender, EventArgs e)
        {
            if (productLookupForm == null)
            {
                productLookupForm = new frmProductLookup();
            }
            productLookupForm.ShowDialog();

            if (productLookupForm.SelectedRow != null && (!(productLookupForm.SelectedRow.RowState == DataRowState.Detached)))
            {
                txtProductID.Text = productLookupForm.SelectedRow["ProductID"].ToString();
                LoadPAGList();
            }
        }
Exemple #5
0
        private void frmPagLookup_Load(object sender, EventArgs e)
        {
            this.Text = this.Text + " - " + MetriconCommon.WindowTitleInfo;
            if (productLookupForm == null)
            {
                productLookupForm = new frmProductLookup();
            }
            productLookupForm.ShowDialog();

            if (productLookupForm.SelectedRow != null && (!(productLookupForm.SelectedRow.RowState == DataRowState.Detached)))
            {
                txtProductID.Text = productLookupForm.SelectedRow["ProductID"].ToString();
                LoadPAGList();
            }

            // classCustomizeScreenLookAndFeel.customizeMyScreen(this);
        }