/// <summary> /// 查詢值班人數 /// </summary> /// <param name="model"></param> /// <param name="msg"></param> /// <returns></returns> public static int SelectDutyCnt(EmpGuardWorkTimeModel model, out string msg) { var result = 0; msg = ""; var viewData = new EmpGuardWorkTimeBean() { DutyDate = model.DutyDate, DutyCompID = model.CompID, DutyDeptID = model.DeptID, DutyOrganID = model.OrganID, BranchFlag = model.BranchFlag, WTCompID = model.CompID, WTID = model.WTID }; WorkTime.SelectDutyCnt(viewData, out result, out msg); return(result); }