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 (); } se (CrystalReportSource1.Report.FileName! = reportName) CrystalReportSource1.Report.FileName = reportName; } btnBack_Click vago protegido (remetente do objeto, EventArgs e) { Response.Redirect (“f_MenuReports.aspx”); } setDynamicDB vago confidencial () { tentativa { conStr da corda = System.Configuration.ConfigurationManager.AppSettings [“WannalancitConnectionString”]; strReportPath da corda = Server.MapPath (“~/Reports/testuntrained.rpt”); sqlConnection de //SqlConnection = SqlConnection novo (conStr); connectionInfo da corda = conSettings.ConnectionString; sqlConnection de SqlConnection = SqlConnection novo (connectionInfo); Comando de SqlCommand = SqlCommand novo (); Command.Connection = sqlConnection; Command.CommandText = “UnTrainedReport”; Command.CommandType = CommandType.StoredProcedure; Adaptador de SqlDataAdapter = SqlDataAdapter novo (comando); dsUntrainedRpt ds = dsUntrainedRpt novo (); Adapter.Fill (ds, “UntrainedReport”); Cr de ReportDocument = ReportDocument novo (); cr. Carga (strReportPath); cr.SetDataSource (ds. Tabelas [“UntrainedReport”]); CrystalReportViewer1.ReportSource = cr; } prendedor (exceção exp) { lblErrorMsg.Text = exp. Mensagem; } } }
1: 2: 3: 4:
função ShowPhoto (equipid) { vara do var = “/EquipmentPhotos/pic” + equipid +” .jpg "; document.getElementById (“EquipPhoto ").setAttribute (“src”, vara); }