init project portal web

This commit is contained in:
Sweli Giri
2025-04-15 13:56:54 +07:00
parent 9a25243035
commit 8b15dcebf8
122 changed files with 13965 additions and 1 deletions

View File

@ -0,0 +1,50 @@
import { makeAutoObservable } from "mobx"
export default class RatePlanFormState {
private open: boolean = false;
private ratePlanName: string = "";
private ratePlanCode: string = "";
private ratePlanType: string = "";
private remarks: string = "";
constructor() {
makeAutoObservable(this);
}
// --- Getters ---
getOpen = () => this.open;
getRatePlanName = () => this.ratePlanName;
getRatePlanCode = () => this.ratePlanCode;
getRatePlanType = () => this.ratePlanType;
getRemarks = () => this.remarks;
// --- Setters ---
setOpen = (value: boolean) => {
this.open = value;
};
setRatePlanName = (value: string) => {
this.ratePlanName = value;
};
setRatePlanCode = (value: string) => {
this.ratePlanCode = value;
};
setRatePlanType = (value: string) => {
this.ratePlanType = value;
};
setRemarks = (value: string) => {
this.remarks = value;
};
// --- Reset ---
reset = () => {
this.open = false;
this.ratePlanName = "";
this.ratePlanCode = "";
this.ratePlanType = "";
this.remarks = "";
};
}