Example #1
0
    private void OpenRecord()
    {
        dtSalaryHead = objPayrollMgr.SelectSalaryHead(0, "N");

        dtBonus = objPayrollMgr.SelectBonusPackage(0);

        grBonus.DataSource = dtBonus;
        grBonus.DataBind();

        foreach (GridViewRow gRow in grBonus.Rows)
        {
            gRow.Cells[3].Text = Convert.ToString(Math.Round(Convert.ToDouble(Common.ReturnZeroForNull(gRow.Cells[3].Text)), 2));
            gRow.Cells[6].Text = Convert.ToString(Math.Round(Convert.ToDouble(Common.ReturnZeroForNull(gRow.Cells[6].Text)), 2));
        }

        dtSalaryHead = objPayrollMgr.SelectSalaryHead(0, "N");
        this.Bind_DdlSalaryHead();

        dtCurr = objPayrollMgr.SelectCurrencyList(0);
        this.Bind_DdlCurrency();
    }