コード例 #1
0
ファイル: index.aspx.cs プロジェクト: Denar87/Asp.Net-Source
        private void GetAttendanceDetails()
        {
            EmployeeDetailsBLL _employeedetailsbll = new EmployeeDetailsBLL();

            try
            {
                string             status              = "";
                string             startdate           = "";
                string             endDate             = "";
                AttendanceDetailsR _attendanceDetailsR = _employeedetailsbll.GetAttendanceDetails();
                if (_attendanceDetailsR != null)
                {
                    lblTotalPresent.Text = _attendanceDetailsR.TotalPresent.ToString();
                    lblTotalAbsent.Text  = _attendanceDetailsR.TotalAbsent.ToString();
                    lblTotalLate.Text    = _attendanceDetailsR.TotalLate.ToString();
                    lblTotalLeave.Text   = _attendanceDetailsR.TotalLeave.ToString();
                    lblTOtlaOt.Text      = _attendanceDetailsR.TotalOT.ToString();
                    lblTotalEmp.Text     = _attendanceDetailsR.CurrentEmployee.ToString();
                    //string mn = cTestChart.FindControl("amni").ToString();
                    //mn = _attendanceDetailsR.TotalPresent.ToString();
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
コード例 #2
0
ファイル: index.aspx.cs プロジェクト: Denar87/Asp.Net-Source
        public static List <AttendanceDetailsd> GetAttendanceDatad()
        {
            EmployeeDetailsBLL _employeedetailsbll = new EmployeeDetailsBLL();
            AttendanceDetailsR _attendanceDetailsR = _employeedetailsbll.GetAttendanceDetails();

            int TotalPresent = Convert.ToInt32(_attendanceDetailsR.TotalPresent.ToString());
            int TotalAbsent  = Convert.ToInt32(_attendanceDetailsR.TotalAbsent.ToString());
            int TotalLate    = Convert.ToInt32(_attendanceDetailsR.TotalLate.ToString());
            int TotalLeave   = Convert.ToInt32(_attendanceDetailsR.TotalLeave.ToString());
            int TotalOt      = Convert.ToInt32(_attendanceDetailsR.TotalOT.ToString());
            int TotalEmp     = Convert.ToInt32(_attendanceDetailsR.CurrentEmployee.ToString());

            List <AttendanceDetailsd> dataAttd = new List <AttendanceDetailsd>()
            {
                new AttendanceDetailsd {
                    totalPresent = "Total", totalAbsent = TotalEmp
                },
                new AttendanceDetailsd {
                    totalPresent = "Present", totalAbsent = TotalPresent
                },
                new AttendanceDetailsd {
                    totalPresent = "Absent", totalAbsent = TotalAbsent
                },
                new AttendanceDetailsd {
                    totalPresent = "Late", totalAbsent = TotalLate
                },
                new AttendanceDetailsd {
                    totalPresent = "Leave", totalAbsent = TotalLeave
                },
                new AttendanceDetailsd {
                    totalPresent = "OT", totalAbsent = TotalOt
                }
            };


            return(dataAttd);
        }