public EmployeeDeductionSummary(CommonExchange.SysAccess userInfo, CommonExchange.Employee empInfo, DeductionLogic decManager)
        {
            this.InitializeComponent();

            _userInfo   = userInfo;
            _empInfo    = empInfo;
            _decManager = decManager;
        }
Beispiel #2
0
        public DeductionCreate(CommonExchange.SysAccess userInfo, DeductionLogic decManager)
        {
            this.InitializeComponent();

            _userInfo   = userInfo;
            _decManager = decManager;

            this.Load            += new EventHandler(ClassLoad);
            this.FormClosing     += new FormClosingEventHandler(ClassClosing);
            this.btnCancel.Click += new EventHandler(btnCancelClick);
            this.btnCreate.Click += new EventHandler(btnCreateClick);
        }
Beispiel #3
0
        public DeductionUpdate(CommonExchange.SysAccess userInfo, DeductionLogic decManager, String deductionId)
        {
            this.InitializeComponent();

            _userInfo    = userInfo;
            _decManager  = decManager;
            _deductionId = deductionId;

            this.Load            += new EventHandler(ClassLoad);
            this.FormClosing     += new FormClosingEventHandler(ClassClosing);
            this.btnDone.Click   += new EventHandler(btnDoneClick);
            this.btnUpdate.Click += new EventHandler(btnUpdateClick);
        }
        public ViewUpdateDeduction(CommonExchange.SysAccess userInfo, CommonExchange.Employee empInfo,
                                   DeductionLogic decManager, Int64 deductionId)
        {
            this.InitializeComponent();

            _userInfo    = userInfo;
            _empInfo     = empInfo;
            _decManager  = decManager;
            _deductionId = deductionId;

            this.Load            += new EventHandler(ClassLoad);
            this.FormClosing     += new FormClosingEventHandler(ClassClosing);
            this.lnkChange.Click += new EventHandler(lnkChangeClick);
        }
Beispiel #5
0
        public ApplyDeduction(CommonExchange.SysAccess userInfo, CommonExchange.DeductionInformation decInfo, DeductionLogic decManager)
        {
            this.InitializeComponent();

            _userInfo   = userInfo;
            _decInfo    = decInfo;
            _decManager = decManager;

            this.Load                              += new EventHandler(ClassLoad);
            this.FormClosing                       += new FormClosingEventHandler(ClassClosing);
            this.ctlManager.OnClose                += new RemoteClient.ControlManagerCloseButtonClick(ctlManagerOnClose);
            this.ctlManager.OnRefresh              += new RemoteClient.ControlManagerRefreshButtonClick(ctlManagerOnRefresh);
            this.ctlManager.OnTextBoxKeyUp         += new RemoteClient.ControlManagerTextBoxSearchKeyUp(ctlManagerOnTextBoxKeyUp);
            this.ctlManager.OnStatusCheckedChanged += new RemoteClient.ControlEmployeeManagerStatusOptionCheckedChanged(ctlManagerOnStatusCheckedChanged);
            this.lnkChange.LinkClicked             += new LinkLabelLinkClickedEventHandler(lnkChangeLinkClicked);
        }
        //###########################################CLASS DeductionManager EVENTS#####################################################
        //event is raised when the class is loaded
        private void ClassLoad(object sender, EventArgs e)
        {
            try
            {
                _decManager = new DeductionLogic(_userInfo);

                _frmIncDecSearch = new EarningDeductionSearchList();
                _frmIncDecSearch.InitializeControl(true);
                _frmIncDecSearch.OnDoubleClickEnter += new SearchListDataGridDoubleClickEnter(_frmIncDecSearchOnDoubleClickEnter);
                _frmIncDecSearch.OnAdd        += new EarningDeductionSearchListLinkAddClick(_frmIncDecSearchOnAdd);
                _frmIncDecSearch.OnUpdate     += new EarningDeductionSearchListLinkUpdateClick(_frmIncDecSearchOnUpdate);
                _frmIncDecSearch.LocationPoint = new Point(50, 300);
                _frmIncDecSearch.AdoptGridSize = true;
                _frmIncDecSearch.MdiParent     = this;

                _frmEmpSearch = new EarningDeductionEmployeeSearchList();
                _frmEmpSearch.OnDoubleClickEnter += new SearchListDataGridDoubleClickEnter(_frmEmpSearchOnDoubleClickEnter);
                _frmEmpSearch.LocationPoint       = new Point(50, 300);
                _frmEmpSearch.AdoptGridSize       = true;
                _frmEmpSearch.MdiParent           = this;

                lblRecordDate.Text = "Record Date: " + DateTime.Parse(_decManager.ServerDateTime).ToString();

                _forApply = true;

                if (!(RemoteServerLib.ProcStatic.IsSystemAccessAdmin(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessVpOfFinance(_userInfo) ||
                      RemoteServerLib.ProcStatic.IsSystemAccessPayrollMaster(_userInfo)))
                {
                    throw new Exception("You are not authorized to access this module.");
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog("\n" + ex.Message, "Error Authenticating");

                this.Close();
            }
        }