locked
Function evaluation was aborted. RRS feed

  • Question

  • User-508406844 posted

    hi..just find out find was the error i did

    public Payroll_GReportinfolist DBGReportRetrieve(string empFName, DateTime SalDate)

    {

     

    objGRlist =
    new Payroll_GReportinfolist();

    DataSet ds = null;

    try

    {

    if ((null != empFName) && (empFName.Length > 0))

    {

    ds =
    new DataSet();

    DBWrapper dbwrp = new DBWrapper();

    SqlParameter[] para = new SqlParameter[2];

    para[0] = new SqlParameter("@empFName", empFName);

    para[1] = new SqlParameter("@SalDate", SalDate);

    DBWrapper.OpenConnection();

    ds = DBWrapper.RetrieveRecords(
    "SP_SELECT_GREPORT",para);if ((null != ds) && (ds.Tables.Count > 0))

    {

    objGRinfo = null;

    foreach (DataRow dr in ds.Tables[0].Rows)

    {

    objGRinfo =
    new Payroll_GReportinfo();

     

    objGRinfo.empId = dr[
    "empId"].ToString();

    objGRinfo.Grade = dr["Grade"].ToString();

    (DateTime)objGRinfo.EmpDate = Convert.ToDateTime(dr["EmpDate"]);

    objGRinfo.Basicpay = Convert.ToDecimal(dr["Basicpay"]);

    objGRinfo.Gradeallowance = Convert.ToInt16(dr["Gradeallowance"]);

    objGRinfo.TAX = Convert.ToDecimal(dr["Tax"]);

    objGRinfo.ProfessionalTax = Convert.ToDecimal(dr["ProfessionalTax"]);

    objGRinfo.Total = Convert.ToDecimal(dr["Total"]);

    objGRinfo.SalDate = Convert.ToDateTime(dr["SalDate"]);

     

    objGRlist.add(objGRinfo);

    }

    }

     

    }

    DBWrapper.CloseConnection();

    }

    catch (Exception ex)

    {

    throw ex;

    }

    return objGRlist;

    }

    In  this code it works fine.. but if i check the data in "objGRinfo" In "EmpDate" i getting this error  " Function evaluation was aborted."..

     

    please check this out

    Saturday, August 23, 2008 7:59 AM

Answers

  • User-508406844 posted

    hi friends.. I have find solution of my self..Thank you

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, September 6, 2008 7:56 AM

All replies