protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string strParams = Request.QueryString["params"]; string[] strVal = strParams.Split(','); lblMonthBetween.Text = ""; if (strVal[2] == "O") { lblPaymentFor.Text = "Office: "; } else if (strVal[2] == "B") { lblPaymentFor.Text = "Bank: "; } lblBank.Text = strVal[4]; dtMovement = objPayRptMgr.GetSalaryMovementData(strVal[0], strVal[1], strVal[2], strVal[3], "Y"); grMovement.DataSource = dtMovement; grMovement.DataBind(); if (grMovement.Rows.Count > 0) { grMovement.FooterRow.Cells[0].Text = "Salary Increased/(Decreased) in " + Common.ReturnFullMonthName(strVal[0]) + strVal[1]; grMovement.FooterRow.Cells[0].HorizontalAlign = HorizontalAlign.Left; this.GetFooterDifference(grMovement, 1); } if (dtMovement.Rows.Count > 0) { lblMonthBetween.Text = dtMovement.Rows[0]["MONTHBETWEEN"].ToString().Trim(); lblPreparedBy.Text = objEmpMgr.GetEmpName(dtMovement.Rows[0]["INSERTEDBY"].ToString().Trim()); } dtMovementDetls = objPayRptMgr.GetSalaryMovementData(strVal[0], strVal[1], strVal[2], strVal[3], "N"); grMovementDetls.DataSource = dtMovementDetls; grMovementDetls.DataBind(); if (grMovementDetls.Rows.Count > 0) { this.GetFooterSummary(grMovementDetls, 3); grMovementDetls.FooterRow.Cells[2].Text = "Salary Increased/(Decreased) in " + Common.ReturnFullMonthName(strVal[0]) + strVal[1]; grMovementDetls.FooterRow.Cells[2].HorizontalAlign = HorizontalAlign.Left; btnUpdate.Visible = true; } else { btnUpdate.Visible = false; } this.IniValidationDataTable(9); this.GetValidationResult(); } }