提交 8758fdff 编写于 作者: ibizdev's avatar ibizdev

chitanda 发布系统代码 [TrainSys,网页端]

上级 fea8301d
import { defineComponent, PropType, reactive } from 'vue'; import { defineComponent, PropType } from 'vue';
import { IPSUIActionGroup, IPSUIActionGroupDetail } from '@ibiz-template/model'; import { IPSUIActionGroup, IPSUIActionGroupDetail } from '@ibiz-template/model';
import { useNamespace } from '@ibiz-template/vue-util'; import { useNamespace } from '@ibiz-template/vue-util';
import '@/styles/components/common/view-toolbar/view-toolbar.scss'; import '@/styles/components/common/view-toolbar/view-toolbar.scss';
import { ActionStates, ActionState } from '@ibiz-template/controller'; import { IActionsState } from '@ibiz-template/controller';
export const ActionToolbar = defineComponent({ export const ActionToolbar = defineComponent({
name: 'ActionToolbar', name: 'ActionToolbar',
...@@ -11,23 +11,14 @@ export const ActionToolbar = defineComponent({ ...@@ -11,23 +11,14 @@ export const ActionToolbar = defineComponent({
type: Object as PropType<IPSUIActionGroup>, type: Object as PropType<IPSUIActionGroup>,
required: true, required: true,
}, },
actionStates: { actionsState: {
type: Object as PropType<ActionStates>, type: Object as PropType<IActionsState>,
required: true, required: true,
}, },
}, },
setup(props, { emit }) { setup(props, { emit }) {
const ns = useNamespace('action-toolbar'); const ns = useNamespace('action-toolbar');
// 按钮状态控制
const actionStates = reactive<{ [p: string]: ActionState }>({});
props.actionGroup.getPSUIActionGroupDetails()?.forEach(detail => {
const action = detail.getPSUIAction();
if (action) {
actionStates[action.uIActionTag] = { disabled: false };
}
});
// 点击事件抛给表格执行 // 点击事件抛给表格执行
const handleClick = async ( const handleClick = async (
detail: IPSUIActionGroupDetail, detail: IPSUIActionGroupDetail,
...@@ -50,7 +41,7 @@ export const ActionToolbar = defineComponent({ ...@@ -50,7 +41,7 @@ export const ActionToolbar = defineComponent({
<i-button <i-button
type='text' type='text'
on-click={(e: MouseEvent) => this.handleClick(detail, e)} on-click={(e: MouseEvent) => this.handleClick(detail, e)}
disabled={this.actionStates[action.uIActionTag].disabled} disabled={this.actionsState[detail.name].disabled}
class={[this.ns.be('item'), this.ns.is('disabled', false)]} class={[this.ns.be('item'), this.ns.is('disabled', false)]}
> >
{detail.showIcon && action.getPSSysImage() && ( {detail.showIcon && action.getPSSysImage() && (
......
...@@ -21,7 +21,7 @@ export const AppGridEditItem = defineComponent({ ...@@ -21,7 +21,7 @@ export const AppGridEditItem = defineComponent({
{!this.error ? ( {!this.error ? (
this.$slots.default this.$slots.default
) : ( ) : (
<tooltip <i-tooltip
content={this.error} content={this.error}
transfer transfer
transfer-class-name='grid-error' transfer-class-name='grid-error'
...@@ -29,7 +29,7 @@ export const AppGridEditItem = defineComponent({ ...@@ -29,7 +29,7 @@ export const AppGridEditItem = defineComponent({
style='border: 1px solid red' style='border: 1px solid red'
> >
{this.$slots.default} {this.$slots.default}
</tooltip> </i-tooltip>
)} )}
</div> </div>
); );
......
...@@ -12,7 +12,7 @@ import { ...@@ -12,7 +12,7 @@ import {
IPSDEToolbarItem, IPSDEToolbarItem,
ToolbarModel, ToolbarModel,
} from '@ibiz-template/model'; } from '@ibiz-template/model';
import { ToolbarNeuron } from '@ibiz-template/controller'; import { ActionsState, ToolbarNeuron } from '@ibiz-template/controller';
import { useNamespace } from '@ibiz-template/vue-util'; import { useNamespace } from '@ibiz-template/vue-util';
import '@/styles/components/common/view-toolbar/view-toolbar.scss'; import '@/styles/components/common/view-toolbar/view-toolbar.scss';
...@@ -51,50 +51,42 @@ export const ViewToolbar = defineComponent({ ...@@ -51,50 +51,42 @@ export const ViewToolbar = defineComponent({
await neuron.evt.asyncEmit('mounted'); await neuron.evt.asyncEmit('mounted');
}); });
// 点击事件
const handleClick = async (item: IPSDEToolbarItem, _event: MouseEvent) => {
doingToolbarItem.value = item.id;
try {
await neuron.evt.asyncEmit(
'itemClick',
item as IPSDETBUIActionItem,
_event,
);
} finally {
doingToolbarItem.value = '';
}
};
const btnSize = computed(() => { const btnSize = computed(() => {
return props.viewMode === 'EMBED' ? 'small' : 'default'; return props.viewMode === 'EMBED' ? 'small' : 'default';
}); });
// 初始化工具栏状态控制对象 // 初始化工具栏状态控制对象
const tempState: { const actionsState = new ActionsState();
[p: string]: {
visible: boolean;
disabled: boolean;
};
} = {};
[...props.modelData.actionItems.values()].forEach(item => { [...props.modelData.actionItems.values()].forEach(item => {
tempState[item.id] = { actionsState.addAction(
visible: true, item.id,
disabled: false, item.uIActionTarget,
}; item.getPSUIAction()?.uIActionTag || '',
);
}); });
const toolbarState = reactive(tempState); const toolbarState = reactive(actionsState);
watch( watch(
() => props.selections, () => props.selections,
newVal => { newVal => {
[...props.modelData.actionItems.values()].forEach(item => { toolbarState.setSelectedData(newVal || []);
if (item.uIActionTarget === 'NONE') {
tempState[item.id].disabled = !newVal?.length;
}
});
}, },
{ immediate: true }, { immediate: true },
); );
// 点击事件
const handleClick = async (item: IPSDEToolbarItem, _event: MouseEvent) => {
toolbarState.setDoingAction(item.id);
try {
await neuron.evt.asyncEmit(
'itemClick',
item as IPSDETBUIActionItem,
_event,
);
} finally {
toolbarState.setDoingAction('');
}
};
return { ns, doingToolbarItem, toolbarState, handleClick, btnSize }; return { ns, doingToolbarItem, toolbarState, handleClick, btnSize };
}, },
render() { render() {
...@@ -124,13 +116,8 @@ export const ViewToolbar = defineComponent({ ...@@ -124,13 +116,8 @@ export const ViewToolbar = defineComponent({
<i-button <i-button
title={item.tooltip} title={item.tooltip}
size={this.btnSize} size={this.btnSize}
loading={ loading={this.toolbarState[item.id].loading}
!!this.doingToolbarItem && this.doingToolbarItem === item.id disabled={this.toolbarState[item.id].disabled}
}
disabled={
!!this.doingToolbarItem ||
this.toolbarState[item.id].disabled
}
on-click={(e: MouseEvent) => this.handleClick(item, e)} on-click={(e: MouseEvent) => this.handleClick(item, e)}
> >
{btnContent(item, this.viewMode)} {btnContent(item, this.viewMode)}
......
...@@ -15,6 +15,9 @@ export const IBizDropDownList = defineComponent({ ...@@ -15,6 +15,9 @@ export const IBizDropDownList = defineComponent({
data: { data: {
type: Object as PropType<IData>, type: Object as PropType<IData>,
}, },
disable: {
type: Boolean,
},
}, },
emits: { emits: {
change: (_value: string | Array<string> | null) => true, change: (_value: string | Array<string> | null) => true,
...@@ -84,6 +87,7 @@ export const IBizDropDownList = defineComponent({ ...@@ -84,6 +87,7 @@ export const IBizDropDownList = defineComponent({
class={this.ns.e('dropdown-list')} class={this.ns.e('dropdown-list')}
multiple={this.c!.multiple} multiple={this.c!.multiple}
placeholder={this.c!.placeHolder} placeholder={this.c!.placeHolder}
disabled={this.disable}
> >
{this.items.map(item => { {this.items.map(item => {
return <i-option value={item.value}>{item.text}</i-option>; return <i-option value={item.value}>{item.text}</i-option>;
......
...@@ -15,6 +15,9 @@ export const IBizMPicker = defineComponent({ ...@@ -15,6 +15,9 @@ export const IBizMPicker = defineComponent({
data: { data: {
type: Object as PropType<IData>, type: Object as PropType<IData>,
}, },
disable: {
type: Boolean,
},
}, },
emits: { emits: {
change: (_value: Array<string> | string | null, _tag?: string) => true, change: (_value: Array<string> | string | null, _tag?: string) => true,
...@@ -261,6 +264,7 @@ export const IBizMPicker = defineComponent({ ...@@ -261,6 +264,7 @@ export const IBizMPicker = defineComponent({
remote-method={this.onSearch} remote-method={this.onSearch}
on-on-open-change={this.onSelectOpen} on-on-open-change={this.onSelectOpen}
on-on-change={this.onSelect} on-on-change={this.onSelect}
disabled={this.disable}
> >
{this.items.map((item, index) => { {this.items.map((item, index) => {
return ( return (
......
...@@ -17,6 +17,9 @@ export const IBizPickerDropdown = defineComponent({ ...@@ -17,6 +17,9 @@ export const IBizPickerDropdown = defineComponent({
type: Object as PropType<IData>, type: Object as PropType<IData>,
required: true, required: true,
}, },
disable: {
type: Boolean,
},
}, },
emits: { emits: {
change: (_value?: string | Array<string> | IData | null, _tag?: string) => change: (_value?: string | Array<string> | IData | null, _tag?: string) =>
...@@ -174,6 +177,7 @@ export const IBizPickerDropdown = defineComponent({ ...@@ -174,6 +177,7 @@ export const IBizPickerDropdown = defineComponent({
on-on-open-change={this.onSelectOpen} on-on-open-change={this.onSelectOpen}
on-on-change={this.onSelect} on-on-change={this.onSelect}
on-on-clear={this.onClear} on-on-clear={this.onClear}
disabled={this.disable}
> >
{this.items.map((item, index) => { {this.items.map((item, index) => {
return ( return (
......
...@@ -17,6 +17,9 @@ export const IBizPicker = defineComponent({ ...@@ -17,6 +17,9 @@ export const IBizPicker = defineComponent({
type: Object as PropType<IData>, type: Object as PropType<IData>,
required: true, required: true,
}, },
disable: {
type: Boolean,
},
}, },
setup(props, { emit }) { setup(props, { emit }) {
const ns = useNamespace('picker'); const ns = useNamespace('picker');
...@@ -145,6 +148,7 @@ export const IBizPicker = defineComponent({ ...@@ -145,6 +148,7 @@ export const IBizPicker = defineComponent({
clearable clearable
placeholder={this.c.placeHolder} placeholder={this.c.placeHolder}
on-on-clear={this.onClear} on-on-clear={this.onClear}
disabled={this.disable}
> >
{this.$slots.append} {this.$slots.append}
{!this.$slots.append && this.c.pickupView ? ( {!this.$slots.append && this.c.pickupView ? (
...@@ -178,6 +182,7 @@ export const IBizPicker = defineComponent({ ...@@ -178,6 +182,7 @@ export const IBizPicker = defineComponent({
on-on-focus={this.onFocus} on-on-focus={this.onFocus}
on-on-search={this.onSearch} on-on-search={this.onSearch}
on-on-clear={this.onClear} on-on-clear={this.onClear}
disabled={this.disable}
> >
{this.items.map(item => { {this.items.map(item => {
return ( return (
......
import { IModal } from '@ibiz-template/runtime'; import { IModal } from '@ibiz-template/runtime';
import { useGridViewController } from '@ibiz-template/vue-util'; import { useGridViewController } from '@ibiz-template/vue-util';
import { defineComponent, getCurrentInstance, PropType } from 'vue'; import {
defineComponent,
getCurrentInstance,
onActivated,
PropType,
} from 'vue';
export const GridView = defineComponent({ export const GridView = defineComponent({
props: { props: {
...@@ -14,6 +19,9 @@ export const GridView = defineComponent({ ...@@ -14,6 +19,9 @@ export const GridView = defineComponent({
const c = useGridViewController(proxy, props.modelPath); const c = useGridViewController(proxy, props.modelPath);
// 表格视图激活刷新
onActivated(() => c.refresh());
return { c }; return { c };
}, },
render() { render() {
......
...@@ -38,7 +38,8 @@ export const GridControl = defineComponent({ ...@@ -38,7 +38,8 @@ export const GridControl = defineComponent({
); );
const [columns] = useITableColumns(c); const [columns] = useITableColumns(c);
const { onRowClick, onDbRowClick, onSelectionChange } = useITableEvent(c); const { onRowClick, onDbRowClick, onSelectionChange, onSortChange } =
useITableEvent(c);
const { onPageChange, onPageReset, onPageSizeChange } = const { onPageChange, onPageReset, onPageSizeChange } =
useAppGridPagination(c); useAppGridPagination(c);
...@@ -63,6 +64,7 @@ export const GridControl = defineComponent({ ...@@ -63,6 +64,7 @@ export const GridControl = defineComponent({
onDbRowClick, onDbRowClick,
onUIRowClick, onUIRowClick,
onSelectionChange, onSelectionChange,
onSortChange,
onPageChange, onPageChange,
onPageSizeChange, onPageSizeChange,
onPageReset, onPageReset,
...@@ -91,10 +93,10 @@ export const GridControl = defineComponent({ ...@@ -91,10 +93,10 @@ export const GridControl = defineComponent({
); );
}, },
}; };
if (this.c.rows.length > 0) { // 属性列自定义
// 属性列自定义 this.c.model.fieldColumns.forEach(item => {
this.c.model.fieldColumns.forEach(item => { columnSlots[item.codeName] = ({ row, index }: IData) => {
columnSlots[item.codeName] = ({ row, index }: IData) => { if (this.c.rows.length > 0) {
return ( return (
<grid-column <grid-column
key={row.srfkey + item.codeName} key={row.srfkey + item.codeName}
...@@ -103,11 +105,13 @@ export const GridControl = defineComponent({ ...@@ -103,11 +105,13 @@ export const GridControl = defineComponent({
row={this.c.rows[index]} row={this.c.rows[index]}
></grid-column> ></grid-column>
); );
}; }
}); };
// 操作列自定义 });
this.c.model.uaColumns.forEach(item => { // 操作列自定义
columnSlots[item.codeName] = ({ row, index }: IData) => { this.c.model.uaColumns.forEach(item => {
columnSlots[item.codeName] = ({ row, index }: IData) => {
if (this.c.rows.length > 0) {
return ( return (
<grid-ua-column <grid-ua-column
key={row.srfkey + item.codeName} key={row.srfkey + item.codeName}
...@@ -115,9 +119,9 @@ export const GridControl = defineComponent({ ...@@ -115,9 +119,9 @@ export const GridControl = defineComponent({
row={this.c.rows[index]} row={this.c.rows[index]}
></grid-ua-column> ></grid-ua-column>
); );
}; }
}); };
} });
return ( return (
<control-layout modelData={this.c.model}> <control-layout modelData={this.c.model}>
...@@ -138,6 +142,7 @@ export const GridControl = defineComponent({ ...@@ -138,6 +142,7 @@ export const GridControl = defineComponent({
on-on-row-click={this.onUIRowClick} on-on-row-click={this.onUIRowClick}
on-on-row-dblclick={this.onDbRowClick} on-on-row-dblclick={this.onDbRowClick}
on-on-selection-change={this.onSelectionChange} on-on-selection-change={this.onSelectionChange}
on-on-sort-change={this.onSortChange}
scopedSlots={columnSlots} scopedSlots={columnSlots}
></i-table> ></i-table>
{this.c.model.source.enablePagingBar && ( {this.c.model.source.enablePagingBar && (
......
...@@ -27,6 +27,7 @@ export function generateIViewColumns(c: GridController): IData[] { ...@@ -27,6 +27,7 @@ export function generateIViewColumns(c: GridController): IData[] {
ellipsis: true, ellipsis: true,
tooltip: false, // todo 表格提示用title tooltip: false, // todo 表格提示用title
resizable: true, resizable: true,
sortable: !c.noSort && column.source.enableSort ? 'custom' : false,
}; };
}); });
...@@ -135,7 +136,17 @@ export function useITableEvent(c: GridController) { ...@@ -135,7 +136,17 @@ export function useITableEvent(c: GridController) {
c.onSelectionChange(origins); c.onSelectionChange(origins);
} }
} }
return { onRowClick, onDbRowClick, onSelectionChange };
function onSortChange(opts: {
column: IData;
key: string;
order: 'asc' | 'desc';
}) {
const { key, order } = opts;
c.setSort(key, order);
c.load();
}
return { onRowClick, onDbRowClick, onSelectionChange, onSortChange };
} }
/** /**
......
...@@ -2,7 +2,7 @@ import { ...@@ -2,7 +2,7 @@ import {
GridFieldColumnController, GridFieldColumnController,
GridRowController, GridRowController,
} from '@ibiz-template/controller'; } from '@ibiz-template/controller';
import { defineComponent } from 'vue'; import { computed, defineComponent } from 'vue';
import { useNamespace } from '@ibiz-template/vue-util'; import { useNamespace } from '@ibiz-template/vue-util';
export const GridFieldColumn = defineComponent({ export const GridFieldColumn = defineComponent({
...@@ -17,16 +17,24 @@ export const GridFieldColumn = defineComponent({ ...@@ -17,16 +17,24 @@ export const GridFieldColumn = defineComponent({
required: true, required: true,
}, },
}, },
setup() { setup(props) {
const ns = useNamespace('grid-column'); const ns = useNamespace('grid-column');
return { ns }; const codeListText = computed(() => {
if (props.controller.codeListItems?.length) {
const value = props.row.data[props.controller.model.codeName];
const findItem = props.controller.codeListItems.find(
item => item.value === value,
);
return findItem?.text;
}
return null;
});
return { ns, codeListText };
}, },
render() { render() {
return ( const value = this.row.data[this.controller.model.codeName];
<span class={this.ns.b()}> return <span class={this.ns.b()}>{this.codeListText || value}</span>;
{this.row.data[this.controller.model.codeName]}
</span>
);
}, },
}); });
export default GridFieldColumn; export default GridFieldColumn;
...@@ -42,7 +42,7 @@ export const GridUAColumn = defineComponent({ ...@@ -42,7 +42,7 @@ export const GridUAColumn = defineComponent({
{!this.uaColumn.model.actionGroup ? null : ( {!this.uaColumn.model.actionGroup ? null : (
<actionToolbar <actionToolbar
action-group={this.uaColumn.model.actionGroup} action-group={this.uaColumn.model.actionGroup}
action-states={ actions-state={
this.row.uaColumnStates[this.uaColumn.model.codeName] this.row.uaColumnStates[this.uaColumn.model.codeName]
} }
on-action-click={this.onActionClick} on-action-click={this.onActionClick}
......
import Router from 'vue-router'; import Router from 'vue-router';
import { AuthGuard } from '../guard'; import { AuthGuard } from '../guard';
import RouterShell from '@/components/router-shell/router-shell'; import RouterShell from '@/components/router-shell/router-shell';
import appRedirectView from '@/views/app-redirect-view/app-redirect-view';
import todoRedirect from '@/views/todo-redirect/todo-redirect';
const router = new Router({ const router = new Router({
routes: [ routes: [
...@@ -18,6 +20,32 @@ const router = new Router({ ...@@ -18,6 +20,32 @@ const router = new Router({
name: '404View', name: '404View',
component: () => import('../views/404-view/404-view'), component: () => import('../views/404-view/404-view'),
}, },
{
path: '/appredirectview',
name: 'appRedirectView',
beforeEnter: async (_to, _from, next) => {
const authority = await AuthGuard();
if (authority) {
next();
} else {
next(false);
}
},
component: appRedirectView,
},
{
path: '/todoredirect',
name: 'todoRedirect',
beforeEnter: async (_to, _from, next) => {
const authority = await AuthGuard();
if (authority) {
next();
} else {
next(false);
}
},
component: todoRedirect,
},
{ {
path: '/:view1([^=/]+)/:params1([^/]+=[^/]+)?', path: '/:view1([^=/]+)/:params1([^/]+=[^/]+)?',
props: { props: {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
} }
} }
@include b('icon'){ @include b('icon') {
display: inline-block; display: inline-block;
max-width: getCssVar('view-toolbar', 'icon-max-width'); max-width: getCssVar('view-toolbar', 'icon-max-width');
max-height: getCssVar('view-toolbar', 'icon-max-height'); max-height: getCssVar('view-toolbar', 'icon-max-height');
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
.ivu-btn { .ivu-btn {
height: getCssVar('view-toolbar-embed', 'item-height'); height: getCssVar('view-toolbar-embed', 'item-height');
line-height: getCssVar('view-toolbar-embed', 'item-line-height'); line-height: getCssVar('view-toolbar-embed', 'item-line-height');
background-color: getCssVar('view-toolbar-embed', 'bg-color');
border: none; border: none;
box-shadow: none; box-shadow: none;
} }
......
...@@ -277,7 +277,9 @@ $skeleton: map.merge( ...@@ -277,7 +277,9 @@ $skeleton: map.merge(
( (
'bg-color': rgb(190 190 190 / 20%), 'bg-color': rgb(190 190 190 / 20%),
// 骨架屏元素背景颜色 // 骨架屏元素背景颜色
'transition-color': rgb(129 129 129 / 24%) // 骨架屏元素动画效果过渡颜色,,,, 'transition-color': rgb(
129 129 129 / 24%
) // 骨架屏元素动画效果过渡颜色,,,,,
), ),
$skeleton $skeleton
); );
...@@ -347,6 +349,7 @@ $view-toolbar-embed: map.merge( ...@@ -347,6 +349,7 @@ $view-toolbar-embed: map.merge(
( (
'item-height': 21px, 'item-height': 21px,
'item-line-height': 21px, 'item-line-height': 21px,
'bg-color': transparent,
), ),
$view-toolbar-embed $view-toolbar-embed
); );
......
import { defineComponent } from 'vue';
import qs from 'qs';
import { getModelService } from '@ibiz-template/model';
import { IBizContext, RuntimeError } from '@ibiz-template/core';
import { OpenAppViewCommand } from '@ibiz-template/runtime';
export default defineComponent({
setup() {
const context = new IBizContext(ibiz.appData?.context || {});
const { href } = window.location;
const i = href.lastIndexOf('?');
const queryStr: string = decodeURIComponent(
href.substring(i + 1, href.length),
);
if (!queryStr) {
throw new RuntimeError(`重定向参数不足无法跳转`);
}
async function toRedirect(): Promise<void> {
const params = qs.parse(queryStr, { delimiter: ';' }) as IData;
const deName: string = params.srfdename || '';
if (!deName) {
throw new RuntimeError('重定向参数缺少实体名称');
}
const upperDeName = deName.toUpperCase();
const modelService = await getModelService();
const app = modelService.app;
const entity = app.getAllPSAppDataEntities()!.find(item => {
return item.refM.name === upperDeName;
});
if (!entity) {
throw new RuntimeError(`未找到指定实体: ${deName}`);
}
const deCodeName: string = entity.refM.codeName;
params[deCodeName.toLowerCase()] = params[deName.toLowerCase()];
const deRdView = app.getAllPSAppViews()?.find(view => {
const { refM } = view;
if (refM.resource === deCodeName && refM.view === 'RedirectView') {
return view;
}
return null;
});
if (!deRdView) {
throw new Error(`未找到实体[${deName}]默认重定向视图[RedirectView]`);
}
// 删除跳转用参数
delete params.srfdename;
delete params.srfindexname;
await ibiz.commands.execute(
OpenAppViewCommand.TAG,
deRdView,
context,
params,
);
}
toRedirect();
},
render() {
return <div>重定向跳转中</div>;
},
});
import { useRouter } from '@ibiz-template/vue-util';
import qs from 'qs';
import { defineComponent, getCurrentInstance } from 'vue';
export default defineComponent({
setup() {
const inst = getCurrentInstance()!.proxy;
const router = useRouter(inst);
const { href } = window.location;
const i = href.lastIndexOf('?');
const queryStr: string = decodeURIComponent(
href.substring(i + 1, href.length),
);
if (!queryStr) {
throw new Error(`重定向参数不足无法跳转`);
}
const params = qs.parse(queryStr, { delimiter: ';' }) as IData;
const { apptype, todotype, todoid } = params;
const data: IData = { srfapptype: 'pc', srfapp: '' };
if (!apptype) {
data.todourltype = 'RouterUrl';
}
async function getLinkUrl(): Promise<void> {
const res = await ibiz.net.post(`/systodos/${todoid}/getlinkurl`, data);
let url: string = res.data.linkurl;
// apptype存在,带ip、端口等完整数据
if (apptype) {
window.location.href = url;
} else {
if (url.indexOf('/') !== 0) {
url = `/${url}`;
}
url += `;srfwf=${todotype}`;
router.push(`/index${url}`);
}
}
getLinkUrl();
},
render() {
return <div>待办列表重定向</div>;
},
});
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</changeSet> </changeSet>
<!--输出实体[BOOK]数据结构 --> <!--输出实体[BOOK]数据结构 -->
<changeSet author="root" id="tab-book-242-3"> <changeSet author="root" id="tab-book-253-3">
<createTable tableName="T_BOOK"> <createTable tableName="T_BOOK">
<column name="BOOKNAME" remarks="" type="VARCHAR(200)"> <column name="BOOKNAME" remarks="" type="VARCHAR(200)">
</column> </column>
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
</changeSet> </changeSet>
<!--输出实体[STUDENT]数据结构 --> <!--输出实体[STUDENT]数据结构 -->
<changeSet author="root" id="tab-student-58-10"> <changeSet author="root" id="tab-student-60-10">
<createTable tableName="T_STUDENT"> <createTable tableName="T_STUDENT">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)"> <column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column> </column>
......
...@@ -1784,34 +1784,34 @@ ...@@ -1784,34 +1784,34 @@
"getPSAppViewLogics" : [ { "getPSAppViewLogics" : [ {
"logicTrigger" : "CUSTOM", "logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION", "logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_ua98d563_click", "name" : "grid_uagridcolumn1_u479f517_click",
"getPSAppViewUIAction" : { "getPSAppViewUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "表格界面_行编辑开关操作" "id" : "表格界面_编辑操作"
} }
}, { }, {
"logicTrigger" : "CUSTOM", "logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION", "logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_u479f517_click", "name" : "grid_uagridcolumn1_ua98d563_click",
"getPSAppViewUIAction" : { "getPSAppViewUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "表格界面_编辑操作" "id" : "表格界面_行编辑开关操作"
} }
} ], } ],
"getPSAppViewUIActions" : [ { "getPSAppViewUIActions" : [ {
"name" : "表格界面_行编辑开关操作", "name" : "表格界面_编辑操作",
"getPSUIAction" : { "getPSUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "ToggleRowEdit" "id" : "Edit"
}, },
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid" "xDataControlName" : "grid"
}, { }, {
"name" : "表格界面_编辑操作", "name" : "表格界面_行编辑开关操作",
"getPSUIAction" : { "getPSUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "Edit" "id" : "ToggleRowEdit"
}, },
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid" "xDataControlName" : "grid"
} ], } ],
"getPSControlHandler" : { "getPSControlHandler" : {
...@@ -2029,28 +2029,6 @@ ...@@ -2029,28 +2029,6 @@
"codeName" : "A046596b6afb50f9e5b", "codeName" : "A046596b6afb50f9e5b",
"name" : "操作列", "name" : "操作列",
"getPSUIActionGroupDetails" : [ { "getPSUIActionGroupDetails" : [ {
"detailType" : "DEUIACTION",
"name" : "ua98d563",
"getPSUIAction" : {
"caption" : "行编辑",
"codeName" : "ToggleRowEdit",
"fullCodeName" : "ToggleRowEdit",
"name" : "表格界面_行编辑开关操作",
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"predefinedType" : "GRIDVIEW_ROWEDITACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "ToggleRowEdit",
"uIActionType" : "DEUIACTION",
"enableToggleMode" : true
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : false
}, {
"detailType" : "DEUIACTION", "detailType" : "DEUIACTION",
"name" : "u479f517", "name" : "u479f517",
"getPSUIAction" : { "getPSUIAction" : {
...@@ -2078,6 +2056,28 @@ ...@@ -2078,6 +2056,28 @@
"addSeparator" : true, "addSeparator" : true,
"showCaption" : true, "showCaption" : true,
"showIcon" : true "showIcon" : true
}, {
"detailType" : "DEUIACTION",
"name" : "ua98d563",
"getPSUIAction" : {
"caption" : "行编辑",
"codeName" : "ToggleRowEdit",
"fullCodeName" : "ToggleRowEdit",
"name" : "表格界面_行编辑开关操作",
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"predefinedType" : "GRIDVIEW_ROWEDITACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "ToggleRowEdit",
"uIActionType" : "DEUIACTION",
"enableToggleMode" : true
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : false
} ] } ]
}, },
"width" : 100, "width" : 100,
......
...@@ -3,11 +3,53 @@ ...@@ -3,11 +3,53 @@
"codeName" : "Main", "codeName" : "Main",
"columnEnableLink" : 2, "columnEnableLink" : 2,
"controlType" : "GRID", "controlType" : "GRID",
"getCreatePSControlAction" : {
"actionName" : "Create",
"actionType" : "DEACTION",
"dataAccessAction" : "CREATE",
"name" : "create",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "Create"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book.json"
}
},
"dynaModelFilePath" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book/PSGRIDS/Main.json", "dynaModelFilePath" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book/PSGRIDS/Main.json",
"getFetchPSControlAction" : { "getFetchPSControlAction" : {
"modelref" : true, "modelref" : true,
"id" : "fetch" "id" : "fetch"
}, },
"getGetDraftPSControlAction" : {
"actionName" : "GetDraft",
"actionType" : "DEACTION",
"dataAccessAction" : "CREATE",
"name" : "loaddraft",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "GetDraft"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book.json"
}
},
"getGetPSControlAction" : {
"actionName" : "Get",
"actionType" : "DEACTION",
"dataAccessAction" : "READ",
"name" : "load",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "Get"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book.json"
}
},
"groupMode" : "NONE", "groupMode" : "NONE",
"hookEventNames" : [ "ROWDBLCLICK", "SELECTIONCHANGE", "REMOVE", "LOAD", "BEFORELOAD" ], "hookEventNames" : [ "ROWDBLCLICK", "SELECTIONCHANGE", "REMOVE", "LOAD", "BEFORELOAD" ],
"logicName" : "主表格", "logicName" : "主表格",
...@@ -28,19 +70,20 @@ ...@@ -28,19 +70,20 @@
"getPSDEGridColumns" : [ { "getPSDEGridColumns" : [ {
"align" : "LEFT", "align" : "LEFT",
"cLConvertMode" : "NONE", "cLConvertMode" : "NONE",
"caption" : "书名称", "caption" : "属性9",
"codeName" : "bookname", "codeName" : "name",
"columnType" : "DEFGRIDCOLUMN", "columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "bookname", "dataItemName" : "field9",
"excelCaption" : "书名称", "excelCaption" : "属性9",
"name" : "bookname", "name" : "name",
"noPrivDisplayMode" : 1, "noPrivDisplayMode" : 1,
"getPSAppDEField" : { "getPSAppDEField" : {
"name" : "BOOKNAME", "name" : "FIELD9",
"codeName" : "BookName" "codeName" : "Field9"
}, },
"width" : 150, "width" : 150,
"widthUnit" : "PX", "widthUnit" : "PX",
"enableRowEdit" : true,
"enableSort" : true "enableSort" : true
}, { }, {
"align" : "LEFT", "align" : "LEFT",
...@@ -101,10 +144,10 @@ ...@@ -101,10 +144,10 @@
} ], } ],
"getPSDEGridDataItems" : [ { "getPSDEGridDataItems" : [ {
"dataType" : 25, "dataType" : 25,
"name" : "bookname", "name" : "field9",
"getPSAppDEField" : { "getPSAppDEField" : {
"name" : "BOOKNAME", "name" : "FIELD9",
"codeName" : "BookName" "codeName" : "Field9"
} }
}, { }, {
"dataType" : 25, "dataType" : 25,
...@@ -152,6 +195,22 @@ ...@@ -152,6 +195,22 @@
} }
} ], } ],
"getPSDEGridEditItems" : [ { "getPSDEGridEditItems" : [ {
"caption" : "属性9",
"codeName" : "name",
"enableCond" : 3,
"ignoreInput" : 0,
"name" : "name",
"getPSAppDEField" : {
"name" : "FIELD9",
"codeName" : "Field9"
},
"getPSEditor" : {
"editorType" : "TEXTBOX",
"maxLength" : 100,
"name" : "name"
},
"allowEmpty" : true
}, {
"caption" : "书标识", "caption" : "书标识",
"codeName" : "srfkey", "codeName" : "srfkey",
"enableCond" : 3, "enableCond" : 3,
...@@ -183,14 +242,28 @@ ...@@ -183,14 +242,28 @@
} }
}, },
"sortMode" : "REMOTE", "sortMode" : "REMOTE",
"getUpdatePSControlAction" : {
"actionName" : "Update",
"actionType" : "DEACTION",
"dataAccessAction" : "UPDATE",
"name" : "update",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "Update"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book.json"
}
},
"hasWFDataItems" : false, "hasWFDataItems" : false,
"enableColFilter" : false, "enableColFilter" : false,
"enableCustomized" : true, "enableCustomized" : true,
"enableGroup" : false, "enableGroup" : false,
"enablePagingBar" : true, "enablePagingBar" : true,
"enableRowEdit" : false, "enableRowEdit" : true,
"enableRowEditOrder" : false, "enableRowEditOrder" : false,
"enableRowNew" : false, "enableRowNew" : true,
"forceFit" : false, "forceFit" : false,
"hideHeader" : false, "hideHeader" : false,
"noSort" : false, "noSort" : false,
......
...@@ -18,34 +18,34 @@ ...@@ -18,34 +18,34 @@
"getPSAppViewLogics" : [ { "getPSAppViewLogics" : [ {
"logicTrigger" : "CUSTOM", "logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION", "logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_ua98d563_click", "name" : "grid_uagridcolumn1_u479f517_click",
"getPSAppViewUIAction" : { "getPSAppViewUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "表格界面_行编辑开关操作" "id" : "表格界面_编辑操作"
} }
}, { }, {
"logicTrigger" : "CUSTOM", "logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION", "logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_u479f517_click", "name" : "grid_uagridcolumn1_ua98d563_click",
"getPSAppViewUIAction" : { "getPSAppViewUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "表格界面_编辑操作" "id" : "表格界面_行编辑开关操作"
} }
} ], } ],
"getPSAppViewUIActions" : [ { "getPSAppViewUIActions" : [ {
"name" : "表格界面_行编辑开关操作", "name" : "表格界面_编辑操作",
"getPSUIAction" : { "getPSUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "ToggleRowEdit" "id" : "Edit"
}, },
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid" "xDataControlName" : "grid"
}, { }, {
"name" : "表格界面_编辑操作", "name" : "表格界面_行编辑开关操作",
"getPSUIAction" : { "getPSUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "Edit" "id" : "ToggleRowEdit"
}, },
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid" "xDataControlName" : "grid"
} ], } ],
"getPSControlLogics" : [ { "getPSControlLogics" : [ {
...@@ -176,28 +176,6 @@ ...@@ -176,28 +176,6 @@
"codeName" : "A046596b6afb50f9e5b", "codeName" : "A046596b6afb50f9e5b",
"name" : "操作列", "name" : "操作列",
"getPSUIActionGroupDetails" : [ { "getPSUIActionGroupDetails" : [ {
"detailType" : "DEUIACTION",
"name" : "ua98d563",
"getPSUIAction" : {
"caption" : "行编辑",
"codeName" : "ToggleRowEdit",
"fullCodeName" : "ToggleRowEdit",
"name" : "表格界面_行编辑开关操作",
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"predefinedType" : "GRIDVIEW_ROWEDITACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "ToggleRowEdit",
"uIActionType" : "DEUIACTION",
"enableToggleMode" : true
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : false
}, {
"detailType" : "DEUIACTION", "detailType" : "DEUIACTION",
"name" : "u479f517", "name" : "u479f517",
"getPSUIAction" : { "getPSUIAction" : {
...@@ -225,6 +203,28 @@ ...@@ -225,6 +203,28 @@
"addSeparator" : true, "addSeparator" : true,
"showCaption" : true, "showCaption" : true,
"showIcon" : true "showIcon" : true
}, {
"detailType" : "DEUIACTION",
"name" : "ua98d563",
"getPSUIAction" : {
"caption" : "行编辑",
"codeName" : "ToggleRowEdit",
"fullCodeName" : "ToggleRowEdit",
"name" : "表格界面_行编辑开关操作",
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"predefinedType" : "GRIDVIEW_ROWEDITACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "ToggleRowEdit",
"uIActionType" : "DEUIACTION",
"enableToggleMode" : true
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : false
} ] } ]
}, },
"width" : 100, "width" : 100,
......
...@@ -580,34 +580,34 @@ ...@@ -580,34 +580,34 @@
"getPSAppViewLogics" : [ { "getPSAppViewLogics" : [ {
"logicTrigger" : "CUSTOM", "logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION", "logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_ua98d563_click", "name" : "grid_uagridcolumn1_u479f517_click",
"getPSAppViewUIAction" : { "getPSAppViewUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "表格界面_行编辑开关操作" "id" : "表格界面_编辑操作"
} }
}, { }, {
"logicTrigger" : "CUSTOM", "logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION", "logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_u479f517_click", "name" : "grid_uagridcolumn1_ua98d563_click",
"getPSAppViewUIAction" : { "getPSAppViewUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "表格界面_编辑操作" "id" : "表格界面_行编辑开关操作"
} }
} ], } ],
"getPSAppViewUIActions" : [ { "getPSAppViewUIActions" : [ {
"name" : "表格界面_行编辑开关操作", "name" : "表格界面_编辑操作",
"getPSUIAction" : { "getPSUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "ToggleRowEdit" "id" : "Edit"
}, },
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid" "xDataControlName" : "grid"
}, { }, {
"name" : "表格界面_编辑操作", "name" : "表格界面_行编辑开关操作",
"getPSUIAction" : { "getPSUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "Edit" "id" : "ToggleRowEdit"
}, },
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid" "xDataControlName" : "grid"
} ], } ],
"getPSControlHandler" : { "getPSControlHandler" : {
...@@ -825,28 +825,6 @@ ...@@ -825,28 +825,6 @@
"codeName" : "A046596b6afb50f9e5b", "codeName" : "A046596b6afb50f9e5b",
"name" : "操作列", "name" : "操作列",
"getPSUIActionGroupDetails" : [ { "getPSUIActionGroupDetails" : [ {
"detailType" : "DEUIACTION",
"name" : "ua98d563",
"getPSUIAction" : {
"caption" : "行编辑",
"codeName" : "ToggleRowEdit",
"fullCodeName" : "ToggleRowEdit",
"name" : "表格界面_行编辑开关操作",
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"predefinedType" : "GRIDVIEW_ROWEDITACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "ToggleRowEdit",
"uIActionType" : "DEUIACTION",
"enableToggleMode" : true
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : false
}, {
"detailType" : "DEUIACTION", "detailType" : "DEUIACTION",
"name" : "u479f517", "name" : "u479f517",
"getPSUIAction" : { "getPSUIAction" : {
...@@ -874,6 +852,28 @@ ...@@ -874,6 +852,28 @@
"addSeparator" : true, "addSeparator" : true,
"showCaption" : true, "showCaption" : true,
"showIcon" : true "showIcon" : true
}, {
"detailType" : "DEUIACTION",
"name" : "ua98d563",
"getPSUIAction" : {
"caption" : "行编辑",
"codeName" : "ToggleRowEdit",
"fullCodeName" : "ToggleRowEdit",
"name" : "表格界面_行编辑开关操作",
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"predefinedType" : "GRIDVIEW_ROWEDITACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "ToggleRowEdit",
"uIActionType" : "DEUIACTION",
"enableToggleMode" : true
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : false
} ] } ]
}, },
"width" : 100, "width" : 100,
......
...@@ -73,6 +73,7 @@ ...@@ -73,6 +73,7 @@
"width" : 100, "width" : 100,
"widthUnit" : "PX", "widthUnit" : "PX",
"enableLinkView" : true, "enableLinkView" : true,
"enableRowEdit" : true,
"enableSort" : true "enableSort" : true
}, { }, {
"align" : "LEFT", "align" : "LEFT",
...@@ -200,6 +201,22 @@ ...@@ -200,6 +201,22 @@
"enableLinkView" : false "enableLinkView" : false
}, },
"allowEmpty" : true "allowEmpty" : true
}, {
"caption" : "学生名称",
"codeName" : "name",
"enableCond" : 3,
"ignoreInput" : 0,
"name" : "name",
"getPSAppDEField" : {
"name" : "STUDENTNAME",
"codeName" : "StudentName"
},
"getPSEditor" : {
"editorType" : "TEXTBOX",
"maxLength" : 200,
"name" : "name"
},
"allowEmpty" : true
}, { }, {
"caption" : "学生标识", "caption" : "学生标识",
"codeName" : "srfkey", "codeName" : "srfkey",
......
...@@ -373,34 +373,34 @@ ...@@ -373,34 +373,34 @@
"getPSAppViewLogics" : [ { "getPSAppViewLogics" : [ {
"logicTrigger" : "CUSTOM", "logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION", "logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_ua98d563_click", "name" : "grid_uagridcolumn1_u479f517_click",
"getPSAppViewUIAction" : { "getPSAppViewUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "表格界面_行编辑开关操作" "id" : "表格界面_编辑操作"
} }
}, { }, {
"logicTrigger" : "CUSTOM", "logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION", "logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_u479f517_click", "name" : "grid_uagridcolumn1_ua98d563_click",
"getPSAppViewUIAction" : { "getPSAppViewUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "表格界面_编辑操作" "id" : "表格界面_行编辑开关操作"
} }
} ], } ],
"getPSAppViewUIActions" : [ { "getPSAppViewUIActions" : [ {
"name" : "表格界面_行编辑开关操作", "name" : "表格界面_编辑操作",
"getPSUIAction" : { "getPSUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "ToggleRowEdit" "id" : "Edit"
}, },
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid" "xDataControlName" : "grid"
}, { }, {
"name" : "表格界面_编辑操作", "name" : "表格界面_行编辑开关操作",
"getPSUIAction" : { "getPSUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "Edit" "id" : "ToggleRowEdit"
}, },
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid" "xDataControlName" : "grid"
} ], } ],
"getPSControlHandler" : { "getPSControlHandler" : {
...@@ -618,28 +618,6 @@ ...@@ -618,28 +618,6 @@
"codeName" : "A046596b6afb50f9e5b", "codeName" : "A046596b6afb50f9e5b",
"name" : "操作列", "name" : "操作列",
"getPSUIActionGroupDetails" : [ { "getPSUIActionGroupDetails" : [ {
"detailType" : "DEUIACTION",
"name" : "ua98d563",
"getPSUIAction" : {
"caption" : "行编辑",
"codeName" : "ToggleRowEdit",
"fullCodeName" : "ToggleRowEdit",
"name" : "表格界面_行编辑开关操作",
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"predefinedType" : "GRIDVIEW_ROWEDITACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "ToggleRowEdit",
"uIActionType" : "DEUIACTION",
"enableToggleMode" : true
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : false
}, {
"detailType" : "DEUIACTION", "detailType" : "DEUIACTION",
"name" : "u479f517", "name" : "u479f517",
"getPSUIAction" : { "getPSUIAction" : {
...@@ -667,6 +645,28 @@ ...@@ -667,6 +645,28 @@
"addSeparator" : true, "addSeparator" : true,
"showCaption" : true, "showCaption" : true,
"showIcon" : true "showIcon" : true
}, {
"detailType" : "DEUIACTION",
"name" : "ua98d563",
"getPSUIAction" : {
"caption" : "行编辑",
"codeName" : "ToggleRowEdit",
"fullCodeName" : "ToggleRowEdit",
"name" : "表格界面_行编辑开关操作",
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"predefinedType" : "GRIDVIEW_ROWEDITACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "ToggleRowEdit",
"uIActionType" : "DEUIACTION",
"enableToggleMode" : true
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : false
} ] } ]
}, },
"width" : 100, "width" : 100,
......
...@@ -425,34 +425,34 @@ ...@@ -425,34 +425,34 @@
"getPSAppViewLogics" : [ { "getPSAppViewLogics" : [ {
"logicTrigger" : "CUSTOM", "logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION", "logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_ua98d563_click", "name" : "grid_uagridcolumn1_u479f517_click",
"getPSAppViewUIAction" : { "getPSAppViewUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "表格界面_行编辑开关操作" "id" : "表格界面_编辑操作"
} }
}, { }, {
"logicTrigger" : "CUSTOM", "logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION", "logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_u479f517_click", "name" : "grid_uagridcolumn1_ua98d563_click",
"getPSAppViewUIAction" : { "getPSAppViewUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "表格界面_编辑操作" "id" : "表格界面_行编辑开关操作"
} }
} ], } ],
"getPSAppViewUIActions" : [ { "getPSAppViewUIActions" : [ {
"name" : "表格界面_行编辑开关操作", "name" : "表格界面_编辑操作",
"getPSUIAction" : { "getPSUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "ToggleRowEdit" "id" : "Edit"
}, },
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid" "xDataControlName" : "grid"
}, { }, {
"name" : "表格界面_编辑操作", "name" : "表格界面_行编辑开关操作",
"getPSUIAction" : { "getPSUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "Edit" "id" : "ToggleRowEdit"
}, },
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid" "xDataControlName" : "grid"
} ], } ],
"getPSControlHandler" : { "getPSControlHandler" : {
...@@ -670,28 +670,6 @@ ...@@ -670,28 +670,6 @@
"codeName" : "A046596b6afb50f9e5b", "codeName" : "A046596b6afb50f9e5b",
"name" : "操作列", "name" : "操作列",
"getPSUIActionGroupDetails" : [ { "getPSUIActionGroupDetails" : [ {
"detailType" : "DEUIACTION",
"name" : "ua98d563",
"getPSUIAction" : {
"caption" : "行编辑",
"codeName" : "ToggleRowEdit",
"fullCodeName" : "ToggleRowEdit",
"name" : "表格界面_行编辑开关操作",
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"predefinedType" : "GRIDVIEW_ROWEDITACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "ToggleRowEdit",
"uIActionType" : "DEUIACTION",
"enableToggleMode" : true
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : false
}, {
"detailType" : "DEUIACTION", "detailType" : "DEUIACTION",
"name" : "u479f517", "name" : "u479f517",
"getPSUIAction" : { "getPSUIAction" : {
...@@ -719,6 +697,28 @@ ...@@ -719,6 +697,28 @@
"addSeparator" : true, "addSeparator" : true,
"showCaption" : true, "showCaption" : true,
"showIcon" : true "showIcon" : true
}, {
"detailType" : "DEUIACTION",
"name" : "ua98d563",
"getPSUIAction" : {
"caption" : "行编辑",
"codeName" : "ToggleRowEdit",
"fullCodeName" : "ToggleRowEdit",
"name" : "表格界面_行编辑开关操作",
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"predefinedType" : "GRIDVIEW_ROWEDITACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "ToggleRowEdit",
"uIActionType" : "DEUIACTION",
"enableToggleMode" : true
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : false
} ] } ]
}, },
"width" : 100, "width" : 100,
......
...@@ -1905,34 +1905,34 @@ ...@@ -1905,34 +1905,34 @@
"getPSAppViewLogics" : [ { "getPSAppViewLogics" : [ {
"logicTrigger" : "CUSTOM", "logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION", "logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_ua98d563_click", "name" : "grid_uagridcolumn1_u479f517_click",
"getPSAppViewUIAction" : { "getPSAppViewUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "表格界面_行编辑开关操作" "id" : "表格界面_编辑操作"
} }
}, { }, {
"logicTrigger" : "CUSTOM", "logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION", "logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_u479f517_click", "name" : "grid_uagridcolumn1_ua98d563_click",
"getPSAppViewUIAction" : { "getPSAppViewUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "表格界面_编辑操作" "id" : "表格界面_行编辑开关操作"
} }
} ], } ],
"getPSAppViewUIActions" : [ { "getPSAppViewUIActions" : [ {
"name" : "表格界面_行编辑开关操作", "name" : "表格界面_编辑操作",
"getPSUIAction" : { "getPSUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "ToggleRowEdit" "id" : "Edit"
}, },
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid" "xDataControlName" : "grid"
}, { }, {
"name" : "表格界面_编辑操作", "name" : "表格界面_行编辑开关操作",
"getPSUIAction" : { "getPSUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "Edit" "id" : "ToggleRowEdit"
}, },
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid" "xDataControlName" : "grid"
} ], } ],
"getPSControlHandler" : { "getPSControlHandler" : {
...@@ -2150,28 +2150,6 @@ ...@@ -2150,28 +2150,6 @@
"codeName" : "A046596b6afb50f9e5b", "codeName" : "A046596b6afb50f9e5b",
"name" : "操作列", "name" : "操作列",
"getPSUIActionGroupDetails" : [ { "getPSUIActionGroupDetails" : [ {
"detailType" : "DEUIACTION",
"name" : "ua98d563",
"getPSUIAction" : {
"caption" : "行编辑",
"codeName" : "ToggleRowEdit",
"fullCodeName" : "ToggleRowEdit",
"name" : "表格界面_行编辑开关操作",
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"predefinedType" : "GRIDVIEW_ROWEDITACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "ToggleRowEdit",
"uIActionType" : "DEUIACTION",
"enableToggleMode" : true
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : false
}, {
"detailType" : "DEUIACTION", "detailType" : "DEUIACTION",
"name" : "u479f517", "name" : "u479f517",
"getPSUIAction" : { "getPSUIAction" : {
...@@ -2199,6 +2177,28 @@ ...@@ -2199,6 +2177,28 @@
"addSeparator" : true, "addSeparator" : true,
"showCaption" : true, "showCaption" : true,
"showIcon" : true "showIcon" : true
}, {
"detailType" : "DEUIACTION",
"name" : "ua98d563",
"getPSUIAction" : {
"caption" : "行编辑",
"codeName" : "ToggleRowEdit",
"fullCodeName" : "ToggleRowEdit",
"name" : "表格界面_行编辑开关操作",
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"predefinedType" : "GRIDVIEW_ROWEDITACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "ToggleRowEdit",
"uIActionType" : "DEUIACTION",
"enableToggleMode" : true
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : false
} ] } ]
}, },
"width" : 100, "width" : 100,
......
...@@ -346,11 +346,53 @@ ...@@ -346,11 +346,53 @@
"codeName" : "Main", "codeName" : "Main",
"columnEnableLink" : 2, "columnEnableLink" : 2,
"controlType" : "GRID", "controlType" : "GRID",
"getCreatePSControlAction" : {
"actionName" : "Create",
"actionType" : "DEACTION",
"dataAccessAction" : "CREATE",
"name" : "create",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "Create"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book.json"
}
},
"dynaModelFilePath" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book/PSGRIDS/Main.json", "dynaModelFilePath" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book/PSGRIDS/Main.json",
"getFetchPSControlAction" : { "getFetchPSControlAction" : {
"modelref" : true, "modelref" : true,
"id" : "fetch" "id" : "fetch"
}, },
"getGetDraftPSControlAction" : {
"actionName" : "GetDraft",
"actionType" : "DEACTION",
"dataAccessAction" : "CREATE",
"name" : "loaddraft",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "GetDraft"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book.json"
}
},
"getGetPSControlAction" : {
"actionName" : "Get",
"actionType" : "DEACTION",
"dataAccessAction" : "READ",
"name" : "load",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "Get"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book.json"
}
},
"groupMode" : "NONE", "groupMode" : "NONE",
"hookEventNames" : [ "ROWDBLCLICK", "SELECTIONCHANGE", "REMOVE", "LOAD", "BEFORELOAD" ], "hookEventNames" : [ "ROWDBLCLICK", "SELECTIONCHANGE", "REMOVE", "LOAD", "BEFORELOAD" ],
"logicName" : "主表格", "logicName" : "主表格",
...@@ -458,19 +500,20 @@ ...@@ -458,19 +500,20 @@
"getPSDEGridColumns" : [ { "getPSDEGridColumns" : [ {
"align" : "LEFT", "align" : "LEFT",
"cLConvertMode" : "NONE", "cLConvertMode" : "NONE",
"caption" : "书名称", "caption" : "属性9",
"codeName" : "bookname", "codeName" : "name",
"columnType" : "DEFGRIDCOLUMN", "columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "bookname", "dataItemName" : "field9",
"excelCaption" : "书名称", "excelCaption" : "属性9",
"name" : "bookname", "name" : "name",
"noPrivDisplayMode" : 1, "noPrivDisplayMode" : 1,
"getPSAppDEField" : { "getPSAppDEField" : {
"name" : "BOOKNAME", "name" : "FIELD9",
"codeName" : "BookName" "codeName" : "Field9"
}, },
"width" : 150, "width" : 150,
"widthUnit" : "PX", "widthUnit" : "PX",
"enableRowEdit" : true,
"enableSort" : true "enableSort" : true
}, { }, {
"align" : "LEFT", "align" : "LEFT",
...@@ -531,10 +574,10 @@ ...@@ -531,10 +574,10 @@
} ], } ],
"getPSDEGridDataItems" : [ { "getPSDEGridDataItems" : [ {
"dataType" : 25, "dataType" : 25,
"name" : "bookname", "name" : "field9",
"getPSAppDEField" : { "getPSAppDEField" : {
"name" : "BOOKNAME", "name" : "FIELD9",
"codeName" : "BookName" "codeName" : "Field9"
} }
}, { }, {
"dataType" : 25, "dataType" : 25,
...@@ -582,6 +625,22 @@ ...@@ -582,6 +625,22 @@
} }
} ], } ],
"getPSDEGridEditItems" : [ { "getPSDEGridEditItems" : [ {
"caption" : "属性9",
"codeName" : "name",
"enableCond" : 3,
"ignoreInput" : 0,
"name" : "name",
"getPSAppDEField" : {
"name" : "FIELD9",
"codeName" : "Field9"
},
"getPSEditor" : {
"editorType" : "TEXTBOX",
"maxLength" : 100,
"name" : "name"
},
"allowEmpty" : true
}, {
"caption" : "书标识", "caption" : "书标识",
"codeName" : "srfkey", "codeName" : "srfkey",
"enableCond" : 3, "enableCond" : 3,
...@@ -613,14 +672,28 @@ ...@@ -613,14 +672,28 @@
} }
}, },
"sortMode" : "REMOTE", "sortMode" : "REMOTE",
"getUpdatePSControlAction" : {
"actionName" : "Update",
"actionType" : "DEACTION",
"dataAccessAction" : "UPDATE",
"name" : "update",
"getPSAppDEMethod" : {
"modelref" : true,
"id" : "Update"
},
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/Book.json"
}
},
"hasWFDataItems" : false, "hasWFDataItems" : false,
"enableColFilter" : false, "enableColFilter" : false,
"enableCustomized" : true, "enableCustomized" : true,
"enableGroup" : false, "enableGroup" : false,
"enablePagingBar" : true, "enablePagingBar" : true,
"enableRowEdit" : false, "enableRowEdit" : true,
"enableRowEditOrder" : false, "enableRowEditOrder" : false,
"enableRowNew" : false, "enableRowNew" : true,
"forceFit" : false, "forceFit" : false,
"hideHeader" : false, "hideHeader" : false,
"noSort" : false, "noSort" : false,
...@@ -998,6 +1071,76 @@ ...@@ -998,6 +1071,76 @@
"itemType" : "SEPERATOR", "itemType" : "SEPERATOR",
"name" : "tbitem7", "name" : "tbitem7",
"spanMode" : false "spanMode" : false
}, {
"caption" : "行编辑",
"groupExtractMode" : "ITEM",
"itemType" : "DEUIACTION",
"name" : "tbitem24",
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "toolbar_tbitem24"
},
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"getPSUIAction" : {
"caption" : "行编辑",
"codeName" : "ToggleRowEdit",
"fullCodeName" : "ToggleRowEdit",
"name" : "表格界面_行编辑开关操作",
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"predefinedType" : "GRIDVIEW_ROWEDITACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "ToggleRowEdit",
"uIActionType" : "DEUIACTION",
"enableToggleMode" : true
},
"tooltip" : "行编辑",
"enableToggleMode" : true,
"showCaption" : true,
"showIcon" : true
}, {
"caption" : "新建行",
"groupExtractMode" : "ITEM",
"itemType" : "DEUIACTION",
"name" : "tbitem25",
"noPrivDisplayMode" : 2,
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "toolbar_tbitem25"
},
"getPSSysImage" : {
"glyph" : "xf067@FontAwesome",
"cssClass" : "fa fa-plus"
},
"getPSUIAction" : {
"caption" : "新建行",
"codeName" : "NewRow",
"fullCodeName" : "NewRow",
"name" : "表格界面_新建行",
"getPSSysImage" : {
"glyph" : "xf067@FontAwesome",
"cssClass" : "fa fa-plus"
},
"predefinedType" : "GRIDVIEW_NEWROWACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "NewRow",
"uIActionType" : "DEUIACTION"
},
"tooltip" : "新建行",
"showCaption" : false,
"showIcon" : true
}, {
"itemType" : "SEPERATOR",
"name" : "tbitem26",
"spanMode" : false
}, { }, {
"getCapPSLanguageRes" : { "getCapPSLanguageRes" : {
"lanResTag" : "TBB.TEXT.*.REMOVE" "lanResTag" : "TBB.TEXT.*.REMOVE"
...@@ -1296,7 +1439,7 @@ ...@@ -1296,7 +1439,7 @@
"enableFilter" : true, "enableFilter" : true,
"enableImport" : true, "enableImport" : true,
"enableQuickSearch" : true, "enableQuickSearch" : true,
"enableRowEdit" : false, "enableRowEdit" : true,
"enableSearch" : true, "enableSearch" : true,
"rowEditDefault" : false, "rowEditDefault" : false,
"modelid" : "a9523851d901a5a06a410a8827dee62f", "modelid" : "a9523851d901a5a06a410a8827dee62f",
......
...@@ -1566,34 +1566,34 @@ ...@@ -1566,34 +1566,34 @@
"getPSAppViewLogics" : [ { "getPSAppViewLogics" : [ {
"logicTrigger" : "CUSTOM", "logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION", "logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_ua98d563_click", "name" : "grid_uagridcolumn1_u479f517_click",
"getPSAppViewUIAction" : { "getPSAppViewUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "表格界面_行编辑开关操作" "id" : "表格界面_编辑操作"
} }
}, { }, {
"logicTrigger" : "CUSTOM", "logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION", "logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_u479f517_click", "name" : "grid_uagridcolumn1_ua98d563_click",
"getPSAppViewUIAction" : { "getPSAppViewUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "表格界面_编辑操作" "id" : "表格界面_行编辑开关操作"
} }
} ], } ],
"getPSAppViewUIActions" : [ { "getPSAppViewUIActions" : [ {
"name" : "表格界面_行编辑开关操作", "name" : "表格界面_编辑操作",
"getPSUIAction" : { "getPSUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "ToggleRowEdit" "id" : "Edit"
}, },
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid" "xDataControlName" : "grid"
}, { }, {
"name" : "表格界面_编辑操作", "name" : "表格界面_行编辑开关操作",
"getPSUIAction" : { "getPSUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "Edit" "id" : "ToggleRowEdit"
}, },
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid" "xDataControlName" : "grid"
} ], } ],
"getPSControlHandler" : { "getPSControlHandler" : {
...@@ -1811,28 +1811,6 @@ ...@@ -1811,28 +1811,6 @@
"codeName" : "A046596b6afb50f9e5b", "codeName" : "A046596b6afb50f9e5b",
"name" : "操作列", "name" : "操作列",
"getPSUIActionGroupDetails" : [ { "getPSUIActionGroupDetails" : [ {
"detailType" : "DEUIACTION",
"name" : "ua98d563",
"getPSUIAction" : {
"caption" : "行编辑",
"codeName" : "ToggleRowEdit",
"fullCodeName" : "ToggleRowEdit",
"name" : "表格界面_行编辑开关操作",
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"predefinedType" : "GRIDVIEW_ROWEDITACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "ToggleRowEdit",
"uIActionType" : "DEUIACTION",
"enableToggleMode" : true
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : false
}, {
"detailType" : "DEUIACTION", "detailType" : "DEUIACTION",
"name" : "u479f517", "name" : "u479f517",
"getPSUIAction" : { "getPSUIAction" : {
...@@ -1860,6 +1838,28 @@ ...@@ -1860,6 +1838,28 @@
"addSeparator" : true, "addSeparator" : true,
"showCaption" : true, "showCaption" : true,
"showIcon" : true "showIcon" : true
}, {
"detailType" : "DEUIACTION",
"name" : "ua98d563",
"getPSUIAction" : {
"caption" : "行编辑",
"codeName" : "ToggleRowEdit",
"fullCodeName" : "ToggleRowEdit",
"name" : "表格界面_行编辑开关操作",
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"predefinedType" : "GRIDVIEW_ROWEDITACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "ToggleRowEdit",
"uIActionType" : "DEUIACTION",
"enableToggleMode" : true
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : false
} ] } ]
}, },
"width" : 100, "width" : 100,
......
...@@ -185,6 +185,7 @@ ...@@ -185,6 +185,7 @@
"width" : 100, "width" : 100,
"widthUnit" : "PX", "widthUnit" : "PX",
"enableLinkView" : true, "enableLinkView" : true,
"enableRowEdit" : true,
"enableSort" : true "enableSort" : true
}, { }, {
"align" : "LEFT", "align" : "LEFT",
...@@ -312,6 +313,22 @@ ...@@ -312,6 +313,22 @@
"enableLinkView" : false "enableLinkView" : false
}, },
"allowEmpty" : true "allowEmpty" : true
}, {
"caption" : "学生名称",
"codeName" : "name",
"enableCond" : 3,
"ignoreInput" : 0,
"name" : "name",
"getPSAppDEField" : {
"name" : "STUDENTNAME",
"codeName" : "StudentName"
},
"getPSEditor" : {
"editorType" : "TEXTBOX",
"maxLength" : 200,
"name" : "name"
},
"allowEmpty" : true
}, { }, {
"caption" : "学生标识", "caption" : "学生标识",
"codeName" : "srfkey", "codeName" : "srfkey",
......
...@@ -210,6 +210,7 @@ ...@@ -210,6 +210,7 @@
"width" : 100, "width" : 100,
"widthUnit" : "PX", "widthUnit" : "PX",
"enableLinkView" : true, "enableLinkView" : true,
"enableRowEdit" : true,
"enableSort" : true "enableSort" : true
}, { }, {
"align" : "LEFT", "align" : "LEFT",
...@@ -337,6 +338,22 @@ ...@@ -337,6 +338,22 @@
"enableLinkView" : false "enableLinkView" : false
}, },
"allowEmpty" : true "allowEmpty" : true
}, {
"caption" : "学生名称",
"codeName" : "name",
"enableCond" : 3,
"ignoreInput" : 0,
"name" : "name",
"getPSAppDEField" : {
"name" : "STUDENTNAME",
"codeName" : "StudentName"
},
"getPSEditor" : {
"editorType" : "TEXTBOX",
"maxLength" : 200,
"name" : "name"
},
"allowEmpty" : true
}, { }, {
"caption" : "学生标识", "caption" : "学生标识",
"codeName" : "srfkey", "codeName" : "srfkey",
......
...@@ -544,6 +544,7 @@ ...@@ -544,6 +544,7 @@
"width" : 100, "width" : 100,
"widthUnit" : "PX", "widthUnit" : "PX",
"enableLinkView" : true, "enableLinkView" : true,
"enableRowEdit" : true,
"enableSort" : true "enableSort" : true
}, { }, {
"align" : "LEFT", "align" : "LEFT",
...@@ -676,6 +677,22 @@ ...@@ -676,6 +677,22 @@
"enableLinkView" : false "enableLinkView" : false
}, },
"allowEmpty" : true "allowEmpty" : true
}, {
"caption" : "学生名称",
"codeName" : "name",
"enableCond" : 3,
"ignoreInput" : 0,
"name" : "name",
"getPSAppDEField" : {
"name" : "STUDENTNAME",
"codeName" : "StudentName"
},
"getPSEditor" : {
"editorType" : "TEXTBOX",
"maxLength" : 200,
"name" : "name"
},
"allowEmpty" : true
}, { }, {
"caption" : "学生标识", "caption" : "学生标识",
"codeName" : "srfkey", "codeName" : "srfkey",
......
...@@ -2090,34 +2090,34 @@ ...@@ -2090,34 +2090,34 @@
"getPSAppViewLogics" : [ { "getPSAppViewLogics" : [ {
"logicTrigger" : "CUSTOM", "logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION", "logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_ua98d563_click", "name" : "grid_uagridcolumn1_u479f517_click",
"getPSAppViewUIAction" : { "getPSAppViewUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "表格界面_行编辑开关操作" "id" : "表格界面_编辑操作"
} }
}, { }, {
"logicTrigger" : "CUSTOM", "logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION", "logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_u479f517_click", "name" : "grid_uagridcolumn1_ua98d563_click",
"getPSAppViewUIAction" : { "getPSAppViewUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "表格界面_编辑操作" "id" : "表格界面_行编辑开关操作"
} }
} ], } ],
"getPSAppViewUIActions" : [ { "getPSAppViewUIActions" : [ {
"name" : "表格界面_行编辑开关操作", "name" : "表格界面_编辑操作",
"getPSUIAction" : { "getPSUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "ToggleRowEdit" "id" : "Edit"
}, },
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid" "xDataControlName" : "grid"
}, { }, {
"name" : "表格界面_编辑操作", "name" : "表格界面_行编辑开关操作",
"getPSUIAction" : { "getPSUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "Edit" "id" : "ToggleRowEdit"
}, },
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid" "xDataControlName" : "grid"
} ], } ],
"getPSControlHandler" : { "getPSControlHandler" : {
...@@ -2335,28 +2335,6 @@ ...@@ -2335,28 +2335,6 @@
"codeName" : "A046596b6afb50f9e5b", "codeName" : "A046596b6afb50f9e5b",
"name" : "操作列", "name" : "操作列",
"getPSUIActionGroupDetails" : [ { "getPSUIActionGroupDetails" : [ {
"detailType" : "DEUIACTION",
"name" : "ua98d563",
"getPSUIAction" : {
"caption" : "行编辑",
"codeName" : "ToggleRowEdit",
"fullCodeName" : "ToggleRowEdit",
"name" : "表格界面_行编辑开关操作",
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"predefinedType" : "GRIDVIEW_ROWEDITACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "ToggleRowEdit",
"uIActionType" : "DEUIACTION",
"enableToggleMode" : true
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : false
}, {
"detailType" : "DEUIACTION", "detailType" : "DEUIACTION",
"name" : "u479f517", "name" : "u479f517",
"getPSUIAction" : { "getPSUIAction" : {
...@@ -2384,6 +2362,28 @@ ...@@ -2384,6 +2362,28 @@
"addSeparator" : true, "addSeparator" : true,
"showCaption" : true, "showCaption" : true,
"showIcon" : true "showIcon" : true
}, {
"detailType" : "DEUIACTION",
"name" : "ua98d563",
"getPSUIAction" : {
"caption" : "行编辑",
"codeName" : "ToggleRowEdit",
"fullCodeName" : "ToggleRowEdit",
"name" : "表格界面_行编辑开关操作",
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"predefinedType" : "GRIDVIEW_ROWEDITACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "ToggleRowEdit",
"uIActionType" : "DEUIACTION",
"enableToggleMode" : true
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : false
} ] } ]
}, },
"width" : 100, "width" : 100,
...@@ -6373,34 +6373,34 @@ ...@@ -6373,34 +6373,34 @@
"getPSAppViewLogics" : [ { "getPSAppViewLogics" : [ {
"logicTrigger" : "CUSTOM", "logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION", "logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_ua98d563_click", "name" : "grid_uagridcolumn1_u479f517_click",
"getPSAppViewUIAction" : { "getPSAppViewUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "表格界面_行编辑开关操作" "id" : "表格界面_编辑操作"
} }
}, { }, {
"logicTrigger" : "CUSTOM", "logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION", "logicType" : "APPVIEWUIACTION",
"name" : "grid_uagridcolumn1_u479f517_click", "name" : "grid_uagridcolumn1_ua98d563_click",
"getPSAppViewUIAction" : { "getPSAppViewUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "表格界面_编辑操作" "id" : "表格界面_行编辑开关操作"
} }
} ], } ],
"getPSAppViewUIActions" : [ { "getPSAppViewUIActions" : [ {
"name" : "表格界面_行编辑开关操作", "name" : "表格界面_编辑操作",
"getPSUIAction" : { "getPSUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "ToggleRowEdit" "id" : "Edit"
}, },
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid" "xDataControlName" : "grid"
}, { }, {
"name" : "表格界面_编辑操作", "name" : "表格界面_行编辑开关操作",
"getPSUIAction" : { "getPSUIAction" : {
"modelref" : true, "modelref" : true,
"id" : "Edit" "id" : "ToggleRowEdit"
}, },
"uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "grid" "xDataControlName" : "grid"
} ], } ],
"getPSControlHandler" : { "getPSControlHandler" : {
...@@ -6618,28 +6618,6 @@ ...@@ -6618,28 +6618,6 @@
"codeName" : "A046596b6afb50f9e5b", "codeName" : "A046596b6afb50f9e5b",
"name" : "操作列", "name" : "操作列",
"getPSUIActionGroupDetails" : [ { "getPSUIActionGroupDetails" : [ {
"detailType" : "DEUIACTION",
"name" : "ua98d563",
"getPSUIAction" : {
"caption" : "行编辑",
"codeName" : "ToggleRowEdit",
"fullCodeName" : "ToggleRowEdit",
"name" : "表格界面_行编辑开关操作",
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"predefinedType" : "GRIDVIEW_ROWEDITACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "ToggleRowEdit",
"uIActionType" : "DEUIACTION",
"enableToggleMode" : true
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : false
}, {
"detailType" : "DEUIACTION", "detailType" : "DEUIACTION",
"name" : "u479f517", "name" : "u479f517",
"getPSUIAction" : { "getPSUIAction" : {
...@@ -6667,6 +6645,28 @@ ...@@ -6667,6 +6645,28 @@
"addSeparator" : true, "addSeparator" : true,
"showCaption" : true, "showCaption" : true,
"showIcon" : true "showIcon" : true
}, {
"detailType" : "DEUIACTION",
"name" : "ua98d563",
"getPSUIAction" : {
"caption" : "行编辑",
"codeName" : "ToggleRowEdit",
"fullCodeName" : "ToggleRowEdit",
"name" : "表格界面_行编辑开关操作",
"getPSSysImage" : {
"glyph" : "xf0ce@FontAwesome",
"cssClass" : "fa fa-table"
},
"predefinedType" : "GRIDVIEW_ROWEDITACTION",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "ToggleRowEdit",
"uIActionType" : "DEUIACTION",
"enableToggleMode" : true
},
"addSeparator" : false,
"showCaption" : true,
"showIcon" : false
} ] } ]
}, },
"width" : 100, "width" : 100,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册