SubForms için Gantt ve Scheduler eklendi
This commit is contained in:
parent
63185d7b22
commit
0f790b1183
2 changed files with 22 additions and 0 deletions
|
|
@ -805,6 +805,8 @@ export enum ColumnRowTypeListOptions {
|
||||||
export enum SubFormTabTypeEnum {
|
export enum SubFormTabTypeEnum {
|
||||||
List = 'List',
|
List = 'List',
|
||||||
Tree = 'Tree',
|
Tree = 'Tree',
|
||||||
|
Gantt = 'Gantt',
|
||||||
|
Scheduler = 'Scheduler',
|
||||||
Form = 'Form',
|
Form = 'Form',
|
||||||
Chart = 'Chart',
|
Chart = 'Chart',
|
||||||
Pivot = 'Pivot',
|
Pivot = 'Pivot',
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,8 @@ import FormNew from './FormNew'
|
||||||
import FormView from './FormView'
|
import FormView from './FormView'
|
||||||
import { useLocalization } from '@/utils/hooks/useLocalization'
|
import { useLocalization } from '@/utils/hooks/useLocalization'
|
||||||
import Tree from '../list/Tree'
|
import Tree from '../list/Tree'
|
||||||
|
import GanttView from '../list/GanttView'
|
||||||
|
import SchedulerView from '../list/SchedulerView'
|
||||||
|
|
||||||
const SubForms = (props: {
|
const SubForms = (props: {
|
||||||
gridDto: GridDto
|
gridDto: GridDto
|
||||||
|
|
@ -118,6 +120,24 @@ const SubForms = (props: {
|
||||||
refreshData={subForm.isRefresh ? refreshData : undefined}
|
refreshData={subForm.isRefresh ? refreshData : undefined}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
{subForm.tabType == SubFormTabTypeEnum.Gantt && (
|
||||||
|
<GanttView
|
||||||
|
listFormCode={subForm.code}
|
||||||
|
searchParams={subForm.searchParams}
|
||||||
|
isSubForm={true}
|
||||||
|
level={level + 1}
|
||||||
|
refreshData={subForm.isRefresh ? refreshData : undefined}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
{subForm.tabType == SubFormTabTypeEnum.Scheduler && (
|
||||||
|
<SchedulerView
|
||||||
|
listFormCode={subForm.code}
|
||||||
|
searchParams={subForm.searchParams}
|
||||||
|
isSubForm={true}
|
||||||
|
level={level + 1}
|
||||||
|
refreshData={subForm.isRefresh ? refreshData : undefined}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
{subForm.tabType == SubFormTabTypeEnum.Form &&
|
{subForm.tabType == SubFormTabTypeEnum.Form &&
|
||||||
(subForm.tabMode == 'edit' ? (
|
(subForm.tabMode == 'edit' ? (
|
||||||
<FormEdit
|
<FormEdit
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue