diff --git a/.vs/biometric-attendance-system/v14/.suo b/.vs/biometric-attendance-system/v14/.suo new file mode 100644 index 0000000..0037e4c Binary files /dev/null and b/.vs/biometric-attendance-system/v14/.suo differ diff --git a/biometric-attendance-system.sln b/biometric-attendance-system.sln index 429e230..297f6dc 100644 --- a/biometric-attendance-system.sln +++ b/biometric-attendance-system.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2013 -VisualStudioVersion = 12.0.21005.1 +# Visual Studio 14 +VisualStudioVersion = 14.0.24720.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "biometric-attendance-system", "http://localhost:52190", "{C7523DD8-38F1-4A3A-85A5-81FCF1AAA8A8}" ProjectSection(WebsiteProperties) = preProject diff --git a/biometric-attendance-system/Admin/AddHoliday.aspx b/biometric-attendance-system/Admin/AddHoliday.aspx index 777b942..0657516 100644 --- a/biometric-attendance-system/Admin/AddHoliday.aspx +++ b/biometric-attendance-system/Admin/AddHoliday.aspx @@ -12,80 +12,85 @@ Home   >   Add Holiday    -
+

- -
- - - - - - - - - - -
-
-
- -
- - - - - - -
-
-
- +
+
+ + + + + + + + + + +
+
+
+ +
+
+ + + + + + +
+
+
+ +
+
+
+
+
+ <%-- GridView Starts--%> +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ <%-- GridView Ends --%>

- <%-- GridView Starts--%> -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- <%-- GridView Ends --%>
diff --git a/biometric-attendance-system/Admin/ManageMasterEntries.aspx b/biometric-attendance-system/Admin/ManageMasterEntries.aspx index 557f676..881783d 100644 --- a/biometric-attendance-system/Admin/ManageMasterEntries.aspx +++ b/biometric-attendance-system/Admin/ManageMasterEntries.aspx @@ -12,17 +12,17 @@

- - - - - - + + + + + +
- - - + + +
@@ -34,20 +34,20 @@
-
+

-
+
-
- +
+ Add Department
-
+
@@ -110,20 +110,20 @@
-
+

-
+
-
- +
+ Add Leave
-
+
@@ -185,18 +185,18 @@
-
+
-
- +
+ add Add Role
-
+
@@ -233,7 +233,7 @@  x
-
+
@@ -249,45 +249,45 @@
-
+

-
+
Role:
- + --- Select ----
-
+
Leave:
- + --- Select ----

-
+

-
- +
+ Carry Forward Yes No
-
- +
+ Add Leave For Role
-
+
@@ -354,16 +354,16 @@  x
-
+
Role: - + --- Select ---- - Leave: + Leave: --- Select ---- - + --- Carry Forward ---- Yes No @@ -382,27 +382,27 @@
-
+
Suggestions - + 45 minutes 1 hour 1 hour 15 minutes 1 hour 30 minutes Leaves - + --Select Leave-- Short Leave Half Day Leave -
- +
+ add Add Role
-
+
@@ -449,7 +449,7 @@  x
-
+
Duration
@@ -464,30 +464,30 @@
-
+
-
+
-
+
-
+
-
- +
+ add Add Shift
-
+
diff --git a/biometric-attendance-system/App_Code/Utility.cs b/biometric-attendance-system/App_Code/Utility.cs new file mode 100644 index 0000000..42436dc --- /dev/null +++ b/biometric-attendance-system/App_Code/Utility.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using BAS; +using DALHelper; +using System.Data.SqlClient; +using System.Configuration; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; +using System.IO; +using System.Web.UI; + +/// +/// Summary description for Day +/// +static public class Utility +{ + public static void GenerateExcel(GridView gridViewExcel, string header, string filename, System.Web.UI.Page page) + { + HtmlForm form = new HtmlForm(); + form.Attributes["runat"] = "server"; + + HtmlGenericControl ctrl = new HtmlGenericControl("h1"); + ctrl.InnerHtml = "
"+header+"
"; + + page.Response.ClearContent(); + page.Response.AddHeader("content-disposition", + "attachment;filename="+filename+".xls"); + page.Response.ContentType = "applicatio/excel"; + StringWriter sw = new StringWriter(); ; + HtmlTextWriter htm = new HtmlTextWriter(sw); + + form.Controls.Add(ctrl); + form.Controls.Add(gridViewExcel); + page.Controls.Add(form); + + page.Form.RenderControl(htm); + page.Response.Write(sw.ToString()); + page.Response.End(); + } +} + diff --git a/biometric-attendance-system/App_Data/17thJan2016.sql b/biometric-attendance-system/App_Data/17thJan2016.sql new file mode 100644 index 0000000..6c598f4 Binary files /dev/null and b/biometric-attendance-system/App_Data/17thJan2016.sql differ diff --git a/biometric-attendance-system/Bin/DocumentFormat.OpenXml.dll b/biometric-attendance-system/Bin/DocumentFormat.OpenXml.dll new file mode 100644 index 0000000..53241bd Binary files /dev/null and b/biometric-attendance-system/Bin/DocumentFormat.OpenXml.dll differ diff --git a/biometric-attendance-system/Bin/DocumentFormat.OpenXml.dll.refresh b/biometric-attendance-system/Bin/DocumentFormat.OpenXml.dll.refresh new file mode 100644 index 0000000..9f9bccb Binary files /dev/null and b/biometric-attendance-system/Bin/DocumentFormat.OpenXml.dll.refresh differ diff --git a/biometric-attendance-system/Bin/Microsoft.Office.Interop.Excel.dll b/biometric-attendance-system/Bin/Microsoft.Office.Interop.Excel.dll new file mode 100644 index 0000000..1d7cac7 Binary files /dev/null and b/biometric-attendance-system/Bin/Microsoft.Office.Interop.Excel.dll differ diff --git a/biometric-attendance-system/Bin/Microsoft.Office.Interop.Excel.dll.refresh b/biometric-attendance-system/Bin/Microsoft.Office.Interop.Excel.dll.refresh new file mode 100644 index 0000000..a355b3b Binary files /dev/null and b/biometric-attendance-system/Bin/Microsoft.Office.Interop.Excel.dll.refresh differ diff --git a/biometric-attendance-system/MasterPages/Admin.master b/biometric-attendance-system/MasterPages/Admin.master index 9ba0d4a..9b7aeed 100644 --- a/biometric-attendance-system/MasterPages/Admin.master +++ b/biometric-attendance-system/MasterPages/Admin.master @@ -7,6 +7,7 @@ + diff --git a/biometric-attendance-system/Reports/DailyAbsentReport.aspx b/biometric-attendance-system/Reports/DailyAbsentReport.aspx index 1f272d1..46f442e 100644 --- a/biometric-attendance-system/Reports/DailyAbsentReport.aspx +++ b/biometric-attendance-system/Reports/DailyAbsentReport.aspx @@ -10,10 +10,10 @@ Reports   >   Daily Absent Report   
-
+
-
+
5 minutes 10 minutes @@ -21,15 +21,21 @@ 20 minutes
-
-
-
-
- - -
-
-
+ + + +
+
+
+
+ + +
+
+
+
+ +
@@ -55,7 +61,7 @@
-
+
diff --git a/biometric-attendance-system/Reports/DailyAttendanceBasicReport.aspx b/biometric-attendance-system/Reports/DailyAttendanceBasicReport.aspx index eb95425..8cc0ab5 100644 --- a/biometric-attendance-system/Reports/DailyAttendanceBasicReport.aspx +++ b/biometric-attendance-system/Reports/DailyAttendanceBasicReport.aspx @@ -10,10 +10,10 @@ Reports   >   Daily Attendance Basic   
-
+
-
+
5 minutes 10 minutes @@ -21,15 +21,21 @@ 20 minutes
-
-
-
-
- - -
-
-
+ + + +
+
+
+
+ + +
+
+ +
+
+
@@ -119,8 +125,11 @@
-
+
+
+ +
diff --git a/biometric-attendance-system/Reports/DailyAttendanceBasicReport.aspx.cs b/biometric-attendance-system/Reports/DailyAttendanceBasicReport.aspx.cs index fde3d0e..6388de0 100644 --- a/biometric-attendance-system/Reports/DailyAttendanceBasicReport.aspx.cs +++ b/biometric-attendance-system/Reports/DailyAttendanceBasicReport.aspx.cs @@ -1,12 +1,16 @@ -using iTextSharp.text; +using DocumentFormat.OpenXml.Drawing.Charts; +using iTextSharp.text; using iTextSharp.text.html.simpleparser; using iTextSharp.text.pdf; using System; using System.Collections.Generic; +using System.Data; using System.IO; using System.Linq; +using System.Text; using System.Web; using System.Web.UI; +using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; public partial class Reports_DailyAttendanceBasicReport : System.Web.UI.Page @@ -22,13 +26,17 @@ protected void Calendar1_SelectionChanged(object sender, EventArgs e) } protected void btn_report_Click(object sender, EventArgs e) { - btnExport.Visible = true; + ManageReports objManageReports = new ManageReports(); TimeSpan relaxationTime = new TimeSpan(); relaxationTime = TimeSpan.Parse(ddlRelaxation.SelectedValue.ToString()); var data = objManageReports.GetDataForDailyAttendanceReport(Convert.ToInt32(ddlDepartments.SelectedValue.ToString()), Calendar1.SelectedDate.Date, relaxationTime); grid_dailyAttendance.DataSource = data; grid_dailyAttendance.DataBind(); + btnExport.Visible = true; + btn_export_xl.Visible = true; + + } protected void BindDropDowns() { @@ -37,6 +45,8 @@ protected void BindDropDowns() ddlDepartments.DataTextField = "Name"; ddlDepartments.DataValueField = "Id"; ddlDepartments.DataBind(); + + } @@ -74,4 +84,9 @@ protected void btnExport_Click(object sender, EventArgs e) } } } + + protected void btn_export_xl_Click(object sender, EventArgs e) + { + Utility.GenerateExcel(grid_dailyAttendance,"AKGEC Daily Attendance Report", "Report", this); + } } \ No newline at end of file diff --git a/biometric-attendance-system/Reports/DailyAttendanceDetailedReport.aspx b/biometric-attendance-system/Reports/DailyAttendanceDetailedReport.aspx index 59abdd9..9421d7c 100644 --- a/biometric-attendance-system/Reports/DailyAttendanceDetailedReport.aspx +++ b/biometric-attendance-system/Reports/DailyAttendanceDetailedReport.aspx @@ -10,10 +10,10 @@ Reports   >   Daily Attendance Detailed   
-
+
-
+
5 minutes 10 minutes @@ -22,14 +22,14 @@
-
+


-
+
@@ -127,7 +127,7 @@
-
+
diff --git a/biometric-attendance-system/Reports/DailyLateComers.aspx b/biometric-attendance-system/Reports/DailyLateComers.aspx index ff72d6f..61769d1 100644 --- a/biometric-attendance-system/Reports/DailyLateComers.aspx +++ b/biometric-attendance-system/Reports/DailyLateComers.aspx @@ -10,10 +10,10 @@ Reports   >   Daily Late Comers   
-
+
-
+
5 minutes 10 minutes @@ -21,15 +21,21 @@ 20 minutes
-
-
-
-
- - -
-
-
+ + + +
+
+
+
+ + +
+
+
+
+ +
@@ -95,7 +101,7 @@
-
+
diff --git a/biometric-attendance-system/Reports/DailyPresentReport.aspx b/biometric-attendance-system/Reports/DailyPresentReport.aspx index e51f766..f53f1b1 100644 --- a/biometric-attendance-system/Reports/DailyPresentReport.aspx +++ b/biometric-attendance-system/Reports/DailyPresentReport.aspx @@ -10,10 +10,10 @@ Reports   >   Daily Present Report   
-
+
-
+
5 minutes 10 minutes @@ -21,15 +21,21 @@ 20 minutes
-
-
-
-
- - -
-
-
+ + + +
+
+
+
+ + +
+
+
+
+ +
@@ -95,7 +101,7 @@
-
+
diff --git a/biometric-attendance-system/Reports/LeaveBalanceTable.aspx b/biometric-attendance-system/Reports/LeaveBalanceTable.aspx index 5e89ffc..3a52032 100644 --- a/biometric-attendance-system/Reports/LeaveBalanceTable.aspx +++ b/biometric-attendance-system/Reports/LeaveBalanceTable.aspx @@ -10,27 +10,35 @@ Reports   >   Monthly Leave Balance   
-
- -
-
- Start Date
- -
-
- End Date
- -
-
-
-
- -
-
- -
-
-
+
+ + + + + + +
+
+ Start Date
+ +
+
+ End Date
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +

@@ -103,7 +111,7 @@
- <%--
+ <%--
--%> diff --git a/biometric-attendance-system/Reports/MonthlyAttendanceEmployeeWise.aspx b/biometric-attendance-system/Reports/MonthlyAttendanceEmployeeWise.aspx index 900766b..52c1965 100644 --- a/biometric-attendance-system/Reports/MonthlyAttendanceEmployeeWise.aspx +++ b/biometric-attendance-system/Reports/MonthlyAttendanceEmployeeWise.aspx @@ -10,35 +10,41 @@ Reports   >   Monthly Leave Balance   
-
+
- - + + 5 minutes 10 minutes 15 minutes 20 minutes
-
-
- Start Date
- -
-
- End Date
- -
-
-
-
- -
-
- -
-
-
+ + + +
+
+ Start Date
+ +
+
+ End Date
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +

@@ -46,7 +52,7 @@
-
+
@@ -135,7 +141,7 @@
-
+
@@ -145,7 +151,7 @@
-
+
diff --git a/biometric-attendance-system/Reports/MonthlyAttendanceEmployeeWiseBasic.aspx b/biometric-attendance-system/Reports/MonthlyAttendanceEmployeeWiseBasic.aspx index d1d6ee2..c6d2cf1 100644 --- a/biometric-attendance-system/Reports/MonthlyAttendanceEmployeeWiseBasic.aspx +++ b/biometric-attendance-system/Reports/MonthlyAttendanceEmployeeWiseBasic.aspx @@ -4,7 +4,7 @@
-
+
- - + + 5 minutes 10 minutes 15 minutes 20 minutes
-
-
- Start Date
- -
-
- End Date
- -
-
-
-
- -
-
- -
-
-
+ + + +
+
+ Start Date
+ +
+
+ End Date
+ +
+
+
+
+ +
+
+ +
+
+
+
+
+

-
+
@@ -104,7 +110,7 @@
-
+
@@ -114,7 +120,7 @@
-
+
diff --git a/biometric-attendance-system/Reports/MonthlyLateComers.aspx b/biometric-attendance-system/Reports/MonthlyLateComers.aspx index 41d590f..e1f5d34 100644 --- a/biometric-attendance-system/Reports/MonthlyLateComers.aspx +++ b/biometric-attendance-system/Reports/MonthlyLateComers.aspx @@ -2,97 +2,104 @@ - -
- + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- \ No newline at end of file + diff --git a/biometric-attendance-system/Stylesheets/style.css b/biometric-attendance-system/Stylesheets/style.css new file mode 100644 index 0000000..c82ae1e --- /dev/null +++ b/biometric-attendance-system/Stylesheets/style.css @@ -0,0 +1,15 @@ +table#ContentPlaceHolder1_Calendar1 { + width: 50%; + line-height: 0; + margin: auto auto; +} + +table#ContentPlaceHolder1_Calendar2 { + width: 50%; + line-height: 0; + margin: auto auto; +} + +.row * { + text-align: center !important; +} diff --git a/biometric-attendance-system/Web.config b/biometric-attendance-system/Web.config index 5c79285..fcd68d5 100644 --- a/biometric-attendance-system/Web.config +++ b/biometric-attendance-system/Web.config @@ -9,7 +9,8 @@ - + + diff --git a/biometric-attendance-system/packages.config b/biometric-attendance-system/packages.config index 48a4f54..4e84b5c 100644 --- a/biometric-attendance-system/packages.config +++ b/biometric-attendance-system/packages.config @@ -1,5 +1,7 @@  + + \ No newline at end of file diff --git a/packages/DocumentFormat.OpenXml.2.5/DocumentFormat.OpenXml.2.5.nupkg b/packages/DocumentFormat.OpenXml.2.5/DocumentFormat.OpenXml.2.5.nupkg new file mode 100644 index 0000000..d07f27c Binary files /dev/null and b/packages/DocumentFormat.OpenXml.2.5/DocumentFormat.OpenXml.2.5.nupkg differ diff --git a/packages/DocumentFormat.OpenXml.2.5/lib/DocumentFormat.OpenXml.dll b/packages/DocumentFormat.OpenXml.2.5/lib/DocumentFormat.OpenXml.dll new file mode 100644 index 0000000..53241bd Binary files /dev/null and b/packages/DocumentFormat.OpenXml.2.5/lib/DocumentFormat.OpenXml.dll differ diff --git a/packages/ExcelPackage.1.0.0/ExcelPackage.1.0.0.nupkg b/packages/ExcelPackage.1.0.0/ExcelPackage.1.0.0.nupkg new file mode 100644 index 0000000..68d0b40 Binary files /dev/null and b/packages/ExcelPackage.1.0.0/ExcelPackage.1.0.0.nupkg differ diff --git a/packages/ExcelPackage.1.0.0/lib/Microsoft.Office.Interop.Excel.dll b/packages/ExcelPackage.1.0.0/lib/Microsoft.Office.Interop.Excel.dll new file mode 100644 index 0000000..1d7cac7 Binary files /dev/null and b/packages/ExcelPackage.1.0.0/lib/Microsoft.Office.Interop.Excel.dll differ