Пример #1
0
        public ActionResult ContributionsJsonSearch(string file, string name)
        {
            var text = CurrentDatabase.ContentOfTypeText(file);
            var data = JsonConvert.DeserializeObject <DynamicData>(text);
            var dd   = (DynamicData)data[name];
            var json = dd["parms"].ToString();
            var cmd  = new SqlCommand(Resource1.ContributionsController_ContributionsAdvancedSearch_);

            cmd.Parameters.AddWithValue("@json", json);
            cmd.Connection = new SqlConnection(Util.ConnectionString);
            cmd.Connection.Open();
            return(cmd.ExecuteReader().ToExcel($"Contributions-{name}.xlsx"));
        }
Пример #2
0
        public ActionResult RunPythonScriptProgress2(string logfile)
        {
            var txt = CurrentDatabase.ContentOfTypeText(logfile);

            return(Content(txt));
        }