Ejemplo n.º 1
0
        private void AddGrade(HttpContext context)
        {
            Sys_GradeInfo org = new Sys_GradeInfo();

            org.OrganNo    = context.Request["OrganNo"].SafeToString();
            org.GradeName  = context.Request["StartDate"].SafeToString();
            org.IsGraduate = Convert.ToByte(context.Request["IsGraduate"]);
            org.PeriodID   = Convert.ToInt32(context.Request["Semester"]);
            org.CreateUID  = context.Request["CreateUID"].SafeToString();
            org.OrganNo    = context.Request["OrganNo"].SafeToString();
            jsonModel      = bll.Add(org);
        }
Ejemplo n.º 2
0
        private void EditGrade(HttpContext context)
        {
            int OrgId = Convert.ToInt32(HttpContext.Current.Request["ID"]);

            jsonModel = bll.GetEntityById(OrgId);
            if (jsonModel.errNum == 0)
            {
                Sys_GradeInfo org = (Sys_GradeInfo)jsonModel.retData;

                org.Leader = context.Request["Leader"].SafeToString();
                jsonModel  = bll.Update(org);
            }
        }