diff --git a/.vs/UtopiaAttService/v16/.suo b/.vs/UtopiaAttService/v16/.suo index 3e7b733..2ab21d3 100644 Binary files a/.vs/UtopiaAttService/v16/.suo and b/.vs/UtopiaAttService/v16/.suo differ diff --git a/.vs/UtopiaAttSoftware/v16/.suo b/.vs/UtopiaAttSoftware/v16/.suo new file mode 100644 index 0000000..f8c6e2d Binary files /dev/null and b/.vs/UtopiaAttSoftware/v16/.suo differ diff --git a/.vs/UtopiaAttSoftware/v17/.suo b/.vs/UtopiaAttSoftware/v17/.suo new file mode 100644 index 0000000..e3dd2be Binary files /dev/null and b/.vs/UtopiaAttSoftware/v17/.suo differ diff --git a/LoginForm.Designer.cs b/LoginForm.Designer.cs index d04c628..eae4114 100644 --- a/LoginForm.Designer.cs +++ b/LoginForm.Designer.cs @@ -100,7 +100,7 @@ namespace UtopiaAttService // // pb_ShowPassword // - this.pb_ShowPassword.Image = global::UtopiaAttService.Properties.Resources.eye; + this.pb_ShowPassword.Image = global::UtopiaAttSoftware.Properties.Resources.eye; this.pb_ShowPassword.Location = new System.Drawing.Point(190, 128); this.pb_ShowPassword.Name = "pb_ShowPassword"; this.pb_ShowPassword.Size = new System.Drawing.Size(25, 25); diff --git a/MainForm.Designer.cs b/MainForm.Designer.cs index 1cabe98..a6a0f3b 100644 --- a/MainForm.Designer.cs +++ b/MainForm.Designer.cs @@ -32,7 +32,7 @@ namespace FaceTransfer this.label1 = new System.Windows.Forms.Label(); this.lbl_ip_to = new System.Windows.Forms.Label(); this.btn_Transfer = new System.Windows.Forms.Button(); - this.tabControl1 = new System.Windows.Forms.TabControl(); + this.tabControl = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.panel2 = new System.Windows.Forms.Panel(); this.cb_machineFrom = new System.Windows.Forms.ComboBox(); @@ -60,6 +60,13 @@ namespace FaceTransfer this.btnAllow = new System.Windows.Forms.Button(); this.btnSaveDb = new System.Windows.Forms.Button(); this.lbl_totalemp = new System.Windows.Forms.Label(); + this.panel9 = new System.Windows.Forms.Panel(); + this.label19 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.button1 = new System.Windows.Forms.Button(); + this.label21 = new System.Windows.Forms.Label(); + this.comboBox1 = new System.Windows.Forms.ComboBox(); this.panel3 = new System.Windows.Forms.Panel(); this.label4 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); @@ -77,10 +84,11 @@ namespace FaceTransfer this.GvRegisteredUsers = new System.Windows.Forms.DataGridView(); this.tabPage5 = new System.Windows.Forms.TabPage(); this.GvFaceTemplate = new System.Windows.Forms.DataGridView(); + this.btmGetTemplate = new System.Windows.Forms.Button(); this.panel6 = new System.Windows.Forms.Panel(); + this.cbListMachIp = new System.Windows.Forms.CheckedListBox(); this.btn_getFaceTemplates = new System.Windows.Forms.Button(); this.label11 = new System.Windows.Forms.Label(); - this.btmGetTemplate = new System.Windows.Forms.Button(); this.cbMachIp = new System.Windows.Forms.ComboBox(); this.label10 = new System.Windows.Forms.Label(); this.txtEmpoyeeCd = new System.Windows.Forms.TextBox(); @@ -96,6 +104,7 @@ namespace FaceTransfer this.btn_transferNew = new System.Windows.Forms.Button(); this.gv = new System.Windows.Forms.DataGridView(); this.panel8 = new System.Windows.Forms.Panel(); + this.isAdmin = new System.Windows.Forms.CheckBox(); this.label18 = new System.Windows.Forms.Label(); this.txtSearchNew = new System.Windows.Forms.TextBox(); this.btn_get_face = new System.Windows.Forms.Button(); @@ -104,34 +113,39 @@ namespace FaceTransfer this.label15 = new System.Windows.Forms.Label(); this.label16 = new System.Windows.Forms.Label(); this.label17 = new System.Windows.Forms.Label(); - this.pictureBox1 = new System.Windows.Forms.PictureBox(); - this.btnReset = new System.Windows.Forms.Button(); - this.panel5 = new System.Windows.Forms.Panel(); - this.btn_logout = new System.Windows.Forms.Button(); this.tabPage8 = new System.Windows.Forms.TabPage(); - this.panel9 = new System.Windows.Forms.Panel(); - this.label19 = new System.Windows.Forms.Label(); - this.label20 = new System.Windows.Forms.Label(); - this.textBox2 = new System.Windows.Forms.TextBox(); - this.button1 = new System.Windows.Forms.Button(); - this.label21 = new System.Windows.Forms.Label(); - this.comboBox1 = new System.Windows.Forms.ComboBox(); + this.txt_total = new System.Windows.Forms.Label(); + this.gvZktecoData = new System.Windows.Forms.DataGridView(); + this.panel10 = new System.Windows.Forms.Panel(); this.label22 = new System.Windows.Forms.Label(); this.label23 = new System.Windows.Forms.Label(); this.txt_searchZkteco = new System.Windows.Forms.TextBox(); this.btn_livedata_get = new System.Windows.Forms.Button(); this.label24 = new System.Windows.Forms.Label(); this.cb_zkteco = new System.Windows.Forms.ComboBox(); - this.panel10 = new System.Windows.Forms.Panel(); - this.gvZktecoData = new System.Windows.Forms.DataGridView(); - this.txt_total = new System.Windows.Forms.Label(); - this.tabControl1.SuspendLayout(); + this.tabPage9 = new System.Windows.Forms.TabPage(); + this.btn_sync_time = new System.Windows.Forms.Button(); + this.panel11 = new System.Windows.Forms.Panel(); + this.btn_getTime = new System.Windows.Forms.Button(); + this.txt_showTime = new System.Windows.Forms.TextBox(); + this.label28 = new System.Windows.Forms.Label(); + this.cb_syncMachineip = new System.Windows.Forms.ComboBox(); + this.label26 = new System.Windows.Forms.Label(); + this.cb_2 = new System.Windows.Forms.CheckBox(); + this.cb_1 = new System.Windows.Forms.CheckBox(); + this.label25 = new System.Windows.Forms.Label(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.btnReset = new System.Windows.Forms.Button(); + this.panel5 = new System.Windows.Forms.Panel(); + this.btn_logout = new System.Windows.Forms.Button(); + this.tabControl.SuspendLayout(); this.tabPage1.SuspendLayout(); this.panel2.SuspendLayout(); this.tabPage2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.GvEmpData)).BeginInit(); this.panel1.SuspendLayout(); this.tabPage3.SuspendLayout(); + this.panel9.SuspendLayout(); this.panel3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.DataGvMachine)).BeginInit(); this.tabPage4.SuspendLayout(); @@ -145,11 +159,12 @@ namespace FaceTransfer this.tabPage7.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gv)).BeginInit(); this.panel8.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.tabPage8.SuspendLayout(); - this.panel9.SuspendLayout(); - this.panel10.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gvZktecoData)).BeginInit(); + this.panel10.SuspendLayout(); + this.tabPage9.SuspendLayout(); + this.panel11.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // // label1 @@ -186,21 +201,23 @@ namespace FaceTransfer this.btn_Transfer.UseVisualStyleBackColor = false; this.btn_Transfer.Click += new System.EventHandler(this.Btn_Transfer_Click); // - // tabControl1 + // tabControl // - this.tabControl1.Controls.Add(this.tabPage1); - this.tabControl1.Controls.Add(this.tabPage2); - this.tabControl1.Controls.Add(this.tabPage3); - this.tabControl1.Controls.Add(this.tabPage4); - this.tabControl1.Controls.Add(this.tabPage5); - this.tabControl1.Controls.Add(this.tabPage6); - this.tabControl1.Controls.Add(this.tabPage7); - this.tabControl1.Controls.Add(this.tabPage8); - this.tabControl1.Location = new System.Drawing.Point(8, 117); - this.tabControl1.Name = "tabControl1"; - this.tabControl1.SelectedIndex = 0; - this.tabControl1.Size = new System.Drawing.Size(542, 670); - this.tabControl1.TabIndex = 5; + this.tabControl.Controls.Add(this.tabPage1); + this.tabControl.Controls.Add(this.tabPage2); + this.tabControl.Controls.Add(this.tabPage3); + this.tabControl.Controls.Add(this.tabPage4); + this.tabControl.Controls.Add(this.tabPage5); + this.tabControl.Controls.Add(this.tabPage6); + this.tabControl.Controls.Add(this.tabPage7); + this.tabControl.Controls.Add(this.tabPage8); + this.tabControl.Controls.Add(this.tabPage9); + this.tabControl.Location = new System.Drawing.Point(8, 117); + this.tabControl.Name = "tabControl"; + this.tabControl.SelectedIndex = 0; + this.tabControl.Size = new System.Drawing.Size(542, 670); + this.tabControl.TabIndex = 5; + this.tabControl.SelectedIndexChanged += new System.EventHandler(this.tabControl_SelectedIndexChanged); // // tabPage1 // @@ -512,6 +529,80 @@ namespace FaceTransfer this.lbl_totalemp.TabIndex = 19; this.lbl_totalemp.Text = "Total Emp :"; // + // panel9 + // + this.panel9.BackColor = System.Drawing.SystemColors.Control; + this.panel9.Controls.Add(this.label19); + this.panel9.Controls.Add(this.label20); + this.panel9.Controls.Add(this.textBox2); + this.panel9.Controls.Add(this.button1); + this.panel9.Controls.Add(this.label21); + this.panel9.Controls.Add(this.comboBox1); + this.panel9.Location = new System.Drawing.Point(6, 6); + this.panel9.Name = "panel9"; + this.panel9.Size = new System.Drawing.Size(525, 114); + this.panel9.TabIndex = 18; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.BackColor = System.Drawing.Color.Transparent; + this.label19.Font = new System.Drawing.Font("Bahnschrift SemiCondensed", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label19.Location = new System.Drawing.Point(194, 9); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(109, 23); + this.label19.TabIndex = 22; + this.label19.Text = "Machine Data"; + // + // label20 + // + this.label20.AutoSize = true; + this.label20.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Italic); + this.label20.Location = new System.Drawing.Point(18, 86); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(54, 16); + this.label20.TabIndex = 21; + this.label20.Text = "Search:"; + // + // textBox2 + // + this.textBox2.Location = new System.Drawing.Point(94, 83); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(209, 20); + this.textBox2.TabIndex = 20; + this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged); + // + // button1 + // + this.button1.BackColor = System.Drawing.Color.MintCream; + this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button1.Location = new System.Drawing.Point(459, 60); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(63, 36); + this.button1.TabIndex = 19; + this.button1.Text = "Get"; + this.button1.UseVisualStyleBackColor = false; + this.button1.Click += new System.EventHandler(this.btnGetRecord_Click); + // + // label21 + // + this.label21.AutoSize = true; + this.label21.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Italic); + this.label21.Location = new System.Drawing.Point(15, 38); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(76, 16); + this.label21.TabIndex = 18; + this.label21.Text = "Machine ip:"; + // + // comboBox1 + // + this.comboBox1.Font = new System.Drawing.Font("Microsoft Tai Le", 9.75F); + this.comboBox1.FormattingEnabled = true; + this.comboBox1.Location = new System.Drawing.Point(94, 32); + this.comboBox1.Name = "comboBox1"; + this.comboBox1.Size = new System.Drawing.Size(428, 24); + this.comboBox1.TabIndex = 17; + // // panel3 // this.panel3.BackColor = System.Drawing.SystemColors.Control; @@ -553,7 +644,6 @@ namespace FaceTransfer this.txt_search2.Name = "txt_search2"; this.txt_search2.Size = new System.Drawing.Size(359, 20); this.txt_search2.TabIndex = 20; - this.txt_search2.TextChanged += new System.EventHandler(this.txt_search2_TextChanged); // // btnGetRecord // @@ -626,11 +716,11 @@ namespace FaceTransfer this.label6.AutoSize = true; this.label6.BackColor = System.Drawing.Color.Transparent; this.label6.Font = new System.Drawing.Font("Bahnschrift SemiCondensed", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label6.Location = new System.Drawing.Point(102, 15); + this.label6.Location = new System.Drawing.Point(105, 20); this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(300, 23); + this.label6.Size = new System.Drawing.Size(285, 23); this.label6.TabIndex = 23; - this.label6.Text = "List Of Registered Users In All Machines"; + this.label6.Text = "Registered Users List in the Database"; // // lbl_emp // @@ -673,7 +763,6 @@ namespace FaceTransfer // // tabPage5 // - this.tabPage5.Controls.Add(this.GvFaceTemplate); this.tabPage5.Controls.Add(this.panel6); this.tabPage5.Location = new System.Drawing.Point(4, 22); this.tabPage5.Name = "tabPage5"; @@ -687,28 +776,52 @@ namespace FaceTransfer // this.GvFaceTemplate.BackgroundColor = System.Drawing.SystemColors.Control; this.GvFaceTemplate.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.GvFaceTemplate.Location = new System.Drawing.Point(3, 215); + this.GvFaceTemplate.Location = new System.Drawing.Point(6, 163); this.GvFaceTemplate.Name = "GvFaceTemplate"; this.GvFaceTemplate.RowHeadersVisible = false; this.GvFaceTemplate.RowHeadersWidth = 200; - this.GvFaceTemplate.Size = new System.Drawing.Size(522, 397); + this.GvFaceTemplate.Size = new System.Drawing.Size(516, 64); this.GvFaceTemplate.TabIndex = 21; // + // btmGetTemplate + // + this.btmGetTemplate.BackColor = System.Drawing.Color.MintCream; + this.btmGetTemplate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btmGetTemplate.Location = new System.Drawing.Point(460, 589); + this.btmGetTemplate.Name = "btmGetTemplate"; + this.btmGetTemplate.Size = new System.Drawing.Size(63, 36); + this.btmGetTemplate.TabIndex = 27; + this.btmGetTemplate.Text = "Transfer"; + this.btmGetTemplate.UseVisualStyleBackColor = false; + this.btmGetTemplate.Click += new System.EventHandler(this.btmGetTemplate_Click); + // // panel6 // this.panel6.BackColor = System.Drawing.SystemColors.Control; + this.panel6.Controls.Add(this.cbListMachIp); this.panel6.Controls.Add(this.btn_getFaceTemplates); - this.panel6.Controls.Add(this.label11); this.panel6.Controls.Add(this.btmGetTemplate); + this.panel6.Controls.Add(this.GvFaceTemplate); + this.panel6.Controls.Add(this.label11); this.panel6.Controls.Add(this.cbMachIp); this.panel6.Controls.Add(this.label10); this.panel6.Controls.Add(this.txtEmpoyeeCd); this.panel6.Controls.Add(this.label8); this.panel6.Location = new System.Drawing.Point(6, 7); this.panel6.Name = "panel6"; - this.panel6.Size = new System.Drawing.Size(522, 202); + this.panel6.Size = new System.Drawing.Size(528, 631); this.panel6.TabIndex = 20; // + // cbListMachIp + // + this.cbListMachIp.FormattingEnabled = true; + this.cbListMachIp.HorizontalScrollbar = true; + this.cbListMachIp.Location = new System.Drawing.Point(4, 233); + this.cbListMachIp.Name = "cbListMachIp"; + this.cbListMachIp.Size = new System.Drawing.Size(519, 349); + this.cbListMachIp.TabIndex = 30; + this.cbListMachIp.SelectedIndexChanged += new System.EventHandler(this.cbListMachIp_SelectedIndexChanged); + // // btn_getFaceTemplates // this.btn_getFaceTemplates.BackColor = System.Drawing.Color.MintCream; @@ -731,18 +844,6 @@ namespace FaceTransfer this.label11.TabIndex = 29; this.label11.Text = "Machine ip:"; // - // btmGetTemplate - // - this.btmGetTemplate.BackColor = System.Drawing.Color.MintCream; - this.btmGetTemplate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btmGetTemplate.Location = new System.Drawing.Point(457, 163); - this.btmGetTemplate.Name = "btmGetTemplate"; - this.btmGetTemplate.Size = new System.Drawing.Size(63, 36); - this.btmGetTemplate.TabIndex = 27; - this.btmGetTemplate.Text = "Transfer"; - this.btmGetTemplate.UseVisualStyleBackColor = false; - this.btmGetTemplate.Click += new System.EventHandler(this.btmGetTemplate_Click); - // // cbMachIp // this.cbMachIp.Font = new System.Drawing.Font("Microsoft Tai Le", 9.75F); @@ -751,6 +852,7 @@ namespace FaceTransfer this.cbMachIp.Name = "cbMachIp"; this.cbMachIp.Size = new System.Drawing.Size(515, 24); this.cbMachIp.TabIndex = 28; + this.cbMachIp.Visible = false; // // label10 // @@ -889,6 +991,7 @@ namespace FaceTransfer // panel8 // this.panel8.BackColor = System.Drawing.SystemColors.Control; + this.panel8.Controls.Add(this.isAdmin); this.panel8.Controls.Add(this.label18); this.panel8.Controls.Add(this.txtSearchNew); this.panel8.Controls.Add(this.btn_get_face); @@ -902,6 +1005,17 @@ namespace FaceTransfer this.panel8.Size = new System.Drawing.Size(522, 178); this.panel8.TabIndex = 22; // + // isAdmin + // + this.isAdmin.AutoSize = true; + this.isAdmin.Location = new System.Drawing.Point(440, 27); + this.isAdmin.Name = "isAdmin"; + this.isAdmin.Size = new System.Drawing.Size(66, 17); + this.isAdmin.TabIndex = 32; + this.isAdmin.Text = "Is Admin"; + this.isAdmin.UseVisualStyleBackColor = true; + this.isAdmin.CheckedChanged += new System.EventHandler(this.isAdmin_CheckedChanged); + // // label18 // this.label18.AutoSize = true; @@ -981,47 +1095,6 @@ namespace FaceTransfer this.label17.TabIndex = 24; this.label17.Text = "ZKTEO FACE TRANSFER"; // - // pictureBox1 - // - this.pictureBox1.Image = global::UtopiaAttService.Properties.Resources.logo_dark; - this.pictureBox1.Location = new System.Drawing.Point(144, 12); - this.pictureBox1.Name = "pictureBox1"; - this.pictureBox1.Size = new System.Drawing.Size(244, 99); - this.pictureBox1.TabIndex = 6; - this.pictureBox1.TabStop = false; - // - // btnReset - // - this.btnReset.BackColor = System.Drawing.Color.MintCream; - this.btnReset.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnReset.Location = new System.Drawing.Point(416, 789); - this.btnReset.Name = "btnReset"; - this.btnReset.Size = new System.Drawing.Size(134, 35); - this.btnReset.TabIndex = 7; - this.btnReset.Text = "Reset"; - this.btnReset.UseVisualStyleBackColor = false; - this.btnReset.Click += new System.EventHandler(this.btnReset_Click); - // - // panel5 - // - this.panel5.BackColor = System.Drawing.SystemColors.ActiveCaptionText; - this.panel5.Location = new System.Drawing.Point(-1, -4); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(555, 10); - this.panel5.TabIndex = 8; - // - // btn_logout - // - this.btn_logout.BackColor = System.Drawing.Color.Transparent; - this.btn_logout.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btn_logout.Location = new System.Drawing.Point(466, 12); - this.btn_logout.Name = "btn_logout"; - this.btn_logout.Size = new System.Drawing.Size(84, 35); - this.btn_logout.TabIndex = 9; - this.btn_logout.Text = "Logout"; - this.btn_logout.UseVisualStyleBackColor = false; - this.btn_logout.Click += new System.EventHandler(this.btn_logout_Click); - // // tabPage8 // this.tabPage8.Controls.Add(this.txt_total); @@ -1035,79 +1108,38 @@ namespace FaceTransfer this.tabPage8.Text = "Zkteco Live data"; this.tabPage8.UseVisualStyleBackColor = true; // - // panel9 + // txt_total // - this.panel9.BackColor = System.Drawing.SystemColors.Control; - this.panel9.Controls.Add(this.label19); - this.panel9.Controls.Add(this.label20); - this.panel9.Controls.Add(this.textBox2); - this.panel9.Controls.Add(this.button1); - this.panel9.Controls.Add(this.label21); - this.panel9.Controls.Add(this.comboBox1); - this.panel9.Location = new System.Drawing.Point(6, 6); - this.panel9.Name = "panel9"; - this.panel9.Size = new System.Drawing.Size(525, 114); - this.panel9.TabIndex = 18; + this.txt_total.AutoSize = true; + this.txt_total.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Italic); + this.txt_total.Location = new System.Drawing.Point(6, 614); + this.txt_total.Name = "txt_total"; + this.txt_total.Size = new System.Drawing.Size(76, 16); + this.txt_total.TabIndex = 21; + this.txt_total.Text = "Total Emp :"; // - // label19 + // gvZktecoData // - this.label19.AutoSize = true; - this.label19.BackColor = System.Drawing.Color.Transparent; - this.label19.Font = new System.Drawing.Font("Bahnschrift SemiCondensed", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label19.Location = new System.Drawing.Point(194, 9); - this.label19.Name = "label19"; - this.label19.Size = new System.Drawing.Size(109, 23); - this.label19.TabIndex = 22; - this.label19.Text = "Machine Data"; + this.gvZktecoData.BackgroundColor = System.Drawing.SystemColors.Control; + this.gvZktecoData.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.gvZktecoData.Location = new System.Drawing.Point(4, 126); + this.gvZktecoData.Name = "gvZktecoData"; + this.gvZktecoData.Size = new System.Drawing.Size(525, 476); + this.gvZktecoData.TabIndex = 20; // - // label20 + // panel10 // - this.label20.AutoSize = true; - this.label20.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Italic); - this.label20.Location = new System.Drawing.Point(18, 86); - this.label20.Name = "label20"; - this.label20.Size = new System.Drawing.Size(54, 16); - this.label20.TabIndex = 21; - this.label20.Text = "Search:"; - // - // textBox2 - // - this.textBox2.Location = new System.Drawing.Point(94, 87); - this.textBox2.Name = "textBox2"; - this.textBox2.Size = new System.Drawing.Size(359, 20); - this.textBox2.TabIndex = 20; - this.textBox2.TextChanged += new System.EventHandler(this.txt_search2_TextChanged); - // - // button1 - // - this.button1.BackColor = System.Drawing.Color.MintCream; - this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.button1.Location = new System.Drawing.Point(459, 60); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(63, 36); - this.button1.TabIndex = 19; - this.button1.Text = "Get"; - this.button1.UseVisualStyleBackColor = false; - this.button1.Click += new System.EventHandler(this.btnGetRecord_Click); - // - // label21 - // - this.label21.AutoSize = true; - this.label21.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Italic); - this.label21.Location = new System.Drawing.Point(15, 38); - this.label21.Name = "label21"; - this.label21.Size = new System.Drawing.Size(76, 16); - this.label21.TabIndex = 18; - this.label21.Text = "Machine ip:"; - // - // comboBox1 - // - this.comboBox1.Font = new System.Drawing.Font("Microsoft Tai Le", 9.75F); - this.comboBox1.FormattingEnabled = true; - this.comboBox1.Location = new System.Drawing.Point(94, 32); - this.comboBox1.Name = "comboBox1"; - this.comboBox1.Size = new System.Drawing.Size(428, 24); - this.comboBox1.TabIndex = 17; + this.panel10.BackColor = System.Drawing.SystemColors.Control; + this.panel10.Controls.Add(this.label22); + this.panel10.Controls.Add(this.label23); + this.panel10.Controls.Add(this.txt_searchZkteco); + this.panel10.Controls.Add(this.btn_livedata_get); + this.panel10.Controls.Add(this.label24); + this.panel10.Controls.Add(this.cb_zkteco); + this.panel10.Location = new System.Drawing.Point(4, 6); + this.panel10.Name = "panel10"; + this.panel10.Size = new System.Drawing.Size(525, 114); + this.panel10.TabIndex = 19; // // label22 // @@ -1169,38 +1201,163 @@ namespace FaceTransfer this.cb_zkteco.Size = new System.Drawing.Size(428, 24); this.cb_zkteco.TabIndex = 17; // - // panel10 + // tabPage9 // - this.panel10.BackColor = System.Drawing.SystemColors.Control; - this.panel10.Controls.Add(this.label22); - this.panel10.Controls.Add(this.label23); - this.panel10.Controls.Add(this.txt_searchZkteco); - this.panel10.Controls.Add(this.btn_livedata_get); - this.panel10.Controls.Add(this.label24); - this.panel10.Controls.Add(this.cb_zkteco); - this.panel10.Location = new System.Drawing.Point(4, 6); - this.panel10.Name = "panel10"; - this.panel10.Size = new System.Drawing.Size(525, 114); - this.panel10.TabIndex = 19; + this.tabPage9.Controls.Add(this.btn_sync_time); + this.tabPage9.Controls.Add(this.panel11); + this.tabPage9.Location = new System.Drawing.Point(4, 22); + this.tabPage9.Name = "tabPage9"; + this.tabPage9.Padding = new System.Windows.Forms.Padding(3); + this.tabPage9.Size = new System.Drawing.Size(534, 644); + this.tabPage9.TabIndex = 8; + this.tabPage9.Text = "SyncTime"; + this.tabPage9.UseVisualStyleBackColor = true; // - // gvZktecoData + // btn_sync_time // - this.gvZktecoData.BackgroundColor = System.Drawing.SystemColors.Control; - this.gvZktecoData.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.gvZktecoData.Location = new System.Drawing.Point(4, 126); - this.gvZktecoData.Name = "gvZktecoData"; - this.gvZktecoData.Size = new System.Drawing.Size(525, 476); - this.gvZktecoData.TabIndex = 20; + this.btn_sync_time.Location = new System.Drawing.Point(454, 126); + this.btn_sync_time.Name = "btn_sync_time"; + this.btn_sync_time.Size = new System.Drawing.Size(75, 23); + this.btn_sync_time.TabIndex = 21; + this.btn_sync_time.Text = "Sync"; + this.btn_sync_time.UseVisualStyleBackColor = true; + this.btn_sync_time.Click += new System.EventHandler(this.btn_sync_time_Click); // - // txt_total + // panel11 // - this.txt_total.AutoSize = true; - this.txt_total.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Italic); - this.txt_total.Location = new System.Drawing.Point(6, 614); - this.txt_total.Name = "txt_total"; - this.txt_total.Size = new System.Drawing.Size(76, 16); - this.txt_total.TabIndex = 21; - this.txt_total.Text = "Total Emp :"; + this.panel11.BackColor = System.Drawing.SystemColors.Control; + this.panel11.Controls.Add(this.btn_getTime); + this.panel11.Controls.Add(this.txt_showTime); + this.panel11.Controls.Add(this.label28); + this.panel11.Controls.Add(this.cb_syncMachineip); + this.panel11.Controls.Add(this.label26); + this.panel11.Controls.Add(this.cb_2); + this.panel11.Controls.Add(this.cb_1); + this.panel11.Controls.Add(this.label25); + this.panel11.Location = new System.Drawing.Point(4, 6); + this.panel11.Name = "panel11"; + this.panel11.Size = new System.Drawing.Size(525, 114); + this.panel11.TabIndex = 20; + // + // btn_getTime + // + this.btn_getTime.Location = new System.Drawing.Point(437, 30); + this.btn_getTime.Name = "btn_getTime"; + this.btn_getTime.Size = new System.Drawing.Size(75, 23); + this.btn_getTime.TabIndex = 30; + this.btn_getTime.Text = "Get Time"; + this.btn_getTime.UseVisualStyleBackColor = true; + this.btn_getTime.Click += new System.EventHandler(this.btn_getTime_Click_1); + // + // txt_showTime + // + this.txt_showTime.Location = new System.Drawing.Point(358, 59); + this.txt_showTime.Name = "txt_showTime"; + this.txt_showTime.Size = new System.Drawing.Size(154, 20); + this.txt_showTime.TabIndex = 27; + // + // label28 + // + this.label28.AutoSize = true; + this.label28.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Italic); + this.label28.Location = new System.Drawing.Point(262, 63); + this.label28.Name = "label28"; + this.label28.Size = new System.Drawing.Size(90, 16); + this.label28.TabIndex = 29; + this.label28.Text = "Current Time :"; + // + // cb_syncMachineip + // + this.cb_syncMachineip.Font = new System.Drawing.Font("Microsoft Tai Le", 9.75F); + this.cb_syncMachineip.FormattingEnabled = true; + this.cb_syncMachineip.Location = new System.Drawing.Point(84, 82); + this.cb_syncMachineip.Name = "cb_syncMachineip"; + this.cb_syncMachineip.Size = new System.Drawing.Size(428, 24); + this.cb_syncMachineip.TabIndex = 26; + // + // label26 + // + this.label26.AutoSize = true; + this.label26.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Italic); + this.label26.Location = new System.Drawing.Point(3, 86); + this.label26.Name = "label26"; + this.label26.Size = new System.Drawing.Size(76, 16); + this.label26.TabIndex = 25; + this.label26.Text = "Machine ip:"; + // + // cb_2 + // + this.cb_2.AutoSize = true; + this.cb_2.Location = new System.Drawing.Point(3, 66); + this.cb_2.Name = "cb_2"; + this.cb_2.Size = new System.Drawing.Size(57, 17); + this.cb_2.TabIndex = 24; + this.cb_2.Text = "NEDO"; + this.cb_2.UseVisualStyleBackColor = true; + this.cb_2.CheckedChanged += new System.EventHandler(this.cb_2_CheckedChanged); + // + // cb_1 + // + this.cb_1.AutoSize = true; + this.cb_1.Location = new System.Drawing.Point(3, 43); + this.cb_1.Name = "cb_1"; + this.cb_1.Size = new System.Drawing.Size(69, 17); + this.cb_1.TabIndex = 23; + this.cb_1.Text = "ZKTECO"; + this.cb_1.UseVisualStyleBackColor = true; + this.cb_1.CheckedChanged += new System.EventHandler(this.cb_1_CheckedChanged); + // + // label25 + // + this.label25.AutoSize = true; + this.label25.BackColor = System.Drawing.Color.Transparent; + this.label25.Font = new System.Drawing.Font("Bahnschrift SemiCondensed", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label25.Location = new System.Drawing.Point(183, 12); + this.label25.Name = "label25"; + this.label25.Size = new System.Drawing.Size(149, 23); + this.label25.TabIndex = 22; + this.label25.Text = "Sync Machine Time"; + // + // pictureBox1 + // + this.pictureBox1.Image = global::UtopiaAttSoftware.Properties.Resources.logo_dark; + this.pictureBox1.Location = new System.Drawing.Point(144, 12); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(244, 99); + this.pictureBox1.TabIndex = 6; + this.pictureBox1.TabStop = false; + // + // btnReset + // + this.btnReset.BackColor = System.Drawing.Color.MintCream; + this.btnReset.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnReset.Location = new System.Drawing.Point(416, 789); + this.btnReset.Name = "btnReset"; + this.btnReset.Size = new System.Drawing.Size(134, 35); + this.btnReset.TabIndex = 7; + this.btnReset.Text = "Reset"; + this.btnReset.UseVisualStyleBackColor = false; + this.btnReset.Click += new System.EventHandler(this.btnReset_Click); + // + // panel5 + // + this.panel5.BackColor = System.Drawing.SystemColors.ActiveCaptionText; + this.panel5.Location = new System.Drawing.Point(-1, -4); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(555, 10); + this.panel5.TabIndex = 8; + // + // btn_logout + // + this.btn_logout.BackColor = System.Drawing.Color.Transparent; + this.btn_logout.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btn_logout.Location = new System.Drawing.Point(466, 12); + this.btn_logout.Name = "btn_logout"; + this.btn_logout.Size = new System.Drawing.Size(84, 35); + this.btn_logout.TabIndex = 9; + this.btn_logout.Text = "Logout"; + this.btn_logout.UseVisualStyleBackColor = false; + this.btn_logout.Click += new System.EventHandler(this.btn_logout_Click); // // Form1 // @@ -1212,13 +1369,13 @@ namespace FaceTransfer this.Controls.Add(this.panel5); this.Controls.Add(this.btnReset); this.Controls.Add(this.pictureBox1); - this.Controls.Add(this.tabControl1); + this.Controls.Add(this.tabControl); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.MaximizeBox = false; this.Name = "Form1"; this.Text = "All in one (Attendance Software)"; this.Load += new System.EventHandler(this.Form1_Load); - this.tabControl1.ResumeLayout(false); + this.tabControl.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.tabPage1.PerformLayout(); this.panel2.ResumeLayout(false); @@ -1230,6 +1387,8 @@ namespace FaceTransfer this.panel1.PerformLayout(); this.tabPage3.ResumeLayout(false); this.tabPage3.PerformLayout(); + this.panel9.ResumeLayout(false); + this.panel9.PerformLayout(); this.panel3.ResumeLayout(false); this.panel3.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.DataGvMachine)).EndInit(); @@ -1248,14 +1407,15 @@ namespace FaceTransfer ((System.ComponentModel.ISupportInitialize)(this.gv)).EndInit(); this.panel8.ResumeLayout(false); this.panel8.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.tabPage8.ResumeLayout(false); this.tabPage8.PerformLayout(); - this.panel9.ResumeLayout(false); - this.panel9.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.gvZktecoData)).EndInit(); this.panel10.ResumeLayout(false); this.panel10.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gvZktecoData)).EndInit(); + this.tabPage9.ResumeLayout(false); + this.panel11.ResumeLayout(false); + this.panel11.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.ResumeLayout(false); } @@ -1264,7 +1424,7 @@ namespace FaceTransfer private System.Windows.Forms.Label label1; private System.Windows.Forms.Label lbl_ip_to; private System.Windows.Forms.Button btn_Transfer; - private System.Windows.Forms.TabControl tabControl1; + private System.Windows.Forms.TabControl tabControl; private System.Windows.Forms.TabPage tabPage1; private System.Windows.Forms.TabPage tabPage2; private System.Windows.Forms.Button btn_sync; @@ -1358,6 +1518,19 @@ namespace FaceTransfer private System.Windows.Forms.Label label24; private System.Windows.Forms.ComboBox cb_zkteco; private System.Windows.Forms.Label txt_total; + private System.Windows.Forms.TabPage tabPage9; + private System.Windows.Forms.Panel panel11; + private System.Windows.Forms.ComboBox cb_syncMachineip; + private System.Windows.Forms.Label label26; + private System.Windows.Forms.CheckBox cb_2; + private System.Windows.Forms.CheckBox cb_1; + private System.Windows.Forms.Label label25; + private System.Windows.Forms.Button btn_sync_time; + private System.Windows.Forms.TextBox txt_showTime; + private System.Windows.Forms.Label label28; + private System.Windows.Forms.Button btn_getTime; + private System.Windows.Forms.CheckBox isAdmin; + private System.Windows.Forms.CheckedListBox cbListMachIp; } } diff --git a/MainForm.cs b/MainForm.cs index 216d735..4fd009d 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -26,8 +26,12 @@ namespace FaceTransfer private int count = 0; int totalrecord = 0; static string devInfo2; + static string devInfo; static string machineid2; - + static string timePart; + static string datePart; + bool checkadmin = false; + string machineType; static ConnectionClass ObjConnectionClass = new ConnectionClass(); static MachineConnectivity machineConnectivity = new MachineConnectivity(); @@ -41,7 +45,7 @@ namespace FaceTransfer List MachineEmployeeList = new List(); CallBack myCallBack = new CallBack(machineConnectivity.BeCalled); - + List selectedValues = new List(); public Form1() { @@ -54,10 +58,11 @@ namespace FaceTransfer dateTimePicker1.Format = DateTimePickerFormat.Custom; dateTimePicker1.CustomFormat = "yyyy-MM-dd"; + // bindDropDownMachineIp(); } private void Form1_Load(object sender, EventArgs e) { - bindDropDownMachineIp(); + // Enable auto-scrolling for the form this.AutoScroll = true; this.HorizontalScroll.Enabled = false; @@ -140,7 +145,7 @@ namespace FaceTransfer if (dateTimePicker1.Text.Length > 0 && cb_machineFrom.SelectedIndex > 0) { List response = syncAttendance(); - if (response.Count != 0) + if (response.Count != 0 && !response[0].Contains("not connected")) { MessageBox.Show("Completed"); } @@ -180,7 +185,7 @@ namespace FaceTransfer ObjConnectionClass.CloseConnection(); - + return responses; } public string PostAttendance(AttendanceMachine machine) @@ -200,8 +205,8 @@ namespace FaceTransfer uint num2 = 0; if (machineConnectivity.ExecuteCommad(devInfo, devInfo.Length, str4, str4.Length, ref str5, ref num2, myCallBack) != 0) { - Console.WriteLine("Not Connected"); - response = machine.MachineId + " is not connected !"; + Console.WriteLine("Not Connected"); + response = machine.MachineId + " is not connected !"; } else { @@ -344,18 +349,18 @@ namespace FaceTransfer { Console.WriteLine("Selected Employee ID: " + employeeId); responses.AddRange(get_set_EmpFaceTemplateZkteco(employeeId, fromip, Convert.ToInt32(machine.MachineId), Toip, Tomachineid, port)); - + } if (selectedValues.Count == 0) { get_set_EmpFaceTemplateZkteco(employeeId, fromip, Convert.ToInt32(machine.MachineId), Toip, Tomachineid, port); //MessageBox.Show("Completed"); } - + } - ObjConnectionClass.CloseConnection(); - MessageBox.Show("Completed"); + ObjConnectionClass.CloseConnection(); + MessageBox.Show("Completed"); } btnReset_Click(null, null); @@ -421,7 +426,7 @@ namespace FaceTransfer getEmpFaceTemplate(employeeId, Machine.MachineIp, Machine.PortNumber, Machine.MachineId, Toip, devInfo2, machineid2); } } - + MessageBox.Show("Completed"); ObjConnectionClass.CloseConnection(); } btnReset_Click(null, null); @@ -444,7 +449,7 @@ namespace FaceTransfer } else { - if (!str5.Contains("fail")) + if (str5.Contains("success")) { SetEmployeeInfo(myCallBack, str5, empid, devInfo2, machineid2); count++; @@ -453,7 +458,7 @@ namespace FaceTransfer else { Console.WriteLine("Emp: " + empid + "---> Not transferred in " + machineID + ""); - + MessageBox.Show("Emp: " + empid + "---> Not transferred in " + machineID + ""); } } } @@ -492,7 +497,16 @@ namespace FaceTransfer if (Bconnect == true) { - if (axCZKEM1.SSR_SetUserInfo(ToID, empid, "", "", 0, true))//upload user information to the memory + int prvlg = 0; + if (checkadmin == true) + { + prvlg = 1; + } + else + { + prvlg = 0; + } + if (axCZKEM1.SSR_SetUserInfo(ToID, empid, "", "", prvlg, true))//upload user information to the memory { bool getUserTmpExSuccess = axCZKEM1.SetUserFaceStr(ToID, (empid), 50, template, 0); // upload templates information to the device if (getUserTmpExSuccess) @@ -510,7 +524,7 @@ namespace FaceTransfer responses.Add($"Machine {ToIP} not connected."); Console.WriteLine($"Machine {ToIP} not connected."); } - axCZKEM1.EnableDevice(fromID, true); + axCZKEM1.EnableDevice(fromID, true); axCZKEM1.Disconnect(); } @@ -573,7 +587,7 @@ namespace FaceTransfer responses.Add("Emp: " + empid + "---> transferred in " + machineid + ""); backgroundWorker.ReportProgress(2, empid); - MessageBox.Show("Emp transferred"); + //MessageBox.Show("Emp transferred"); } else @@ -582,7 +596,7 @@ namespace FaceTransfer responses.Add("Emp: " + empid + "---> Not transferred in " + machineid + ""); - MessageBox.Show("Emp not transferred"); + //MessageBox.Show("Emp not transferred"); } } return responses; @@ -716,107 +730,59 @@ namespace FaceTransfer } } - private void bindDropDownMachineIp() + private void bindDropDownMachineIp(string type) { ConnectionClass ObjConnectionClass = new ConnectionClass(); - MySqlConnection connection; - bool OpenConnection; + MySqlConnection connection = ObjConnectionClass.Connection(); + bool OpenConnection = ObjConnectionClass.OpenConnection(); - connection = ObjConnectionClass.Connection(); - OpenConnection = ObjConnectionClass.OpenConnection(); - - if (OpenConnection == true) + if (OpenConnection) { - string query = "Select a.machine_ip , a.machine_name , CONCAT(a.machine_name, '-', a.machine_ip) AS concatColumn from attendance_machine a where a.machine_status = 1 order by machine_id"; + string query = "SELECT a.machine_ip, a.machine_name, CONCAT(a.machine_name, '-', a.machine_ip) AS concatColumn " + + "FROM attendance_machine a WHERE a.machine_status = 1 " + type + " " + + " ORDER BY machine_name"; MySqlCommand cmd = new MySqlCommand(query, connection); DataTable dataTable = new DataTable(); - MySqlDataAdapter mySqlDataAdapter = new MySqlDataAdapter(); - mySqlDataAdapter.SelectCommand = cmd; + MySqlDataAdapter mySqlDataAdapter = new MySqlDataAdapter(cmd); mySqlDataAdapter.Fill(dataTable); + if (dataTable.Rows.Count > 0) { // Create a new row with Id = 0 DataRow newRow = dataTable.NewRow(); newRow["concatColumn"] = "SELECT"; - - // Insert the new row at the 0 index dataTable.Rows.InsertAt(newRow, 0); - // Clone the DataTable for each ComboBox - DataTable cbFromDataSource = dataTable.Clone(); - DataTable cbToDataSource = dataTable.Clone(); - DataTable cbMachineFromDataSource = dataTable.Clone(); - DataTable cbMachineDataSource = dataTable.Clone(); - DataTable cbMachIpDataSource = dataTable.Clone(); - DataTable cbMachIpTurnstileDataSource = dataTable.Clone(); - DataTable cbDataSource = dataTable.Clone(); - DataTable cbtoDataSource = dataTable.Clone(); - DataTable cb_zktecoDatasource = dataTable.Clone(); - - - // Import the rows from the original DataTable to cloned DataTables - foreach (DataRow row in dataTable.Rows) - { - cbFromDataSource.ImportRow(row); - cbToDataSource.ImportRow(row); - cbMachineFromDataSource.ImportRow(row); - cbMachineDataSource.ImportRow(row); - cbMachIpDataSource.ImportRow(row); - cbMachIpTurnstileDataSource.ImportRow(row); - cbDataSource.ImportRow(row); - cbtoDataSource.ImportRow(row); - cb_zktecoDatasource.ImportRow(row); - } - - cb_fromMachine.DataSource = cbFromDataSource; - cb_fromMachine.ValueMember = "machine_ip"; - cb_fromMachine.DisplayMember = "concatColumn"; - - cb_ToMachine.DataSource = cbToDataSource; - cb_ToMachine.ValueMember = "machine_ip"; - cb_ToMachine.DisplayMember = "concatColumn"; - - cb_machineFrom.DataSource = cbMachineFromDataSource; - cb_machineFrom.ValueMember = "machine_ip"; - cb_machineFrom.DisplayMember = "concatColumn"; - - - cbMachineIp.DataSource = cbMachineDataSource; - cbMachineIp.ValueMember = "machine_ip"; - cbMachineIp.DisplayMember = "concatColumn"; - - cbMachIp.DataSource = cbMachIpDataSource; - cbMachIp.ValueMember = "machine_ip"; - cbMachIp.DisplayMember = "concatColumn"; - - cb_machineIpTurnstile.DataSource = cbMachIpTurnstileDataSource; - cb_machineIpTurnstile.ValueMember = "machine_ip"; - cb_machineIpTurnstile.DisplayMember = "concatColumn"; - - - cb_from.DataSource = cbDataSource; - cb_from.ValueMember = "machine_ip"; - cb_from.ValueMember = "machine_ip"; - cb_from.DisplayMember = "concatColumn"; - - cb_to.DataSource = cbtoDataSource; - cb_to.DataSource = cbtoDataSource; - cb_to.ValueMember = "machine_ip"; - cb_to.DisplayMember = "concatColumn"; - - cb_zkteco.DataSource = cb_zktecoDatasource; - cb_zkteco.ValueMember = "machine_ip"; - cb_zkteco.DisplayMember = "concatColumn"; - - comboBox1.DataSource = cb_zktecoDatasource; - comboBox1.ValueMember = "machine_ip"; - comboBox1.DisplayMember = "concatColumn"; - - + // Bind DataTable to ComboBoxes + BindComboBox(cb_fromMachine, dataTable); + BindComboBox(cb_ToMachine, dataTable); + BindComboBox(cb_machineFrom, dataTable); + BindComboBox(cbMachineIp, dataTable); + BindComboBoxList(cbListMachIp, dataTable); + BindComboBox(cbMachIp, dataTable); + BindComboBox(cb_machineIpTurnstile, dataTable); + BindComboBox(cb_from, dataTable); + BindComboBox(cb_to, dataTable); + BindComboBox(cb_zkteco, dataTable); + BindComboBox(comboBox1, dataTable); + BindComboBox(cb_syncMachineip, dataTable); } } } + private void BindComboBox(ComboBox comboBox, DataTable dataTable) + { + comboBox.DataSource = dataTable.Copy(); + comboBox.ValueMember = "machine_ip"; + comboBox.DisplayMember = "concatColumn"; + } + private void BindComboBoxList(ListBox comboBox, DataTable dataTable) + { + comboBox.DataSource = dataTable.Copy(); + comboBox.ValueMember = "machine_ip"; + comboBox.DisplayMember = "concatColumn"; + } + private void SetGridView2() { DataGvMachine.BackgroundColor = Color.White; @@ -1214,18 +1180,16 @@ namespace FaceTransfer DataGvMachine.DataSource = sortedRows; } } - private void txt_search2_TextChanged(object sender, EventArgs e) - { - string searchText = txt_search2.Text.Trim(); - BindSearchData(searchText, 0); - } + + + string employeeId; private void GetTemplateSaveInMachine() { SaveTemplate saveTemplate = new SaveTemplate(); - string fromip = cbMachineIp.SelectedValue.ToString(); + string fromip = comboBox1.SelectedValue.ToString(); ConnectionClass ObjConnectionClass = new ConnectionClass(); MySqlConnection connection; @@ -1262,7 +1226,7 @@ namespace FaceTransfer } else { - if (!machineResponse.Contains("fail")) + if (machineResponse.Contains("success")) { str4 = removeReturn(machineResponse); saveTemplate.CheckInDb(connection, employeeId, str4); @@ -1385,7 +1349,7 @@ namespace FaceTransfer private void btnSaveDb_Click(object sender, EventArgs e) { - if (cbMachineIp.SelectedIndex > 0) + if (comboBox1.SelectedIndex > 0) { GetTemplateSaveInMachine(); MessageBox.Show("DONE"); @@ -1493,40 +1457,48 @@ namespace FaceTransfer { try { - List Response = new List(); - if (txtEmpoyeeCd.Text.Length > 0 && cbMachIp.SelectedIndex > 0) + + if (txtEmpoyeeCd.Text.Length == 0) { - if (dataTableFaceTemplates.Rows.Count > 0) + MessageBox.Show("Please provide employee code"); + return; + } + + if (cbListMachIp.SelectedIndex == 0) + { + MessageBox.Show("Please provide machine"); + return; + } + if (dataTableFaceTemplates.Rows.Count > 0) + { + ConnectionClass ObjConnectionClass = new ConnectionClass(); + MySqlConnection connection; + bool OpenConnection; + connection = ObjConnectionClass.Connection(); + OpenConnection = ObjConnectionClass.OpenConnection(); + + if (OpenConnection == true) { - - ConnectionClass ObjConnectionClass = new ConnectionClass(); - MySqlConnection connection; - bool OpenConnection; - connection = ObjConnectionClass.Connection(); - - - OpenConnection = ObjConnectionClass.OpenConnection(); - - if (OpenConnection == true) + // Loop through each selected value + foreach (string selectedValue in selectedValues) { - List machines = attendanceMachineDAO.getAttendanceMachineDetails(connection, "0", cbMachIp.SelectedValue.ToString()); - Machine = new AttendanceMachine(machines[0].MachineId, cbMachIp.SelectedValue.ToString(), machines[0].PortNumber); + // Assuming that the selectedValue is used in the following operations + List machines = attendanceMachineDAO.getAttendanceMachineDetails(connection, "0", selectedValue); + Machine = new AttendanceMachine(machines[0].MachineId, selectedValue, machines[0].PortNumber); devInfo2 = GetDeviceInfo(Machine.MachineIp, Machine.PortNumber); if (dataTableFaceTemplates.Rows.Count > 0) { - - // Fetch and populate the blob data into the "BlobDataBytes" column foreach (DataRow row in dataTableFaceTemplates.Rows) { - byte[] blobValue = (byte[])row["template"]; string stringValue = Encoding.UTF8.GetString(blobValue); string emp = row["serial_no"].ToString(); Response.AddRange(SetEmployeeInfo(myCallBack, stringValue, emp, devInfo2, Machine.MachineId)); } + // Add each response to the StringBuilder foreach (string response in Response) { @@ -1534,7 +1506,6 @@ namespace FaceTransfer } string allResponses = responseStringBuilder.ToString(); - // Display all responses in a message box MessageBox.Show(allResponses); responseStringBuilder.Clear(); @@ -1546,23 +1517,19 @@ namespace FaceTransfer cbMachIp.SelectedIndex = 0; MessageBox.Show("Template of - " + txtEmpoyeeCd.Text + " - not found in db"); } - } } - else - { - MessageBox.Show("Invalid employee code"); - } } else { - MessageBox.Show("Please provide employee code"); - + MessageBox.Show("No face found/Invalid employee code"); } + + } catch (Exception ex) { - + // Log or handle exception } } @@ -1697,6 +1664,7 @@ namespace FaceTransfer } else { + MessageBox.Show("PLease provide emp code"); // Handle the case where txtEmpoyeeCd.Text is empty } } @@ -1788,7 +1756,7 @@ namespace FaceTransfer int iPrivilege = 0, iFaceIndex = 0, iFlag = 0, iTmpLength = 0; bool bEnabled = false; axCZKEM1.ReadAllTemplate(Convert.ToInt32(Machine.MachineId)); - + while (axCZKEM1.SSR_GetAllUserInfo(Convert.ToInt32(Machine.MachineId), out sdwEnrollNumber, out sName, out sPassword, out iPrivilege, out bEnabled)) { // Create a new DataRow @@ -1800,11 +1768,15 @@ namespace FaceTransfer // Add the new row to the DataTable dataTable.Rows.Add(newRow); } - txt_total.Text = "Total Emp:"+ dataTable.Rows.Count; + txt_total.Text = "Total Emp:" + dataTable.Rows.Count; } - axCZKEM1.EnableDevice(Convert.ToInt32(Machine.MachineId), true); + axCZKEM1.EnableDevice(Convert.ToInt32(Machine.MachineId), true); axCZKEM1.Disconnect(); - gvZktecoData.DataSource = dataTable; + //gvZktecoData.DataSource = dataTable; + if (dataTable.Rows.Count > 0) + { + SortDataGridViewZKTECO(dataTable); + } ObjConnectionClass.CloseConnection(); } @@ -1815,11 +1787,364 @@ namespace FaceTransfer } } + + private void SortDataGridViewZKTECO(DataTable dt) + { + // Assuming you have populated the data source for DataGvMachine + // and the data source is a DataTable named "dataSourceTable" + + // Assuming "serial_number" column is in the first position (index 0) + if (dt.Rows.Count > 0) + { + // Custom sorting by converting "serial_number" to unsigned integer + var sortedRows = dt.AsEnumerable() + .OrderBy(row => Convert.ToUInt64(row["Serial_no"])) + .CopyToDataTable(); + + // Bind the sorted data to the DataGridView + gvZktecoData.DataSource = sortedRows; + } + } + + private void txt_searchZkteco_TextChanged(object sender, EventArgs e) { string searchText = txt_searchZkteco.Text.Trim(); BindSearchData(searchText, 3); } + + private void btn_sync_time_Click(object sender, EventArgs e) + { + if (cb_1.Checked == true || cb_2.Checked == true) + { + + if (cb_syncMachineip.SelectedIndex > 0) + { + if (cb_1.Checked == true) + { + SyncTimeZkteco(); + } + if (cb_2.Checked == true) + { + SyncTimeNedo(); + } + + } + else + { + MessageBox.Show("Please select machine ip"); + } + } + else + { + MessageBox.Show("Please check machine type"); + } + } + + + public void SyncTimeZkteco() + { + + ConnectionClass ObjConnectionClass = new ConnectionClass(); + MySqlConnection connection; + bool OpenConnection; + + connection = ObjConnectionClass.Connection(); + OpenConnection = ObjConnectionClass.OpenConnection(); + + if (OpenConnection == true) + { + + List machines = attendanceMachineDAO.getAttendanceMachineDetails(connection, "0", cb_syncMachineip.SelectedValue.ToString()); + Machine = new AttendanceMachine(machines[0].MachineId, cb_syncMachineip.SelectedValue.ToString(), machines[0].PortNumber); + + ObjConnectionClass.CloseConnection(); + + + Bconnect = axCZKEM1.Connect_Net(Machine.MachineIp, Machine.PortNumber); + axCZKEM1.EnableDevice(Convert.ToInt32(Machine.MachineId), false); //disable the device + + if (Bconnect == true) + { + + int machineNumber = int.Parse(Machine.MachineId); + int dwYear = 0; + int dwMonth = 0; + int dwDay = 0; + int dwHour = 0; + int dwSecond = 0; + + + bool result = axCZKEM1.SetDeviceTime(machineNumber); + if (result == true) + { + txt_showTime.Text = System.DateTime.Now.ToShortTimeString(); + //string deviceTime = new DateTime(dwYear, dwMonth, dwDay, dwHour, dwMinute, dwSecond).ToString(); + MessageBox.Show("Machine Time Updated"); + } + else + { + MessageBox.Show("Error"); + } + } + else + { + MessageBox.Show("Machine not connected"); + } + + } + } + public void SyncTimeNedo() + { + ConnectionClass ObjConnectionClass = new ConnectionClass(); + MySqlConnection connection; + bool OpenConnection; + + connection = ObjConnectionClass.Connection(); + OpenConnection = ObjConnectionClass.OpenConnection(); + + if (OpenConnection == true) + { + + List machines = attendanceMachineDAO.getAttendanceMachineDetails(connection, "0", cb_syncMachineip.SelectedValue.ToString()); + Machine = new AttendanceMachine(machines[0].MachineId, cb_syncMachineip.SelectedValue.ToString(), machines[0].PortNumber); + ObjConnectionClass.CloseConnection(); + devInfo = GetDeviceInfo(Machine.MachineIp, Machine.PortNumber); + DateTime datetime = System.DateTime.Now; + string command = "SetDeviceInfo(time=\"" + datetime.ToString("yyyy-MM-dd HH:mm:ss") + "\" memory_alarm=\"90%\" language=\"chs\" volume=\"low/mid/high\")"; + + string str5 = ""; + uint num2 = 0; + + if (machineConnectivity.ExecuteCommad(devInfo, devInfo.Length, command, command.Length, ref str5, ref num2, myCallBack) != 0) + { + + MessageBox.Show("Machine not connected"); + return; + } + else + { + if (str5.Contains("result=\"fail\"")) + { + MessageBox.Show("Error"); + } + else + { + txt_showTime.Text = datetime.ToShortTimeString(); + MessageBox.Show("Machine Time Updated"); + + } + } + } + } + + private void cb_1_CheckedChanged(object sender, EventArgs e) + { + cb_2.Checked = false; + string machineType = " AND (a.machine_type = 'ZKTECO')"; + bindDropDownMachineIp(machineType); + + } + + private void cb_2_CheckedChanged(object sender, EventArgs e) + { + cb_1.Checked = false; + string machineType = " AND (a.machine_type IS NULL)"; + bindDropDownMachineIp(machineType); + + } + + private void btn_getTime_Click(object sender, EventArgs e) + { + + } + + private void textBox2_TextChanged(object sender, EventArgs e) + { + string searchText = textBox2.Text.Trim(); + BindSearchData(searchText, 0); + } + private void GetDeviceTimeNedo() + { + string devInfo = GetDeviceInfo(cb_syncMachineip.SelectedValue.ToString(), 9922); + string str4 = "GetDeviceInfo()"; + string str5 = ""; + uint num2 = 0; + + if (machineConnectivity.ExecuteCommad(devInfo, devInfo.Length, str4, str4.Length, ref str5, ref num2, myCallBack) != 0) + { + MessageBox.Show("Machine not Connected"); + + } + else + { + if (!str5.Contains("fail")) + { + (datePart, timePart) = SeprateTime(str5); + txt_showTime.Text = timePart; + } + } + } + private static (string, string) SeprateTime(string str5) + { + string pattern = @"time=""([^""]+)"""; + + // Use Regex.Match to find the first match in the input string + Match match = Regex.Match(str5, pattern); + + if (match.Success) + { + // Extract the time value from the captured group + string timeValue = match.Groups[1].Value; + + if (DateTime.TryParse(timeValue, out DateTime parsedTime)) + { + // Format the parsed time in 12-hour format with AM/PM + + datePart = parsedTime.ToString("yyyy-MM-dd"); + timePart = parsedTime.ToString("hh:mm:ss tt"); + + } + return (datePart, timePart); + } + else + { + return (null, null); + } + } + private void GetDeviceTimeZkteco() + { + try + { + + ConnectionClass ObjConnectionClass = new ConnectionClass(); + MySqlConnection connection; + bool OpenConnection; + + connection = ObjConnectionClass.Connection(); + OpenConnection = ObjConnectionClass.OpenConnection(); + + if (OpenConnection == true) + { + + List machines = attendanceMachineDAO.getAttendanceMachineDetails(connection, "0", cb_syncMachineip.SelectedValue.ToString()); + Machine = new AttendanceMachine(machines[0].MachineId, cb_syncMachineip.SelectedValue.ToString(), machines[0].PortNumber); + ObjConnectionClass.CloseConnection(); + + int dwYear = 0; + int dwMonth = 0; + int dwDay = 0; + int dwHour = 0; + int dwMinute = 0; + int dwSecond = 0; + + Bconnect = axCZKEM1.Connect_Net(cb_syncMachineip.SelectedValue.ToString(), 4370); + axCZKEM1.EnableDevice(Convert.ToInt32(Machine.MachineId), false); //disable the device + + if (Bconnect == true) + { + + bool result = axCZKEM1.GetDeviceTime(Convert.ToInt32(Machine.MachineId), ref dwYear, ref dwMonth, ref dwDay, ref dwHour, ref dwMinute, ref dwSecond); + DateTime date = new DateTime(dwYear, dwMonth, dwDay, dwHour, dwMinute, dwSecond); + + DateTime parsedTime; + if (DateTime.TryParseExact(date.ToString(), "M/d/yyyy h:mm:ss tt", null, System.Globalization.DateTimeStyles.None, out parsedTime)) + { + datePart = parsedTime.ToString("yyyy-MM-dd"); + timePart = parsedTime.ToString("hh:mm:ss tt"); + + txt_showTime.Text = timePart; + + } + } + else + { + MessageBox.Show("Machine not connected"); + } + } + else + { + MessageBox.Show("Database connection error"); + } + } + catch (Exception ex) + { + MessageBox.Show("Error in connecting machine"); + } + } + + private void btn_getTime_Click_1(object sender, EventArgs e) + { + if (cb_1.Checked == true || cb_2.Checked == true) + { + + if (cb_syncMachineip.SelectedIndex > 0) + { + if (cb_1.Checked == true) + { + GetDeviceTimeZkteco(); + } + if (cb_2.Checked == true) + { + //GetTimeNedo(); + GetDeviceTimeNedo(); + } + + } + else + { + MessageBox.Show("Please select machine ip"); + } + } + else + { + MessageBox.Show("Please check machine type"); + } + } + + private void isAdmin_CheckedChanged(object sender, EventArgs e) + { + checkadmin = isAdmin.Checked; + } + + private void cbListMachIp_SelectedIndexChanged(object sender, EventArgs e) + { + foreach (DataRowView item in cbListMachIp.CheckedItems) + { + string selectedValue = item.Row[0].ToString(); + + // Check if the selected value is already in the list + if (!selectedValues.Contains(selectedValue)) + { + selectedValues.Add(selectedValue); + } + } + } + + private void tabControl_SelectedIndexChanged(object sender, EventArgs e) + { + string tabControlInder = tabControl.SelectedIndex.ToString(); + + if (Convert.ToInt32(tabControlInder) <= 4) + { + machineType = " AND (a.machine_type IS NULL)"; + bindDropDownMachineIp(machineType); + } + else + { + if (tabControlInder == "8") + { + // machineType = "AND (a.machine_type = 'ZKTECO' OR a.machine_type IS NULL) "; + return; + } + else + { + machineType = "AND(a.machine_type = 'ZKTECO')"; + } + bindDropDownMachineIp(machineType); + + } + } } } diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs index 2c05260..379529f 100644 --- a/Properties/Resources.Designer.cs +++ b/Properties/Resources.Designer.cs @@ -8,7 +8,7 @@ // //------------------------------------------------------------------------------ -namespace UtopiaAttService.Properties { +namespace UtopiaAttSoftware.Properties { using System; @@ -39,7 +39,7 @@ namespace UtopiaAttService.Properties { internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("UtopiaAttService.Properties.Resources", typeof(Resources).Assembly); + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("UtopiaAttSoftware.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; diff --git a/Properties/Settings.Designer.cs b/Properties/Settings.Designer.cs index 3a68a0d..05f10ec 100644 --- a/Properties/Settings.Designer.cs +++ b/Properties/Settings.Designer.cs @@ -8,7 +8,7 @@ // //------------------------------------------------------------------------------ -namespace UtopiaAttService.Properties { +namespace UtopiaAttSoftware.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] diff --git a/UtopiaAttService.csproj b/UtopiaAttSoftware.csproj similarity index 99% rename from UtopiaAttService.csproj rename to UtopiaAttSoftware.csproj index 3cee58e..c96e34d 100644 --- a/UtopiaAttService.csproj +++ b/UtopiaAttSoftware.csproj @@ -6,8 +6,8 @@ AnyCPU {619D1AB9-7C0F-4312-AD70-389229EE75BA} WinExe - UtopiaAttService - UtopiaAttService + UtopiaAttSoftware + UtopiaAttSoftware v4.8 512 true diff --git a/UtopiaAttService.sln b/UtopiaAttSoftware.sln similarity index 87% rename from UtopiaAttService.sln rename to UtopiaAttSoftware.sln index 7c54524..61bf679 100644 --- a/UtopiaAttService.sln +++ b/UtopiaAttSoftware.sln @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.32929.386 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UtopiaAttService", "UtopiaAttService.csproj", "{619D1AB9-7C0F-4312-AD70-389229EE75BA}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UtopiaAttSoftware", "UtopiaAttSoftware.csproj", "{619D1AB9-7C0F-4312-AD70-389229EE75BA}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/bin/Debug/UtopiaAttService.exe b/bin/Debug/UtopiaAttService.exe deleted file mode 100644 index 75cf162..0000000 Binary files a/bin/Debug/UtopiaAttService.exe and /dev/null differ diff --git a/bin/Debug/UtopiaAttService.pdb b/bin/Debug/UtopiaAttService.pdb deleted file mode 100644 index 1b01daf..0000000 Binary files a/bin/Debug/UtopiaAttService.pdb and /dev/null differ diff --git a/bin/Debug/UtopiaAttSoftware.exe b/bin/Debug/UtopiaAttSoftware.exe new file mode 100644 index 0000000..a71f68f Binary files /dev/null and b/bin/Debug/UtopiaAttSoftware.exe differ diff --git a/bin/Debug/UtopiaAttService.exe.config b/bin/Debug/UtopiaAttSoftware.exe.config similarity index 100% rename from bin/Debug/UtopiaAttService.exe.config rename to bin/Debug/UtopiaAttSoftware.exe.config diff --git a/bin/Debug/UtopiaAttSoftware.pdb b/bin/Debug/UtopiaAttSoftware.pdb new file mode 100644 index 0000000..7ebb07a Binary files /dev/null and b/bin/Debug/UtopiaAttSoftware.pdb differ diff --git a/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/obj/Debug/DesignTimeResolveAssemblyReferences.cache index a4e0ce8..d86c2b3 100644 Binary files a/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll b/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll index d44d7f9..4ad4875 100644 Binary files a/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll and b/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll differ diff --git a/obj/Debug/UtopiaAttService.csproj.AssemblyReference.cache b/obj/Debug/UtopiaAttService.csproj.AssemblyReference.cache index e2534b9..3db9c9a 100644 Binary files a/obj/Debug/UtopiaAttService.csproj.AssemblyReference.cache and b/obj/Debug/UtopiaAttService.csproj.AssemblyReference.cache differ diff --git a/obj/Debug/UtopiaAttService.csproj.GenerateResource.cache b/obj/Debug/UtopiaAttService.csproj.GenerateResource.cache index 28649ce..c241eef 100644 Binary files a/obj/Debug/UtopiaAttService.csproj.GenerateResource.cache and b/obj/Debug/UtopiaAttService.csproj.GenerateResource.cache differ diff --git a/obj/Debug/UtopiaAttService.exe b/obj/Debug/UtopiaAttService.exe deleted file mode 100644 index 75cf162..0000000 Binary files a/obj/Debug/UtopiaAttService.exe and /dev/null differ diff --git a/obj/Debug/UtopiaAttService.pdb b/obj/Debug/UtopiaAttService.pdb deleted file mode 100644 index 1b01daf..0000000 Binary files a/obj/Debug/UtopiaAttService.pdb and /dev/null differ diff --git a/obj/Debug/UtopiaAttService.Properties.Resources.resources b/obj/Debug/UtopiaAttSoftware.Properties.Resources.resources similarity index 100% rename from obj/Debug/UtopiaAttService.Properties.Resources.resources rename to obj/Debug/UtopiaAttSoftware.Properties.Resources.resources diff --git a/obj/Debug/UtopiaAttSoftware.csproj.AssemblyReference.cache b/obj/Debug/UtopiaAttSoftware.csproj.AssemblyReference.cache new file mode 100644 index 0000000..3db9c9a Binary files /dev/null and b/obj/Debug/UtopiaAttSoftware.csproj.AssemblyReference.cache differ diff --git a/obj/Debug/UtopiaAttSoftware.csproj.CopyComplete b/obj/Debug/UtopiaAttSoftware.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 diff --git a/obj/Debug/UtopiaAttSoftware.csproj.CoreCompileInputs.cache b/obj/Debug/UtopiaAttSoftware.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..a1c69ed --- /dev/null +++ b/obj/Debug/UtopiaAttSoftware.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +f2b59a9489eedecc58200fa4c81a6ec7742d66b3 diff --git a/obj/Debug/UtopiaAttSoftware.csproj.FileListAbsolute.txt b/obj/Debug/UtopiaAttSoftware.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..68cc8b8 --- /dev/null +++ b/obj/Debug/UtopiaAttSoftware.csproj.FileListAbsolute.txt @@ -0,0 +1,46 @@ +D:\Projects\Attendance Software\bin\Debug\UtopiaAttSoftware.exe.config +D:\Projects\Attendance Software\bin\Debug\UtopiaAttSoftware.exe +D:\Projects\Attendance Software\bin\Debug\UtopiaAttSoftware.pdb +D:\Projects\Attendance Software\bin\Debug\BouncyCastle.Crypto.dll +D:\Projects\Attendance Software\bin\Debug\Google.Protobuf.dll +D:\Projects\Attendance Software\bin\Debug\K4os.Compression.LZ4.dll +D:\Projects\Attendance Software\bin\Debug\K4os.Compression.LZ4.Streams.dll +D:\Projects\Attendance Software\bin\Debug\K4os.Hash.xxHash.dll +D:\Projects\Attendance Software\bin\Debug\MaterialSkin.dll +D:\Projects\Attendance Software\bin\Debug\Microsoft.Bcl.AsyncInterfaces.dll +D:\Projects\Attendance Software\bin\Debug\MySql.Data.dll +D:\Projects\Attendance Software\bin\Debug\Newtonsoft.Json.dll +D:\Projects\Attendance Software\bin\Debug\System.Buffers.dll +D:\Projects\Attendance Software\bin\Debug\System.Configuration.ConfigurationManager.dll +D:\Projects\Attendance Software\bin\Debug\System.Diagnostics.DiagnosticSource.dll +D:\Projects\Attendance Software\bin\Debug\System.IO.Pipelines.dll +D:\Projects\Attendance Software\bin\Debug\System.Memory.dll +D:\Projects\Attendance Software\bin\Debug\System.Numerics.Vectors.dll +D:\Projects\Attendance Software\bin\Debug\System.Runtime.CompilerServices.Unsafe.dll +D:\Projects\Attendance Software\bin\Debug\System.Threading.Tasks.Extensions.dll +D:\Projects\Attendance Software\bin\Debug\ZstdSharp.dll +D:\Projects\Attendance Software\bin\Debug\BouncyCastle.Crypto.xml +D:\Projects\Attendance Software\bin\Debug\Google.Protobuf.pdb +D:\Projects\Attendance Software\bin\Debug\Google.Protobuf.xml +D:\Projects\Attendance Software\bin\Debug\K4os.Compression.LZ4.xml +D:\Projects\Attendance Software\bin\Debug\K4os.Compression.LZ4.Streams.xml +D:\Projects\Attendance Software\bin\Debug\K4os.Hash.xxHash.xml +D:\Projects\Attendance Software\bin\Debug\Microsoft.Bcl.AsyncInterfaces.xml +D:\Projects\Attendance Software\bin\Debug\MySql.Data.xml +D:\Projects\Attendance Software\bin\Debug\Newtonsoft.Json.xml +D:\Projects\Attendance Software\bin\Debug\System.Buffers.xml +D:\Projects\Attendance Software\bin\Debug\System.Diagnostics.DiagnosticSource.xml +D:\Projects\Attendance Software\bin\Debug\System.IO.Pipelines.xml +D:\Projects\Attendance Software\bin\Debug\System.Memory.xml +D:\Projects\Attendance Software\bin\Debug\System.Numerics.Vectors.xml +D:\Projects\Attendance Software\bin\Debug\System.Runtime.CompilerServices.Unsafe.xml +D:\Projects\Attendance Software\bin\Debug\System.Threading.Tasks.Extensions.xml +D:\Projects\Attendance Software\obj\Debug\FaceTransfer.Form1.resources +D:\Projects\Attendance Software\obj\Debug\UtopiaAttService.LoginForm.resources +D:\Projects\Attendance Software\obj\Debug\UtopiaAttSoftware.Properties.Resources.resources +D:\Projects\Attendance Software\obj\Debug\UtopiaAttSoftware.csproj.GenerateResource.cache +D:\Projects\Attendance Software\obj\Debug\UtopiaAttSoftware.csproj.CoreCompileInputs.cache +D:\Projects\Attendance Software\obj\Debug\UtopiaAttSoftware.csproj.CopyComplete +D:\Projects\Attendance Software\obj\Debug\UtopiaAttSoftware.exe +D:\Projects\Attendance Software\obj\Debug\UtopiaAttSoftware.pdb +D:\Projects\Attendance Software\obj\Debug\UtopiaAttSoftware.csproj.AssemblyReference.cache diff --git a/obj/Debug/UtopiaAttSoftware.csproj.GenerateResource.cache b/obj/Debug/UtopiaAttSoftware.csproj.GenerateResource.cache new file mode 100644 index 0000000..73cfa89 Binary files /dev/null and b/obj/Debug/UtopiaAttSoftware.csproj.GenerateResource.cache differ diff --git a/obj/Debug/UtopiaAttSoftware.exe b/obj/Debug/UtopiaAttSoftware.exe new file mode 100644 index 0000000..a71f68f Binary files /dev/null and b/obj/Debug/UtopiaAttSoftware.exe differ diff --git a/obj/Debug/UtopiaAttSoftware.pdb b/obj/Debug/UtopiaAttSoftware.pdb new file mode 100644 index 0000000..7ebb07a Binary files /dev/null and b/obj/Debug/UtopiaAttSoftware.pdb differ