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;
            }
        }
Example #2
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 LoadStdOtherPay()
        {
            loadOther = new OtherFeesCollection();
            loadOther.LoadOtherFeesWithStdIdFromDb(Int32.Parse(LoginUser.stdLogStudentId));

            gridOther.Rows.Count = 1;

            foreach (var popOther in loadOther.pubOtherFeesCollect)
            {
                if (DateTime.Parse(popOther.OtherFees_CutOffDate) < DateTime.Today)
                {
                    var setOldOtherManage = new OtherFeesManager();
                    setOldOtherManage.SetOtherToOld(popOther.OtherFees_Id);
                    stop = true;
                }
                else
                {
                    gridOther.Rows.Count++;
                    gridOther[gridOther.Rows.Count - 1, 9] = popOther.OtherFees_Id;
                    gridOther[gridOther.Rows.Count - 1, 1] = popOther.OtherFees_Description;
                    gridOther[gridOther.Rows.Count - 1, 2] = popOther.OtherFees_Amount;
                    gridOther[gridOther.Rows.Count - 1, 3] = popOther.OtherFees_Balance;
                    gridOther[gridOther.Rows.Count - 1, 4] = popOther.OtherFees_DueDate;
                    gridOther[gridOther.Rows.Count - 1, 5] = popOther.OtherFees_PaymentMade;
                    gridOther[gridOther.Rows.Count - 1, 6] = popOther.OtherFees_Status;
                    gridOther[gridOther.Rows.Count - 1, 7] = popOther.OtherFees_DatePaid;
                    gridOther[gridOther.Rows.Count - 1, 8] = popOther.OtherFees_CutOffDate;
                }
            }
        }
Example #4
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;
            }
        }