Beispiel #1
0
        private void LoadSelectedOtherPay()
        {
            if (lblHiddenBillId.Text != "")
            {
                loadOther = new OtherFeesCollection();
                loadOther.LoadOtherFeesWithBillIdFromDb(Int32.Parse(lblHiddenBillId.Text));

                gridOther.Rows.Count = 1;

                foreach (var popOther in loadOther.pubOtherFeesCollect)
                {
                    gridOther.Rows.Count++;
                    gridOther[gridOther.Rows.Count - 1, 1] = popOther.OtherFees_Id;
                    gridOther[gridOther.Rows.Count - 1, 2] = popOther.OtherFees_Description;
                    gridOther[gridOther.Rows.Count - 1, 3] = popOther.OtherFees_Amount;
                    gridOther[gridOther.Rows.Count - 1, 4] = popOther.OtherFees_Balance;
                    gridOther[gridOther.Rows.Count - 1, 5] = popOther.OtherFees_DueDate;
                    gridOther[gridOther.Rows.Count - 1, 6] = popOther.OtherFees_PaymentMade;
                    gridOther[gridOther.Rows.Count - 1, 7] = popOther.OtherFees_Status;
                }
            }
            else
            {
                gridOther.Rows.Count = 1;
            }
        }
        private void LoadSelectedOtherPay()
        {
            if (billId != 0)
            {
                loadOther = new OtherFeesCollection();
                loadOther.LoadOtherFeesWithBillIdFromDb(billId);

                gridOther.Rows.Count = 1;

                foreach (var popOther in loadOther.pubOtherFeesCollect)
                {
                    gridOther.Rows.Count++;
                    gridOther[gridOther.Rows.Count - 1, 1] = popOther.OtherFees_Id;
                    gridOther[gridOther.Rows.Count - 1, 2] = popOther.OtherFees_Description;
                    gridOther[gridOther.Rows.Count - 1, 3] = popOther.OtherFees_Amount;
                    gridOther[gridOther.Rows.Count - 1, 4] = popOther.OtherFees_Balance;
                    gridOther[gridOther.Rows.Count - 1, 5] = popOther.OtherFees_DueDate;
                    gridOther[gridOther.Rows.Count - 1, 6] = popOther.OtherFees_PaymentMade;
                    gridOther[gridOther.Rows.Count - 1, 7] = popOther.OtherFees_Status;
                    gridOther[gridOther.Rows.Count - 1, 8] = popOther.OtherFees_DatePaid;
                    gridOther[gridOther.Rows.Count - 1, 9] = popOther.OtherFees_CutOffDate;
                }
            }
            else
            {
                gridOther.Rows.Count = 1;
            }
        }
        public void LoadOtherFeesWithBillId()
        {
            loadOtherFeesGrid.LoadOtherFeesWithBillIdFromDb(Int32.Parse(LoginUser.stdLogStudentBillId));

            // gridOtherFees.Rows.Count = 1;

            foreach (var popOtherFees in loadOtherFeesGrid.pubOtherFeesCollect)
            {
                //gridOtherFees.Rows.Count++;
                //gridOtherFees[gridOtherFees.Rows.Count - 1, 1] = popOtherFees.OtherFees_Description;
                //gridOtherFees[gridOtherFees.Rows.Count - 1, 2] = popOtherFees.OtherFees_PayNumber;
                //gridOtherFees[gridOtherFees.Rows.Count - 1, 3] = popOtherFees.OtherFees_Amount;
                //gridOtherFees[gridOtherFees.Rows.Count - 1, 4] = popOtherFees.OtherFees_Payment;
                //gridOtherFees[gridOtherFees.Rows.Count - 1, 5] = popOtherFees.OtherFees_DatePaid;
                //gridOtherFees[gridOtherFees.Rows.Count - 1, 6] = popOtherFees.OtherFees_Balance;
                //gridOtherFees[gridOtherFees.Rows.Count - 1, 7] = popOtherFees.OtherFees_PaymentMade;
                //gridOtherFees[gridOtherFees.Rows.Count - 1, 8] = popOtherFees.OtherFees_DueDate;
                //gridOtherFees[gridOtherFees.Rows.Count - 1, 9] = popOtherFees.OtherFees_CutOffDate;
            }
        }