Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zbgl
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
马超
zbgl
Commits
c7b38356
Commit
c7b38356
authored
Sep 17, 2022
by
马超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
值班
parent
e75becb6
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
608 additions
and
0 deletions
+608
-0
src/com/censoft/db/LunarCalendarFestivalUtils.java
src/com/censoft/db/LunarCalendarFestivalUtils.java
+586
-0
web/jsp/zbgl/pbgl/list_ajax.jsp
web/jsp/zbgl/pbgl/list_ajax.jsp
+8
-0
web/jsp/zbgl/wdzb/list_ajax.jsp
web/jsp/zbgl/wdzb/list_ajax.jsp
+7
-0
web/jsp/zbglBgs/pbgl/list_ajax.jsp
web/jsp/zbglBgs/pbgl/list_ajax.jsp
+7
-0
No files found.
src/com/censoft/db/LunarCalendarFestivalUtils.java
0 → 100644
View file @
c7b38356
This diff is collapsed.
Click to expand it.
web/jsp/zbgl/pbgl/list_ajax.jsp
View file @
c7b38356
...
...
@@ -4,6 +4,8 @@
<%@ page
import=
"java.util.*"
%>
<%@ page
import=
"com.censoft.common.db.ConnectionFactory"
%>
<%@ page
import=
"com.censoft.common.base.Pub"
%>
<%@ page
import=
"java.text.SimpleDateFormat"
%>
<%@ page
import=
"com.censoft.db.LunarCalendarFestivalUtils"
%>
<%!
public
static
String
getMxId
(
ConnectionFactory
cf
,
Connection
conn
,
String
date
)
{
String
mx_id
=
""
;
...
...
@@ -38,6 +40,8 @@
String
name
=
""
;
String
xiuxi
=
""
;
try
{
LunarCalendarFestivalUtils
nl
=
new
LunarCalendarFestivalUtils
();
nl
.
initLunarCalendarInfo
(
year
+
month
+
day
);
StringBuffer
sb
=
new
StringBuffer
();
sb
.
append
(
"select t1.zb_user from zb_user_gl t1 where 1=1 "
);
sb
.
append
(
" and t1.year=? "
);
...
...
@@ -74,6 +78,10 @@
Hashtable
ht
=
(
Hashtable
)
v_list_h
.
get
(
0
);
name
=
pub
.
trimNull
((
String
)
ht
.
get
(
"name"
));
}
if
(
""
.
equals
(
name
)){
String
nongli
=
nl
.
getLunarDay
();
name
=
nongli
;
}
if
(
v_list_xiu
!=
null
&&
v_list_xiu
.
size
()
>
0
)
{
Hashtable
ht
=
(
Hashtable
)
v_list_xiu
.
get
(
0
);
xiuxi
=
pub
.
trimNull
((
String
)
ht
.
get
(
"name"
));
...
...
web/jsp/zbgl/wdzb/list_ajax.jsp
View file @
c7b38356
...
...
@@ -4,6 +4,7 @@
<%@ page
import=
"java.util.*"
%>
<%@ page
import=
"com.censoft.common.db.ConnectionFactory"
%>
<%@ page
import=
"com.censoft.common.base.Pub"
%>
<%@ page
import=
"com.censoft.db.LunarCalendarFestivalUtils"
%>
<%!
public
static
String
getMxId
(
ConnectionFactory
cf
,
Connection
conn
,
String
date
)
{
String
mx_id
=
""
;
...
...
@@ -54,6 +55,8 @@
String
name
=
""
;
String
xiuxi
=
""
;
try
{
LunarCalendarFestivalUtils
nl
=
new
LunarCalendarFestivalUtils
();
nl
.
initLunarCalendarInfo
(
year
+
month
+
day
);
conn
=
com
.
censoft
.
db
.
DBUtil
.
getConnection
();
StringBuffer
sb
=
new
StringBuffer
();
sb
.
append
(
"select t1.zb_user,t1.zb_type from zb_user_gl t1 where 1=1 "
);
...
...
@@ -97,6 +100,10 @@
ht
=
(
Hashtable
)
v_list_h
.
get
(
0
);
name
=
pub
.
trimNull
((
String
)
ht
.
get
(
"name"
));
}
if
(
""
.
equals
(
name
)){
String
nongli
=
nl
.
getLunarDay
();
name
=
nongli
;
}
if
(
v_list_xiu
!=
null
&&
v_list_xiu
.
size
()
>
0
)
{
ht
=
(
Hashtable
)
v_list_xiu
.
get
(
0
);
xiuxi
=
pub
.
trimNull
((
String
)
ht
.
get
(
"name"
));
...
...
web/jsp/zbglBgs/pbgl/list_ajax.jsp
View file @
c7b38356
...
...
@@ -4,6 +4,7 @@
<%@ page
import=
"java.util.*"
%>
<%@ page
import=
"com.censoft.common.db.ConnectionFactory"
%>
<%@ page
import=
"com.censoft.common.base.Pub"
%>
<%@ page
import=
"com.censoft.db.LunarCalendarFestivalUtils"
%>
<%!
public
static
String
getMxId
(
ConnectionFactory
cf
,
Connection
conn
,
String
date
)
{
String
mx_id
=
""
;
...
...
@@ -38,6 +39,8 @@
String
name
=
""
;
String
xiuxi
=
""
;
try
{
LunarCalendarFestivalUtils
nl
=
new
LunarCalendarFestivalUtils
();
nl
.
initLunarCalendarInfo
(
year
+
month
+
day
);
StringBuffer
sb
=
new
StringBuffer
();
sb
.
append
(
"select t1.zb_user from zb_user_gl_bgs t1 where 1=1 "
);
sb
.
append
(
" and t1.year=? "
);
...
...
@@ -74,6 +77,10 @@
Hashtable
ht
=
(
Hashtable
)
v_list_h
.
get
(
0
);
name
=
pub
.
trimNull
((
String
)
ht
.
get
(
"name"
));
}
if
(
""
.
equals
(
name
)){
String
nongli
=
nl
.
getLunarDay
();
name
=
nongli
;
}
if
(
v_list_xiu
!=
null
&&
v_list_xiu
.
size
()
>
0
)
{
Hashtable
ht
=
(
Hashtable
)
v_list_xiu
.
get
(
0
);
xiuxi
=
pub
.
trimNull
((
String
)
ht
.
get
(
"name"
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment