Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
phase-7-production-infrastructure-bank-golive
ci/public-windows-bridge-probe-20261017
ci/windows-dispatch-bootstrap-20261016
ci/windows-dual-app-lab-20261016
dev/v7-production-failclosed-20261021
feature/reconciliation-guard-20261013
main
phase-1-foundation
phase-1-implementation
phase-2-treasury-core
phase-3-banking-reconciliation
phase-4-operations-enterprise-ux
phase-5-hardening-release
phase-6-production-platform
phase-7-production-infrastructure-bank-golive
phase-7-sql-readonly-ux-20261015
transfer-exe-to-drive-20261006
| 1 | import {getDesktopTreasuryService} from '../../platform/application/server-service'; |
| 2 | import {AccountCards} from '../master-data/components'; |
| 3 | import {createAccountAction} from '../master-data/actions'; |
| 4 | export const dynamic='force-dynamic'; |
| 5 | export default async function AccountsPage({searchParams}:{searchParams:Promise<{error?:string;created?:string}>}){ |
| 6 | const params=await searchParams;const rows=getDesktopTreasuryService().listAccounts(); |
| 7 | return <div className="page-stack"><section className="page-head"><div><p className="eyebrow">BANK ACCOUNTS</p><h2>حسابهای بانکی</h2><p>حسابهای مبدأ حواله. موجودی یا اتصال زنده فقط در صورت وجود Adapter واقعی نمایش داده میشود.</p></div></section> |
| 8 | {params.error&&<div className="alert-banner danger"><strong>ثبت حساب انجام نشد.</strong><span>{params.error}</span></div>} |
| 9 | {params.created&&<div className="alert-banner success"><strong>حساب ثبت شد.</strong><span>اکنون میتوانید از آن بهعنوان مبدأ حواله استفاده کنید.</span></div>} |
| 10 | <section className="panel"><div className="section-title"><div><h3>حسابهای ثبتشده</h3><p>{rows.length.toLocaleString('fa-IR')} حساب</p></div></div><AccountCards rows={rows}/></section> |
| 11 | <section className="panel"><div className="section-title"><div><h3>افزودن حساب بانکی</h3><p>شماره شبا با کنترل معتبر ایران بررسی میشود.</p></div></div><form action={createAccountAction} className="inline-form"><label><span>نام حساب</span><input name="name" required placeholder="مثلاً حساب جاری شرکت"/></label><label><span>بانک</span><input name="bankName" required placeholder="نام بانک"/></label><label className="wide"><span>شماره شبا</span><input name="iban" dir="ltr" required placeholder="IR..."/></label><button className="btn btn-primary" type="submit">افزودن حساب</button></form></section> |
| 12 | </div> |
| 13 | } |