Shift algorithm begging

Source: Internet
Author: User
Scheduling Algorithm begging for Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiBase/html/delphi_20061208131750224.html
Field Name field data type description
No. idint auto-Increment
Doctor No. docnochar [8] foreign key
Rotation cycle returntype int 0 week, 1 half month, 2 one month; default 0
Rotation number returnid int when returntype is 0, the value is 1-7; When returntype is 1, the value is 1-15; When returntype is 2, the value range is 1-31 (the value varies by month );

Shift returnsqint 1 morning shift, 2 afternoon shift, 3 evening shift, 0 whole shift
Effective date: validetime date
Expert isproboolean 0 NO, 1 is
Category: protypechar [6]


The form of the data table is as follows ~

A little less than 10 points! Haha.

But I can only write 10. Why ??

Help me get it ~

A little less than 10 points! Haha.
------------------- Don't worry about joking
No problem. Just give it to you. If you can wait. Good evening?

Okay. I thought of a very idiotic method myself. NoAlgorithm. All are implemented on the interface. after selecting the "rotation cycle" returntype, enter the "rotation sequence number" and use the mousedown event to determine the selected returntype. Based on the selected window, the system prompts you to select "rotation sequence number ", in this case, use ComboBox to manually add "rotation serial number" for selection. for example, if the returntype is set to 0, the system jumps out of another form. The above ComboBox is set to 1-7. and so on... very pediatric practice ~
Lao Feng has trouble pointing out more "professional" Algorithms

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.