private void f_delete_after() { cdha_dvll_Oracle dvll_Oracle = new cdha_dvll_Oracle(); foreach (DataGridViewRow item in ddsdaduyet.Rows) { DataGridViewCell oCell = item.Cells["Chon_"]; bool check = Convert.ToBoolean(oCell.Value); if (check == true) { dvll_Oracle.f_delete(long.Parse(item.Cells["id_"].Value.ToString())); } } }
private void f_suadaduyet() { cdha_dvll_Oracle dvll_Oracle = new cdha_dvll_Oracle(); foreach (DataGridViewRow item in ddsdaduyet.Rows) { DataGridViewCell oCell = item.Cells["Chon_"]; bool check = Convert.ToBoolean(oCell.Value); if (check == true) { DateTime ngayth = m_format.DateTime_parse(item.Cells["ngayth2"].Value.ToString()); if (f_kiemtra_locked(ngayth)) { string s_id = item.Cells["id_"].Value.ToString(); dvll_Oracle.f_delete(long.Parse(s_id)); cdha_hen_Oracle henOracle = new cdha_hen_Oracle(); henOracle.f_update_dathuchien("0", s_id); } } } }