예제 #1
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            frmFixAdd frmFixAdd = new frmFixAdd(Id);

            frmFixAdd.Show();
            frmFixAdd.buttonSaveNew.Enabled    = true;
            frmFixAdd.buttonSave.Enabled       = false;
            frmFixAdd.buttonPairSearch.Enabled = false;
        }
예제 #2
0
        private void FixProductGridView1_DoubleClick(object sender, EventArgs e)
        {
            typeid = FixProductGridView1.CurrentRow.Cells[0].Value.ToString();

            string QuantityQuery = "select quantity from T_fixpro where id ='" + typeid + "'";
            string Quantity      = databaseexe.getTopselect(QuantityQuery, "quantity");

            frmFixAdd frmsub = new frmFixAdd(FixProductGridView1.CurrentRow, Id, typeid, Quantity);

            frmsub.Show();
            frmsub.buttonSave.Enabled    = true;
            frmsub.buttonSaveNew.Enabled = false;
        }