curWorkRowNum = 0;
int percent = 0;
int persont = Convert.ToInt16(soureFileRowNum * 0.01);
foreach (DataRow row in dtImport.Rows)
{
if (curWorkRowNum / persont > percent)
{
percent = curWorkRowNum / persont;
bgProcess_Import.ReportProgress((100 * curWorkRowNum) / soureFileRowNum, workType);
}
curWorkRowNum++;
时间: 2024-11-29 12:22:23