private void btn_seve_Click(object sender, EventArgs e) { txt_id.ReadOnly = true; Account.P_AC_insert_Account(txt_id.Text, proc.Insert_com_to_db(cbx_parent), txt_A_N.Text, txt_E_N.Text, Convert.ToInt32(proc.Insert_com_to_db(cbx_Account_Calss)), Convert.ToInt32(proc.Insert_com_to_db(cbx_Account_type)), Convert.ToInt32(proc.Insert_com_to_db(cbx_Account_group)), Convert.ToInt32(proc.Insert_com_to_db(cbx_Account_Calss)), Convert.ToInt32(proc.Insert_com_to_db(Cbx_Account_status)), Convert.ToInt32(proc.Insert_com_to_db(cbx_Rapport)), txt_Note.Text); if (check == 1) { Account.P_AC_insert_Account_Request(txt_id.Text, proc.Insert_com_to_db(cbx_parent), txt_A_N.Text, txt_E_N.Text , Convert.ToInt32(proc.Insert_com_to_db(cbx_Account_type)), Convert.ToInt32(proc.Insert_com_to_db(cbx_Account_group)), Convert.ToInt32(proc.Insert_com_to_db(cbx_Account_Calss)), checkBox1.Checked, txt_Note.Text); } foreach (DataGridViewRow row in dgv_Account_curr.Rows) { if (row.Cells["استخدام"].Value == DBNull.Value) { row.Cells["استخدام"].Value = false; } Account.P_AC_insert_Account_Currency(row.Cells["الرمز"].Value.ToString(), txt_id.Text, Convert.ToBoolean(row.Cells["استخدام"].Value)); } }
private void btn_seve_Click(object sender, EventArgs e) { Account.P_AC_insert_Account_Request(txt_id.Text, proc.Insert_com_to_db(cbx_parent), txt_A_N.Text, txt_E_N.Text , Convert.ToInt32(proc.Insert_com_to_db(cbx_Account_type)), Convert.ToInt32(proc.Insert_com_to_db(cbx_Account_group)), Convert.ToInt32(proc.Insert_com_to_db(cbx_Account_Calss)), chbx_INACTIVE_add.Checked, txt_Note.Text); }