예제 #1
0
파일: Main.cs 프로젝트: Rillanon/FP-PMS
 private void applyCreditToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var claimantChoose = new Accounting.Invoice.claimantSelectViewForm();
     claimantChoose.ShowDialog();
     if (claimantChoose.DialogResult == DialogResult.OK)
     {
         var newCreditApplyForm = new Accounting.Credit.addCreditViewForm(claimantChoose.myClaimant);
         newCreditApplyForm.ShowDialog();
         newCreditApplyForm.Dispose();
     }
     claimantChoose.Dispose();
 }
예제 #2
0
파일: Main.cs 프로젝트: Rillanon/FP-PMS
        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();
        }
예제 #3
0
파일: Main.cs 프로젝트: Rillanon/FP-PMS
        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();
        }
예제 #4
0
파일: Main.cs 프로젝트: Rillanon/FP-PMS
        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.");
            }
        }
예제 #5
0
파일: Main.cs 프로젝트: Rillanon/FP-PMS
        private void blankInvoiceToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //var _myInvoiceController = new invoiceController();
            //_myInvoiceController.chooseClaimant();
            var claimantChoose = new Accounting.Invoice.claimantSelectViewForm();
            claimantChoose.ShowDialog();

            if (claimantChoose.DialogResult == DialogResult.OK)
            {
                var physioChoose = new Scheduling.physioSelectDialog();
                physioChoose.ShowDialog();
                if (physioChoose.DialogResult == DialogResult.OK)
                {
                    var newInvoice = new Accounting.Invoice.newInvoiceForm(claimantChoose.myClaimant, physioChoose.myPhysio);
                    newInvoice.ShowDialog();
                }

            }
        }
예제 #6
0
        //When making a blank invoice.
        public void chooseClaimant()
        {
            myClaimantSelectForm = new claimantSelectViewForm();
            myClaimantSelectForm.ShowDialog();

            if (myClaimantSelectForm.DialogResult == DialogResult.OK)
            {
                myClaimant = myClaimantSelectForm.myClaimant;
                this.newInvoice();
                myClaimantSelectForm.Dispose();
            }
        }