예제 #1
0
        /// <summary>
        /// 문서 및 각 테이블의 주요키 리턴
        /// </summary>
        /// <param name="psPre"></param>
        /// <returns></returns>
        public string GetAttachNo(string psPrefix)
        {
            string sRet = "";

            //using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Suppress))
            //{
            Dac_Base_FileUpload dac = new Dac_Base_FileUpload();

            sRet = dac.GetAttachNo(psPrefix);

            //    scope.Complete();
            //}

            return(sRet);
        }
예제 #2
0
        /// <summary>
        /// 업로드된 정보 추출
        /// </summary>
        /// <param name="asAttachNo"></param>
        /// <returns></returns>
        public DataSet GetFileUploaded(string asAttachNo)
        {
            DataSet lDS = new DataSet();

            //using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Suppress))
            //{
            Dac_Base_FileUpload dac = new Dac_Base_FileUpload();

            lDS = dac.GetFileUploaded(asAttachNo);

            //    scope.Complete();
            //}

            return(lDS);
        }
예제 #3
0
        public int AddFileInfo(string[,] psaFileInfo)
        {
            int iRet = 0;

            //using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Suppress))
            //{
            Dac_Base_FileUpload dac = new Dac_Base_FileUpload();

            iRet = dac.AddFileInfo(psaFileInfo);

            //scope.Complete();
            //}

            return(iRet);
        }
예제 #4
0
        public int RemoveFileInfo(string psAttachNo, string psFullFileName)
        {
            int iRet   = 0;
            int iSerNo = 0;

            //using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Suppress))
            //{
            Dac_Base_FileUpload dac = new Dac_Base_FileUpload();

            iSerNo = dac.GetDelFileInfo(psAttachNo, psFullFileName);

            iRet = dac.DelFileInfo(psAttachNo, iSerNo);
            dac.UpdateFileSerNo(psAttachNo, iSerNo);


            //    scope.Complete();
            //}

            return(iRet);
        }