public ARStudentsPerTerm(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager) : base(userInfo, cashieringManager) { this.InitializeComponent(); _errProvider = new ErrorProvider(); }
public OptinalFeeSearchOnTextBoxList(CashieringLogic cashieringManager) { this.InitializeComponent(); _cashieringManager = cashieringManager; this.pbxRefresh.Click += new EventHandler(pbxRefreshClick); }
public BreakDownBankDepositCreate(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager, String dateStart, String dateEnd) : base(userInfo, cashieringManager, dateStart, dateEnd) { this.InitializeComponent(); this.FormClosing += new FormClosingEventHandler(ClassClossing); this.btnCancel.Click += new EventHandler(btnCancelClick); this.btnCreate.Click += new EventHandler(btnCreateClick); }
public StudentEnrolmentHistoryView(CashieringLogic cashieringManager) { this.InitializeComponent(); _cashieringManager = cashieringManager; this.Load += new EventHandler(ClassLoad); this.btnClose.Click += new EventHandler(btnCloseClick); }
public ReceiptNumberSearchOnTextBoxList(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager) { this.InitializeComponent(); _userInfo = userInfo; _cashieringManager = cashieringManager; this.pbxRefresh.Click += new EventHandler(pbxRefreshClick); }
public CreditMemoReportControl(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager) { this.InitializeComponent(); _userInfo = userInfo; _cashieringManager = cashieringManager; this.btnClose.Click += new EventHandler(btnCloseClick); this.btnGenerateReport.Click += new EventHandler(btnGenerateReportClick); }
public ChartOfAccountSearchedOnTextBoxList(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager) { this.InitializeComponent(); _cashieringManager = cashieringManager; _userInfo = userInfo; this.pbxRefresh.Click += new EventHandler(pbxRefreshClick); this.chkAllowMultipleInsert.CheckedChanged += new EventHandler(chkAllowMultipleInsertCheckedChanged); }
public CashReceiptReportControl(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager) { this.InitializeComponent(); _userInfo = userInfo; _cashieringManager = cashieringManager; this.Load += new EventHandler(ClassLoad); this.btnShowResult.Click += new EventHandler(btnShowResultClick); this.btnPrint.Click += new EventHandler(btnPrintClick); this.btnClose.Click += new EventHandler(btnCloseClick); }
public ReceiptNumberInformation(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager) { this.InitializeComponent(); _userInfo = userInfo; _cashieringManager = cashieringManager; _errProvider = new ErrorProvider(); this.Load += new EventHandler(ClassLoad); this.txtRemarks.Validated += new EventHandler(txtRemarksValidated); this.lblReceiptDate.Click += new EventHandler(lblReceiptDateClick); }
public StudentAccountReceivableFiscalYear(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager) { this.InitializeComponent(); _userInfo = userInfo; _cashieringManager = cashieringManager; this.Load += new EventHandler(ClassLoad); this.cboYear.SelectedIndexChanged += new EventHandler(cboYearSelectedIndexChanged); this.btnClose.Click += new EventHandler(btnCloseClick); this.btnGenerateReport.Click += new EventHandler(btnGenerateReportClick); }
public StudentBalanceReport(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager) { this.InitializeComponent(); _userInfo = userInfo; _cashieringManager = cashieringManager; this.Load += new EventHandler(StudentBalanceReportLoad); this.cboYear.SelectedIndexChanged += new EventHandler(cboYearSelectedIndexChanged); this.cboSemester.SelectedIndexChanged += new EventHandler(cboSemesterSelectedIndexChanged); this.rdbAll.CheckedChanged += new EventHandler(rdbAllCheckedChanged); this.btnClose.Click += new EventHandler(btnCloseClick); this.btnGenerateReport.Click += new EventHandler(btnGenerateReportClick); }
public MajorExamSchedule(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager) { this.InitializeComponent(); _userInfo = userInfo; _cashieringManager = cashieringManager; this.Load += new EventHandler(ClassLoad); this.btnClose.Click += new EventHandler(btnClose_lick); this.lsvMajorExam.ItemChecked += new ItemCheckedEventHandler(lsvMajorExamItemChecked); this.lsvMajorExam.MouseDown += new MouseEventHandler(lsvMajorExamMouseDown); this.btnPrint.Click += new EventHandler(btnPrintClick); this.lblChangeExamDate.Click += new EventHandler(lblChangeExamDateClick); }
public ReceiptInformationCancelRecord(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager, String receiptNumber, String receiptDate) : base(userInfo, cashieringManager, receiptNumber, receiptDate) { this.InitializeComponent(); _userInfo = userInfo; _cashieringManager = cashieringManager; _receiptNo = receiptNumber; this.FormClosing += new FormClosingEventHandler(ClassClossing); this.btnCancel.Click += new EventHandler(btnCancelClick); this.btnProceed.Click += new EventHandler(btnProceedClick); }
public ReceiptInformationCancelRecord(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager, CommonExchange.MiscellaneousIncome miscellaneousIncomeInfo) : base(userInfo, cashieringManager, miscellaneousIncomeInfo) { this.InitializeComponent(); _userInfo = userInfo; _cashieringManager = cashieringManager; _miscellaneousIncomeInfo = miscellaneousIncomeInfo; this.FormClosing += new FormClosingEventHandler(ClassClossing); this.btnCancel.Click += new EventHandler(btnCancelClick); this.btnProceed.Click += new EventHandler(btnProceedClick); }
public BreakDownBankDepositUpdate(CommonExchange.SysAccess userInfo, CommonExchange.BreakdownBankDeposit breakDownBanckDepositInfo, CashieringLogic cashieringManager, String dateStart, String dateEnd) : base(userInfo, cashieringManager, dateStart, dateEnd) { this.InitializeComponent(); _breakDownDepositInfo = breakDownBanckDepositInfo; _tempBreakDownBankDeposit = (CommonExchange.BreakdownBankDeposit)breakDownBanckDepositInfo.Clone(); this.FormClosing += new FormClosingEventHandler(ClassClossing); this.btnClose.Click += new EventHandler(btnCloseClick); this.btnUpdate.Click += new EventHandler(btnUpdateClick); this.btnDelete.Click += new EventHandler(btnDeleteClick); }
public CashReceiptQueryReportControl(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager) { this.InitializeComponent(); _userInfo = userInfo; _cashieringManager = cashieringManager; this.Load += new EventHandler(ClassLoad); this.btnSearchCreditEntry.Click += new EventHandler(btnSearchCreditEntryClick); this.lnkResetQuery.LinkClicked += new LinkLabelLinkClickedEventHandler(lnkResetQueryLinkClicked); this.txtSearch.KeyPress += new KeyPressEventHandler(txtSearchKeyPress); this.btnShowResult.Click += new EventHandler(btnShowResultClick); this.btnPrint.Click += new EventHandler(btnPrintClick); this.btnClose.Click += new EventHandler(btnCloseClick); }
public FeeRegisterSummarizedReportControl(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager) { this.InitializeComponent(); _userInfo = userInfo; _cashieringManager = cashieringManager; this.Load += new EventHandler(ClassLoad); this.cboYear.SelectedIndexChanged += new EventHandler(cboYearSelectedIndexChanged); this.cboSemester.SelectedIndexChanged += new EventHandler(cboSemesterSelectedIndexChanged); this.cbxCourseGroup.SelectedIndexChanged += new EventHandler(cbxCourseGroupSelectedIndexChanged); this.lnkCourseGroupAll.LinkClicked += new LinkLabelLinkClickedEventHandler(lnkCourseGroupAllLinkClicked); this.lnkCourseGroupNone.LinkClicked += new LinkLabelLinkClickedEventHandler(lnkCourseGroupNoneLinkClicked); this.btnClose.Click += new EventHandler(btnCloseClick); this.btnGenerateReport.Click += new EventHandler(btnGenerateReportClick); }
public ReceiptInformationUpdate(CommonExchange.SysAccess userInfo, CommonExchange.CancelledReceiptNo canceldReceiptNoInfo, CashieringLogic cashieringManager) : base(userInfo, cashieringManager) { this.InitializeComponent(); _userInfo = userInfo; _cashieringManager = cashieringManager; _canceldReceiptNoInfo = canceldReceiptNoInfo; _tempCancelReceiptNumberInfo = (CommonExchange.CancelledReceiptNo)canceldReceiptNoInfo.Clone(); this.FormClosing += new FormClosingEventHandler(ClassClossing); this.btnClose.Click += new EventHandler(btnCloseClick); this.btnUpdate.Click += new EventHandler(btnUpdateClick); this.btnDelete.Click += new EventHandler(btnDeleteClick); }
public ReceiptInformationCancelRecord(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager, CommonExchange.StudentPayments studentPaymentInfo, CommonExchange.Student studentInfo, String dateEnd) : base(userInfo, cashieringManager, studentPaymentInfo, studentInfo, dateEnd) { this.InitializeComponent(); _userInfo = userInfo; _cashieringManager = cashieringManager; _studentPaymentInfo = studentPaymentInfo; _studentInfo = studentInfo; _dateEnd = dateEnd; this.FormClosing += new FormClosingEventHandler(ClassClossing); this.btnCancel.Click += new EventHandler(btnCancelClick); this.btnProceed.Click += new EventHandler(btnProceedClick); }
public BreakDownBankDeposit(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager, String dateStart, String dateEnd) { this.InitializeComponent(); _userInfo = userInfo; _cashieringManager = cashieringManager; _dateStart = dateStart; _dateEnd = dateEnd; _errProvider = new ErrorProvider(); this.Load += new EventHandler(ClassLoad); this.txtAmount.KeyPress += new KeyPressEventHandler(txtAmountKeyPress); this.txtAmount.Validating += new System.ComponentModel.CancelEventHandler(txtAmountValidating); this.txtAmount.Validated += new EventHandler(txtAmountValidated); this.btnSearchedAccountTitle.Click += new EventHandler(btnSearchedAccountTitleClick); }
public DiscountReportControl(CommonExchange.SysAccess userInfo, CashieringLogic cashieringLogic) { this.InitializeComponent(); _userInfo = userInfo; _cashieringManager = cashieringLogic; this.Load += new EventHandler(ClassLoad); this.cboYear.SelectedIndexChanged += new EventHandler(cboYearSelectedIndexChanged); this.cboSemester.SelectedIndexChanged += new EventHandler(cboSemesterSelectedIndexChanged); this.cbxCourse.SelectedIndexChanged += new EventHandler(cbxCourseSelectedIndexChanged); this.cbxScholarship.SelectedIndexChanged += new EventHandler(cbxScholarshipSelectedIndexChanged); this.lnkCourseAll.LinkClicked += new LinkLabelLinkClickedEventHandler(lnkCourseAllLinkClicked); this.lnkCourseNone.LinkClicked += new LinkLabelLinkClickedEventHandler(lnkCourseNoneLinkClicked); this.lnkScholarshipAll.LinkClicked += new LinkLabelLinkClickedEventHandler(lnkScholarshipAllLinkClicked); this.lnkScholarshipNone.LinkClicked += new LinkLabelLinkClickedEventHandler(lnkScholarshipNoneLinkClicked); this.btnClose.Click += new EventHandler(btnCloseClick); this.btnGenerateReport.Click += new EventHandler(btnGenerateReportClick); }
}//---------------------- //this procedure will asked the user he/she whants to redicrect the page into the student tab page private void ConfirmRedirect(CommonExchange.Student studentInfo) { String strMsg = "Do you want to be redirected to the STUDENT TAB of " + RemoteClient.ProcStatic.GetCompleteNameMiddleInitial(studentInfo.PersonInfo.LastName, studentInfo.PersonInfo.FirstName, studentInfo.PersonInfo.MiddleName) + "?"; DialogResult msgResult = MessageBox.Show(strMsg, "Confirm Redirect", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2); if (msgResult == DialogResult.Yes) { CashieringLogic cashieringManager = new CashieringLogic(_userInfo); String receiptDate = DateTime.Parse(String.IsNullOrEmpty(BaseServices.BaseServicesLogic.ReceiptDate) ? _studentManager.ServerDateTime : BaseServices.BaseServicesLogic.ReceiptDate).ToLongDateString() + " 12:00:00 AM"; using (StudentTab frmShow = new StudentTab(_userInfo, studentInfo, cashieringManager, receiptDate)) { frmShow.ShowDialog(this); } } }//----------------------
public MultipleAdditionalFeeCreate(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager) { this.InitializeComponent(); _userInfo = userInfo; _cashieringManager = cashieringManager; _errProvider = new ErrorProvider(); this.Load += new EventHandler(ClassLoad); this.FormClosing += new FormClosingEventHandler(ClassClosing); this.ctlPayment.OnClose += new RemoteClient.ControlManagerCloseButtonClick(ctlPaymentOnClose); this.ctlPayment.OnRefresh += new RemoteClient.ControlManagerRefreshButtonClick(ctlPaymentOnRefresh); this.ctlPayment.OnTextBoxKeyUp += new RemoteClient.ControlManagerTextBoxSearchKeyUp(ctlPaymentOnTextBoxKeyUp); this.ctlPayment.OnPressEnter += new RemoteClient.ControlAdditionalFeeManagerPressEnter(ctlPaymentOnPressEnter); this.ctlPayment.OnSchoolYearSelectedIndexChanged += new RemoteClient.ControlAdditionalFeeManagerSchoolYearSelectedIndexChanged(ctlPaymentOnSchoolYearSelectedIndexChanged); this.ctlPayment.OnSemesterSelectedIndexChanged += new RemoteClient.ControlAdditionalFeeManagerSemesterSelectedIndexChanged(ctlPaymentOnSemesterSelectedIndexChanged); this.ctlPayment.OnCourseSelectedIndexChanged += new RemoteClient.ControlAdditionalFeeManagerCheckedListBoxSelectedIndexChanged(ctlPaymentOnCourseLevelSelectedIndexChanged); this.ctlPayment.OnYearLevelSelectedIndexChanged += new RemoteClient.ControlAdditionalFeeManagerCheckedListBoxSelectedIndexChanged(ctlPaymentOnCourseLevelSelectedIndexChanged); this.ctlPayment.OnResetLinkClicked += new RemoteClient.ControlAdditionalFeeManagerResetQueryLinkClicked(ctlPaymentOnResetLinkClicked); this.ctlPayment.OnModeOptionCheckedChanged += new RemoteClient.ControlAdditionalFeeManagerModeOptionCheckedChanged(ctlPaymentOnModeOptionCheckedChanged); this.dgvList.CellContentClick += new DataGridViewCellEventHandler(dgvListCellContentClick); this.dgvList.MouseDown += new MouseEventHandler(dgvListMouseDown); this.dgvList.MouseDoubleClick += new MouseEventHandler(dgvListDoubleClick); this.dgvList.DataSourceChanged += new EventHandler(dgvListDataSourceChanged); this.dgvList.SelectionChanged += new EventHandler(dgvListSelectionChanged); this.txtAmount.KeyPress += new KeyPressEventHandler(txtAmountKeyPress); this.txtAmount.Validating += new System.ComponentModel.CancelEventHandler(txtAmountValidating); this.txtAmount.Validated += new EventHandler(txtAmountValidated); this.txtAdditionalFeeRemarks.Validated += new EventHandler(txtAdditionalFeeRemarksValidated); this.pbxChecked.Click += new EventHandler(pbxCheckedClick); this.btnSearchAdditionalFee.Click += new EventHandler(btnSearchAdditionalFeeClick); this.btnRecord.Click += new EventHandler(btnRecordClick); }
public StudentAdditionalFee(CommonExchange.SysAccess userInfo, CashieringLogic cashieringManager, Int32 index, String dateStart, String dateEnd) { this.InitializeComponent(); _userInfo = userInfo; _cashieringManager = cashieringManager; _index = index; _dateStart = dateStart; _dateEnd = dateEnd; _errProvider = new ErrorProvider(); this.Load += new EventHandler(ClassLoad); this.FormClosing += new FormClosingEventHandler(StudentAdditionalFeeFormClosing); this.txtAdditionalPaymentAmount.KeyPress += new KeyPressEventHandler(txtAmountKeyPress); this.txtAdditionalPaymentAmount.Validating += new System.ComponentModel.CancelEventHandler(txtAmountValidating); this.txtAdditionalPaymentAmount.Validated += new EventHandler(txtAmountValidated); this.txtAdditionalFeeRemarks.Validated += new EventHandler(txtAdditionalFeeRemarksValidated); this.btnClose.Click += new EventHandler(btnCloseClick); this.btnSearchAdditionalFee.Click += new EventHandler(btnSearchAdditionalFeeClick); this.btnDeleteAdditionalPayment.Click += new EventHandler(btnDeleteAdditionalPaymentClick); this.btnUpdateAdditionalPayment.Click += new EventHandler(btnUpdateAdditionalPaymentClick); }
//###########################################CLASS CashieringManager EVENTS##################################################### //event is raised when the class is loaded private void ClassLoad(object sender, EventArgs e) { try { if (!(RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo) || RemoteServerLib.ProcStatic.IsSystemAccessVpOfFinance(_userInfo) || RemoteServerLib.ProcStatic.IsSystemAccessCashier(_userInfo))) { throw new Exception("You are not authorized to access this module."); } _cashieringManager = new CashieringLogic(_userInfo); _studentManager = new StudentLogic(_userInfo); this.ctlManager.ReceiptNo = CashieringLogic.ReceiptNumber; this.ctlManager.ReceiptDate = !String.IsNullOrEmpty(CashieringLogic.ReceiptDate) ? DateTime.Parse(CashieringLogic.ReceiptDate) : DateTime.Parse(_cashieringManager.ServerDateTime); _frmStudentSearch = new CashieringSearchList(); _frmStudentSearch.OnDoubleClickEnter += new SearchListDataGridDoubleClickEnter(_frmStudentSearchOnDoubleClickEnter); _frmStudentSearch.OnCashierUpdateClick += new SearchListDataGridContextMenuClick(_frmStudentSearchOnCashierUpdateClick); _frmStudentSearch.OnDataControllerUpdateClick += new SearchListDataGridContextMenuClick(_frmStudentSearchOnDataControllerUpdateClick); _frmStudentSearch.OnViewEnrolmentHistoryClick += new SearchListDataGridContextMenuClick(_frmStudentSearchOnViewEnrolmentHistoryClick); _frmStudentSearch.LocationPoint = new Point(14, 300); _frmStudentSearch.AdoptGridSize = false; _frmStudentSearch.MdiParent = this; _frmStudentSearch.DisableContextMenu(false, false, false, false); Boolean dataController = false; Boolean cashier = false; Boolean registrar = false; if (RemoteServerLib.ProcStatic.IsSystemAccessStudentDataController(_userInfo)) { //_frmStudentSearch.DisableContextMenu(false, true, false, true); dataController = true; } if (RemoteServerLib.ProcStatic.IsSystemAccessCashier(_userInfo) || RemoteServerLib.ProcStatic.IsSystemAccessVpOfFinance(_userInfo)) { //_frmStudentSearch.DisableContextMenu(false, false, true, true); cashier = true; } if (RemoteServerLib.ProcStatic.IsSystemAccessCollegeRegistrar(_userInfo)) { //_frmStudentSearch.DisableContextMenu(false, false, false, true); registrar = true; } if (RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo)) { _frmStudentSearch.DisableContextMenu(false, true, true, true); } else { _frmStudentSearch.DisableContextMenu(false, dataController, cashier, true); } lblRecordDate.Text = "Record Date: " + DateTime.Parse(_cashieringManager.ServerDateTime).ToString(); } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog("\n" + ex.Message, "Error Authenticating"); this.Close(); } }//------------------------
static void Main() { try { //registers the tcp channel TcpChannel channel = new TcpChannel(); ChannelServices.RegisterChannel(channel, false); //-------------------------- Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //gets the user information using (RemoteClient.RemCntAdministratorManager remClient = new RemoteClient.RemCntAdministratorManager()) { //sets the user information CommonExchange.SysAccess userInfo = new CommonExchange.SysAccess(); //-------------------------- Int32 userAccess = 2; if (userAccess == 1) { userInfo.UserName = "******"; userInfo.Password = "******"; } else if (userAccess == 2) { userInfo.UserName = "******"; userInfo.Password = "******"; } Boolean isExpired = false; if (remClient.AuthenticateSystemUser(ref userInfo, ref isExpired)) { userInfo.NetworkInformation = RemoteClient.ProcStatic.GetNetworkInformation(); Int32 process = 7; if (process == 1) { Application.Run(new StudentManager(userInfo)); } else if (process == 2) { StudentLogic studentManager = new StudentLogic(userInfo); //Application.Run(new FinanceServices.StudentGuidance(userInfo, studentManager)); } else if (process == 3) { try { Application.Run(new FinanceServices.SchoolFeeManager(userInfo)); } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading School Fee Manager"); } } else if (process == 5) { try { StudentLogic studentManager = new StudentLogic(userInfo); Application.Run(new FinanceServices.StudentIdGenerator(userInfo, studentManager)); } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading"); } } else if (process == 6) { //Application.Run(new StudentTab()); } else if (process == 7) { Application.Run(new CashieringManager(userInfo)); } else if (process == 8) { CashieringLogic casheiringManager = new CashieringLogic(userInfo); Application.Run(new MultipleAdditionalFeeCreate(userInfo, casheiringManager)); } } }//------------------------- } catch (Exception err) { RemoteClient.ProcStatic.ShowErrorDialog(err.Message, "System Error"); } finally { Application.Exit(); } }