Ejemplo n.º 1
0
        private void dtBillingSummary_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                DataGridView datagrid = this.dtBillingSummary;
                Int64        index;
                Int64        colIndex;
                if (datagrid.RowCount > 0)
                {
                    transaction = new BIZ.Transaction();
                    index       = datagrid.CurrentRow.Index;
                    colIndex    = datagrid.CurrentCell.ColumnIndex;
                    if (colIndex == 6)
                    {
                        ClubName = Convert.ToString(datagrid.Rows[Convert.ToInt32(index)].Cells[0].Value);
                        if (ClubName != "")
                        {
                            DataSet dtresult = new DataSet();
                            //PopulateBLL();
                            transaction.ClubName = ClubName;
                            dtresult             = transaction.TransactionHistory();

                            if (dtresult.Tables.Count > 0)
                            {
                                frmTransactionSummary transactionhistory = new frmTransactionSummary();
                                transactionhistory.ClubName = ClubName;
                                transactionhistory.ShowDialog();
                            }
                            else
                            {
                                MessageBox.Show("No record is found", "Search");
                            }
                        }
                    }
                    if (colIndex == 7)
                    {
                        ClubName = Convert.ToString(datagrid.Rows[Convert.ToInt32(index)].Cells[0].Value);
                        if (ClubName != "")
                        {
                            DataSet dtresult = new DataSet();
                            //PopulateBLL();
                            transaction.ClubName = ClubName;
                            dtresult             = transaction.PaymentHistory();

                            if (dtresult.Tables.Count > 0)
                            {
                                frmPaymentTransactionSummary paymentSummary = new frmPaymentTransactionSummary();
                                paymentSummary.ClubName = ClubName;
                                paymentSummary.ShowDialog();
                            }
                            else
                            {
                                MessageBox.Show("No record is found", "Search");
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(Common.Common.CustomError(ex.Message), "Error");
            }
        }
Ejemplo n.º 2
0
        private void SelectMenu(Common.Common.MemberMenu selectedMenu)
        {
            switch (selectedMenu)
            {
            case Common.Common.MemberMenu.ReaderRegistration:
                frmGenerateEclockInfo readerRegistration = new frmGenerateEclockInfo();
                readerRegistration.ShowDialog();
                break;

            case Common.Common.MemberMenu.RFIDRegistration:
                frmRFIDRegistration rfidRegistration = new frmRFIDRegistration();
                rfidRegistration.ShowDialog();
                break;

            case Common.Common.MemberMenu.ChangePassword:
                frmChangePassword changePassword = new frmChangePassword();
                changePassword.ClubID = ClubID;
                changePassword.UserID = UserID;
                changePassword.ShowDialog();
                break;

            case Common.Common.MemberMenu.ByReleasePoint:
                frmMemberPerReleasePoint memberDistancePerReleasePoint = new frmMemberPerReleasePoint();
                memberDistancePerReleasePoint.ClubID = ClubID;
                memberDistancePerReleasePoint.UserID = UserID;
                memberDistancePerReleasePoint.ShowDialog();
                break;

            case Common.Common.MemberMenu.ByMemberID:
                frmMemberDistance memberDistancePerMemberID = new frmMemberDistance();
                memberDistancePerMemberID.ClubID = ClubID;
                memberDistancePerMemberID.UserID = UserID;
                memberDistancePerMemberID.ShowDialog();
                break;

            case Common.Common.MemberMenu.MemberDataEntry:
                frmMemberDataEntry memberDataEntry = new frmMemberDataEntry();
                memberDataEntry.ClubID = ClubID;
                memberDataEntry.UserID = UserID;
                memberDataEntry.ShowDialog();
                break;

            case Common.Common.MemberMenu.MemberMasterlist:
                frmMemberMasterlist memberMasterlist = new frmMemberMasterlist();
                memberMasterlist.ClubID = ClubID;
                memberMasterlist.UserID = UserID;
                memberMasterlist.ShowDialog();
                break;

            case Common.Common.MemberMenu.RaceEntry:
                frmRaceEntry raceEntry = new frmRaceEntry();
                raceEntry.ClubID = ClubID;
                raceEntry.UserID = UserID;
                raceEntry.ShowDialog();
                break;

            case Common.Common.MemberMenu.TransactionHistory:
                frmTransactionSummary transactionHistory = new frmTransactionSummary();
                transactionHistory.ClubID = ClubID;
                transactionHistory.ShowDialog();
                break;

            case Common.Common.MemberMenu.RaceResult:
                frmRaceResult raceResult = new frmRaceResult();
                raceResult.ClubID = ClubID;
                raceResult.UserID = UserID;
                raceResult.ShowDialog();
                break;

            case Common.Common.MemberMenu.RaceResults:
                frmRaceResults raceResults = new frmRaceResults();
                raceResults.ClubID = ClubID;
                raceResults.UserID = UserID;
                raceResults.ShowDialog();
                break;

            case Common.Common.MemberMenu.Location:
                frmLocation location = new frmLocation();
                location.ClubID = ClubID;
                location.UserID = UserID;
                location.ShowDialog();
                break;

            case Common.Common.MemberMenu.Club:
                frmClub club = new frmClub();
                club.ClubID = ClubID;
                club.UserID = UserID;
                club.ShowDialog();
                break;

            case Common.Common.MemberMenu.Schedule:
                frmSchedule schedule = new frmSchedule();
                schedule.ClubID = ClubID;
                schedule.UserID = UserID;
                schedule.ShowDialog();
                break;

            case Common.Common.MemberMenu.RaceScheduleDetails:
                frmScheduleDetails scheduleDetails = new frmScheduleDetails();
                scheduleDetails.ClubID = ClubID;
                scheduleDetails.UserID = UserID;
                scheduleDetails.ShowDialog();
                break;

            case Common.Common.MemberMenu.RaceCategory:
                frmRaceCategory raceCategory = new frmRaceCategory();
                raceCategory.ClubID = ClubID;
                raceCategory.UserID = UserID;
                raceCategory.ShowDialog();
                break;

            case Common.Common.MemberMenu.RaceCategoryGroup:
                frmRaceCategoryGroup raceCategoryGroup = new frmRaceCategoryGroup();
                raceCategoryGroup.ClubID = ClubID;
                raceCategoryGroup.UserID = UserID;
                raceCategoryGroup.ShowDialog();
                break;

            case Common.Common.MemberMenu.User:
                frmUser user = new frmUser();
                //user.ClubID = ClubID;
                //user.UserID = UserID;
                user.ShowDialog();
                break;

            case Common.Common.MemberMenu.RingMangement:
                frmMemberRingManagement ringManagement = new frmMemberRingManagement();
                ringManagement.ClubID = ClubID;
                ringManagement.UserID = UserID;
                ringManagement.ShowDialog();
                break;

            case Common.Common.MemberMenu.Region:
                frmRegion region = new frmRegion();
                region.ClubID = ClubID;
                region.UserID = UserID;
                region.ShowDialog();
                break;

            case Common.Common.MemberMenu.Calculator:
                frmCalculator calculator = new frmCalculator();
                calculator.ClubID = ClubID;
                calculator.UserID = UserID;
                calculator.ShowDialog();
                break;

            case Common.Common.MemberMenu.InboxView:
                Inbox_View inbox = new Inbox_View();
                inbox.ClubID = ClubID;
                inbox.UserID = UserID;
                inbox.ShowDialog();
                break;

            case Common.Common.MemberMenu.StickerGeneration:
                frmStickerGeneration stickerNumber = new frmStickerGeneration();
                stickerNumber.ShowDialog();
                break;

            case Common.Common.MemberMenu.ViewClubRace:
                frmViewClubRace viewClubRace = new frmViewClubRace();
                viewClubRace.ShowDialog();
                break;

            case Common.Common.MemberMenu.Transaction:
                frmTransaction transaction = new frmTransaction();
                transaction.ShowDialog();
                break;

            case Common.Common.MemberMenu.ExportEClockData:
                frmExportEclockData ExportEClockData = new frmExportEclockData();
                ExportEClockData.ClubID = ClubID;
                ExportEClockData.UserID = UserID;
                ExportEClockData.ShowDialog();
                break;

            case Common.Common.MemberMenu.LoadMAVCAccessCard:
                frmLoadCard LoanMavcCard = new frmLoadCard();
                LoanMavcCard.ClubID = ClubID;
                LoanMavcCard.UserID = UserID;
                LoanMavcCard.ShowDialog();
                break;

            case Common.Common.MemberMenu.RegisterMobileNumber:
                frmRegisterMobileNumber RegisterMobileNumber = new frmRegisterMobileNumber();
                RegisterMobileNumber.ClubID = ClubID;
                RegisterMobileNumber.UserID = UserID;
                RegisterMobileNumber.ShowDialog();
                break;

            case Common.Common.MemberMenu.PaymentHistory:
                frmPaymentTransactionSummary PaymentSummary = new frmPaymentTransactionSummary();
                PaymentSummary.ClubID = ClubID;
                PaymentSummary.UserID = UserID;
                PaymentSummary.ShowDialog();
                break;
            }

            Common.Global.IsMainDatabase = false;
        }