示例#1
0
        //人员考勤明细
        private void MenuAttendanceParticulars_Click(object sender, EventArgs e)
        {
            if (Searcher.FindFormByName("AttendanceParticulars"))
            {
                return;
            }

            ILogger.Write(EnumLogType.OperateLog, strLogPath + DateTime.Now.ToString("yyyy-MM-dd") + ".xml", LoginBLL.user, "打开人员考勤明细菜单");

            AttendanceParticulars ap = new AttendanceParticulars();
            ap.Show(dockPanel1, DockState.Document);

        }
示例#2
0
        //考勤明细
        private void tsmiAttendanceParticulars_Click_1(object sender, EventArgs e)
        {
            if (Searcher.FindFormByName("AttendanceParticulars"))
            {
                return;
            }
            ILogger.Write(EnumLogType.OperateLog, strLogPath + DateTime.Now.ToString("yyyy-MM-dd") + ".xml", LoginBLL.user, "打开考勤明细菜单");

            KJ128NInterfaceShow.AttendanceParticulars frmE = new AttendanceParticulars();
            frmE.Show(dockPanel1, DockState.Document);
        }
示例#3
0
        //人员考勤明细
        private void MenuAttendanceParticulars_Click(object sender, EventArgs e)
        {
            ILogger.Write(EnumLogType.OperateLog, strLogPath + DateTime.Now.ToString("yyyy-MM-dd") + ".xml", LoginBLL.user, "打开人员考勤明细菜单");

            AttendanceParticulars ap = new AttendanceParticulars();
            ap.Show();

        }
        /// <summary>
        /// 点击单元格内的内容时候发生
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void dgrd_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            // string strValue = dgViewDept.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();
            if (e.RowIndex == -1)
                return;
            if (e.ColumnIndex == -1)
                return;
            string strHeardValue = dgrd.Columns[e.ColumnIndex].HeaderText.ToString();
            string deptid = dgrd.Rows[e.RowIndex].Cells[2].Value.ToString();
            string cardid = dgrd.Rows[e.RowIndex].Cells[0].Value.ToString();
            string startTime = dtpStartTime.Value.ToString("yyyy-MM-dd");
            string endTime = dtpEndTime.Value.ToString("yyyy-MM-dd");
            string empName = dgrd.Rows[e.RowIndex].Cells[1].Value.ToString();
            string deptName = dgrd.Rows[e.RowIndex].Cells[3].Value.ToString().Trim();
            string cellText = dgrd.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString();

            if (!cellText.Equals("0"))
            {
                // dgrd.Rows[e.RowIndex].Cells[e.ColumnIndex].ToolTipText = "点击数字可以查看明细!";
                if (hashShift.ContainsKey(strHeardValue))
                {
                    //this.Cursor = Cursors.Hand;
                    string shiftid = hashShift[strHeardValue].ToString();

                    AttendanceParticulars frmAP = new AttendanceParticulars(deptName, deptid, cardid, shiftid, startTime, endTime, empName, findType, intTimeLong.ToString(),isUnion);
                    frmAP.ShowDialog();
                }
                else if (strHeardValue.Equals("出勤合计"))
                {
                    //string shiftid = hashShift[strHeardValue].ToString();
                    //this.Cursor = Cursors.Hand;

                    AttendanceParticulars frmAP = new AttendanceParticulars(deptName, deptid, cardid, "", startTime, endTime, empName, findType, intTimeLong.ToString(),isUnion);
                    frmAP.ShowDialog();
                }
                else if (strHeardValue.Equals("跟班"))
                {
                    //this.Cursor = Cursors.Hand;
                    //KJ128NMainRun.AttendanceInfoSet.NewHolidayTypeSet holidaySet = new KJ128NMainRun.AttendanceInfoSet.NewHolidayTypeSet(deptName, deptid, cardid, startTime, endTime, dtpStartTime.Value.ToString("yyyyM"), empName);
                    AttendanceParticulars frmAP = new AttendanceParticulars(deptName, deptid, cardid, "跟班", startTime, endTime, empName, findType, intTimeLong.ToString(), isUnion);

                    frmAP.ShowDialog();
                }

            }

        }