private void CapNhat() { QUANLYHOCSINHCAP3.THAMSO.ThamSoCtl thamsoCtl = new QUANLYHOCSINHCAP3.THAMSO.ThamSoCtl(); thamsoCtl.ThamSo.MaTS = txtMaso.Text; thamsoCtl.ThamSo.TenTS = txtTenThamSo.Text; thamsoCtl.ThamSo.GiaTri = Convert.ToInt32(txtGiaTri.Text); thamsoCtl.ThamSo.GhiChu = txtGhichu.Text; thamsoCtl.update(); GetDanhSachThamSo(); }
private void Luu() { QUANLYHOCSINHCAP3.THAMSO.ThamSoCtl thamsoCtl = new QUANLYHOCSINHCAP3.THAMSO.ThamSoCtl(); thamsoCtl.ThamSo.MaTS = txtMaso.Text; thamsoCtl.ThamSo.TenTS = txtTenThamSo.Text; thamsoCtl.ThamSo.GiaTri = Convert.ToInt32(txtGiaTri.Text); thamsoCtl.ThamSo.GhiChu = txtGhichu.Text; //int i,j; //for( i=0;i<sots;i++) //{ // for(j=0;j<3;j++) // { //dataDS[0,0]=""; //dataDS[0,1]=""; // } //} thamsoCtl.insert(); MessageBox.Show("Thông tin đã được lưu", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.None); GetDanhSachThamSo(); }
private void CapNhat() { QUANLYHOCSINHCAP3.THAMSO.ThamSoCtl thamsoCtl = new QUANLYHOCSINHCAP3.THAMSO.ThamSoCtl(); thamsoCtl.ThamSo.MaTS = txtMaso.Text; thamsoCtl.ThamSo.TenTS = txtTenThamSo.Text; thamsoCtl.ThamSo.GiaTri = Convert.ToInt32(txtGiaTri.Text); thamsoCtl.ThamSo.GhiChu = txtGhichu.Text; thamsoCtl.update(); GetDanhSachThamSo(); }
private void Luu() { QUANLYHOCSINHCAP3.THAMSO.ThamSoCtl thamsoCtl = new QUANLYHOCSINHCAP3.THAMSO.ThamSoCtl(); thamsoCtl.ThamSo.MaTS = txtMaso.Text; thamsoCtl.ThamSo.TenTS = txtTenThamSo.Text; thamsoCtl.ThamSo.GiaTri = Convert.ToInt32(txtGiaTri.Text); thamsoCtl.ThamSo.GhiChu = txtGhichu.Text; //int i,j; //for( i=0;i<sots;i++) //{ // for(j=0;j<3;j++) // { //dataDS[0,0]=""; //dataDS[0,1]=""; // } //} thamsoCtl.insert(); MessageBox.Show("Thông tin đã được lưu","Thông báo",MessageBoxButtons.OK,MessageBoxIcon.None); GetDanhSachThamSo(); }