Exemplo n.º 1
0
        public static string History(SiteSettings ss, int deptId)
        {
            var deptModel = new DeptModel(ss, deptId);

            ss.SetColumnAccessControls(deptModel.Mine());
            deptModel.Get(
                ss,
                where : Rds.DeptsWhere()
                .DeptId(deptModel.DeptId)
                .Ver(Forms.Int("Ver")),
                tableType: Sqls.TableTypes.NormalAndHistory);
            deptModel.VerType = Forms.Bool("Latest")
                ? Versions.VerTypes.Latest
                : Versions.VerTypes.History;
            return(EditorResponse(ss, deptModel).ToJson());
        }