Exemplo n.º 1
0
        private void journalReportViewForm_Load(object sender, EventArgs e)
        {
            var newDatePickerDialog = new dateIntervalDialog();
            var newConnection = new dbContextDataContext();

            newDatePickerDialog.ShowDialog();

            if (newDatePickerDialog.DialogResult == DialogResult.OK)
            {
                journalReportGridControl.DataSource = from p in newConnection.tblTransactions
                                                      join c in newConnection.tblClaimants
                                                      on p.ClaimantID equals c.ClaimantID
                                                      where p.TranDate >= newDatePickerDialog.startDate & p.TranDate <= newDatePickerDialog.endDate
                                                      select new
                                                      {
                                                          Date = p.TranDate,
                                                          Claimant = c.FirstNames + " " + c.LastName,
                                                          InvoiceNo = p.InvoiceNo,
                                                          Type = p.TranType,
                                                          Physio = p.PhysioID,
                                                          Narrative = p.Narrative,
                                                          Amount = p.TranAmount
                                                      };
                newDatePickerDialog.Dispose();
            }
            else
            {
                newDatePickerDialog.Dispose();
                this.Close();
            }
        }
Exemplo n.º 2
0
        private void receiptsByPhysioRateForm_Load(object sender, EventArgs e)
        {
            var newDatePickerDialog = new dateIntervalDialog();
            var newConnection = new dbContextDataContext();

            newDatePickerDialog.ShowDialog();

            if (newDatePickerDialog.DialogResult == DialogResult.OK)
            {
                receiptsPhysioPivotGrid.DataSource = newConnection.RatesAndItemsSummaryReportFunction(newDatePickerDialog.startDate, newDatePickerDialog.endDate);
                newDatePickerDialog.Dispose();
            }
            else
            {
                newDatePickerDialog.Dispose();
                this.Close();
            }
        }
Exemplo n.º 3
0
        private void newPatientStatsViewForm_Load(object sender, EventArgs e)
        {
            var newDatePickerDialog = new dateIntervalDialog();
            var newConnection = new dbContextDataContext();

            newDatePickerDialog.ShowDialog();

            if (newDatePickerDialog.DialogResult == DialogResult.OK)
            {
                Start = newDatePickerDialog.startDate;
                End = newDatePickerDialog.endDate;

                newPatientPivotGridControl.DataSource = newConnection.getNewPatients(Start, End);
                newDatePickerDialog.Dispose();
            }
            else
            {
                newDatePickerDialog.Dispose();
                this.Close();
            }
        }
Exemplo n.º 4
0
        private void paymentAuditTrail_Load(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            var newDatePickerDialog = new dateIntervalDialog();
            var newConnection = new dbContextDataContext();

            newDatePickerDialog.ShowDialog();

            if (newDatePickerDialog.DialogResult == DialogResult.OK)
            {
                Start = newDatePickerDialog.startDate;
                End = newDatePickerDialog.endDate;

                paymentAuditTrialPivotGridControl.DataSource = newConnection.getPaymentAuditTrial(newDatePickerDialog.startDate, newDatePickerDialog.endDate);
                newDatePickerDialog.Dispose();
            }
            else
            {
                newDatePickerDialog.Dispose();
                this.Close();
            }
            Cursor.Current = Cursors.Default;
        }
Exemplo n.º 5
0
        private void multipleReceiptsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var claimantChoose = new Accounting.Invoice.claimantSelectViewForm();
            claimantChoose.ShowDialog();
            if (claimantChoose.DialogResult == DialogResult.OK)
            {
                var newDateInterval = new Report.dateIntervalDialog();
                newDateInterval.ShowDialog();

                if (newDateInterval.DialogResult == DialogResult.OK)
                {
                    var newReceiptForm = new Accounting.Receipt.receiptViewForm(claimantChoose.myClaimant);
                    newReceiptForm.removeBtnEvent();
                    newReceiptForm.okBtn.Click += new EventHandler(receiptOkBtnClick);
                    newReceiptForm.IsMulti = true;
                    newReceiptForm.ShowDialog();

                    if (newReceiptForm.DialogResult == DialogResult.OK)
                    {
                        var foo = new Accounting.Receipt.multiReceiptViewForm(claimantChoose.myClaimant, newDateInterval.startDate, newDateInterval.endDate,
                            newReceiptForm.myReceipt, newReceiptForm.myPaymentLines);

                        foo.ShowDialog();
                        foo.Dispose();
                        newReceiptForm.Dispose();
                    }
                    else
                    { newReceiptForm.Dispose(); }
                }
                newDateInterval.Dispose();
            }
            claimantChoose.Dispose();
        }
Exemplo n.º 6
0
        private void invoiceByClaimantToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var claimantChoose = new Accounting.Invoice.claimantSelectViewForm();
            claimantChoose.ShowDialog();
            if (claimantChoose.DialogResult == DialogResult.OK)
            {
                var newDateInterval = new Report.dateIntervalDialog();
                newDateInterval.ShowDialog();

                if (newDateInterval.DialogResult == DialogResult.OK)
                {
                    var foo = new Claimant.claimantInvoiceViewForm(claimantChoose.myClaimant, newDateInterval.startDate, newDateInterval.endDate);

                    foo.ShowDialog();
                    foo.Dispose();
                }
                newDateInterval.Dispose();
            }
            claimantChoose.Dispose();
        }
Exemplo n.º 7
0
        private void cancelInvoiceToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (staticProperties.userLevel == 1)
            {
                var claimantChoose = new Accounting.Invoice.claimantSelectViewForm();
                claimantChoose.ShowDialog();
                if (claimantChoose.DialogResult == DialogResult.OK)
                {
                    var newDateInterval = new Report.dateIntervalDialog();
                    newDateInterval.ShowDialog();

                    if (newDateInterval.DialogResult == DialogResult.OK)
                    {
                        var foo = new Accounting.Invoice.cancellInvoiceViewForm(claimantChoose.myClaimant, newDateInterval.startDate, newDateInterval.endDate);

                        foo.ShowDialog();
                        foo.Dispose();
                    }
                    newDateInterval.Dispose();
                }
                claimantChoose.Dispose();
            }
            else
            {
                MessageBox.Show("General user can not access this function.");
            }
        }
Exemplo n.º 8
0
        private void appointmentsByPhysioToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var physioChoose = new Scheduling.physioSelectDialog();
            physioChoose.ShowDialog();
            if (physioChoose.DialogResult == DialogResult.OK)
            {
                var newDateInterval = new Report.dateIntervalDialog();
                newDateInterval.ShowDialog();

                if (newDateInterval.DialogResult == DialogResult.OK)
                {
                    var foo = new Scheduling.appointmentsByPhysioViewForm(newDateInterval.startDate, newDateInterval.endDate, physioChoose.myPhysio);
                    foo.MdiParent = this;
                    foo.Show();
                    //foo.Dispose();
                }
                newDateInterval.Dispose();
            }
            physioChoose.Dispose();
        }