private String AddProxyMemberInfo(String remarks) { if (ProxyEmployeeID > 0) { APMemberFeedback_DetailedEntity ent = APRobot.GetMemberFeedback_DetailedByAPMemberFeedbackID(APMemberFeedbackID); remarks += "<br />"; remarks += "<br />"; remarks += "<b><i>This action has been taken by proxy member - " + ent.ProxyMemberFullName + "</i></b>"; } return(remarks); }
protected void lvAPMemberFeedback_ItemDataBound(object sender, ListViewItemEventArgs e) { if (e.Item.ItemType == ListViewItemType.DataItem) { ListViewDataItem dataItem = (ListViewDataItem)e.Item; APMemberFeedback_DetailedEntity ent = (APMemberFeedback_DetailedEntity)dataItem.DataItem; APApprovalProcessEntity aPApprovalProcessEntity = APRobot.GetApprovalProcessByID(ent.APApprovalProcessID); HyperLink lnkViewDetails = (HyperLink)e.Item.FindControl("lnkViewDetails"); HyperLink lnkShowApprovalStatus = (HyperLink)e.Item.FindControl("lnkShowApprovalStatus"); Label lblTitle = (Label)e.Item.FindControl("lblTitle"); Label lblAPType = (Label)e.Item.FindControl("lblAPType"); Label lblItemDetail = (Label)e.Item.FindControl("lblItemDetail"); lblTitle.Text = aPApprovalProcessEntity.Title; if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.REQUISITION) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/REQ/REQRequisitionDetailsWithApproval.aspx", string.Empty, UrlConstants.REQUISITION_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); String feReqItem = SqlExpressionBuilder.PrepareFilterExpression("REQRequisitionItem." + REQRequisitionItemEntity.FLD_NAME_RequisitionID, aPApprovalProcessEntity.ReferenceID.ToString(), SQLMatchType.Equal); IList <REQRequisitionItem_DetailedEntity> lst = FCCREQRequisitionItem_Detailed.GetFacadeCreate().GetIL(100000, 1, String.Empty, feReqItem); lblAPType.Text = "Requisition"; if (lst != null && lst.Count > 0) { lblItemDetail.Text = "Items ("; foreach (REQRequisitionItem_DetailedEntity entREQRequisitionItem_DetailedEntity in lst) { lblItemDetail.Text += entREQRequisitionItem_DetailedEntity.MDItemItemName + ", "; } lblItemDetail.Text += ")"; } } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.WORK_ORDER) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/PRM/PRMWorkOrderViewWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_WORKORDER_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "Work Order"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.BILL) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/CM/CMBillDetailsWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_CM_BILL_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "Bill"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.PAYABLE_STATEMENT) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/ACC/ACCPostPayableStatementDetailWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_POST_PAYABLE_STATEMENT_DETAIL_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "Payable Statement"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.TRF) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/INV/INVTransferItemDetailsWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_TRANSFER_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "TRF"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.BANK_DEPOSIT) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/AC/ACBankAccountDepositDetailsWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_BANK_ACCOUNT_DEPOSIT_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "BANK DEPOSIT"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.BANK_PAYMENT) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/AC/ACBankAccountPaymentDetailsWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_BANK_ACCOUNT_PAYMENT_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "BANK PAYMENT"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.TEMPORARY_JOURNAL) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/AC/ACJournalDetailsWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_TEMPORARY_JOURNAL_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "JOURNAL ENTRY"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.BANK_ACCOUNT_TRANSFER) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/AC/ACBankAccountTransferDetailsWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_BANK_ACCOUNT_TRANSFER_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "BANK ACCOUNT TRANSFER"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.MRR) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/PRM/PRMMaterialReceiveDetailsWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_MATERIAL_RECEIVE_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "MATERIAL RECEIVE"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.AGREEMENT) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/CRM/CRMAgreementDetailsWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_AGREEMENT_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "AGREEMENT"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.CONTACT_LIST) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl("~/BD/BDProcessAssignedResourceDetailsWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_PROCESS_ASSIGNED_RESOURCE_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "CONTACT_LIST"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.LOAN_APPLICATION) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl("~/HR/HREmployeeLoanApplicationDetailsWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_LOAN_APPLICATION_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "LOAN_APPLICATION"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.LEAVE_APPLICATION) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl("~/HR/HREmployeeLeaveApplicationWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_LEAVE_APPLICATION_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "LEAVE_APPLICATION"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.CUSTOM) { lnkViewDetails.NavigateUrl = "#"; lblAPType.Text = "Custom"; } lnkShowApprovalStatus.NavigateUrl = UrlHelper.BuildSecureUrl( "~/AP/APView.aspx", string.Empty, APApprovalProcessEntity.FLD_NAME_APApprovalProcessID, aPApprovalProcessEntity.APApprovalProcessID.ToString() ).ToString(); //lnkViewDetails.Target = "_blank"; lnkShowApprovalStatus.Target = "_blank"; } }
private void PrepareInitialView() { IList <APMemberFeedback_DetailedEntity> lst = APRobot.GetAllMemberFeedbacks_Detailed(APApprovalProcessID); HtmlGenericControl clear = new HtmlGenericControl("div"); clear.Attributes.Add("style", "clear: both;"); for (Int32 i = 0; i < lst.Count; i++) { APMemberFeedback_DetailedEntity ent = lst[i]; HtmlGenericControl step = new HtmlGenericControl("div"); step.Attributes.Add("class", GetBorderColorCSS(ent.APFeedbackID)); HtmlGenericControl cnt1 = new HtmlGenericControl("div"); cnt1.Attributes.Add("class", "cnt"); HtmlGenericControl table = new HtmlGenericControl("table"); table.Attributes.Add("width", "100%"); HtmlGenericControl tr = new HtmlGenericControl("tr"); HtmlGenericControl td1 = new HtmlGenericControl("td"); HtmlGenericControl td2 = new HtmlGenericControl("td"); td2.Attributes.Add("align", "center"); td2.Attributes.Add("style", "font-size: 18px; font-weight: bold"); HtmlGenericControl lbl2 = new HtmlGenericControl("div"); lbl2.Attributes.Add("class", "lbl"); HtmlGenericControl cnt2 = new HtmlGenericControl("div"); cnt2.Attributes.Add("class", "cnt"); HtmlGenericControl lbl3 = new HtmlGenericControl("div"); lbl3.Attributes.Add("class", "lbl"); HtmlGenericControl cnt3 = new HtmlGenericControl("div"); cnt3.Attributes.Add("class", "cnt"); HtmlGenericControl lbl4 = new HtmlGenericControl("div"); lbl4.Attributes.Add("class", "lbl"); HtmlGenericControl cnt4 = new HtmlGenericControl("div"); cnt4.Attributes.Add("class", "cnt"); HtmlGenericControl lbl5 = new HtmlGenericControl("div"); lbl5.Attributes.Add("class", "lbl"); HtmlGenericControl cnt5 = new HtmlGenericControl("div"); cnt5.Attributes.Add("class", "cnt"); HtmlGenericControl lbl6 = new HtmlGenericControl("div"); lbl6.Attributes.Add("class", "lbl"); HtmlGenericControl cnt6 = new HtmlGenericControl("div"); cnt6.Attributes.Add("class", "cnt"); HtmlGenericControl lbl7 = new HtmlGenericControl("div"); lbl7.Attributes.Add("class", "lbl"); HtmlGenericControl cnt7 = new HtmlGenericControl("div"); cnt7.Attributes.Add("class", "cnt"); HtmlGenericControl lbl8 = new HtmlGenericControl("div"); lbl8.Attributes.Add("class", "lbl"); HtmlGenericControl cnt8 = new HtmlGenericControl("div"); cnt8.Attributes.Add("class", "cnt"); Image img1 = new Image(); img1.ID = "imgAssignedTo" + i.ToString(); img1.BorderColor = System.Drawing.Color.Gray; img1.BorderWidth = Unit.Pixel(1); img1.BorderStyle = BorderStyle.Solid; img1.ImageAlign = ImageAlign.AbsMiddle; img1.Height = 85; img1.Width = 73; img1.CssClass = "imgRound"; String fe_memberImage = SqlExpressionBuilder.PrepareFilterExpression(HREmployeePhotoEntity.FLD_NAME_EmployeeID, ent.EmployeeID.ToString(), SQLMatchType.Equal); IList <HREmployeePhotoEntity> lstEmployeePhoto = FCCHREmployeePhoto.GetFacadeCreate().GetIL(1, 1, String.Empty, fe_memberImage, DatabaseOperationType.LoadWithFilterExpression); if (lstEmployeePhoto != null && lstEmployeePhoto.Count > 0) { img1.ImageUrl = lstEmployeePhoto[0].Path; } else { img1.ImageUrl = "~/Images/approval_pic.JPG"; } td1.Controls.Add(img1); Literal lit_lbl1 = new Literal(); lit_lbl1.Text = "Step " + (i + 1).ToString(); td2.Controls.Add(lit_lbl1); tr.Controls.Add(td1); tr.Controls.Add(td2); table.Controls.Add(tr); cnt1.Controls.Add(table); step.Controls.Add(cnt1); Literal lit_lbl2 = new Literal(); lit_lbl2.Text = "Assigned To"; lbl2.Controls.Add(lit_lbl2); step.Controls.Add(lbl2); Literal lit_cnt2 = new Literal(); lit_cnt2.Text = ent.MemberFullName; cnt2.Controls.Add(lit_cnt2); step.Controls.Add(cnt2); Literal lit_lbl3 = new Literal(); lit_lbl3.Text = "Approval Status"; lbl3.Controls.Add(lit_lbl3); step.Controls.Add(lbl3); Literal lit_cnt3 = new Literal(); lit_cnt3.Text = ent.APFeedbackName; cnt3.Controls.Add(lit_cnt3); step.Controls.Add(cnt3); Literal lit_lbl4 = new Literal(); lit_lbl4.Text = "Assign Date"; lbl4.Controls.Add(lit_lbl4); step.Controls.Add(lbl4); Literal lit_cnt4 = new Literal(); lit_cnt4.Text = ent.FeedbackRequestDate != null?MiscUtil.ConvertDateToStringDDMMYYYY(ent.FeedbackRequestDate.Value) : "NA"; cnt4.Controls.Add(lit_cnt4); step.Controls.Add(cnt4); Literal lit_lbl5 = new Literal(); lit_lbl5.Text = "Last Response"; lbl5.Controls.Add(lit_lbl5); step.Controls.Add(lbl5); Literal lit_cnt5 = new Literal(); lit_cnt5.Text = ent.FeedbackLastResponseDate != null?MiscUtil.ConvertDateToStringDDMMYYYY(ent.FeedbackLastResponseDate.Value) : "NA"; cnt5.Controls.Add(lit_cnt5); step.Controls.Add(cnt5); Literal lit_lbl6 = new Literal(); lit_lbl6.Text = "Feedback Date"; lbl6.Controls.Add(lit_lbl6); step.Controls.Add(lbl6); Literal lit_cnt6 = new Literal(); lit_cnt6.Text = ent.FeedbackSubmitDate != null?MiscUtil.ConvertDateToStringDDMMYYYY(ent.FeedbackSubmitDate.Value) : "NA"; cnt6.Controls.Add(lit_cnt6); step.Controls.Add(cnt6); Literal lit_lbl7 = new Literal(); lit_lbl7.Text = "Proxy Member"; lbl7.Controls.Add(lit_lbl7); step.Controls.Add(lbl7); Literal lit_cnt7 = new Literal(); lit_cnt7.Text = ent.ProxyMemberFullName.Trim() == String.Empty ? "Not Set" : ent.ProxyMemberFullName; cnt7.Controls.Add(lit_cnt7); step.Controls.Add(cnt7); Literal lit_lbl8 = new Literal(); lit_lbl8.Text = "Enabled Proxy Member"; lbl8.Controls.Add(lit_lbl8); step.Controls.Add(lbl8); Literal lit_cnt8 = new Literal(); lit_cnt8.Text = ent.IsProxyEmployeeEnabled ? "Yes" : "No"; cnt8.Controls.Add(lit_cnt8); step.Controls.Add(cnt8); div.Controls.Add(step); if ((i + 1) < lst.Count) { HtmlGenericControl apStepSeperator = new HtmlGenericControl("div"); apStepSeperator.Attributes.Add("class", "apStepSeperator"); Image img2 = new Image(); img2.ID = "imgArrow" + i.ToString(); img2.BorderColor = System.Drawing.Color.Gray; img2.BorderWidth = Unit.Pixel(0); img2.BorderStyle = BorderStyle.Solid; img2.ImageAlign = ImageAlign.AbsMiddle; img2.ImageUrl = "~/Images/ap-arrow-right.png"; apStepSeperator.Controls.Add(img2); div.Controls.Add(apStepSeperator); } } div.Controls.Add(clear); }
protected void lvAPMemberFeedback_ItemDataBound(object sender, ListViewItemEventArgs e) { if (e.Item.ItemType == ListViewItemType.DataItem) { ListViewDataItem dataItem = (ListViewDataItem)e.Item; APMemberFeedback_DetailedEntity ent = (APMemberFeedback_DetailedEntity)dataItem.DataItem; APApprovalProcessEntity aPApprovalProcessEntity = APRobot.GetApprovalProcessByID(ent.APApprovalProcessID); HyperLink lnkViewDetails = (HyperLink)e.Item.FindControl("lnkViewDetails"); HyperLink lnkShowApprovalStatus = (HyperLink)e.Item.FindControl("lnkShowApprovalStatus"); Label lblTitle = (Label)e.Item.FindControl("lblTitle"); Label lblAPFeedbackName = (Label)e.Item.FindControl("lblAPFeedbackName"); #region This code should be changed String aPFeedbackName = String.Empty; switch (aPApprovalProcessEntity.APStatusID) { case MasterDataConstants.APStatus.CANCELED: aPFeedbackName = "Canceled"; break; case MasterDataConstants.APStatus.COMPLETED: aPFeedbackName = "Complete"; break; case MasterDataConstants.APStatus.IN_PROCESS: aPFeedbackName = "In Process"; break; case MasterDataConstants.APStatus.NEW: aPFeedbackName = "New"; break; case MasterDataConstants.APStatus.ON_HOLD: aPFeedbackName = "On Hold"; break; default: break; } #endregion lblTitle.Text = aPApprovalProcessEntity.Title; lblAPFeedbackName.Text = aPFeedbackName; Label lblAPType = (Label)e.Item.FindControl("lblAPType"); if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.REQUISITION) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/REQ/REQRequisitionDetailsWithApproval.aspx", string.Empty, UrlConstants.REQUISITION_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString(), APMemberFeedbackEntity.FLD_NAME_ProxyEmployeeID, ent.ProxyEmployeeID.ToString() ).ToString(); lblAPType.Text = "Requisition"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.WORK_ORDER) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/PRM/PRMWorkOrderViewWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_WORKORDER_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString(), APMemberFeedbackEntity.FLD_NAME_ProxyEmployeeID, ent.ProxyEmployeeID.ToString() ).ToString(); lblAPType.Text = "Work Order"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.BILL) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/CM/CMBillDetailsWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_CM_BILL_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "Bill"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.PAYABLE_STATEMENT) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/ACC/ACCPostPayableStatementDetailWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_POST_PAYABLE_STATEMENT_DETAIL_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "Payable Statement"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.TRF) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/INV/INVTransferItemDetailsWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_TRANSFER_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "TRF"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.BANK_DEPOSIT) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/AC/ACBankAccountDepositDetailsWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_BANK_ACCOUNT_DEPOSIT_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "BANK DEPOSIT"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.BANK_PAYMENT) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/AC/ACBankAccountPaymentDetailsWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_BANK_ACCOUNT_PAYMENT_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "BANK PAYMENT"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.TEMPORARY_JOURNAL) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/AC/ACJournalDetailsWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_TEMPORARY_JOURNAL_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "JOURNAL ENTRY"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.BANK_ACCOUNT_TRANSFER) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/AC/ACBankAccountTransferDetailsWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_BANK_ACCOUNT_TRANSFER_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "BANK ACCOUNT TRANSFER"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.MRR) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/PRM/PRMMaterialReceiveDetailsWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_MATERIAL_RECEIVE_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "MATERIAL RECEIVE"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.AGREEMENT) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl( "~/CRM/CRMAgreementDetailsWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_AGREEMENT_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "AGREEMENT"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.CONTACT_LIST) { lnkViewDetails.NavigateUrl = UrlHelper.BuildSecureUrl("~/BD/BDProcessAssignedResourceDetailsWithApproval.aspx", string.Empty, UrlConstants.OVERVIEW_PROCESS_ASSIGNED_RESOURCE_ID, aPApprovalProcessEntity.ReferenceID.ToString(), APMemberFeedbackEntity.FLD_NAME_APMemberFeedbackID, ent.APMemberFeedbackID.ToString(), APMemberFeedbackEntity.FLD_NAME_APApprovalProcessID, ent.APApprovalProcessID.ToString() ).ToString(); lblAPType.Text = "CONTACT_LIST"; } else if (aPApprovalProcessEntity.APTypeID == MasterDataConstants.APType.CUSTOM) { lnkViewDetails.NavigateUrl = "#"; lblAPType.Text = "Custom"; } lnkShowApprovalStatus.NavigateUrl = UrlHelper.BuildSecureUrl( "~/AP/APView.aspx", string.Empty, APApprovalProcessEntity.FLD_NAME_APApprovalProcessID, aPApprovalProcessEntity.APApprovalProcessID.ToString() ).ToString(); lnkViewDetails.Target = "_blank"; lnkShowApprovalStatus.Target = "_blank"; } }