public void SaveRankFo123(ArrayList ParameterList, DbTransaction RootDBT, DataTable dt, DateTime Dt) //ALO123
        {
            #region

            bool IsRootTranscation = false;
            try
            {
                VDS_ALO12_DBO DBO = new VDS_ALO12_DBO(ref USEDB);

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

                #region 啟動交易或指定RootTranscation

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

                #endregion

                DBO.DeleteOldRankFor123(ParameterList, DBT);
                ArrayList Array = new ArrayList();
                foreach (DataRow dr in dt.Rows)
                {
                    Array.Clear();
                    Array.Add(ParameterList[0]);//V_PG_ID
                    Array.Add(ParameterList[1]);//V_SESSION_ID
                    Array.Add(ParameterList[2]);//V_DIS_NO
                    Array.Add(ParameterList[3]);//V_ITEM
                    Array.Add(ParameterList[5]);//V_CHAN_NO
                    Array.Add(ParameterList[4]);//V_PERIOD
                    Array.Add(dr["START_RANKQTY"]); //V_START_RANKQTY
                    Array.Add(dr["END_RANKQTY"]); //V_START_RANKQTY
                    Array.Add(dr["ADJ_QTY"]); //V_START_RANKQTY
                    Array.Add(Dt);//V_UPDATEDATE
                    Array.Add(ParameterList[6]);//V_UPDATEUID
                    DBO.CreateRankFor123(Array, DBT);
                }

                #region 交易成功

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

                #endregion
            }
            catch (Exception ex)
            {
                #region 交易失敗

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

                #endregion

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

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

                #endregion
            }
            #endregion
        }