예제 #1
0
        public static string GetLogs(List<string> _arr)
        {
            DataTable dummy = new DataTable();

            Khronos _khr = new Khronos();
            //_khr.TeamID = Convert.ToInt32(_arr[0].ToString());
            _khr.EmployeeID = Convert.ToInt32(_arr[0].ToString());
            //_khr.Month = Convert.ToInt32(_arr[2].ToString());
            //_khr.Year = Convert.ToInt32(_arr[3].ToString());
            _khr.MonthYear = Convert.ToDateTime(_arr[1].ToString());
            DataSet ds = new DataSet();
            try
            {
                dummy.Merge(_khr.displayKhronosLogs(0));
                ds.Tables.Add(dummy);
            }
            catch (Exception ex)
            {

            }
            return ds.GetXml();
        }
예제 #2
0
        public static string timeCorrection(List<string> _arr)
        {
            Khronos _khronos = new Khronos();
            _khronos.LogType = Convert.ToBoolean(_arr[0].ToString());
            _khronos.LogDate= Convert.ToDateTime(_arr[1].ToString());
            _khronos.CorrTime = Convert.ToDateTime(_arr[2].ToString());
            _khronos.EmployeeID = Convert.ToInt32(_arr[3].ToString());
            _khronos.CorrReason = _arr[4].ToString();
            _khronos.CorrEmpID = Convert.ToInt32(_arr[5].ToString());

            return _khronos.insertTimeCorrection();
        }