Exemplo n.º 1
0
        private void LoadGrid(int Level, string Code)
        {
            HRM_CONTRACT hRMCONTRACT = new HRM_CONTRACT();

            if (!(Level == 0 || Level == 1 || Level == 2 || Level == 3 ? false : Level != 4))
            {
                this.gcList.DataSource = hRMCONTRACT.GetList(Level, Code);
            }
            else if (Level == 5)
            {
                this.gcList.DataSource = hRMCONTRACT.GetListByEmployee(Code);
            }
        }