private void LoadStdOtherPayments()
        {
            if (stop == true)
            {
                gridOtherPay.Rows.Count = 1;
                return;
            }
            if (gridOther.Rows.Count == 1)
            {
                otherId = 0;
            }
            else
            {
                otherId = Int32.Parse(gridOther[gridOther.RowSel, 9].ToString());
            }
            loadOtherPay = new OtherFeesPaymentCollection();
            loadOtherPay.LoadOtherPayWithOtherIdFromDb(otherId);

            gridOtherPay.Rows.Count = 1;

            foreach (var popOtherPay in loadOtherPay.pubOtherPayCollect)
            {
                gridOtherPay.Rows.Count++;
                gridOtherPay[gridOtherPay.Rows.Count - 1, 1] = popOtherPay.OtherPay_Number;
                gridOtherPay[gridOtherPay.Rows.Count - 1, 2] = popOtherPay.OtherPay_Paid;
                gridOtherPay[gridOtherPay.Rows.Count - 1, 3] = popOtherPay.OtherPay_DatePaid;
            }
        }
Beispiel #2
0
        private void LoadSelectedOldOtherPayments()
        {
            loadOtherPayments = new OtherFeesPaymentCollection();
            loadOtherPayments.LoadOtherPayWithOtherIdOldFromDb(selectedOldId);

            foreach (var popOtherPay in loadOtherPayments.pubOtherPayCollect)
            {
                gridOldPay.Rows.Count++;
                gridOldPay[gridOldPay.Rows.Count - 1, 1] = popOtherPay.OtherPay_Number;
                gridOldPay[gridOldPay.Rows.Count - 1, 2] = popOtherPay.OtherPay_Paid;
                gridOldPay[gridOldPay.Rows.Count - 1, 3] = popOtherPay.OtherPay_DatePaid;
            }
        }
        private void LoadStdOldOtherPayments()
        {
            int oldId;

            if (gridOld.Rows.Count == 1)
            {
                oldId = 0;
            }
            else
            {
                oldId = Int32.Parse(gridOld[gridOld.RowSel, 7].ToString());
            }
            loadOtherPayments = new OtherFeesPaymentCollection();
            loadOtherPayments.LoadOtherPayWithOtherIdOldFromDb(oldId);

            foreach (var popOtherPay in loadOtherPayments.pubOtherPayCollect)
            {
                gridOldPay.Rows.Count++;
                gridOldPay[gridOldPay.Rows.Count - 1, 1] = popOtherPay.OtherPay_Number;
                gridOldPay[gridOldPay.Rows.Count - 1, 2] = popOtherPay.OtherPay_Paid;
                gridOldPay[gridOldPay.Rows.Count - 1, 3] = popOtherPay.OtherPay_DatePaid;
            }
        }
Beispiel #4
0
        private void LoadSelectedOtherPayments()
        {
            loadOtherPayments = new OtherFeesPaymentCollection();
            loadOtherPayments.LoadOtherPayWithOtherIdFromDb(selectedOtherId);

            gridOtherPay.Rows.Count = 1;

            foreach (var popOtherPay in loadOtherPayments.pubOtherPayCollect)
            {
                gridOtherPay.Rows.Count++;
                gridOtherPay[gridOtherPay.Rows.Count - 1, 1] = popOtherPay.OtherPay_Number;
                gridOtherPay[gridOtherPay.Rows.Count - 1, 2] = popOtherPay.OtherPay_Paid;
                gridOtherPay[gridOtherPay.Rows.Count - 1, 3] = popOtherPay.OtherPay_DatePaid;
            }
            if (gridOtherPay[gridOtherPay.Rows.Count - 1, 1].ToString() != "Payment no.")
            {
                payNumber = Int32.Parse(gridOtherPay[gridOtherPay.Rows.Count - 1, 1].ToString());
            }
            else
            {
                payNumber = 0;
            }
        }