Example #1
0
        public void GetUnderManagmentByDepartment_Test()
        {
            IList <UnderManagementPerson> list = bussWorkTime.GetUnderManagmentByDepartment(0, ADODepartment1.ID, 0, 10, GridOrderFields.gridFields_BarCode, GridOrderFieldType.desc);

            Assert.IsTrue(list != null);
            Assert.IsTrue(list.Where(x => x.PersonId == ADOPerson5.ID).Count() > 0);
            Assert.IsTrue(list.Count == 3);
        }
Example #2
0
        protected void Button11_Click(object sender, EventArgs e)
        {
            BWorkedTime bus = new BWorkedTime();

            bus.GetUnderManagmentByDepartment(2, 57, 0, 30, GridOrderFields.NONE, GridOrderFieldType.asc);
            bus.GetUnderManagmentBySearch(2, "3551329", GridSearchFields.PersonCode, 0, 30, GridOrderFields.NONE, GridOrderFieldType.asc);
            bus.GetUnderManagmentBySearchCount(2, "3551329", GridSearchFields.PersonCode);
        }
Example #3
0
        public void GetUnderManagmentBySearch_BarcodeTest22222()
        {
            try
            {
                base.UpdateCurrentUserPersonId(32678);
                bussWorkTime = new BWorkedTime();


                Department dep = bussWorkTime.GetManagerDepartmentTree();
                IList <UnderManagementPerson> list1 = bussWorkTime.GetUnderManagmentByDepartment(9, dep.ID, 0, 20, GridOrderFields.gridFields_BarCode, GridOrderFieldType.asc);
            }
            catch (Exception ex)
            {
                string s = ex.Message;
            }
        }