Esempio n. 1
0
        public static OCClass OCClass_Edit(OCClass occlass, List <OCTeamDropdownList> octeamdropdownlist, List <OCClassStudent> occlassstudent)
        {
            if (!UserService.OC_IsRole(occlass.OCID))
            {
                return(null);
            }
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCClass_Edit(occlass, octeamdropdownlist, occlassstudent));
        }
Esempio n. 2
0
        public static bool OCClass_IsHistroy_Upd(OCClass model)
        {
            if (!UserService.OC_IsRole(model.OCID))
            {
                return(false);
            }

            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCClass_IsHistroy_Upd(model));
        }
Esempio n. 3
0
        public static OCClass OCClass_Get(OCClass occlass)
        {
            if (!UserService.OC_IsRole(occlass.OCID))
            {
                return(null);
            }

            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCClass_Get(occlass));
        }
Esempio n. 4
0
        public static List <OCClass> ClassList(OCClass model, int PageIndex, int PageSize)
        {
            if (!UserService.OC_IsRole(model.OCID))
            {
                return(new List <OCClass>());
            }


            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCClass_List(model, PageIndex, PageSize));
        }
Esempio n. 5
0
        public static int OC_Register(int OCID, string RegNum)
        {
            OCClass model = new OCClass
            {
                RegNum = RegNum,
                OCID   = OCID,
                UserID = IES.Service.UserService.CurrentUser.UserID
            };
            OCClass occls = new OCClassBLL().OC_Register(model);

            if (occls != null)
            {
                return(occls.output);
            }
            else
            {
                return(0);
            }
        }
Esempio n. 6
0
        public static List <OCClassStudent> OCClassStudent_List(OCClass occlass, int PageIndex, int PageSize)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCClassStudent_List(occlass, PageIndex, PageSize));
        }
Esempio n. 7
0
        public static bool OCClass_InputOutAll(OCClass model)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(true);// oCClassBLL.OCClass_IsHistroy_Upd(model);
        }
Esempio n. 8
0
        public static bool OCClass_Del(OCClass model)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCClass_Del(model));
        }
Esempio n. 9
0
        public static bool OCClass_RegNum_Upd(OCClass model)
        {
            OCClassBLL oCClassBLL = new OCClassBLL();

            return(oCClassBLL.OCClass_RegNum_Upd(model));
        }