protected void btnUpdatePFLoan_Click(object sender, EventArgs e) { if (objLoanMgr.IsCurrentMonthLedgerExist(ddlMonth.SelectedValue.Trim(), ddlFiscalYear.SelectedValue.Trim(), "PF", "LOAN") == false) { DataTable dtEmpPayroll = this.GeneratePayrollReport("A", "", ddlMonth.SelectedValue.Trim(), ddlYear.SelectedValue.Trim(), "", "S"); objLoanMgr.InsertPFLoanLedgerData(dtEmpPayroll, ddlMonth.SelectedValue.Trim(), ddlYear.SelectedValue.Trim(), ddlFiscalYear.SelectedValue.Trim(), "PF", Session["USERID"].ToString().Trim(), Common.SetDateTime(DateTime.Now.ToString()), objPayrollMgr.GetPrevPFFisYr(ddlFiscalYear.SelectedValue.Trim())); lblMsg.Text = ddlMonth.SelectedItem.Text.Trim() + " PF Loan Ledger Prepared Successfully."; } else { lblMsg.Text = ddlMonth.SelectedItem.Text.Trim() + " PF Loan Ledger has Already Prepared."; } }