private void GetProfileIncreamentRejection(int reqId) { try { DataTable dtReqReje = new DataTable(); DataSet dsRej = new DataSet(); dsRej = uploadCommonBo.RequestWiseRejects(reqId); dtReqReje = dsRej.Tables[0]; if (Cache["RequestReject" + userVo.UserId.ToString()] == null) { Cache.Insert("RequestReject" + userVo.UserId.ToString(), dtReqReje); } else { Cache.Remove("RequestReject" + userVo.UserId.ToString()); Cache.Insert("RequestReject" + userVo.UserId.ToString(), dtReqReje); } if (transactionId == 10) { rgKycRejectlist.DataSource = dtReqReje; rgKycRejectlist.DataBind(); rgKycRejectlist.Visible = true; gvProfileIncreamenetReject.Visible = false; gvSIPReject.Visible = false; btnDelete.Visible = false; btnReProcess.Visible = false; LinkButton2.Visible = false; } if (transactionId == 13) { gvProfileIncreamenetReject.Visible = false; rgKycRejectlist.Visible = false; gvSIPReject.Visible = true; gvSIPReject.MasterTableView.GetColumn("ReqId").Visible = true; gvSIPReject.MasterTableView.GetColumn("InvName").Visible = true; gvSIPReject.MasterTableView.GetColumn("Pan").Visible = true; gvSIPReject.MasterTableView.GetColumn("FolioNo").Visible = true; gvSIPReject.MasterTableView.GetColumn("Scheme").Visible = true; gvSIPReject.MasterTableView.GetColumn("AUTOTRNO").Visible = true; gvSIPReject.MasterTableView.GetColumn("AUTTRNTYP").Visible = true; gvSIPReject.MasterTableView.GetColumn("REGDATE").Visible = true; gvSIPReject.MasterTableView.GetColumn("AUTOAMOUN").Visible = true; gvSIPReject.MasterTableView.GetColumn("Product").Visible = true; btnDelete.Visible = false; Button1.Visible = true; } //else //{ // gvProfileIncreamenetReject.DataSource = dtReqReje; // gvProfileIncreamenetReject.DataBind(); // gvProfileIncreamenetReject.Visible = true; //} if (transactionId == 3 || transactionId == 4) { gvSIPReject.Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("ProductCode").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("FolioNo").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("BranchAdrLine1").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("BranchAdrLine2").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("BranchAdrLine3").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("BranchAdrPinCode").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("BranchAdrState").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("BranchAdrCountry").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("BrokerCode").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("SchemeName").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("TransactionNum").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("TransactionDate").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("Price").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("Units").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("Amount").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("STT").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("BrokeragePer").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn(" BrokerageAmount").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("UserTransactionNo").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("TransactionType").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("TransactionNature").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("TransactionHead").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("TransactionDescription").Visible = false; } else if (transactionId == 8) { gvSIPReject.Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("ProductCode").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("FolioNo").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("BranchAdrLine1").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("BranchAdrLine2").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("BranchAdrLine3").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("BranchAdrPinCode").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("BranchAdrState").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("BranchAdrCountry").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("BrokerCode").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("SchemeName").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("TransactionNum").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("TransactionDate").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("Price").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("Units").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("Amount").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("STT").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("BrokeragePer").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn(" BrokerageAmount").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("UserTransactionNo").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("TransactionType").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("TransactionNature").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("TransactionHead").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("TransactionDescription").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("ClientCode").Visible = false; } else if (transactionId == 9) { gvSIPReject.Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("ProductCode").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("FolioNo").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("BranchAdrLine1").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("BranchAdrLine2").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("BranchAdrLine3").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("BranchAdrPinCode").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("BranchAdrState").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("BranchAdrCountry").Visible = false; gvProfileIncreamenetReject.MasterTableView.GetColumn("BrokerCode").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("SchemeName").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("TransactionNum").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("TransactionDate").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("Price").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("Units").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("Amount").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("STT").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("BrokeragePer").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn(" BrokerageAmount").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("UserTransactionNo").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("TransactionType").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("TransactionNature").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("TransactionHead").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("TransactionDescription").Visible = true; gvProfileIncreamenetReject.MasterTableView.GetColumn("ClientCode").Visible = false; } } catch (BaseApplicationException Ex) { throw Ex; } }