/// <summary> /// 复制学期 /// </summary> /// <param name="context"></param> private void CopySection(HttpContext context) { Sys_StudySection org = new Sys_StudySection(); org.Academic = context.Request["Academic"].SafeToString(); org.StartDate = Convert.ToDateTime(context.Request["StartDate"]); org.EndDate = Convert.ToDateTime(context.Request["EndDate"]); org.Semester = context.Request["Semester"].SafeToString(); org.Id = Convert.ToInt32(context.Request["OldSectionID"]); org.IsDelete = Convert.ToByte(context.Request["IsDelete"]); int isUp = Convert.ToInt32(context.Request["IsUp"]); jsonModel = bll.CopySection(org, isUp); }
private void EditSection(HttpContext context) { int OrgId = Convert.ToInt32(HttpContext.Current.Request["ID"]); jsonModel = bll.GetEntityById(OrgId); if (jsonModel.errNum == 0) { Sys_StudySection org = (Sys_StudySection)jsonModel.retData; org.Academic = context.Request["Academic"].SafeToString(); org.StartDate = Convert.ToDateTime(context.Request["StartDate"]); org.EndDate = Convert.ToDateTime(context.Request["EndDate"]); org.Semester = context.Request["Semester"].SafeToString(); org.IsDelete = Convert.ToByte(context.Request["IsDelete"]); jsonModel = bll.Update(org); } }
private void AddSection(HttpContext context) { Sys_StudySection org = new Sys_StudySection(); org.Academic = context.Request["Academic"].SafeToString(); org.StartDate = Convert.ToDateTime(context.Request["StartDate"]); org.EndDate = Convert.ToDateTime(context.Request["EndDate"]); org.Semester = context.Request["Semester"].SafeToString(); org.PeriodIDs = context.Request["PeriodIDs"].SafeToString().TrimEnd(','); org.CreateUID = context.Request["CreateUID"].SafeToString(); org.IsDelete = Convert.ToByte(context.Request["IsDelete"]); string Small = context.Request["Small"].SafeToString(); string SmallL = context.Request["SmallL"].SafeToString(); string Center = context.Request["Center"].SafeToString(); string CenterL = context.Request["CenterL"].SafeToString(); string High = context.Request["High"].SafeToString(); string HighL = context.Request["HighL"].SafeToString(); jsonModel = bll.AddSection(org, Small, SmallL, Center, CenterL, High, HighL); }