protected void FillGVRequest(string FillBy, string Invoker) { iPartRequestClient objServie = new iPartRequestClient(); try { CustomProfile profile = CustomProfile.GetProfile(); GVRequest.DataSource = null; GVRequest.DataBind(); //New Added By Suresh for GWC string UserType = profile.Personal.UserType.ToString(); //New Added By Suresh for GWC if (FillBy == "UserID") { if (Invoker == "Request") { if (UserType == "User" || UserType == "Requester" || UserType == "Requestor") { GVRequest.DataSource = objServie.GetRequestSummayOfUser(profile.Personal.UserID, profile.DBConnection._constr); } else { GVRequest.DataSource = objServie.GetRequestSummayByUserID(profile.Personal.UserID, profile.DBConnection._constr); } GVRequest.Columns[12].Visible = false; GVRequest.AllowMultiRecordSelection = true; GVRequest.AllowRecordSelection = true; } else if (Invoker == "Issue") { if (UserType == "User" || UserType == "Requester" || UserType == "Requestor") { GVRequest.DataSource = objServie.GetRequestSummayOfUserIssue(profile.Personal.UserID, profile.DBConnection._constr); } else { GVRequest.DataSource = objServie.GetRequestSummayByUserIDIssue(profile.Personal.UserID, profile.DBConnection._constr); } GVRequest.Columns[12].Visible = true; GVRequest.AllowMultiRecordSelection = true; GVRequest.AllowRecordSelection = true; } } else if (FillBy == "SiteIDs") { GVRequest.DataSource = objServie.GetRequestSummayBySiteIDs(Session["SiteIDs"].ToString(), profile.DBConnection._constr); } GVRequest.DataBind(); } catch { } finally { objServie.Close(); } }