Example #1
0
 public byte[] OutClockInRdListByMultSearch(string sType, string sValue, string strOwnerID, string strEmployeeID, string strPunchDateFrom, string strPunchDateTo, string strSortKey, out string strMsg)
 {
     try
     {
         using (ClockInRecordBLL bllClockInRecord = new ClockInRecordBLL())
         {
             byte[] byVac = bllClockInRecord.OutClockInRdListByMultSearch(sType, sValue, strOwnerID, strEmployeeID, strPunchDateFrom, strPunchDateTo, strSortKey, out strMsg);
             return byVac;
         }
     }
     catch (Exception ex)
     {
         Tracer.Debug(ex.ToString());
         strMsg = ex.ToString();
         return null;
     }
 }
Example #2
0
        public void ImportClockInRdListFromFileAndLoginData(UploadFileModel UploadFile, string strFileType, string strUnitType, string strUnitObjectId, DateTime dtStart, DateTime dtEnd, ref string strMsg)
        {
            string strPath = string.Empty;
            SaveFile(UploadFile, out strPath);
            string strPhysicalPath = HttpContext.Current.Server.MapPath(strPath);

            using (ClockInRecordBLL bllClockInRecord = new ClockInRecordBLL())
            {
                bllClockInRecord.ImportClockInRdListByImportFileAndLoginData(strPhysicalPath, strFileType, strUnitType, strUnitObjectId, dtStart, dtEnd, ref strMsg);
            }
        }
Example #3
0
 public string AddNewClockInRd(T_HR_EMPLOYEECLOCKINRECORD entClockInRd)
 {
     using (ClockInRecordBLL bllClockInRecord = new ClockInRecordBLL())
     {
         return bllClockInRecord.AddClockInRecord(entClockInRd);
     }
 }
Example #4
0
 public void ImportClockInRdListFromLoginData(string strUnitType, string strUnitObjectId, DateTime dtStart, DateTime dtEnd, ref string strMsg)
 {
     using (ClockInRecordBLL bllClockInRecord = new ClockInRecordBLL())
     {
         bllClockInRecord.ImportClockInRdListByLoginData(strUnitType, strUnitObjectId, dtStart, dtEnd, ref strMsg);
     }
 }
Example #5
0
        public void ImportClockInRdListFromFile(UploadFileModel UploadFile, string strFileType, string strUnitType, string strUnitObjectId, DateTime dtStart, DateTime dtEnd, ref string strMsg)
        {
            string strPath = string.Empty;
            SaveFile(UploadFile, out strPath);
            string strPhysicalPath = HttpContext.Current.Server.MapPath(strPath);

            using (ClockInRecordBLL bllClockInRecord = new ClockInRecordBLL())
            {
                if (strFileType.ToLower() == "csv")
                {
                    bllClockInRecord.ImportClockInRdListByImportCSV(strPhysicalPath, strUnitType, strUnitObjectId, dtStart, dtEnd, ref strMsg);
                }
                else if (strFileType.ToLower() == "xls")
                {
                    bllClockInRecord.ImportClockInRdListByImportExcel(strPhysicalPath, strUnitType, strUnitObjectId, dtStart, dtEnd, ref strMsg);
                }
            }
        }
Example #6
0
 public void ImportClockInRdListByWSRealTime(string strCompanyId, List<T_HR_EMPLOYEECLOCKINRECORD> entTempList, DateTime dtStart, DateTime dtEnd, string strClientIP, ref string strMsg)
 {
     using (ClockInRecordBLL bllClockInRecord = new ClockInRecordBLL())
     {
         bllClockInRecord.ImportClockInRdListByWindowsService(strCompanyId, entTempList, dtStart, dtEnd, strClientIP, ref strMsg);
     }
 }
Example #7
0
        public List<T_HR_EMPLOYEECLOCKINRECORD> GetClockInRdListByMultSearch(string sType, string sValue, string strOwnerID, string strEmployeeID, string strPunchDateFrom,
            string strPunchDateTo, string strTimeFrom, string strTimeTo, string strSortKey, int pageIndex, int pageSize, ref int pageCount)
        {
            using (ClockInRecordBLL bllClockInRecord = new ClockInRecordBLL())
            {
                var ents = bllClockInRecord.GetClockInRdListByMultSearch(sType, sValue, strOwnerID, strEmployeeID, strPunchDateFrom, strPunchDateTo, strTimeFrom, strTimeTo, strSortKey, pageIndex, pageSize, ref pageCount);

                if (ents == null)
                {
                    return null;
                }

                return ents;
            }
        }
Example #8
0
 public DateTime GetLatestPunchDateByCompanyId(string strCompanyId)
 {
     using (ClockInRecordBLL bllClockInRecord = new ClockInRecordBLL())
     {
         return bllClockInRecord.GetLatestPunchDateByCompanyId(strCompanyId);
     }
 }