예제 #1
0
        public StringBuilder DownloadMasterData(string masterType)
        {
            DataControl.BLProduct _objBLProduct   = new BLProduct();
            StringBuilder         _fileNameString = new StringBuilder();

            if (masterType == "PRODUCT")
            {
                _fileNameString = _objBLProduct.GetProductMasterExcelData();
            }
            if (masterType == "REGION")
            {
                _fileNameString = _objBLProduct.GetRegionMasterExcelData();
            }
            if (masterType == "CUSTOMER")
            {
                _fileNameString = _objBLProduct.GetCustomerMasterExcelData();
            }
            if (masterType == "DEPOT")
            {
                _fileNameString = _objBLProduct.GetDepotMasterExcelData();
            }
            return(_fileNameString);
        }