コード例 #1
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     if (dgvQuotation.Rows.Count == 0 || txtBriName.Text.Equals(""))
     {
         MessageBox.Show("Data Not Completed.");
     }
     else
     {
         int i = ClassOrder.sp_broOrder(DateTime.Now.Date, txtContactName.Text, txtBriName.Text, txtBatName.Text, txtSarName.Text, txtLegal.Text, code);
         for (int num = 0; num < dgvQuotation.Rows.Count; num++)
         {
             int x = ClassOrder.sp_briOrderDet(dgvQuotation.Rows[num].Cells[0].Value.ToString(), dgvQuotation.Rows[num].Cells[1].Value.ToString(), dgvQuotation.Rows[num].Cells[2].Value.ToString(), dgvQuotation.Rows[num].Cells[3].Value.ToString());
         }
         int z = ClassOrder.briUpdateQuotExE(int.Parse(id));
         btnDelete.Enabled = btnUpdate.Enabled = btnSave.Enabled = btnInsert.Enabled = txtContactName.Enabled = btnCancel.Enabled = btnQuotationSelect.Enabled = false;
         btnPrint.Enabled  = true;
         MessageBox.Show("Done");
     }
 }