/// <summary>
        /// �R���򥻪��ɡA�æP�ɹ�Detail��ư��R���ʧ@
        /// </summary>
        /// <param name="sPurNo">���ʳ渹</param>
        /// <param name="UpdateID">�R���H��ID</param>
        /// <returns>�^�Ǽv�T����</returns>
        public void DeteleMain_DetailData(string sPurNo, string UpdateID, DbTransaction RootDBT)
        {
            bool IsRootTranscation = false;

            try
            {
                //�P�_�O�_���ǤJRoot Transcation
                IsRootTranscation = (RootDBT == null) ? true : false;

                #region �Ұʥ���Ϋ��wRootTranscation
                if (IsRootTranscation)
                {
                    //�W�ߩI�s�Ұ�Transcation
                    Conn = USEDB.CreateConnection();
                    Conn.Open();
                    DBT = Conn.BeginTransaction();
                }
                else
                {
                    DBT = RootDBT;
                }
                #endregion

                DBO.OUT_PurchaseOrderDBO dbo = new OUT_PurchaseOrderDBO(ref USEDB);
                dbo.doDeteleMain_DetailData(sPurNo, UpdateID, DBT);

                #region ������\
                if (IsRootTranscation)
                {
                    //�W�ߩI�sTranscation����
                    DBT.Commit();
                }
                #endregion
            }
            catch (Exception ex)
            {
                #region �������
                if (IsRootTranscation)
                {
                    //�W�ߩI�sTranscation����
                    DBT.Rollback();
                }
                #endregion

                throw ex;
            }
            finally
            {
                #region �P�_�O�_��������s�u

                if (IsRootTranscation)
                {
                    //�W�ߩI�sTranscation,�����s�u
                    if (Conn.State == ConnectionState.Connecting)
                    {
                        Conn.Close();
                    }
                }

                #endregion

            }
        }