/// <summary>
        /// ��s�ث~�ݩ���(VDS_MKT_GIFT_PROFILE)��Ƥ�,�ӫ~�����O����f����B���ʤ�B���ʶq�P���ʳ渹
        /// </summary>
        /// <param name="sItem">�~��</param>
        /// <param name="sPeriod">���O</param>
        /// <param name="sVCode">�����~��</param>
        /// <param name="sPA_Date">��f���</param>
        /// <param name="sPurDate">���ʤ��</param>
        /// <param name="sQty">���ʼƶq</param>
        /// <param name="sPurchaseNo">���ʳ渹</param> 
        /// <param name="sUpdater">��s�H���b��</param>      
        /// <param name="RootDBT">�O�_���D���,�L�D�����Jnull</param>
        /// <returns>�^�Ǧ��\�P�_</returns>
        public bool UpdateGiftProfile(string sItem, string sPeriod, string sVCode, string sPA_Date, string sPurDate, string sQty, string sPurchaseNo, string sUpdater, DbTransaction RootDBT)
        {
            bool IsRootTranscation = false;
            bool bResult = 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.doUpdateGiftProfile(sItem, sPeriod, sVCode, sPA_Date, sPurDate, sQty, sPurchaseNo, sUpdater, DBT);

                #region ������\

                if (IsRootTranscation)
                {
                    //�W�ߩI�sTranscation����
                    DBT.Commit();
                }

                #endregion

                bResult = true;
                return bResult;
            }
            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

            }
        }