View_Atten_One_By_One mydataset1 = new View_Atten_One_By_One();
View_Atten_One_By_OneTableAdapters.DataTable1TableAdapter nfdAdapter1 = new View_Atten_One_By_OneTableAdapters.DataTable1TableAdapter();
nfdAdapter1.Fillattenbyemp(mydataset1.DataTable1, txtEmpId.Text);
ViewAttenByEmp nfpbdel1 = new ViewAttenByEmp();
nfpbdel1.SetDataSource(mydataset1);
crystalReportViewer1.ReportSource = nfpbdel1;
错误
无法启用约束。一行或多行包含违反非空、唯一或外键约束的值。
此代码段中的异常抛出
nfdAdapter1.Fillattenbyemp(mydataset1.DataTable1, txtEmpId.Text);