Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

report setad preregister ok hurray raity arshia #135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ArshiaQmarsi
Copy link
Contributor

..............

@ViewChild(MatSort) sort: MatSort;
displayedColumns: string[] = ['name', 'sex','mobile', 'nationalCode', 'ageRangeName', 'city', 'created', 'action'];
private _field: SportField;
private _subField: SportSubField;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

چرا هر چیزی رو کپی کردید بدون این که بخونید
درست بخونید

@@ -0,0 +1,116 @@
<div>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

این چیزی که شما نوشتید هر کسی وارد میشه میتونه ببینه خروجی و اطلاعات بقیه رو
و این درست نیست

<button mat-icon-button (click)="onDownloadExport()"> <mat-icon>download_for_offline</mat-icon></button>
<button mat-icon-button
(click)="onRefreshClick()"><mat-icon>refresh</mat-icon></button>
<table mat-table
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

این جدول رو پاک کنید
چون جدوله خیلی ویژگی ها داره
و اجرای این باگ میخوره

this.dataSource.sort = this.sort;
});
}
async onDownloadExport() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

یه جوری بنویسید که فقط اکسل بگیره
هر دفعه هم اکسل گرفتش همه چیر ور از بک اند بخونه



@NgModule({
declarations: [RegulationsComponent,PreRegisterHomePageComponent],
declarations: [RegulationsComponent,PreRegisterHomePageComponent, ReportComponent],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

این page یا کامپونتته؟
با چه ادرسی میشه بازش کرد؟

fControl: FormControl<number>;
constructor (private readonly _setadRepository: SetadRepositoryService, ac: ActivatedRoute, private readonly _fb: FormBuilder) {
this.fControl = _fb.control<number>(-1);
ac.params.subscribe(c => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

اینجا شما روت های اصلی رو میگیرید که با سیستم api شما سازگار نیست

private _subField: SportSubField;
private data: IPlayer[];
fControl: FormControl<number>;
constructor (private readonly _setadRepository: SetadRepositoryService, ac: ActivatedRoute, private readonly _fb: FormBuilder) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

در ضمن این سرویس برای ثبت نام اصلی جام کار میکنه
این پیش ثبت نامه به API پارسا باید ریکوست بزنید

this.dataSource = new MatTableDataSource(this.data.filter(c => c.profile.sexRaw == t));
});
}
applyFilter(event: Event) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

به این نیاز ندارید

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

یعنی چی؟

async onDownloadExport() {
const wb = new Workbook();
const ws = wb.addWorksheet('bozorg sal man');
const cols = [{ name: 'نام و نام خانوادگی' }, { name: 'رده' }, { name: 'جنسیت' }, { name: 'شهر' }, { name: 'کد ملی' }];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

چه بخشی ثبت نام کردن رو کجا مینویسید؟

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants