Пример #1
0
        public string InsertStudiesToClass(int ScheduleId, List <string> Userids, string type)
        {
            string        ecode, edesc;
            TB_CLASSESSql sql        = new TB_CLASSESSql();
            string        listUserId = String.Join(",", Userids);

            sql.SelectFromStore(out ecode, out edesc, AppSettingKeys.INSERT_STUDIES_TO_CLASS, ScheduleId, listUserId, type);
            return(ecode);
        }
Пример #2
0
        public bool InsertOrUpdateClassFromAdmin(string scheduleId, string boxSubjectId, string price, string startDate, string endDate, string dayOfWeek, string timeIn, string timeEnd, string status, string userId, string note, string fileId, string roomId, string dayOfWeek2, string timeIn2, string timeEnd2)
        {
            string        ecode, edesc;
            TB_CLASSESSql sql = new TB_CLASSESSql();

            sql.SelectFromStore(out ecode, out edesc, AppSettingKeys.INSERT_OR_UPDATE_CLASS_FROM_ADMIN, scheduleId, boxSubjectId, price, startDate, endDate, dayOfWeek, timeIn, timeEnd, status, userId, note, fileId, roomId, dayOfWeek2, timeIn2, timeEnd2);
            if (ecode.Equals("00"))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }