Exemplo n.º 1
0
        private void dgvDetaila_DoubleClick(object sender, EventArgs e)
        {
            GalDetID        = int.Parse(dgvDetaila.CurrentRow.Cells[0].Value.ToString());
            txtProduct.Text = dgvDetaila.CurrentRow.Cells[6].Value.ToString();
            txtCompany.Text = dgvDetaila.CurrentRow.Cells[7].Value.ToString();

            DataTable dt = ClassReport.selectIMGDet(GalDetID);

            Gal_id     = int.Parse(dt.Rows[0][0].ToString());
            Product_ID = int.Parse(dt.Rows[0][1].ToString());
            company_id = int.Parse(dt.Rows[0][2].ToString());

            proImg  = ClassReport.selectProIMG(Product_ID);
            comIMG  = ClassReport.selectComIMG(company_id);
            comBC   = ClassReport.selectBCIMG(company_id);
            catalog = ClassReport.selectCatalogIMG(Gal_id);

            billIMG = ClassReport.selectBillIMG(Gal_id);
            QuotIMG = ClassReport.selectQuotIMG(Gal_id);

            picN1     = picN2 = 1;
            picP1     = picP2 = 0;
            pic1State = pic2State = "";

            txtDate.Text = "";
            // picBox2.Visible = false;
            // picBox1.Visible = false;
            picBox1.Image = picBox2.Image = null;
        }