示例#1
0
 private void thêmToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try {
         dm_vinabiz_LoaiDinhNghia model = new dm_vinabiz_LoaiDinhNghia();
         model.name    = "";
         model.orderid = ConvertType.ToInt(SQLDatabase.ExcDataTable("select max(orderid) from dm_vinabiz_LoaiDinhNghia").Rows[0][0]) + 1;
         model.isAct   = false;
         SQLDatabase.Adddm_vinabiz_LoaiDinhNghia(model);
         BindDM_loaidinhnghia();
     }
     catch (Exception ex) {
         MessageBox.Show(ex.Message, "thêmToolStripMenuItem2_Click");
     }
 }