| |

VerySource

 Forgot password?
 Register
Search
View: 2013|Reply: 19

Which expert can solve it ????

[Copy link]

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-29 14:20:01
| Show all posts |Read mode
I now want to write a rest day algorithm to show the rest days in the attendance list. Now there are still judgments on Saturday and Sunday. How can I judge if the legal holidays such as New Year's Day and New Year's Day conflict with Sunday? Didn't solve it? Masters can see if it can be solved
Reply

Use magic Report

0

Threads

15

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-3-2 19:00:01
| Show all posts
November\New Year's Day
New Year needs a lunar algorithm
Can baidu search
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-3-3 23:15:01
| Show all posts
How to do it on New Year's Day, top yourself
Reply

Use magic Report

0

Threads

22

Posts

18.00

Credits

Newbie

Rank: 1

Credits
18.00

 China

Post time: 2020-3-4 10:00:01
| Show all posts
The arrangement of statutory holidays is notified every year before the holiday, and there may be exceptions, such as SARS.
Basically, it is scheduled for weekends.
You can use the dayofweek to determine the legal holiday adjustment in accordance with the dayofweek judgment in the code. The priority is higher than the double holiday.
Reply

Use magic Report

0

Threads

64

Posts

45.00

Credits

Newbie

Rank: 1

Credits
45.00

 China

Post time: 2020-3-4 14:00:01
| Show all posts
The company system is different, and the holiday mode is different. It is best to have a table in the database to record the holiday mode and the number of days, and then judge which days are holiday
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-3-5 00:30:01
| Show all posts
Explain that you still can't emancipate the rules of leave. If you can describe the rules of your vacation in words, will it not be easy for you to turn it into a procedure? Ha ha. Lazy thinking. But the landlord must do it himself. In your post, you haven't seen any substantive problems. It seems that someone wants to give code?
Reply

Use magic Report

0

Threads

23

Posts

20.00

Credits

Newbie

Rank: 1

Credits
20.00

 China

Post time: 2020-3-5 01:45:02
| Show all posts
The company system is different, and the holiday mode is different. It is best to have a table in the database to record the holiday mode and the number of days, and then judge which days are holiday
Reply

Use magic Report

0

Threads

6

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-3-7 15:15:01
| Show all posts
It is more realistic to design a watch, which is specially managed by personnel.
Reply

Use magic Report

0

Threads

13

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-3-17 08:00:02
| Show all posts
I didn't learn C # for a long time. I don't know how to implement it in C #. I can provide an idea of ​​using SQL database:
1. With DATEPART you can return the day of the week, such as January 1, 2017, can be calculated as Monday
2. If it happens to be Saturday, then postpone the holiday by one day
3. If there is supplementary leave, you can calculate the day of 2017/1/1 minus 7 (used last week) or add 7 (used next week)
Reply

Use magic Report

0

Threads

27

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 Invalid IP Address

Post time: 2020-3-17 09:45:01
| Show all posts
This kind of thing is the need to do a good job. There should be no problems in the program. Write the requirements first, make uml diagrams, and then program it. It's much better. The day is wrong, but it is troublesome.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list