@@ -249,7 +249,7 @@ const OrganizationCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
color="error" | color="error" | ||||
onClick={() => setNonCreditorConfirmPopUp(true)} | onClick={() => setNonCreditorConfirmPopUp(true)} | ||||
> | > | ||||
Mark as Non-Creditor | |||||
Mark as Non-Credit Client | |||||
</Button> | </Button> | ||||
</ThemeProvider> | </ThemeProvider> | ||||
</Grid> | </Grid> | ||||
@@ -261,7 +261,7 @@ const OrganizationCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
color="orange" | color="orange" | ||||
onClick={() => setCreditorConfirmPopUp(true)} | onClick={() => setCreditorConfirmPopUp(true)} | ||||
> | > | ||||
Mark as Creditor | |||||
Mark as Credit Client | |||||
</Button> | </Button> | ||||
</ThemeProvider> | </ThemeProvider> | ||||
</Grid> | </Grid> | ||||
@@ -300,7 +300,7 @@ const OrganizationCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
<Grid item lg={4} > | <Grid item lg={4} > | ||||
<FormControlLabel | <FormControlLabel | ||||
control={<Checkbox checked={formik.values.creditor} />} | control={<Checkbox checked={formik.values.creditor} />} | ||||
label="is Creditor" | |||||
label="is Credit Client" | |||||
name="creditor" | name="creditor" | ||||
onChange={() => { | onChange={() => { | ||||
formik.setFieldValue("creditor", !formik.values.creditor); | formik.setFieldValue("creditor", !formik.values.creditor); | ||||
@@ -423,7 +423,7 @@ const OrganizationCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
> | > | ||||
<DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
<DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
<Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Creditor?</Typography> | |||||
<Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Credit Client?</Typography> | |||||
</DialogContent> | </DialogContent> | ||||
<DialogActions> | <DialogActions> | ||||
<Button onClick={() => setCreditorConfirmPopUp(false)}><Typography variant="h5">Cancel</Typography></Button> | <Button onClick={() => setCreditorConfirmPopUp(false)}><Typography variant="h5">Cancel</Typography></Button> | ||||
@@ -445,7 +445,7 @@ const OrganizationCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
> | > | ||||
<DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
<DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
<Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Non-Creditor?</Typography> | |||||
<Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Non-Credit Client?</Typography> | |||||
</DialogContent> | </DialogContent> | ||||
<DialogActions> | <DialogActions> | ||||
<Button onClick={() => setNonCreditorConfirmPopUp(false)}><Typography variant="h5">Cancel</Typography></Button> | <Button onClick={() => setNonCreditorConfirmPopUp(false)}><Typography variant="h5">Cancel</Typography></Button> | ||||
@@ -224,16 +224,7 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
disabled: true, | disabled: true, | ||||
form: formik | form: formik | ||||
})} | })} | ||||
{/* <FormControlLabel | |||||
control={<Checkbox checked={formik.values.creditor} />} | |||||
label="is Creditor" | |||||
name="creditor" | |||||
onChange={() => { | |||||
formik.setFieldValue("creditor", !formik.values.creditor); | |||||
}} | |||||
disabled={true} | |||||
//disabled={!editMode && !createMode} | |||||
/> */} | |||||
</Grid> | </Grid> | ||||
<Grid item lg={4} ></Grid> | <Grid item lg={4} ></Grid> | ||||
@@ -349,7 +340,7 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
> | > | ||||
<DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
<DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
<Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Creditor?</Typography> | |||||
<Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Credit Client?</Typography> | |||||
</DialogContent> | </DialogContent> | ||||
<DialogActions> | <DialogActions> | ||||
<Button onClick={() => setCreditorConfirmPopUp(false)}><Typography variant="h5">Cancel</Typography></Button> | <Button onClick={() => setCreditorConfirmPopUp(false)}><Typography variant="h5">Cancel</Typography></Button> | ||||
@@ -371,7 +362,7 @@ const OrganizationPubCard = ({ userData, loadDataFun, id, setEditModeFun }) => { | |||||
> | > | ||||
<DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | <DialogTitle><Typography variant="h3">Confirm</Typography></DialogTitle> | ||||
<DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
<Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Non-Creditor?</Typography> | |||||
<Typography variant="h4" style={{ padding: '16px' }}>Are you sure mark as Non-Credit Client?</Typography> | |||||
</DialogContent> | </DialogContent> | ||||
<DialogActions> | <DialogActions> | ||||
<Button onClick={() => setNonCreditorConfirmPopUp(false)}><Typography variant="h5">Cancel</Typography></Button> | <Button onClick={() => setNonCreditorConfirmPopUp(false)}><Typography variant="h5">Cancel</Typography></Button> | ||||
@@ -123,7 +123,7 @@ const OrganizationSearchForm = ({ applySearch }) => { | |||||
renderInput={(params) => ( | renderInput={(params) => ( | ||||
<TextField | <TextField | ||||
{...params} | {...params} | ||||
label="Creditor/Non-creditor" | |||||
label="Credit Client/Non-credit Client" | |||||
InputLabelProps={{ | InputLabelProps={{ | ||||
shrink: true | shrink: true | ||||
}} | }} | ||||
@@ -85,8 +85,8 @@ export default function OrganizationTable({ recordList }) { | |||||
{ | { | ||||
id: 'creditor', | id: 'creditor', | ||||
field: 'creditor', | field: 'creditor', | ||||
headerName: 'Creditor', | |||||
width: 100, | |||||
headerName: 'Credit Client', | |||||
width: 150, | |||||
valueGetter: (params) => { | valueGetter: (params) => { | ||||
return params?.value?"Yes":""; | return params?.value?"Yes":""; | ||||
} | } | ||||
@@ -20,6 +20,7 @@ import Loadable from 'components/Loadable'; | |||||
import { lazy } from 'react'; | import { lazy } from 'react'; | ||||
const LoadingComponent = Loadable(lazy(() => import('../../extra-pages/LoadingComponent'))); | const LoadingComponent = Loadable(lazy(() => import('../../extra-pages/LoadingComponent'))); | ||||
import * as HttpUtils from "utils/HttpUtils" | import * as HttpUtils from "utils/HttpUtils" | ||||
import * as DateUtils from "utils/DateUtils" | |||||
import * as UrlUtils from "utils/ApiPathConst" | import * as UrlUtils from "utils/ApiPathConst" | ||||
import * as StatusUtils from "utils/statusUtils/PublicNoteStatusUtils"; | import * as StatusUtils from "utils/statusUtils/PublicNoteStatusUtils"; | ||||
@@ -93,7 +94,11 @@ const ApplicationDetailCard = ( | |||||
}; | }; | ||||
const complatedClick = () => () => { | const complatedClick = () => () => { | ||||
setStatus("complete") | |||||
let issueDate = DateUtils.convertToDate(applicationDetailData.gazetteIssueDetail.issueDate); | |||||
let current = new Date(); | |||||
if(current.getTime() >= issueDate.getTime()){ | |||||
setStatus("complete") | |||||
} | |||||
}; | }; | ||||
const withdrawnClick = () => () => { | const withdrawnClick = () => () => { | ||||
@@ -225,11 +230,13 @@ const ApplicationDetailCard = ( | |||||
// size="large" | // size="large" | ||||
variant="contained" | variant="contained" | ||||
onClick={complatedClick()} | onClick={complatedClick()} | ||||
disabled={(new Date()).getTime() < DateUtils.convertToDate(applicationDetailData.gazetteIssueDetail.issueDate).getTime()} | |||||
sx={{ | sx={{ | ||||
textTransform: 'capitalize', | textTransform: 'capitalize', | ||||
alignItems: 'end', | alignItems: 'end', | ||||
backgroundColor: '#52b202' | backgroundColor: '#52b202' | ||||
}}> | }}> | ||||
<DoneIcon /> | <DoneIcon /> | ||||
<Typography ml={1} variant="h5">Complete</Typography> | <Typography ml={1} variant="h5">Complete</Typography> | ||||
</Button> | </Button> | ||||
@@ -434,9 +434,9 @@ | |||||
"organizationProfile": "Organisation Profile", | "organizationProfile": "Organisation Profile", | ||||
"organizationDetails": "Organisation Details", | "organizationDetails": "Organisation Details", | ||||
"brNo": "BR No.", | "brNo": "BR No.", | ||||
"creditorAccount": "Creditor account", | |||||
"creditorAccount": "Credit Client", | |||||
"nameEng": "Name (Eng)", | "nameEng": "Name (Eng)", | ||||
"nameChi": "Name (Ch)", | |||||
"nameChi": "Name (Chi)", | |||||
"expiryDate": "Expiry date", | "expiryDate": "Expiry date", | ||||
"create": "Create", | "create": "Create", | ||||
"confirmTo": "Confirm to ", | "confirmTo": "Confirm to ", | ||||
@@ -11,7 +11,7 @@ | |||||
"Gazette": "宪报", | "Gazette": "宪报", | ||||
"gazetteDate": "宪报日期", | "gazetteDate": "宪报日期", | ||||
"gazetteLength": "长度", | "gazetteLength": "长度", | ||||
"gazetteSampleName": "宪报第6号副刊公告", | |||||
"gazetteSampleName": "宪报第6号副刊公共启事", | |||||
"reason": "原因", | "reason": "原因", | ||||
"payInstantly": "即时网上缴费", | "payInstantly": "即时网上缴费", | ||||
@@ -65,7 +65,7 @@ | |||||
"MSG.proofOutOfTime": "回覆逾时,请重新申请。", | "MSG.proofOutOfTime": "回覆逾时,请重新申请。", | ||||
"registerTitle1": "立即成为", | "registerTitle1": "立即成为", | ||||
"registerTitle2": "宪报刊登公告", | |||||
"registerTitle2": "宪报刊登公共启事", | |||||
"registerTitle3": "用户", | "registerTitle3": "用户", | ||||
"registerSubTitle": "只需4-5分钟", | "registerSubTitle": "只需4-5分钟", | ||||
"or": "或", | "or": "或", | ||||
@@ -400,8 +400,8 @@ | |||||
"submitApplication": "提交公共启事申请", | "submitApplication": "提交公共启事申请", | ||||
"applicationSubheading": "提供你的启事内容作排版,校对及计价。", | "applicationSubheading": "提供你的启事内容作排版,校对及计价。", | ||||
"announcement": "公告", | |||||
"viewAllAnnouncement": "显示所有公告", | |||||
"announcement": "公共启事", | |||||
"viewAllAnnouncement": "显示所有公共启事", | |||||
"systemMessage": "系统消息", | "systemMessage": "系统消息", | ||||
"viewAllSystemMessage": "显示所有消息", | "viewAllSystemMessage": "显示所有消息", | ||||
"msgDetails": "消息详情", | "msgDetails": "消息详情", | ||||
@@ -11,7 +11,7 @@ | |||||
"Gazette": "憲報", | "Gazette": "憲報", | ||||
"gazetteDate": "憲報日期", | "gazetteDate": "憲報日期", | ||||
"gazetteLength": "長度", | "gazetteLength": "長度", | ||||
"gazetteSampleName": "憲報第6號副刊公告", | |||||
"gazetteSampleName": "憲報第6號副刊公共啟事", | |||||
"reason": "原因", | "reason": "原因", | ||||
"payInstantly": "即時網上繳費", | "payInstantly": "即時網上繳費", | ||||
@@ -65,7 +65,7 @@ | |||||
"MSG.proofOutOfTime": "回覆逾時,請重新申請。", | "MSG.proofOutOfTime": "回覆逾時,請重新申請。", | ||||
"registerTitle1": "立即成為", | "registerTitle1": "立即成為", | ||||
"registerTitle2": "憲報刊登公告", | |||||
"registerTitle2": "憲報刊登公共啟事", | |||||
"registerTitle3": "用戶", | "registerTitle3": "用戶", | ||||
"registerSubTitle": "只需4-5分鐘", | "registerSubTitle": "只需4-5分鐘", | ||||
"or": "或", | "or": "或", | ||||
@@ -122,6 +122,6 @@ export const denmandNoteStatus_Public = [ | |||||
export const CreditorStatus = [ | export const CreditorStatus = [ | ||||
{ key: 0, labelCht: '全部', label: 'All', type: 'all' }, | { key: 0, labelCht: '全部', label: 'All', type: 'all' }, | ||||
{ key: 1, labelCht: '債權人', label:'Creditor', type: 'true' }, | |||||
{ key: 2, labelCht: '非債權人', label:'No-Creditor', type: 'false' }, | |||||
{ key: 1, labelCht: '債權人', label:'Credit Client', type: 'true' }, | |||||
{ key: 2, labelCht: '非債權人', label:'Non-Credit Client', type: 'false' }, | |||||
]; | ]; |