Exemplo n.º 1
0
        public OverAllReport()
        {
            InitializeComponent();
            IObjectSet allreports = Complainant.db.QueryByExample(typeof(OverAllReportClass));

            for (int i = 0; i < allreports.Count; i++)
            {
                report = (OverAllReportClass)allreports[i];
                comboBox1.Items.Add(report.id);
            }
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            int        id         = (int)comboBox1.SelectedItem;
            IObjectSet allreports = Complainant.db.QueryByExample(typeof(OverAllReportClass));

            for (int i = 0; i < allreports.Count; i++)
            {
                report = (OverAllReportClass)allreports[i];
                if (report.id == id)
                {
                    ;
                }
                {
                    Pname.Text = report.NewPatrol.name.Fname;
                    IID.Text   = Convert.ToString(report.NewReport.newIncident.incidentID);
                    CName.Text = report.NewReport.newComplainant.name.Fname;
                }
            }
        }
 public void insert(OverAllReportClass Allreport)
 {
     Complainant.db.Store(Allreport);
 }