Nursing shift is a very important job in the nursing administration, because the quality of nursing shift will directly affect the quality of nursing. This study considers nursing staff's satisfaction with each shift, and must comply with Labor Standards Act, one fixed day off and one flexible rest day, continuous duty, personnel preference, fairness of shifts and day-off, etc. This study applies mathematical programming to construct the shifts and day-off assignment models. By way of computer software, such as Micorsoft Excel 2010, Micorsoft Visual Basic 2010 and Lingo11.0 designed a computerized nursing shift system to optimize the shift timetable. Finally, the models are developed to obtain an initial optimal schedule which will be as a base for practical nurses scheduling. The results show that the models are better than traditional shift scheduling method and can operate more efficiency in real applications.