Esempio n. 1
0
        public async Task <Stream> StoreProcedureKam5(FullSetting setting)
        {
            var          taskcommand = new TaskResult();
            DonloadsFile donloads    = new DonloadsFile();

            switch (setting.Db)
            {
            case "Work":
                return(await donloads.SelectDonloadsFile(_parametrService.Report, "Камеральный №5.xlsx", null, await taskcommand.TaskSqlProcedureKam5(_parametrService.ConectWork, setting)));

            default:
                return(null);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Загрузка файла с сервера по средством C#
        /// </summary>
        /// <param name="filename">Имя файла</param>
        /// <returns></returns>
        public async Task <Stream> DonloadFile(string filename)
        {
            DonloadsFile donloads = new DonloadsFile();

            return(await donloads.SelectDonloadsFile(_parametrService.Report, filename, _parametrService.ConectWork));
        }