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; } }
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); } }
public string AddNewClockInRd(T_HR_EMPLOYEECLOCKINRECORD entClockInRd) { using (ClockInRecordBLL bllClockInRecord = new ClockInRecordBLL()) { return bllClockInRecord.AddClockInRecord(entClockInRd); } }
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); } }
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); } } }
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); } }
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; } }
public DateTime GetLatestPunchDateByCompanyId(string strCompanyId) { using (ClockInRecordBLL bllClockInRecord = new ClockInRecordBLL()) { return bllClockInRecord.GetLatestPunchDateByCompanyId(strCompanyId); } }