1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58:
-1) { setDynamicDB (); } ¡si (CrystalReportSource1.Report.FileName! = reportName) CrystalReportSource1.Report.FileName = reportName; } btnBack_Click vacío protegido (remitente del objeto, EventArgs e) { Response.Redirect (“f_MenuReports.aspx”); } setDynamicDB vacío privado () { intento { conStr de la secuencia = System.Configuration.ConfigurationManager.AppSettings [“WannalancitConnectionString”]; strReportPath de la secuencia = Server.MapPath (“~/Reports/testuntrained.rpt”); sqlConnection de //SqlConnection = nuevo SqlConnection (conStr); connectionInfo de la secuencia = conSettings.ConnectionString; sqlConnection de SqlConnection = nuevo SqlConnection (connectionInfo); Comando de SqlCommand = nuevo SqlCommand (); Command.Connection = sqlConnection; Command.CommandText = “UnTrainedReport”; Command.CommandType = CommandType.StoredProcedure; Adaptador de SqlDataAdapter = nuevo SqlDataAdapter (comando); dsUntrainedRpt ds = nuevo dsUntrainedRpt (); Adapter.Fill (ds, “UntrainedReport”); Cr de ReportDocument = nuevo ReportDocument (); cr. Carga (strReportPath); cr.SetDataSource (ds. Tablas [“UntrainedReport”]); CrystalReportViewer1.ReportSource = cr; } retén (excepción exp) { lblErrorMsg.Text = exp. Mensaje; } } }
1: 2: 3: 4:
función ShowPhoto (equipid) { vara del var = “/EquipmentPhotos/pic” + equipid +” .jpg "; document.getElementById (“EquipPhoto ").setAttribute (“src”, vara); }