private void quGridView_CellClick(object sender, DataGridViewCellEventArgs e) { if ((quGridView.RowCount >= 0) && (e.RowIndex >= 0)) { DataGridViewRow rows = quGridView.Rows[e.RowIndex]; if (e.ColumnIndex == 1) { newQUform qu = new newQUform(); aseno = rows.Cells[0].Value.ToString(); qu.aseno.Text = rows.Cells[0].Value.ToString(); qu.qudate.Text = rows.Cells[2].Value.ToString(); qu.projectTXT.Text = rows.Cells[3].Value.ToString(); qu.addressTXT.Text = rows.Cells[4].Value.ToString(); qu.telno.Text = rows.Cells[5].Value.ToString(); qu.faxno.Text = rows.Cells[6].Value.ToString(); qu.othercharges.Text = rows.Cells[7].Value.ToString(); qu.preparedby.Text = rows.Cells[8].Value.ToString(); qu.approvedby.Text = rows.Cells[9].Value.ToString(); quClass q = new quClass(this, qu); q.loaditems(qu.aseno.Text); qu.aseno.Enabled = false; qu.panel1.Enabled = true; qu.ShowDialog(); } } }
private void quSearch_ButtonClick(object sender, EventArgs e) { quSearch.Text = quSearch.Text.Replace("'", "`"); quSearch.Text = quSearch.Text.Replace("\"", "``"); quClass q = new quClass(this, quf); q.loadquotaiontb(" where project like '%" + quSearch.Text + "%'"); }
private void aseno_ButtonClick(object sender, EventArgs e) { aseno.Text = aseno.Text.Replace("'", "").Trim(); aseno.Text = aseno.Text.Replace("\"", "").Trim(); quClass q = new quClass(frm1, this); q.addase(aseno.Text); }
private void updateBTN_Click(object sender, EventArgs e) { cleanitementry(); quClass q = new quClass(frm1, this); q.updateitem(tempitemid, itemno.Text, wdwloc.Text, parts.Text, unitprice.Text, qty.Text, netamount.Text); q.loaditems(aseno.Text); }
private void saveBTN_Click(object sender, EventArgs e) { cleanentry(); quClass q = new quClass(frm1, this); q.savequotation(aseno.Text, qudate.Text, projectTXT.Text, addressTXT.Text, telno.Text, faxno.Text, othercharges.Text, preparedby.Text, approvedby.Text); }
private void deleteBTN_Click(object sender, EventArgs e) { if (MetroMessageBox.Show(this, "Click yes to delete this item", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) { return; } quClass q = new quClass(frm1, this); q.deleteitem(tempitemid); q.loaditems(aseno.Text); }
private void MetroTabControl1_SelectedIndexChanged(object sender, EventArgs e) { if (MetroTabControl1.SelectedIndex == 1) { if (firstload == false) { } else { CallinTableClass b = new CallinTableClass(this); b.loadcallintb(); firstload = false; } } else if (MetroTabControl1.SelectedIndex == 2) { if (firstloadservicing == false) { } else { ServicingClass c = new ServicingClass(this, NSF); c.loadservicingtb(""); firstloadservicing = false; } } else if (MetroTabControl1.SelectedIndex == 3) { if (firstloadqu == false) { } else { quClass q = new quClass(this, quf); q.loadquotaiontb(""); firstloadqu = false; } } }
private void qurefreshBTN_Click(object sender, EventArgs e) { quClass q = new quClass(this, quf); q.loadquotaiontb(""); }