예제 #1
0
        private void btnTenant_Click(object sender, EventArgs e)
        {
            PlanReport plan = new PlanReport(0, 0, 0, 0, id_tenant);

            if (plan.dtReport == null || plan.dtReport.Rows.Count == 0)
            {
                MessageBox.Show("Нет данных для отчета", "Отчет по арендаторам", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            plan.createReportTenant();
        }
예제 #2
0
        private void btnSection_Click(object sender, EventArgs e)
        {
            PlanReport plan = new PlanReport((int)cmbObject.SelectedValue, (int)cmbBuilding.SelectedValue, (int)cmbFloor.SelectedValue, (int)cmbSection.SelectedValue, 0);

            if (plan.dtReport == null || plan.dtReport.Rows.Count == 0)
            {
                MessageBox.Show("Нет данных для отчета", "Отчет по секциям", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            plan.createReportSection();
        }
예제 #3
0
        private void get_data()
        {
            int crowPerc = 0;

            DoOnUIThread(delegate()
            {
                frm = new Nwuram.Framework.UI.Forms.frmLoad();
                frm.StartPosition = FormStartPosition.CenterParent;
                frm.Owner         = this;
                frm.TopMost       = false;
                frm.TextWait      = $"Формирование планов";
                frm.Show();
            });

            PlanReport plan = new PlanReport();

            plan.createTable();
            DoOnUIThread(delegate()
            {
                frm.Dispose();
            });
        }