Example #1
0
        public string DownloadPSParametersExcelTemplate()
        {
            //try
            //{
            //    DataControl.Repository.FileDownload objFileDownload = new DataControl.Repository.FileDownload();
            //    DataControl.Abstraction.IFileProvider objProvider = new DataControl.Impl.FileSystemProvider();
            //    string error = string.Empty;
            //    CurrentInfo objCurInfo = new CurrentInfo();
            //    DataControl.BLProduct objProduct = new BLProduct();
            //    string fileName = objProduct.GetPrimarySalesParametersExcelData(objCurInfo.GetCompanyCode());
            //    string blobURL = objProvider.GetConfigValue("EXCELTEMPLATES") + fileName;
            //    objFileDownload.DownloadFile(blobURL, fileName, out error);
            //}
            //catch (Exception ex)
            //{
            //    Dictionary<string, string> dicObj = new Dictionary<string, string>();
            //    DataControl.Impl.ExceptionHandler.WriteLog(ex: ex, dic: dicObj);
            //}

            DataControl.BLProduct _objBLProduct = new BLProduct();
            string      _fileNameString         = string.Empty;
            CurrentInfo objCurInfo = new CurrentInfo();

            _fileNameString = _objBLProduct.GetPrimarySalesParametersExcelData(objCurInfo.GetCompanyCode());
            return(_fileNameString);
        }