public int ExecPickOut(ArrayList ParameterList, DbTransaction RootDBT, out string strInout_NO, out string strMsg)
        {
            int intRes;

            bool IsRootTranscation = false;

            DBO.VDS_IVM12_DBO CGRM = new VDS_IVM12_DBO(ref USEDB);

            try
            {
                //判斷是否有傳入Root Transcation 
                IsRootTranscation = (RootDBT == null) ? true : false;

                #region 啟動交易或指定RootTranscation

                if (IsRootTranscation)
                {
                    //獨立呼叫啟動Transcation
                    Conn = USEDB.CreateConnection();
                    Conn.Open();
                    if (DBT == null)
                    {
                        DBT = Conn.BeginTransaction();

                        #region Trace會用到的LOG,平常不會使用 Make By Arther 2009/10/2 10:45

                        System.Web.HttpContext.Current.Trace.Warn(string.Format("使用者:{0} 於{1} BeginTranscaion!!DBT null :{2} ",
                                                                                ParameterList[3],
                                                                                DateTime.Now.ToString(),
                                                                                DBT.GetHashCode().ToString()
                                                                                )
                                                                  );

                        #endregion
                    }
                    else
                    {
                        throw new Exception("起始交易建立錯誤:此交易為起始交易,但已發現有交易存在!!");
                    }
                }
                else
                {                    
                    DBT = RootDBT;

                    #region Trace會用到的LOG,平常不會使用 Make By Arther 2009/10/2 10:45

                    System.Web.HttpContext.Current.Trace.Warn(string.Format("使用者:{0} 於{1} ContineousTranscaion!!DBT:{2}",
                                                                            ParameterList[3],
                                                                            DateTime.Now.ToString(),
                                                                            DBT.ToString()
                                                                            )
                                                              );

                    #endregion
                }

                

                #endregion

                intRes = CGRM.ExecPickOut(ParameterList, DBT, out strInout_NO, out strMsg);                

                #region 交易成功

                if (IsRootTranscation)
                {
                    //獨立呼叫Transcation成立
                    DBT.Commit();

                    #region Trace會用到的LOG,平常不會使用 Make By Arther 2009/10/2 10:45

                    System.Web.HttpContext.Current.Trace.Warn(string.Format("使用者:{0} 於{1} TranscaionCommit!!",
                                                                            ParameterList[3],
                                                                            DateTime.Now.ToString()
                                                                            )
                                                              );

                    #endregion
                }

                #endregion

                return intRes;
            }
            catch (Exception ex)
            {
                #region 交易失敗

                if (IsRootTranscation)
                {
                    //獨立呼叫Transcation失敗
                    DBT.Rollback();

                    #region Trace會用到的LOG,平常不會使用 Make By Arther 2009/10/2 10:45

                    System.Web.HttpContext.Current.Trace.Warn(string.Format("使用者:{0} 於{1} TranscaionRollback!!錯誤訊息:{2}",
                                                                            ParameterList[3],
                                                                            DateTime.Now.ToString(),
                                                                            ex.Message
                                                                            )
                                                              );

                    #endregion
                }

                #endregion

                throw ex;
            }
            finally
            {
                #region 判斷是否關閉交易連線

                if (IsRootTranscation)
                {
                    //獨立呼叫Transcation,關閉連線
                    if (Conn.State == ConnectionState.Connecting)
                    {
                        Conn.Close();
                    }
                }

                #endregion

            }
        }
        public int GetSTAcceptData(ArrayList ParameterList, DbTransaction RootDBT, out DataTable Dt)
        {
            int intRes;

            bool IsRootTranscation = false;

            DBO.VDS_IVM12_DBO CGRM = new VDS_IVM12_DBO(ref USEDB);

            try
            {
                //判斷是否有傳入Root Transcation 
                IsRootTranscation = (RootDBT == null) ? true : false;

                #region 啟動交易或指定RootTranscation

                if (IsRootTranscation)
                {
                    //獨立呼叫啟動Transcation
                    Conn = USEDB.CreateConnection();
                    Conn.Open();
                    DBT = Conn.BeginTransaction();
                }
                else
                {
                    DBT = RootDBT;
                }

                #endregion

                intRes = CGRM.GetSTAcceptData(ParameterList, DBT, out Dt);

                #region 交易成功

                if (IsRootTranscation)
                {
                    //獨立呼叫Transcation成立
                    DBT.Commit();
                }

                #endregion

                return intRes;
            }
            catch (Exception ex)
            {
                #region 交易失敗

                if (IsRootTranscation)
                {
                    //獨立呼叫Transcation失敗
                    DBT.Rollback();
                }

                #endregion

                throw ex;
            }
            finally
            {
                #region 判斷是否關閉交易連線

                if (IsRootTranscation)
                {
                    //獨立呼叫Transcation,關閉連線
                    if (Conn.State == ConnectionState.Connecting)
                    {
                        Conn.Close();
                    }
                }

                #endregion

            }
        }
        public int GetPickOutData(ArrayList ParameterList, out string strInout_NO, out string strUpdatedate, out string strUpdateid)
        {
            DBO.VDS_IVM12_DBO CGRM = new VDS_IVM12_DBO(ref USEDB);

            int result;

            try
            {
                result = CGRM.GetPickOutData(ParameterList, out strInout_NO, out strUpdatedate, out strUpdateid);

                return result;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }