void LoadWRChiTiet(int ma) { DataTable dt = new DataTable(); dt = wrdao.ChiTiet(ma); if (dt.Rows.Count > 0) { DataRow dr = dt.Rows[0]; lblThamChieu.Text = dr[1].ToString(); bool ktts = tsdao.KiemTraTimeSheetTonTai(lblThamChieu.Text); float gio = 0; if (ktts == true) { gio = tsdao.TongThoiLuongPhatSinhTheoCliam(lblThamChieu.Text); } txtDeXuatGiamDinh.Text = dr[6].ToString(); } }
void LoadWRChiTiet(int ma) { DataTable dt = new DataTable(); dt = wrdao.ChiTiet(ma); DataRow dr = dt.Rows[0]; lblThamChieu.Text = dr[1].ToString(); //drGDV.DataValueField = wrdto.MaGDV.ToString(); bool ktts = tsdao.KiemTraTimeSheetTonTai(lblThamChieu.Text); float gio = 0; if (ktts == true) { gio = tsdao.TongThoiLuongPhatSinhTheoCliam(lblThamChieu.Text); } //txtGioTichLuy.Text = gio.ToString(); ckDeXuatGiamDinh.Text = dr[6].ToString(); //txtDuPhongTonThat.Text = dr[3].ToString(); }