Example #1
0
        private void LoadSelectedOldOtherPay()
        {
            loadOther = new OtherFeesCollection();
            loadOther.LoadOldOtherFeesWithStdIdFromDb(selectedId);

            foreach (var popOther in loadOther.pubOtherFeesCollect)
            {
                gridOld.Rows.Count++;
                gridOld[gridOld.Rows.Count - 1, 1] = popOther.OtherFees_Id;
                gridOld[gridOld.Rows.Count - 1, 2] = popOther.OtherFees_Description;
                gridOld[gridOld.Rows.Count - 1, 3] = popOther.OtherFees_Amount;
                gridOld[gridOld.Rows.Count - 1, 4] = popOther.OtherFees_Balance;
                gridOld[gridOld.Rows.Count - 1, 5] = popOther.OtherFees_PaymentMade;
                gridOld[gridOld.Rows.Count - 1, 6] = popOther.OtherFees_Status;
            }
        }
        private void LoadStdOldOtherPay()
        {
            loadOther = new OtherFeesCollection();
            loadOther.LoadOldOtherFeesWithStdIdFromDb(Int32.Parse(LoginUser.stdLogStudentId));

            foreach (var popOther in loadOther.pubOtherFeesCollect)
            {
                gridOld.Rows.Count++;
                gridOld[gridOld.Rows.Count - 1, 7] = popOther.OtherFees_Id;
                gridOld[gridOld.Rows.Count - 1, 1] = popOther.OtherFees_Description;
                gridOld[gridOld.Rows.Count - 1, 2] = popOther.OtherFees_Amount;
                gridOld[gridOld.Rows.Count - 1, 3] = popOther.OtherFees_Balance;
                gridOld[gridOld.Rows.Count - 1, 4] = popOther.OtherFees_PaymentMade;
                gridOld[gridOld.Rows.Count - 1, 5] = popOther.OtherFees_Status;
                gridOld[gridOld.Rows.Count - 1, 6] = popOther.OtherFees_DatePaid;
            }
        }