private string GetEmployeetype(string old)
        {
            try
            {
                if (old != "")
                {
                    Attendance.BAL.Report obj = new Attendance.BAL.Report();
                    DataTable ds = obj.GetAllEmployeetypes();
                    DataTable dt = new DataTable();
                    DataView dv = ds.DefaultView;
                    dv.RowFilter = "EmpTypeID=" + Convert.ToInt32(old);
                    dt = dv.ToTable();
                    old = dt.Rows[0]["EmpType"].ToString();
                }
            }
            catch (Exception ex)
            {

            }
            return old;
        }
Пример #2
0
 private string GetLocations(string value)
 {
     try
     {
         Attendance.BAL.Report obj = new Attendance.BAL.Report();
         DataTable dt = obj.GetLocations();
         DataTable dt1 = new DataTable();
         DataView dv = dt.DefaultView;
         dv.RowFilter = "locationID=" + Convert.ToInt32(value);
         dt1 = dv.ToTable();
         value = dt1.Rows[0]["LocationName"].ToString();
     }
     catch (Exception ex)
     {
     }
     return value;
 }