public static void PBSTypeImportAllProject() { try { EntityData allProject = ProjectDAO.GetAllProject(); foreach (DataRow row in allProject.CurrentTable.Rows) { string dstProjectCode = ConvertRule.ToString(row["ProjectCode"]); PBSTypeCopyByProject("0", dstProjectCode); } allProject.Dispose(); } catch (Exception exception) { throw exception; } }