using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Windows.Forms;
using System.Drawing;
using System.Data;
using FastReport;
using FastReport.Data;
using FastReport.Dialog;
using FastReport.Barcode;
using FastReport.Table;
using FastReport.Utils;
namespace FastReport
{
public class ReportScript
{
private void Picture1_BeforePrint(object sender, EventArgs e)
{
if(Report.GetColumnValueNullable("WK.QuickErrors.Picture") == null) {
Picture1.Visible = false;
}
}
private void cb_stvo_BeforePrint(object sender, EventArgs e)
{
if(Report.GetColumnValue("WK.QuickErrors.StVo") != null) {
if((bool)Report.GetColumnValue("WK.QuickErrors.StVo") ) {
cb_stvo.Checked = true;
} else {
cb_stvo.Checked = false;
}
}
}
private void cb_commissioned_BeforePrint(object sender, EventArgs e)
{
if(Report.GetColumnValue("WK.QuickErrors.Commissioned") != null) {
if( (bool)Report.GetColumnValue("WK.QuickErrors.Commissioned") ) {
cb_commissioned.Checked = true;
} else {
cb_commissioned.Checked = false;
}
}
}
}
}