示例#1
0
        /*******************************************************************************************************************\
        *                                                                                                                 *
        \*******************************************************************************************************************/

        public void Show(string emp_id, DateTime refdate, string defpaycode)
        {
            this.Enabled       = false;
            this.UseWaitCursor = true;

            if (_uc_paycode != null)
            {
                _uc_paycode.ShowCRUD(emp_id, refdate, defpaycode);
            }

            ucSalary uc = _employee[emp_id];

            uc.QuickFresh(refdate, _uc_paycode.TotalRegHours, _uc_paycode.TotalOver, _uc_paycode.TotalOver1, _uc_paycode.TotalXtrHours);
            Application.DoEvents();

            //backgroundWorker1.RunWorkerAsync();

            _dt_tb = dacTimebook.GetDTCrew(DBO);
            //_uc_paycode.LoadDatatable(_dt_tb);

            this.Enabled       = true;
            this.UseWaitCursor = false;
        }