protected void btnSubmitForApproval_Click(object sender, EventArgs e) { #region Save Initally SaveBDProcessAssignedResourceEntity(); #endregion #region Approval Process if (ddlAPPanelID != null && ddlAPPanelID.SelectedValue != "0") { Boolean apResult = APRobot.CreateApprovalProcessForNewContactList(_ProcessAssignedResourceID, Int64.Parse(ddlAPPanelID.SelectedValue.ToString())); if (apResult == true) { MiscUtil.ShowMessage(lblMessage, "Approval Process Submited successfully.", UIConstants.MessageType.GREEN); _ProcessAssignedResourceID = 0; IssueCRMContactList_CustomEntityList = new List <CRMContactList_CustomEntity>(); _BDProcessAssignedResourceEntity = new BDProcessAssignedResourceEntity(); PrepareInitialView(); BindBDProcessAssignedResourceMapList(); btnSubmitForApproval.Visible = false; } else { MiscUtil.ShowMessage(lblMessage, "Failed to Submit Approval Process.", UIConstants.MessageType.RED); } //EnableDisableApprovalProcessCheck(); } #endregion }