public int GetNewId() { int PID = 0; try { DBO.ITM_PeriodSubsidyDBO dbo = new ITM_PeriodSubsidyDBO(ref USEDB); #region 啟動交易或指定RootTranscation Conn = USEDB.CreateConnection(); Conn.Open(); #endregion PID = dbo.doGetNewId(); return PID; } catch (Exception ex) { throw ex; } }