forked from 57PM1/ChuongTrinhQuanLyDangKyBaoLuuDiemQuaTrinh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
frm_inbienlai.cs
61 lines (52 loc) · 1.68 KB
/
frm_inbienlai.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
using Microsoft.Reporting.WinForms;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ThuHocPhi.DataHocphiTableAdapters;
using ThuHocPhi.Views.Thuhocphi;
namespace ThuHocPhi.Views
{
public partial class frm_inbienlai : Form
{
public frm_inbienlai()
{
InitializeComponent();
}
private void label1_Click(object sender, EventArgs e)
{
}
private void frm_inbienlai_Load(object sender, EventArgs e)
{
}
DataDataContext db = new DataDataContext();
//DataSet db = new DataSet();
// List<data_inbienlai> dt = new List<data_inbienlai>();
// kqdk_dqtTableAdapter.kqdk_dqt a = new kqdk_dqtTableAdapter.kqdk_dqt();
private void txt_mssv_Enter(object sender, EventArgs e)
{
}
private void txt_mssv_TextChanged(object sender, EventArgs e)
{
string ma = txt_mssv.Text;
var qr = db.view_thuhocphis.Where(o => o.MaSV == ma);
string tien = txt_tien.Text;
// var qr = db.kqdk_dqts.Where(o => o.MaSV == ma);
if (qr.Count() > 0)
{
view_thuhocphi i = qr.SingleOrDefault();
txt_ten.Text = i.HoTen;
txt_tien.Text = i.TongTien.ToString();
}
}
private void button1_Click(object sender, EventArgs e)
{
frm_bienlai f = new frm_bienlai();
}
}
}