private void BuildDropDownListAP() { if (!(APForwardInfoID > 0)) { ddlAction.Items.Add(new ListItem("Approve", "1")); ddlAction.Items.Add(new ListItem("Reject", "2")); ddlAction.Items.Add(new ListItem("Forward", "3")); // ddlAction.Items.Add(new ListItem("Canceled & Return To Initiator", "4")); APMemberFeedbackEntity ent = APRobot.GetAPMemberFeedbackByID(APMemberFeedbackID); ddlRejectTo.Items.Clear(); ddlRejectTo.DataTextField = APMemberFeedback_DetailedEntity.FLD_NAME_MemberFullName; ddlRejectTo.DataValueField = APMemberFeedback_DetailedEntity.FLD_NAME_APMemberFeedbackID; ddlRejectTo.DataSource = APRobot.GetRejectToMemberFeedbacks_Detailed(APApprovalProcessID, ent.EmployeeID); ddlRejectTo.DataBind(); ListItem pleaseSelectListItem = new ListItem("Please Select", "0"); ddlRejectTo.Items.Insert(0, pleaseSelectListItem); ddlForwardTo.Items.Clear(); ddlForwardTo.DataTextField = APPanelForwardMember_DetailedEntity.FLD_NAME_MemberFullName; ddlForwardTo.DataValueField = APPanelForwardMember_DetailedEntity.FLD_NAME_APPanelForwardMemberID; ddlForwardTo.DataSource = APRobot.GetAPPanelForwardMemberByApprovalProcessTypeAndReferenceID(MasterDataConstants.APType.AGREEMENT, OverviewAgreementID); ddlForwardTo.DataBind(); } else { ddlAction.Items.Add(new ListItem("Comment", "4")); } }
private void BuildDropDownList() { BuildREQRequisitionItem(); #region Approval Dropdown if (!(APForwardInfoID > 0)) { ddlAction.Items.Add(new ListItem("Approve", "1")); ddlAction.Items.Add(new ListItem("Back", "2")); ddlAction.Items.Add(new ListItem("Forward", "3")); APMemberFeedbackEntity ent = APRobot.GetAPMemberFeedbackByID(APMemberFeedbackID); ddlRejectTo.Items.Clear(); ddlRejectTo.DataTextField = APMemberFeedback_DetailedEntity.FLD_NAME_MemberFullName; ddlRejectTo.DataValueField = APMemberFeedback_DetailedEntity.FLD_NAME_APMemberFeedbackID; ddlRejectTo.DataSource = APRobot.GetRejectToMemberFeedbacks_Detailed(APApprovalProcessID, ent.EmployeeID); ddlRejectTo.DataBind(); ListItem pleaseSelectListItem = new ListItem("Please Select", "0"); ddlRejectTo.Items.Insert(0, pleaseSelectListItem); ddlForwardTo.Items.Clear(); ddlForwardTo.DataTextField = APPanelForwardMember_DetailedEntity.FLD_NAME_MemberFullName; ddlForwardTo.DataValueField = APPanelForwardMember_DetailedEntity.FLD_NAME_APPanelForwardMemberID; ddlForwardTo.DataSource = APRobot.GetAPPanelForwardMemberByApprovalProcessTypeAndReferenceID(MasterDataConstants.APType.WORK_ORDER, PRMWorkOrderID); ddlForwardTo.DataBind(); } else { ddlAction.Items.Add(new ListItem("Comment", "4")); } #endregion }