public CompensationPackagesList getApproverComments() { CompensationPackagesBLL oCompensationPackagesBLL = new CompensationPackagesBLL(); CompensationPackagesBO oCompensationPackagesBO = new CompensationPackagesBO(); CompensationPackagesList oCompensationPackagesList = new CompensationPackagesList(); int projectID = 0; int HHID = 0; if (ViewState["PROJECT_ID"] != null) { projectID = Convert.ToInt32(ViewState["PROJECT_ID"]); } if (ViewState["HHID"] != null) { HHID = Convert.ToInt32(ViewState["HHID"]); } oCompensationPackagesBO.HHID = HHID; oCompensationPackagesBO.ProjectID = projectID; oCompensationPackagesList = oCompensationPackagesBLL.getApproverReviewComments(oCompensationPackagesBO); return(oCompensationPackagesList); }
/// <summary> /// To Update Document as read or unread /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void IsRead_CheckedChanged(Object sender, EventArgs e) { string message = string.Empty; try { CheckBox chk = (CheckBox)sender; Label lblDocID = (Label)chk.Parent.FindControl("lblDocID"); CompensationPackagesBLL objBLL = new CompensationPackagesBLL(); objBLL.UpdateDocReadStatus(Convert.ToInt32(lblDocID.Text.Trim()), Convert.ToString(chk.Checked), Convert.ToInt32(Session["USER_ID"]), Convert.ToInt32(Session["HH_ID"])); if (string.IsNullOrEmpty(message) || message == "" || message == "null") { message = "Data updated successfully."; } if (message != "") { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "Added", "alert('" + message + "');", true); } } catch (Exception ex) { throw ex; } }
/// <summary> /// TO Bind Pkgs Data TO rptPKGDoccatName /// </summary> public void LoadComponestion() { CompensationPackagesBLL COMPACKBLLobj = new CompensationPackagesBLL(); CompensationPackagesList COMPACKList = new CompensationPackagesList(); try { int HHID = 0; if (Session["HH_ID"] != null) { HHID = Convert.ToInt32(Session["HH_ID"].ToString()); } else { Response.Redirect("~/UI/Compensation/PAPList.aspx"); } COMPACKList = COMPACKBLLobj.GetComponestionbyId(HHID); rptPKGDoccatName.DataSource = COMPACKList; rptPKGDoccatName.DataBind(); } catch (Exception ex) { throw ex; } finally { COMPACKBLLobj = null; } }
/// <summary> /// Set data to Child Repeater /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void rptPKGDoccatName_ItemDataBound(object sender, RepeaterItemEventArgs e) { HiddenField hdnCategoryID = e.Item.FindControl("hdnCATpkgdoccatID") as HiddenField; Repeater rpChild = e.Item.FindControl("rptDOCitem") as Repeater;//Child Repeater CompensationPackagesBLL COMPACKBLLobj = new CompensationPackagesBLL(); CompensationPackagesList COMPACKList = new CompensationPackagesList(); COMPACKList = COMPACKBLLobj.getComponestion(Convert.ToInt32(Session["HH_ID"]), Convert.ToInt32(hdnCategoryID.Value), Convert.ToInt32(Session["USER_ID"])); rpChild.DataSource = COMPACKList; rpChild.DataBind(); }