コード例 #1
0
        private void LoadSelectedTuitionpay()
        {
            if (billId != 0)
            {
                loadPartialPay = new PartialPaymentCollection();
                loadPartialPay.LoadPartialPaymentWithIdsFromDb(billId, selectedId);

                gridTuition.Rows.Count = 1;

                foreach (var popPartial in loadPartialPay.pubOtherFeesCollect)
                {
                    gridTuition.Rows.Count++;
                    gridTuition[gridTuition.Rows.Count - 1, 1] = popPartial.PartPay_Id;
                    gridTuition[gridTuition.Rows.Count - 1, 2] = popPartial.PartPay_Partition;
                    gridTuition[gridTuition.Rows.Count - 1, 3] = popPartial.PartPay_Amount;
                    gridTuition[gridTuition.Rows.Count - 1, 4] = popPartial.PartPay_Balance;
                    gridTuition[gridTuition.Rows.Count - 1, 5] = popPartial.PartPay_DueDate;
                    gridTuition[gridTuition.Rows.Count - 1, 6] = popPartial.PartPay_PaymentMade;
                    gridTuition[gridTuition.Rows.Count - 1, 7] = popPartial.PartPay_Status;
                    gridTuition[gridTuition.Rows.Count - 1, 8] = popPartial.PartPay_DatePaid;
                }
            }
            else
            {
                gridTuition.Rows.Count = 1;
            }
        }
コード例 #2
0
        private void LoadStdPartition()
        {
            if (stop == true)
            {
                gridTuition.Rows.Count = 1;
                return;
            }
            loadPartialPay = new PartialPaymentCollection();
            loadPartialPay.LoadPartialPaymentWithIdsFromDb(billId, Int32.Parse(LoginUser.stdLogStudentId));

            gridTuition.Rows.Count = 1;

            foreach (var popPartial in loadPartialPay.pubOtherFeesCollect)
            {
                gridTuition.Rows.Count++;

                gridTuition[gridTuition.Rows.Count - 1, 1] = popPartial.PartPay_Partition;
                gridTuition[gridTuition.Rows.Count - 1, 2] = popPartial.PartPay_Amount;
                gridTuition[gridTuition.Rows.Count - 1, 3] = popPartial.PartPay_Balance;
                gridTuition[gridTuition.Rows.Count - 1, 4] = popPartial.PartPay_DueDate;
                gridTuition[gridTuition.Rows.Count - 1, 5] = popPartial.PartPay_PaymentMade;
                if (popPartial.PartPay_Status.ToString() == "true")
                {
                    gridTuition[gridTuition.Rows.Count - 1, 6] = "Paid";
                }
                else
                {
                    gridTuition[gridTuition.Rows.Count - 1, 6] = "Not Paid";
                }
                gridTuition[gridTuition.Rows.Count - 1, 7] = popPartial.PartPay_DatePaid;
                gridTuition[gridTuition.Rows.Count - 1, 8] = popPartial.PartPay_Id;
            }
        }