Esempio n. 1
0
        private void BindList()
        {
            Int64 employeeID = 0;

            String fe = SqlExpressionBuilder.PrepareFilterExpression(HREmployeeEntity.FLD_NAME_MemberID, this.CurrentMember.MemberID.ToString(), SQLMatchType.Equal);
            IList <HREmployeeEntity> lstEmployee = FCCHREmployee.GetFacadeCreate().GetIL(null, null, String.Empty, fe, DatabaseOperationType.LoadWithFilterExpression);

            if (lstEmployee != null && lstEmployee.Count > 0)
            {
                employeeID = lstEmployee[0].EmployeeID;
            }

            if (PageAPType == 0)
            {
                lvAPMemberFeedback.DataSource = APRobot.GetApprovalRequests_DetailedByMember(employeeID);
            }
            else if (PageAPType == MasterDataConstants.APFeedback.FEEDBACK_REQUESTED)
            {
                lvAPMemberFeedback.DataSource = APRobot.GetAllApprovalRequests_DetailedToMemberFeedback(employeeID);
            }
            else
            {
                lvAPMemberFeedback.DataSource = APRobot.GetApprovalRequests_DetailedByMemberAndStatus(employeeID, PageAPType);
            }

            lvAPMemberFeedback.DataBind();
        }