You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.4 KiB
Plaintext
30 lines
1.4 KiB
Plaintext
6 months ago
|
<%@ page import="com.engine.kq.biz.KQWorkTime" %>
|
||
|
<%@ page import="java.util.Map" %>
|
||
|
<%@ page import="com.engine.kq.entity.WorkTimeEntity" %>
|
||
|
<%@ page import="weaver.general.Util" %>
|
||
|
<%@ page import="com.engine.kq.cmd.shiftmanagement.toolkit.ShiftManagementToolKit" %>
|
||
|
<%
|
||
|
String userId = request.getParameter("userId");
|
||
|
String kqDate = request.getParameter("kqDate");
|
||
|
try {
|
||
|
|
||
|
KQWorkTime kqWorkTime = new KQWorkTime();
|
||
|
Map<String, Object> serialInfo = kqWorkTime.getSerialInfo(userId, kqDate, false);
|
||
|
if (serialInfo != null && serialInfo.size() > 0) {
|
||
|
int serialid = Util.getIntValue(Util.null2String(serialInfo.get(kqDate)), 0);
|
||
|
out.println("serialid:" + serialid + "<br>");
|
||
|
}
|
||
|
|
||
|
WorkTimeEntity workTime = kqWorkTime.getWorkTime(userId, kqDate);
|
||
|
String bc = workTime.getSerialId();
|
||
|
out.print("new serialid:" + bc + "<br>");
|
||
|
|
||
|
ShiftManagementToolKit shiftManagementToolKit = new ShiftManagementToolKit();
|
||
|
String shiftOnOffWorkSections = shiftManagementToolKit.getShiftOnOffWorkSections(bc, 7);
|
||
|
out.print("shiftOnOffWorkSections:" + shiftOnOffWorkSections + "<br>");
|
||
|
shiftOnOffWorkSections = shiftManagementToolKit.getShiftOnOffWorkSections("51", 7);
|
||
|
out.print("shiftOnOffWorkSections 51:" + shiftOnOffWorkSections + "<br>");
|
||
|
} catch (Exception e) {
|
||
|
out.print("get serialid error:" + e.getMessage());
|
||
|
}
|
||
|
%>
|