diff --git a/test17sep-dbtdt-d/authsec_mysql/mysql/wf_table/wf_table.sql b/test17sep-dbtdt-d/authsec_mysql/mysql/wf_table/wf_table.sql
new file mode 100755
index 0000000..fc5665d
--- /dev/null
+++ b/test17sep-dbtdt-d/authsec_mysql/mysql/wf_table/wf_table.sql
@@ -0,0 +1,34 @@
+CREATE TABLE dbtdt.Basicp1(id BIGINT NOT NULL AUTO_INCREMENT, textarea_field VARCHAR(400), paragraph_field VARCHAR(400), textarea VARCHAR(400), paragraph_field2 VARCHAR(400), phone_number2 VARCHAR(400), name VARCHAR(400), number1 int, phone_number VARCHAR(400), number2 int, name2 VARCHAR(400), password_field VARCHAR(400), textarea_field2 VARCHAR(400), PRIMARY KEY (id));
+
+CREATE TABLE dbtdt.Basicp2(id BIGINT NOT NULL AUTO_INCREMENT, datetime_field2 VARCHAR(400), about VARCHAR(400), datetime_field VARCHAR(400), userid_field VARCHAR(400), email_field2 VARCHAR(400), date_field Date, email_field VARCHAR(400), textarea2 VARCHAR(400), date_field2 Date, PRIMARY KEY (id));
+
+CREATE TABLE dbtdt.Basicp3(id BIGINT NOT NULL AUTO_INCREMENT, toggle_switch2 VARCHAR(400), decimal_field2 double, documentsequenc VARCHAR(400), toggle_switch VARCHAR(400), recaptcha VARCHAR(400), percentage_field int, percentage_field2 int, url_field VARCHAR(400), url_field2 VARCHAR(400), decimal_field double, recaptcha2 VARCHAR(400), PRIMARY KEY (id));
+
+CREATE TABLE dbtdt.Adv1(id BIGINT NOT NULL AUTO_INCREMENT, t4 bit(1), video_field2 VARCHAR(400), video_field VARCHAR(400), ismale VARCHAR(400), fileupload_field VARCHAR(400), test1 bit(1), test2 bit(1), audio_field2 VARCHAR(400), fileupload_field2 VARCHAR(400), imageupload_field VARCHAR(400), audio_field VARCHAR(400), idfemale VARCHAR(400), t1 bit(1), imageupload_field2 VARCHAR(400), t2 bit(1), PRIMARY KEY (id));
+
+CREATE TABLE dbtdt.Dv2(id BIGINT NOT NULL AUTO_INCREMENT, qrcode_field2 VARCHAR(400), test3 VARCHAR(400), test VARCHAR(400), currency2 VARCHAR(400), currency VARCHAR(400), qrcode_field VARCHAR(400), name VARCHAR(400), last_name VARCHAR(400), barcode_field2 VARCHAR(400), static VARCHAR(400), barcode_field VARCHAR(400), PRIMARY KEY (id));
+
+CREATE TABLE dbtdt.Adv3(id BIGINT NOT NULL AUTO_INCREMENT, datagrid_field2 VARCHAR(400), country VARCHAR(400), dynamic VARCHAR(400), dymlt2 VARCHAR(400), dymlti1 VARCHAR(400), stmlit VARCHAR(400), stmmlt2 VARCHAR(400), state VARCHAR(400), datagrid_field VARCHAR(400), dy2 int, dy1 int, PRIMARY KEY (id));
+
+CREATE TABLE dbtdt.Support(id BIGINT NOT NULL AUTO_INCREMENT, description VARCHAR(400), name VARCHAR(400), PRIMARY KEY (id));
+
+CREATE TABLE dbtdt.Adv4(id BIGINT NOT NULL AUTO_INCREMENT, onetoone VARCHAR(400), atdy1 VARCHAR(400), atdy2 VARCHAR(400), atoc int, atc2 int, PRIMARY KEY (id));
+
+CREATE TABLE dbtdt.Adv5(id BIGINT NOT NULL AUTO_INCREMENT, onetomanyextension VARCHAR(400), multiplication VARCHAR(400), value_list_field VARCHAR(400), value_list_field2 VARCHAR(400), age int, age2 int, name VARCHAR(400), addition VARCHAR(400), PRIMARY KEY (id));
+
+CREATE TABLE dbtdt.Ad6(id BIGINT NOT NULL AUTO_INCREMENT, country int, district VARCHAR(400), description VARCHAR(400), state VARCHAR(400), name VARCHAR(400), PRIMARY KEY (id));
+
+CREATE TABLE dbtdt.Ad7(id BIGINT NOT NULL AUTO_INCREMENT, button_field2 VARCHAR(400), button_field VARCHAR(400), name VARCHAR(400), PRIMARY KEY (id));
+
+CREATE TABLE dbtdt.Ad8(id BIGINT NOT NULL AUTO_INCREMENT, onetoone VARCHAR(400), buttonupdate2 VARCHAR(400), onetomanyextension VARCHAR(400), buttonupdate VARCHAR(400), name VARCHAR(400), PRIMARY KEY (id));
+
+CREATE TABLE dbtdt.Ad9(id BIGINT NOT NULL AUTO_INCREMENT, approved_field VARCHAR(400), name VARCHAR(400), PRIMARY KEY (id));
+
+CREATE TABLE dbtdt.Country(id BIGINT NOT NULL AUTO_INCREMENT, active VARCHAR(400), description VARCHAR(400), name VARCHAR(400), PRIMARY KEY (id));
+
+CREATE TABLE dbtdt.State(id BIGINT NOT NULL AUTO_INCREMENT, active VARCHAR(400), description VARCHAR(400), state_name VARCHAR(400), country_name VARCHAR(400), PRIMARY KEY (id));
+
+CREATE TABLE dbtdt.District(id BIGINT NOT NULL AUTO_INCREMENT, district_name VARCHAR(400), active VARCHAR(400), description VARCHAR(400), state_name VARCHAR(400), PRIMARY KEY (id));
+
+CREATE TABLE dbtdt.Childform(id BIGINT NOT NULL AUTO_INCREMENT, active VARCHAR(400), description VARCHAR(400), name VARCHAR(400), PRIMARY KEY (id));
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad6/Ad6.component.html b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad6/Ad6.component.html
new file mode 100644
index 0000000..14c0d1a
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad6/Ad6.component.html
@@ -0,0 +1,543 @@
+
+ - Ad6
+
+
+
+
+
Ad6
+
+
+
+
+
+
+
+
+
+ Loading ...
+
+ {{error}}
+
+
+ Name
+
+
+
+ description
+
+
+
+ country
+
+
+
+ state
+
+
+
+ district
+
+
+
+
+
+ Action
+
+
+
+
+
+{{user.name }}
+
+
+{{user.description }}
+
+
+{{user.countryidentifier}}
+
+
+{{user.state }}
+
+
+{{user.district }}
+
+
+
+
+
+
+
+ Who Column
+ Account ID: {{user.accountId}}
+ Created At: {{user.createdAt| date}}
+ Created By: {{user.createdBy}}
+ Updated At: {{user.updatedAt | date}}
+ Updated By: {{user.updatedBy}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Users per page
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
+ of {{pagination.totalItems}} users
+
+
+
+
+
+
+
+
+
+ Data could be found. Loading..
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] }}
+ {{afterText(item.fieldtext)}}
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] | date}}
+ {{afterText(item.fieldtext)}}
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ]}}
+ {{afterText(item.fieldtext)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Update Ad6
+
+
+
+
+
+
+
+
+
+
+
+
+
{{rowSelected.id}}
+
+
+
+
+
+
+
Are You Sure Want to delete?
+ {{rowSelected.id}}
+
+
+
+
+
+ Add Ad6
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form Extension
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad6/Ad6.component.scss b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad6/Ad6.component.scss
new file mode 100644
index 0000000..12f7fc8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad6/Ad6.component.scss
@@ -0,0 +1,85 @@
+//@import "../../../../assets/scss/var";
+.s-info-bar {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ button {
+ outline: none;
+ }
+}
+.delete,.heading{
+ text-align: center;
+ color: red;
+}
+.entry-pg {
+ width: 750px;
+}
+
+.button1::after {
+ content: none;
+}
+.button1:hover::after {
+ content: "ADD ROWS";
+}
+
+.section {
+ background-color: #dddddd;
+ height: 40px;
+}
+
+.section p {
+ //color: white;
+ padding: 10px;
+ font-size: 18px;
+}
+
+.clr-input {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ padding: 0.75rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.clr-file {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ //padding: 0.6rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.center {
+ text-align: center;
+}
+select{
+ width: 100%;
+ margin-top: 3px;
+ padding: 5px 5px;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+input[type=text],[type=date],[type=number],textarea {
+ width: 100%;
+ padding: 15px 15px;
+ background-color:rgb(255, 255, 255);
+ // margin: 8px 0;
+ display: inline-block;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ box-sizing: border-box;
+}
+.error_mess {
+ color: red;
+}
+.universal-section-header {
+ margin: 24px 0 10px 0;
+ font-weight: 600;
+ color: #1a237e;
+ letter-spacing: 0.5px;
+ font-size: 1.25rem;
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad6/Ad6.component.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad6/Ad6.component.ts
new file mode 100644
index 0000000..1943884
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad6/Ad6.component.ts
@@ -0,0 +1,492 @@
+import { Component, OnInit } from '@angular/core';
+import { ToastrService } from 'ngx-toastr';
+import { AlertService } from 'src/app/services/alert.service';
+import { Ad6service} from './Ad6.service';
+import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
+import { ExtensionService } from 'src/app/services/fnd/extension.service';
+import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
+import { Ad6cardvariable } from './Ad6_cardvariable';
+import { UserInfoService } from 'src/app/services/user-info.service';
+declare var JsBarcode: any;
+@Component({
+ selector: 'app-Ad6',
+ templateUrl: './Ad6.component.html',
+ styleUrls: ['./Ad6.component.scss']
+})
+export class Ad6Component implements OnInit {
+ cardButton = Ad6cardvariable.cardButton;
+ cardmodeldata = Ad6cardvariable.cardmodeldata;
+ public dashboardArray: DashboardContentModel2[];
+ isCardview = Ad6cardvariable.cardButton;
+ cardmodal; changeView(){
+ this.isCardview = !this.isCardview;
+ }
+ beforeText(fieldtext: string): string { // Extract the text before the first '<'
+ const index = fieldtext.indexOf('<');
+ return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
+ }
+ afterText(fieldtext: string): string { // Extract the text after the last '>'
+ const index = fieldtext.lastIndexOf('>');
+ return index !== -1 ? fieldtext.substring(index + 1) : '';
+ }
+ transform(fieldtext: string): string {
+ const match = fieldtext.match(/<([^>]*)>/);
+ return match ? match[1] : ''; // Extract the text between '<' and '>'
+ }
+ userrole;
+ rowSelected :any= {};
+ modaldelete=false;
+ modalEdit=false;
+ modalAdd= false;
+ public entryForm: FormGroup;
+ loading = false;
+ product;
+ modalOpenedforNewLine = false;
+ newLine:any;
+ additionalFieldsFromBackend: any[] = [];
+ formcode = 'Ad6_formCode'
+tableName = 'Ad6'; checkFormCode; selected: any[] = []; constructor(
+ private extensionService: ExtensionService,
+private userInfoService:UserInfoService,
+ private mainService:Ad6service,
+ private alertService: AlertService,
+ private toastr: ToastrService,
+ private _fb: FormBuilder,
+ ) { }
+ private editInterval: any;
+// component button
+ ngOnInit(): void {
+ if(this.cardmodeldata !== ''){
+ this.cardmodal = JSON.parse(this.cardmodeldata);
+ this.dashboardArray = this.cardmodal.dashboard.slice();
+ console.log(this.dashboardArray)
+ }
+ this.userrole=this.userInfoService.getRoles();
+ this.getData();
+ this.entryForm = this._fb.group({
+name : [null],
+
+description : [null],
+
+country : [null],
+
+state : [null],
+
+
+district : [null],
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }); // component_button200
+ // form code start
+ this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
+ console.log(data);
+ const jsonArray = data.map((str) => JSON.parse(str));
+ this.additionalFieldsFromBackend = jsonArray;
+ this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Ad6_formCode");
+ console.log(this.checkFormCode);
+ console.log(this.additionalFieldsFromBackend);
+ if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
+ this.additionalFieldsFromBackend.forEach(field => {
+ if (field.formCode === this.formcode) {
+ if (!this.entryForm.contains(field.extValue)) {
+ // Add the control only if it doesn't exist in the form
+ this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
+ }
+ }
+ });
+ }
+ });
+ console.log(this.entryForm.value);
+ // form code end
+
+
+
+
+this.getallcountry();
+
+
+
+ if (this.countrydefault) {
+ // Listen for product changes to auto-fill description
+
+
+
+ this.entryForm.get('country')?.valueChanges.subscribe(name => {
+ if (name && this.selectcountry) {
+
+ const found = this.selectcountry.find(p => p.name === name);
+
+
+
+ console.log('found is ', found);
+
+ // Auto-fill price when product is selected
+ if (found && found.default_field) {
+ this.entryForm.patchValue({ default_field: found.default_field_link });
+ } else {
+ this.entryForm.patchValue({ default_field: null });
+ }
+
+ }
+ });
+}
+
+
+ // Listen for country changes
+
+
+ this.entryForm.get('country')?.valueChanges.subscribe((item) => {
+
+
+ if (item) {
+ this.dependet2state(item);
+ } else {
+ this.statedependentData = [];
+ this.entryForm.get('state')?.setValue(null); // clear state
+ }
+ });
+
+
+
+ // Listen for country changes
+
+
+ this.entryForm.get('state')?.valueChanges.subscribe((item) => {
+
+
+ if (item) {
+ this.dependet2district(item);
+ } else {
+ this.districtdependentData = [];
+ this.entryForm.get('district')?.setValue(null); // clear state
+ }
+ });
+
+
+
+ }
+ ngOnDestroy(): void {
+ if (this.editInterval) {
+ clearInterval(this.editInterval);
+ }
+ }
+
+
+
+
+
+
+
+
+
+ error;
+ getData() {
+ this.mainService.getAll().subscribe((data) => {
+ console.log(data);
+ this.product = data;
+this.product = [...this.product].reverse(); if(this.product.length==0){
+ this.error="No Data Available"
+ }
+ },(error) => {
+ console.log(error);
+ if(error){
+ this.error="Server Error";
+ }
+ });
+ }
+ onEdit(row) {
+ this.rowSelected = row;
+
+
+
+
+
+
+// Dependemt Dropdown field start
+this.dependet2state(row.dependentDD);
+ // Dependemt Dropdown field end
+
+// Dependemt Dropdown field start
+this.dependet2district(row.dependentDD);
+ // Dependemt Dropdown field end
+
+
+ this.modalEdit = true;
+ }
+ onDelete(row) {
+ this.rowSelected = row;
+ this.modaldelete=true;
+ }
+ delete(id)
+ {
+ this.modaldelete = false;
+ console.log("in delete "+id);
+ this.mainService.delete(id).subscribe(
+ (data) => {
+ console.log(data);
+ this.ngOnInit();
+ if (data) { this.toastr.success('Deleted successfully'); }
+ });
+ }
+ onUpdate(id) {
+ this.modalEdit = false;
+
+
+
+
+
+
+
+
+
+
+ //console.log("in update");
+ console.log("id " + id);
+ console.log(this.rowSelected);
+ //console.log("out update");
+ this.mainService.update(id, this.rowSelected).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("update Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Updated");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Updated");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+onCreate() {
+ this.modalAdd=false;
+
+
+
+
+
+
+
+
+
+
+ this.mainService.create(this.entryForm.value).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Added Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("Added Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Added");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Added");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+ goToAdd(row) {
+this.modalAdd = true; this.submitted = false;
+
+
+
+
+
+
+
+
+
+
+ }
+ submitted = false;
+onSubmit() {
+ console.log(this.entryForm.value);
+ this.submitted = true;
+ if (this.entryForm.invalid) {
+ return;
+ }this.onCreate();
+
+}
+
+
+
+
+countrydefault=false
+selectcountry ;
+getallcountry() {
+ this.mainService.getAllcountry().subscribe(data=>{
+this.selectcountry = data;
+console.log(data);
+},(error) => { console.log(error); }); }
+
+
+
+ // ================== ORDER SUMMARY LOGIC START ==================
+ /**
+ * Order Summary Array and Methods for Add to Order functionality
+ */
+ countrySummary: any[] = [];
+ countrytotal;
+iscountryorder =false;
+ /**
+ * Add selected product to order summary
+ */
+ addcountryOrder() {
+ const formValue = this.entryForm.value;
+ if (!formValue.country ) {
+ this.toastr.error('Please select country');
+ return;
+ }
+ // Get description from master (selectcountry)
+
+
+
+
+ if (this.selectcountry && Array.isArray(this.selectcountry)) {
+
+
+ const found = this.selectcountry.find(p => p.name === formValue.country);
+
+
+
+
+ }
+ const line = this.countrySummary.length + 1;
+ const orderItem = {
+ line: line,
+
+ // unitPrice: Number(formValue.price),
+ // quantity: Number(formValue.quantity),
+ // total: Number(formValue.price) * Number(formValue.quantity)
+ };
+ this.countrySummary.push(orderItem);
+
+ this.countrytotal = '';
+ }
+
+ /**
+ * Remove item from order summary by index
+ */
+ removecountryOrder(index: number) {
+ this.countrySummary.splice(index, 1);
+ // Recalculate line numbers
+ this.countrySummary.forEach((item, i) => {
+ item.line = i + 1;
+ });
+ }
+
+ /**
+ * Calculate subtotal of all order items
+ */
+ getcountrySubtotal(): number {
+ return this.countrySummary.reduce((sum, item) => sum + item.total, 0);
+ }
+
+ /**
+ * Calculate GST (18%)
+ */
+ getcountryGST(): number {
+ return this.getcountrySubtotal() * 0.18;
+ }
+
+ /**
+ * Calculate grand total (subtotal + GST)
+ */
+ getcountryGrandTotal(): number {
+ return this.getcountrySubtotal() + this.getcountryGST();
+
+ }
+ // ================== ORDER SUMMARY LOGIC END ==================
+
+
+// Dependemt Dropdown field start
+
+
+ statedependentData: any;
+dependet2state (item){
+ this.mainService.getstateDependent(item).subscribe( (data) => {
+ console.log(data);
+ this.statedependentData = data;
+ },(error) => { console.log(error); });
+ }
+
+
+ // DependemtDropdown field end
+
+// Dependemt Dropdown field start
+
+
+ districtdependentData: any;
+dependet2district (item){
+ this.mainService.getdistrictDependent(item).subscribe( (data) => {
+ console.log(data);
+ this.districtdependentData = data;
+ },(error) => { console.log(error); });
+ }
+
+
+ // DependemtDropdown field end
+
+// updateaction
+}
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad6/Ad6.service.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad6/Ad6.service.ts
new file mode 100644
index 0000000..fb34d50
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad6/Ad6.service.ts
@@ -0,0 +1,56 @@
+import { Injectable } from '@angular/core';
+import { Observable } from "rxjs";
+import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
+import { ApiRequestService } from "src/app/services/api/api-request.service";
+import { environment } from 'src/environments/environment';
+@Injectable({
+ providedIn: 'root'
+})
+export class Ad6service{
+ private baseURL = "Ad6/Ad6" ; constructor(
+ private http: HttpClient,
+ private apiRequest: ApiRequestService,
+ ) { }
+ getAll(page?: number, size?: number): Observable {
+ return this.apiRequest.get(this.baseURL);
+ }
+ getById(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.get(_http);
+ }
+ create(data: any): Observable {
+ return this.apiRequest.post(this.baseURL, data);
+ }
+ update(id: number, data: any): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.put(_http, data);
+ }
+ delete(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.delete(_http);
+ }
+
+
+
+
+getAllcountry(): Observable {
+return this.apiRequest.get("Country_ListFilter1/Country_ListFilter1"); }
+
+
+
+ getstateDependent(field: string): Observable {
+ return this.apiRequest.get("State_ListFilter1/State_ListFilter11/" + field);
+ }
+
+
+
+
+
+ getdistrictDependent(field: string): Observable {
+ return this.apiRequest.get("District_ListFilter1/District_ListFilter11/" + field);
+ }
+
+
+
+// updateaction
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad6/Ad6_cardvariable.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad6/Ad6_cardvariable.ts
new file mode 100644
index 0000000..a7602db
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad6/Ad6_cardvariable.ts
@@ -0,0 +1,4 @@
+export const Ad6cardvariable = {
+ "cardButton": false,
+ "cardmodeldata": ``
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad7/Ad7.component.html b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad7/Ad7.component.html
new file mode 100644
index 0000000..40acabb
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad7/Ad7.component.html
@@ -0,0 +1,453 @@
+
+ - Ad7
+
+
+
+
+
Ad7
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Loading ...
+
+ {{error}}
+
+
+ Name
+
+
+
+
+
+
+
+
+
+ Action
+
+
+
+
+
+{{user.name }}
+
+
+
+
+
+
+
+
+
+
+
+ Who Column
+ Account ID: {{user.accountId}}
+ Created At: {{user.createdAt| date}}
+ Created By: {{user.createdBy}}
+ Updated At: {{user.updatedAt | date}}
+ Updated By: {{user.updatedBy}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Users per page
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
+ of {{pagination.totalItems}} users
+
+
+
+
+
+
+
+
+
+ Data could be found. Loading..
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] }}
+ {{afterText(item.fieldtext)}}
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] | date}}
+ {{afterText(item.fieldtext)}}
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ]}}
+ {{afterText(item.fieldtext)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Update Ad7
+
+
+
+
+
+
+
+
+
{{rowSelected.id}}
+
+
+
+
+
+
+
Are You Sure Want to delete?
+ {{rowSelected.id}}
+
+
+
+
+
+ Add Ad7
+
+
+
+
+
+
+
+
+
+
+
+
+ Form Extension
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Insert Button_Field2
+
+
+
+
+
+
+
+ Insert Button_Field
+
+
+
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad7/Ad7.component.scss b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad7/Ad7.component.scss
new file mode 100644
index 0000000..12f7fc8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad7/Ad7.component.scss
@@ -0,0 +1,85 @@
+//@import "../../../../assets/scss/var";
+.s-info-bar {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ button {
+ outline: none;
+ }
+}
+.delete,.heading{
+ text-align: center;
+ color: red;
+}
+.entry-pg {
+ width: 750px;
+}
+
+.button1::after {
+ content: none;
+}
+.button1:hover::after {
+ content: "ADD ROWS";
+}
+
+.section {
+ background-color: #dddddd;
+ height: 40px;
+}
+
+.section p {
+ //color: white;
+ padding: 10px;
+ font-size: 18px;
+}
+
+.clr-input {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ padding: 0.75rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.clr-file {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ //padding: 0.6rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.center {
+ text-align: center;
+}
+select{
+ width: 100%;
+ margin-top: 3px;
+ padding: 5px 5px;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+input[type=text],[type=date],[type=number],textarea {
+ width: 100%;
+ padding: 15px 15px;
+ background-color:rgb(255, 255, 255);
+ // margin: 8px 0;
+ display: inline-block;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ box-sizing: border-box;
+}
+.error_mess {
+ color: red;
+}
+.universal-section-header {
+ margin: 24px 0 10px 0;
+ font-weight: 600;
+ color: #1a237e;
+ letter-spacing: 0.5px;
+ font-size: 1.25rem;
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad7/Ad7.component.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad7/Ad7.component.ts
new file mode 100644
index 0000000..c262408
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad7/Ad7.component.ts
@@ -0,0 +1,387 @@
+import { Component, OnInit } from '@angular/core';
+import { ToastrService } from 'ngx-toastr';
+import { AlertService } from 'src/app/services/alert.service';
+import { Ad7service} from './Ad7.service';
+import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
+import { ExtensionService } from 'src/app/services/fnd/extension.service';
+import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
+import { Ad7cardvariable } from './Ad7_cardvariable';
+import { UserInfoService } from 'src/app/services/user-info.service';
+declare var JsBarcode: any;
+@Component({
+ selector: 'app-Ad7',
+ templateUrl: './Ad7.component.html',
+ styleUrls: ['./Ad7.component.scss']
+})
+export class Ad7Component implements OnInit {
+ cardButton = Ad7cardvariable.cardButton;
+ cardmodeldata = Ad7cardvariable.cardmodeldata;
+ public dashboardArray: DashboardContentModel2[];
+ isCardview = Ad7cardvariable.cardButton;
+ cardmodal; changeView(){
+ this.isCardview = !this.isCardview;
+ }
+ beforeText(fieldtext: string): string { // Extract the text before the first '<'
+ const index = fieldtext.indexOf('<');
+ return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
+ }
+ afterText(fieldtext: string): string { // Extract the text after the last '>'
+ const index = fieldtext.lastIndexOf('>');
+ return index !== -1 ? fieldtext.substring(index + 1) : '';
+ }
+ transform(fieldtext: string): string {
+ const match = fieldtext.match(/<([^>]*)>/);
+ return match ? match[1] : ''; // Extract the text between '<' and '>'
+ }
+ userrole;
+ rowSelected :any= {};
+ modaldelete=false;
+ modalEdit=false;
+ modalAdd= false;
+ public entryForm: FormGroup;
+ loading = false;
+ product;
+ modalOpenedforNewLine = false;
+ newLine:any;
+ additionalFieldsFromBackend: any[] = [];
+ formcode = 'Ad7_formCode'
+tableName = 'Ad7'; checkFormCode; selected: any[] = []; constructor(
+ private extensionService: ExtensionService,
+private userInfoService:UserInfoService,
+ private mainService:Ad7service,
+ private alertService: AlertService,
+ private toastr: ToastrService,
+ private _fb: FormBuilder,
+ ) { }
+ private editInterval: any;
+// component button
+ public insertFormButton_Field2: FormGroup;
+
+
+ public insertFormButton_Field: FormGroup;
+
+
+ ngOnInit(): void {
+ if(this.cardmodeldata !== ''){
+ this.cardmodal = JSON.parse(this.cardmodeldata);
+ this.dashboardArray = this.cardmodal.dashboard.slice();
+ console.log(this.dashboardArray)
+ }
+ this.userrole=this.userInfoService.getRoles();
+ this.getData();
+ this.entryForm = this._fb.group({
+name : [null],
+
+
+
+
+
+
+
+
+
+
+
+
+ }); // component_button200
+// inser code start
+ this.insertFormButton_Field2 = this._fb.group({
+ description: 'textarea',
+ name: '',
+ });
+
+ // insert code end
+
+// inser code start
+ this.insertFormButton_Field = this._fb.group({
+ toggle_switch2: 'toggle_switch',
+ decimal_field2: 'decimal',
+ documentsequenc: 'document_sequence',
+ toggle_switch: 'toggle_switch',
+ recaptcha: 'recaptcha',
+ percentage_field: 'number',
+ percentage_field2: 'number',
+ url_field: 'url',
+ url_field2: 'url',
+ decimal_field: 'decimal',
+ recaptcha2: 'recaptcha',
+ });
+
+ // insert code end
+
+ // form code start
+ this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
+ console.log(data);
+ const jsonArray = data.map((str) => JSON.parse(str));
+ this.additionalFieldsFromBackend = jsonArray;
+ this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Ad7_formCode");
+ console.log(this.checkFormCode);
+ console.log(this.additionalFieldsFromBackend);
+ if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
+ this.additionalFieldsFromBackend.forEach(field => {
+ if (field.formCode === this.formcode) {
+ if (!this.entryForm.contains(field.extValue)) {
+ // Add the control only if it doesn't exist in the form
+ this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
+ }
+ }
+ });
+ }
+ });
+ console.log(this.entryForm.value);
+ // form code end
+
+
+
+
+
+
+
+ }
+ ngOnDestroy(): void {
+ if (this.editInterval) {
+ clearInterval(this.editInterval);
+ }
+ }
+
+
+
+
+
+ error;
+ getData() {
+ this.mainService.getAll().subscribe((data) => {
+ console.log(data);
+ this.product = data;
+this.product = [...this.product].reverse(); if(this.product.length==0){
+ this.error="No Data Available"
+ }
+ },(error) => {
+ console.log(error);
+ if(error){
+ this.error="Server Error";
+ }
+ });
+ }
+ onEdit(row) {
+ this.rowSelected = row;
+
+
+
+
+
+
+
+ this.modalEdit = true;
+ }
+ onDelete(row) {
+ this.rowSelected = row;
+ this.modaldelete=true;
+ }
+ delete(id)
+ {
+ this.modaldelete = false;
+ console.log("in delete "+id);
+ this.mainService.delete(id).subscribe(
+ (data) => {
+ console.log(data);
+ this.ngOnInit();
+ if (data) { this.toastr.success('Deleted successfully'); }
+ });
+ }
+ onUpdate(id) {
+ this.modalEdit = false;
+
+
+
+
+
+
+ //console.log("in update");
+ console.log("id " + id);
+ console.log(this.rowSelected);
+ //console.log("out update");
+ this.mainService.update(id, this.rowSelected).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("update Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Updated");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Updated");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+onCreate() {
+ this.modalAdd=false;
+
+
+
+
+
+
+ this.mainService.create(this.entryForm.value).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Added Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("Added Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Added");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Added");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+ goToAdd(row) {
+this.modalAdd = true; this.submitted = false;
+
+
+
+
+
+
+ }
+ submitted = false;
+onSubmit() {
+ console.log(this.entryForm.value);
+ this.submitted = true;
+ if (this.entryForm.invalid) {
+ return;
+ }this.onCreate();
+
+}
+
+
+
+
+
+
+// updateaction
+
+// insert button
+
+
+modalInsertButton_Field2 = false;
+goToInsertButton_Field2() {
+ this.modalInsertButton_Field2=true;
+ }
+onSubmitInsertButton_Field2() {
+ console.log(this.insertFormButton_Field2.value);
+ this.submitted=true;
+ if (this.insertFormButton_Field2.invalid) {
+ return;
+ }
+ this.onInsertButton_Field2();
+}
+onInsertButton_Field2() {
+ this.modalInsertButton_Field2=false;
+ this.mainService.insertButton_Field2Support(this.insertFormButton_Field2.value).subscribe(data => {
+ console.log('After add',data)
+ if (data.status >=200 && data.status <=209) {
+ this.toastr.success('Added successfully');
+ }
+if (data && data.id != null) {
+ this.toastr.success('Added successfully');
+ } this.ngOnInit();
+ },(error) => {
+ console.error(error);
+ if ( error.status >= 200 && error.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+ if ( error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Update Failed");
+ }
+ if ( error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Server Error");
+ }
+ this.ngOnInit();
+ });
+ this.insertFormButton_Field2.reset();
+ }
+// insert buuton code end
+
+
+
+// insert button
+
+
+modalInsertButton_Field = false;
+goToInsertButton_Field() {
+ this.modalInsertButton_Field=true;
+ }
+onSubmitInsertButton_Field() {
+ console.log(this.insertFormButton_Field.value);
+ this.submitted=true;
+ if (this.insertFormButton_Field.invalid) {
+ return;
+ }
+ this.onInsertButton_Field();
+}
+onInsertButton_Field() {
+ this.modalInsertButton_Field=false;
+ this.mainService.insertButton_FieldBasicp3(this.insertFormButton_Field.value).subscribe(data => {
+ console.log('After add',data)
+ if (data.status >=200 && data.status <=209) {
+ this.toastr.success('Added successfully');
+ }
+if (data && data.id != null) {
+ this.toastr.success('Added successfully');
+ } this.ngOnInit();
+ },(error) => {
+ console.error(error);
+ if ( error.status >= 200 && error.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+ if ( error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Update Failed");
+ }
+ if ( error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Server Error");
+ }
+ this.ngOnInit();
+ });
+ this.insertFormButton_Field.reset();
+ }
+// insert buuton code end
+
+
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad7/Ad7.service.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad7/Ad7.service.ts
new file mode 100644
index 0000000..fd0ec8c
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad7/Ad7.service.ts
@@ -0,0 +1,49 @@
+import { Injectable } from '@angular/core';
+import { Observable } from "rxjs";
+import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
+import { ApiRequestService } from "src/app/services/api/api-request.service";
+import { environment } from 'src/environments/environment';
+@Injectable({
+ providedIn: 'root'
+})
+export class Ad7service{
+ private baseURL = "Ad7/Ad7" ; constructor(
+ private http: HttpClient,
+ private apiRequest: ApiRequestService,
+ ) { }
+ getAll(page?: number, size?: number): Observable {
+ return this.apiRequest.get(this.baseURL);
+ }
+ getById(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.get(_http);
+ }
+ create(data: any): Observable {
+ return this.apiRequest.post(this.baseURL, data);
+ }
+ update(id: number, data: any): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.put(_http, data);
+ }
+ delete(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.delete(_http);
+ }
+
+
+
+
+
+
+// updateaction
+// insert button code start
+insertButton_Field2Support(Support: any): Observable {
+ return this.apiRequest.post(`Ad7/Ad7/Support_insert`, Support);
+}
+
+// insert button code start
+insertButton_FieldBasicp3(Basicp3: any): Observable {
+ return this.apiRequest.post(`Ad7/Ad7/Basicp3_insert`, Basicp3);
+}
+
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad7/Ad7_cardvariable.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad7/Ad7_cardvariable.ts
new file mode 100644
index 0000000..e211fcd
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad7/Ad7_cardvariable.ts
@@ -0,0 +1,4 @@
+export const Ad7cardvariable = {
+ "cardButton": false,
+ "cardmodeldata": ``
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad8/Ad8.component.html b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad8/Ad8.component.html
new file mode 100644
index 0000000..1615499
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad8/Ad8.component.html
@@ -0,0 +1,619 @@
+
+ - Ad8
+
+
+
+
+
Ad8
+
+
+
+
+
+
+
+
+
+ Loading ...
+
+ {{error}}
+
+
+ Name
+
+
+
+
+
+
+
+
+
+ description
+
+
+
+ name
+
+
+
+
+
+
+
+
+ Action
+
+
+
+
+
+{{user.name }}
+
+
+
+
+
+
+
+
+{{user.support?.description}}
+
+
+
+{{user.support?.name}}
+
+
+
+
+
+
+
+
+
+
+
+ Who Column
+ Account ID: {{user.accountId}}
+ Created At: {{user.createdAt| date}}
+ Created By: {{user.createdBy}}
+ Updated At: {{user.updatedAt | date}}
+ Updated By: {{user.updatedBy}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Users per page
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
+ of {{pagination.totalItems}} users
+
+
+
+
+
+
+
+
+
+ Data could be found. Loading..
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] }}
+ {{afterText(item.fieldtext)}}
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] | date}}
+ {{afterText(item.fieldtext)}}
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ]}}
+ {{afterText(item.fieldtext)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Update Ad8
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Are You Sure Want to delete?
+ {{rowSelected.id}}
+
+
+
+
+
+ Add Ad8
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form Extension
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Update Buttonupdate2
+
+
+
+
+
+
+
+ Update ButtonUpdate
+
+
+
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad8/Ad8.component.scss b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad8/Ad8.component.scss
new file mode 100644
index 0000000..12f7fc8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad8/Ad8.component.scss
@@ -0,0 +1,85 @@
+//@import "../../../../assets/scss/var";
+.s-info-bar {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ button {
+ outline: none;
+ }
+}
+.delete,.heading{
+ text-align: center;
+ color: red;
+}
+.entry-pg {
+ width: 750px;
+}
+
+.button1::after {
+ content: none;
+}
+.button1:hover::after {
+ content: "ADD ROWS";
+}
+
+.section {
+ background-color: #dddddd;
+ height: 40px;
+}
+
+.section p {
+ //color: white;
+ padding: 10px;
+ font-size: 18px;
+}
+
+.clr-input {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ padding: 0.75rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.clr-file {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ //padding: 0.6rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.center {
+ text-align: center;
+}
+select{
+ width: 100%;
+ margin-top: 3px;
+ padding: 5px 5px;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+input[type=text],[type=date],[type=number],textarea {
+ width: 100%;
+ padding: 15px 15px;
+ background-color:rgb(255, 255, 255);
+ // margin: 8px 0;
+ display: inline-block;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ box-sizing: border-box;
+}
+.error_mess {
+ color: red;
+}
+.universal-section-header {
+ margin: 24px 0 10px 0;
+ font-weight: 600;
+ color: #1a237e;
+ letter-spacing: 0.5px;
+ font-size: 1.25rem;
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad8/Ad8.component.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad8/Ad8.component.ts
new file mode 100644
index 0000000..6445dbe
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad8/Ad8.component.ts
@@ -0,0 +1,478 @@
+import { Component, OnInit } from '@angular/core';
+import { ToastrService } from 'ngx-toastr';
+import { AlertService } from 'src/app/services/alert.service';
+import { Ad8service} from './Ad8.service';
+import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
+import { ExtensionService } from 'src/app/services/fnd/extension.service';
+import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
+import { Ad8cardvariable } from './Ad8_cardvariable';
+import { UserInfoService } from 'src/app/services/user-info.service';
+declare var JsBarcode: any;
+@Component({
+ selector: 'app-Ad8',
+ templateUrl: './Ad8.component.html',
+ styleUrls: ['./Ad8.component.scss']
+})
+export class Ad8Component implements OnInit {
+ cardButton = Ad8cardvariable.cardButton;
+ cardmodeldata = Ad8cardvariable.cardmodeldata;
+ public dashboardArray: DashboardContentModel2[];
+ isCardview = Ad8cardvariable.cardButton;
+ cardmodal; changeView(){
+ this.isCardview = !this.isCardview;
+ }
+ beforeText(fieldtext: string): string { // Extract the text before the first '<'
+ const index = fieldtext.indexOf('<');
+ return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
+ }
+ afterText(fieldtext: string): string { // Extract the text after the last '>'
+ const index = fieldtext.lastIndexOf('>');
+ return index !== -1 ? fieldtext.substring(index + 1) : '';
+ }
+ transform(fieldtext: string): string {
+ const match = fieldtext.match(/<([^>]*)>/);
+ return match ? match[1] : ''; // Extract the text between '<' and '>'
+ }
+ userrole;
+ rowSelected :any= {};
+ modaldelete=false;
+ modalEdit=false;
+ modalAdd= false;
+ public entryForm: FormGroup;
+ loading = false;
+ product;
+ modalOpenedforNewLine = false;
+ newLine:any;
+ additionalFieldsFromBackend: any[] = [];
+ formcode = 'Ad8_formCode'
+tableName = 'Ad8'; checkFormCode; selected: any[] = []; constructor(
+ private extensionService: ExtensionService,
+private userInfoService:UserInfoService,
+ private mainService:Ad8service,
+ private alertService: AlertService,
+ private toastr: ToastrService,
+ private _fb: FormBuilder,
+ ) { }
+ private editInterval: any;
+// component button
+ public UpdateFormButtonupdate2: FormGroup;
+
+
+ public UpdateFormButtonUpdate: FormGroup;
+
+
+ ngOnInit(): void {
+ if(this.cardmodeldata !== ''){
+ this.cardmodal = JSON.parse(this.cardmodeldata);
+ this.dashboardArray = this.cardmodal.dashboard.slice();
+ console.log(this.dashboardArray)
+ }
+ this.userrole=this.userInfoService.getRoles();
+ this.getData();
+ this.entryForm = this._fb.group({
+name : [null],
+
+
+
+
+
+support: this.supportinitLinesForm(),
+
+childform: this._fb.array([this.initchildformForm()]),
+
+
+
+
+
+
+
+
+
+
+
+
+ }); // component_button200
+// inser code start
+ this.UpdateFormButtonupdate2 = this._fb.group({
+ active: '',
+ description: '',
+ name: '',
+ });
+
+ // Update code end
+
+// inser code start
+ this.UpdateFormButtonUpdate = this._fb.group({
+ description: '',
+ name: '',
+ });
+
+ // Update code end
+
+ // form code start
+ this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
+ console.log(data);
+ const jsonArray = data.map((str) => JSON.parse(str));
+ this.additionalFieldsFromBackend = jsonArray;
+ this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Ad8_formCode");
+ console.log(this.checkFormCode);
+ console.log(this.additionalFieldsFromBackend);
+ if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
+ this.additionalFieldsFromBackend.forEach(field => {
+ if (field.formCode === this.formcode) {
+ if (!this.entryForm.contains(field.extValue)) {
+ // Add the control only if it doesn't exist in the form
+ this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
+ }
+ }
+ });
+ }
+ });
+ console.log(this.entryForm.value);
+ // form code end
+
+
+
+
+
+
+
+
+
+
+
+ }
+ ngOnDestroy(): void {
+ if (this.editInterval) {
+ clearInterval(this.editInterval);
+ }
+ }
+
+
+
+
+
+
+supportinitLinesForm() { return this._fb.group({
+
+
+ description: [null],
+
+
+
+ name: [null],
+
+
+
+}); }
+
+
+// one to many start
+ initchildformForm() { return this._fb.group({
+
+
+
+ active: [null],
+
+
+
+ description: [null],
+
+
+
+ name: [null],
+
+
+
+}); }
+get childformcontrols() {return (this.entryForm.get("childform") as FormArray).controls; }
+onAddchildform() {
+(this.entryForm.get("childform")).push(this.initchildformForm()); }
+onRemovechildform(index: number) {
+(this.entryForm.get("childform")).removeAt(index); }
+ oneditchildform() { this.childformcomponents.push({
+
+
+active: "",
+
+
+
+description: "",
+
+
+
+name: "",
+
+
+
+ }); }
+ deletechildformRow(index) {
+ this.childformcomponents.splice(index, 1);
+ }
+childformcomponents;
+ // one to many end
+
+ error;
+ getData() {
+ this.mainService.getAll().subscribe((data) => {
+ console.log(data);
+ this.product = data;
+this.product = [...this.product].reverse(); if(this.product.length==0){
+ this.error="No Data Available"
+ }
+ },(error) => {
+ console.log(error);
+ if(error){
+ this.error="Server Error";
+ }
+ });
+ }
+ onEdit(row) {
+ this.rowSelected = row;
+
+
+
+
+
+
+
+
+this.childformcomponents = row.childform;
+
+
+ this.modalEdit = true;
+ }
+ onDelete(row) {
+ this.rowSelected = row;
+ this.modaldelete=true;
+ }
+ delete(id)
+ {
+ this.modaldelete = false;
+ console.log("in delete "+id);
+ this.mainService.delete(id).subscribe(
+ (data) => {
+ console.log(data);
+ this.ngOnInit();
+ if (data) { this.toastr.success('Deleted successfully'); }
+ });
+ }
+ onUpdate(id) {
+ this.modalEdit = false;
+
+
+
+
+
+
+
+
+
+
+ //console.log("in update");
+ console.log("id " + id);
+ console.log(this.rowSelected);
+ //console.log("out update");
+ this.mainService.update(id, this.rowSelected).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("update Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Updated");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Updated");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+onCreate() {
+ this.modalAdd=false;
+
+
+
+
+
+
+
+
+
+
+ this.mainService.create(this.entryForm.value).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Added Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("Added Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Added");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Added");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+ goToAdd(row) {
+this.modalAdd = true; this.submitted = false;
+
+
+
+
+
+
+
+
+
+
+ }
+ submitted = false;
+onSubmit() {
+ console.log(this.entryForm.value);
+ this.submitted = true;
+ if (this.entryForm.invalid) {
+ return;
+ }this.onCreate();
+
+}
+
+
+
+
+
+
+
+
+
+
+// updateaction
+
+// update button
+
+
+modalUpdateButtonupdate2 = false;
+goToUpdateButtonupdate2() {
+ this.modalUpdateButtonupdate2=true;
+ }
+onSubmitUpdateButtonupdate2(id) {
+ console.log(this.UpdateFormButtonupdate2.value);
+ this.submitted=true;
+ if (this.UpdateFormButtonupdate2.invalid) {
+ return;
+ }
+ this.onUpdateButtonupdate2(id);
+}
+onUpdateButtonupdate2(id) {
+ this.modalUpdateButtonupdate2=false;
+ this.mainService.updateChildform(id,this.UpdateFormButtonupdate2.value).subscribe(data => {
+ console.log(data)
+ if (data.status >=200 && data.status <=209) {
+ this.toastr.success('Added successfully');
+ }
+ this.ngOnInit();
+ },(error) => {
+ console.error(error);
+ if ( error.status >= 200 && error.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+ if ( error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Update Failed");
+ }
+ if ( error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Server Error");
+ }
+ this.ngOnInit();
+ });
+ this.UpdateFormButtonupdate2.reset();
+ }
+// update buuton code end
+
+
+
+// update button
+
+
+modalUpdateButtonUpdate = false;
+goToUpdateButtonUpdate() {
+ this.modalUpdateButtonUpdate=true;
+ }
+onSubmitUpdateButtonUpdate(id) {
+ console.log(this.UpdateFormButtonUpdate.value);
+ this.submitted=true;
+ if (this.UpdateFormButtonUpdate.invalid) {
+ return;
+ }
+ this.onUpdateButtonUpdate(id);
+}
+onUpdateButtonUpdate(id) {
+ this.modalUpdateButtonUpdate=false;
+ this.mainService.updateSupport(id,this.UpdateFormButtonUpdate.value).subscribe(data => {
+ console.log(data)
+ if (data.status >=200 && data.status <=209) {
+ this.toastr.success('Added successfully');
+ }
+ this.ngOnInit();
+ },(error) => {
+ console.error(error);
+ if ( error.status >= 200 && error.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+ if ( error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Update Failed");
+ }
+ if ( error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Server Error");
+ }
+ this.ngOnInit();
+ });
+ this.UpdateFormButtonUpdate.reset();
+ }
+// update buuton code end
+
+
+}
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad8/Ad8.service.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad8/Ad8.service.ts
new file mode 100644
index 0000000..30e6ea9
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad8/Ad8.service.ts
@@ -0,0 +1,53 @@
+import { Injectable } from '@angular/core';
+import { Observable } from "rxjs";
+import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
+import { ApiRequestService } from "src/app/services/api/api-request.service";
+import { environment } from 'src/environments/environment';
+@Injectable({
+ providedIn: 'root'
+})
+export class Ad8service{
+ private baseURL = "Ad8/Ad8" ; constructor(
+ private http: HttpClient,
+ private apiRequest: ApiRequestService,
+ ) { }
+ getAll(page?: number, size?: number): Observable {
+ return this.apiRequest.get(this.baseURL);
+ }
+ getById(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.get(_http);
+ }
+ create(data: any): Observable {
+ return this.apiRequest.post(this.baseURL, data);
+ }
+ update(id: number, data: any): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.put(_http, data);
+ }
+ delete(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.delete(_http);
+ }
+
+
+
+
+
+
+
+
+
+
+// updateaction
+// update button code start
+updateChildform(id: number,Childform: any): Observable {
+ return this.apiRequest.put(`Childform/Childform_update/`+ id, Childform);
+}
+
+// update button code start
+updateSupport(id: number,Support: any): Observable {
+ return this.apiRequest.put(`Support/Support_update/`+ id, Support);
+}
+
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad8/Ad8_cardvariable.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad8/Ad8_cardvariable.ts
new file mode 100644
index 0000000..b377f58
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad8/Ad8_cardvariable.ts
@@ -0,0 +1,4 @@
+export const Ad8cardvariable = {
+ "cardButton": false,
+ "cardmodeldata": ``
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad9/Ad9.component.html b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad9/Ad9.component.html
new file mode 100644
index 0000000..77ced78
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad9/Ad9.component.html
@@ -0,0 +1,420 @@
+
+ - Ad9
+
+
+
+
+
Ad9
+
+
+
+
+
+
+
+
+
+ Loading ...
+
+ {{error}}
+
+
+ Name
+
+
+
+
+
+
+
+ Action
+
+
+
+
+
+{{user.name }}
+
+
+
+
+
+
+
+
+
+ Who Column
+ Account ID: {{user.accountId}}
+ Created At: {{user.createdAt| date}}
+ Created By: {{user.createdBy}}
+ Updated At: {{user.updatedAt | date}}
+ Updated By: {{user.updatedBy}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Users per page
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
+ of {{pagination.totalItems}} users
+
+
+
+
+
+
+
+
+
+ Data could be found. Loading..
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] }}
+ {{afterText(item.fieldtext)}}
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] | date}}
+ {{afterText(item.fieldtext)}}
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ]}}
+ {{afterText(item.fieldtext)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Update Ad9
+
+
+
+
+
+
+
{{rowSelected.id}}
+
+
+
+
+
+
+
Are You Sure Want to delete?
+ {{rowSelected.id}}
+
+
+
+
+
+ Add Ad9
+
+
+
+
+
+
+
+
+
+
+ Form Extension
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad9/Ad9.component.scss b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad9/Ad9.component.scss
new file mode 100644
index 0000000..12f7fc8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad9/Ad9.component.scss
@@ -0,0 +1,85 @@
+//@import "../../../../assets/scss/var";
+.s-info-bar {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ button {
+ outline: none;
+ }
+}
+.delete,.heading{
+ text-align: center;
+ color: red;
+}
+.entry-pg {
+ width: 750px;
+}
+
+.button1::after {
+ content: none;
+}
+.button1:hover::after {
+ content: "ADD ROWS";
+}
+
+.section {
+ background-color: #dddddd;
+ height: 40px;
+}
+
+.section p {
+ //color: white;
+ padding: 10px;
+ font-size: 18px;
+}
+
+.clr-input {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ padding: 0.75rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.clr-file {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ //padding: 0.6rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.center {
+ text-align: center;
+}
+select{
+ width: 100%;
+ margin-top: 3px;
+ padding: 5px 5px;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+input[type=text],[type=date],[type=number],textarea {
+ width: 100%;
+ padding: 15px 15px;
+ background-color:rgb(255, 255, 255);
+ // margin: 8px 0;
+ display: inline-block;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ box-sizing: border-box;
+}
+.error_mess {
+ color: red;
+}
+.universal-section-header {
+ margin: 24px 0 10px 0;
+ font-weight: 600;
+ color: #1a237e;
+ letter-spacing: 0.5px;
+ font-size: 1.25rem;
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad9/Ad9.component.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad9/Ad9.component.ts
new file mode 100644
index 0000000..65bcd67
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad9/Ad9.component.ts
@@ -0,0 +1,282 @@
+import { Component, OnInit } from '@angular/core';
+import { ToastrService } from 'ngx-toastr';
+import { AlertService } from 'src/app/services/alert.service';
+import { Ad9service} from './Ad9.service';
+import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
+import { ExtensionService } from 'src/app/services/fnd/extension.service';
+import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
+import { Ad9cardvariable } from './Ad9_cardvariable';
+import { UserInfoService } from 'src/app/services/user-info.service';
+declare var JsBarcode: any;
+@Component({
+ selector: 'app-Ad9',
+ templateUrl: './Ad9.component.html',
+ styleUrls: ['./Ad9.component.scss']
+})
+export class Ad9Component implements OnInit {
+ cardButton = Ad9cardvariable.cardButton;
+ cardmodeldata = Ad9cardvariable.cardmodeldata;
+ public dashboardArray: DashboardContentModel2[];
+ isCardview = Ad9cardvariable.cardButton;
+ cardmodal; changeView(){
+ this.isCardview = !this.isCardview;
+ }
+ beforeText(fieldtext: string): string { // Extract the text before the first '<'
+ const index = fieldtext.indexOf('<');
+ return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
+ }
+ afterText(fieldtext: string): string { // Extract the text after the last '>'
+ const index = fieldtext.lastIndexOf('>');
+ return index !== -1 ? fieldtext.substring(index + 1) : '';
+ }
+ transform(fieldtext: string): string {
+ const match = fieldtext.match(/<([^>]*)>/);
+ return match ? match[1] : ''; // Extract the text between '<' and '>'
+ }
+ userrole;
+ rowSelected :any= {};
+ modaldelete=false;
+ modalEdit=false;
+ modalAdd= false;
+ public entryForm: FormGroup;
+ loading = false;
+ product;
+ modalOpenedforNewLine = false;
+ newLine:any;
+ additionalFieldsFromBackend: any[] = [];
+ formcode = 'Ad9_formCode'
+tableName = 'Ad9'; checkFormCode; selected: any[] = []; constructor(
+ private extensionService: ExtensionService,
+private userInfoService:UserInfoService,
+ private mainService:Ad9service,
+ private alertService: AlertService,
+ private toastr: ToastrService,
+ private _fb: FormBuilder,
+ ) { }
+ private editInterval: any;
+// component button
+ ngOnInit(): void {
+ if(this.cardmodeldata !== ''){
+ this.cardmodal = JSON.parse(this.cardmodeldata);
+ this.dashboardArray = this.cardmodal.dashboard.slice();
+ console.log(this.dashboardArray)
+ }
+ this.userrole=this.userInfoService.getRoles();
+ this.getData();
+ this.entryForm = this._fb.group({
+name : [null],
+
+approved_field_status : [null],
+
+
+
+
+
+
+ }); // component_button200
+ // form code start
+ this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
+ console.log(data);
+ const jsonArray = data.map((str) => JSON.parse(str));
+ this.additionalFieldsFromBackend = jsonArray;
+ this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Ad9_formCode");
+ console.log(this.checkFormCode);
+ console.log(this.additionalFieldsFromBackend);
+ if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
+ this.additionalFieldsFromBackend.forEach(field => {
+ if (field.formCode === this.formcode) {
+ if (!this.entryForm.contains(field.extValue)) {
+ // Add the control only if it doesn't exist in the form
+ this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
+ }
+ }
+ });
+ }
+ });
+ console.log(this.entryForm.value);
+ // form code end
+
+
+
+
+
+ }
+ ngOnDestroy(): void {
+ if (this.editInterval) {
+ clearInterval(this.editInterval);
+ }
+ }
+
+approved_field_tablename = 'Ad9'
+
+ error;
+ getData() {
+ this.mainService.getAll().subscribe((data) => {
+ console.log(data);
+ this.product = data;
+this.product = [...this.product].reverse(); if(this.product.length==0){
+ this.error="No Data Available"
+ }
+ },(error) => {
+ console.log(error);
+ if(error){
+ this.error="Server Error";
+ }
+ });
+ }
+ onEdit(row) {
+ this.rowSelected = row;
+
+
+ this.serverData = [];
+
+
+ this.modalEdit = true;
+ }
+ onDelete(row) {
+ this.rowSelected = row;
+ this.modaldelete=true;
+ }
+ delete(id)
+ {
+ this.modaldelete = false;
+ console.log("in delete "+id);
+ this.mainService.delete(id).subscribe(
+ (data) => {
+ console.log(data);
+ this.ngOnInit();
+ if (data) { this.toastr.success('Deleted successfully'); }
+ });
+ }
+ onUpdate(id) {
+ this.modalEdit = false;
+
+
+
+
+ //console.log("in update");
+ console.log("id " + id);
+ console.log(this.rowSelected);
+ //console.log("out update");
+ this.mainService.update(id, this.rowSelected).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("update Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Updated");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Updated");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+onCreate() {
+ this.modalAdd=false;
+
+
+
+
+ this.mainService.create(this.entryForm.value).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Added Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+// approve code
+ this.serverData = this.serverData.map((item) => {
+ item.tablename = this.approved_field_tablename;
+ return item;
+ }); this.serverData = this.serverData.map((item) => {
+ item.service_order_id = data.id;
+ return item; });
+ console.log(this.serverData);
+ this.serverData.forEach((item) => {
+ this.mainService.create_approved(item).subscribe(
+ (data) => { console.log(data); })
+ }) // approved code end
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("Added Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Added");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Added");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+ goToAdd(row) {
+this.modalAdd = true; this.submitted = false;
+
+
+
+
+ }
+ submitted = false;
+onSubmit() {
+ console.log(this.entryForm.value);
+ this.submitted = true;
+ if (this.entryForm.invalid) {
+ return;
+ }this.onCreate();
+
+}
+
+
+ // approval code
+ serverData:any = [];
+ onAddLines() {
+ this.serverData.push({ formCode:"",
+ documentSeq:"",
+ approver:"",
+ actionType:"",
+actionTaken:"",
+ comments:"",
+ actionedAt:"",
+ tablename:"",
+ service_order_id:"", }); }
+ onRemoveLines(index: number){
+ this.serverData.splice(index, 1);
+ }
+ oneditAddLines() {
+ this.serverData.push({
+ formCode:"", documentSeq:"", approver:"",
+ actionType:"", actionTaken:"", comments:"",
+ actionedAt:"", tablename:"",
+ service_order_id:"", }); }
+ oneditRemoveLines(index: number){ this.serverData.splice(index, 1);
+ } // approval code end
+
+// updateaction
+}
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad9/Ad9.service.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad9/Ad9.service.ts
new file mode 100644
index 0000000..9b477f1
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad9/Ad9.service.ts
@@ -0,0 +1,40 @@
+import { Injectable } from '@angular/core';
+import { Observable } from "rxjs";
+import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
+import { ApiRequestService } from "src/app/services/api/api-request.service";
+import { environment } from 'src/environments/environment';
+@Injectable({
+ providedIn: 'root'
+})
+export class Ad9service{
+ private baseURL = "Ad9/Ad9" ; constructor(
+ private http: HttpClient,
+ private apiRequest: ApiRequestService,
+ ) { }
+ getAll(page?: number, size?: number): Observable {
+ return this.apiRequest.get(this.baseURL);
+ }
+ getById(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.get(_http);
+ }
+ create(data: any): Observable {
+ return this.apiRequest.post(this.baseURL, data);
+ }
+ update(id: number, data: any): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.put(_http, data);
+ }
+ delete(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.delete(_http);
+ }
+
+
+// approve code
+ create_approved(data: any): Observable {
+ const _http = "billing/approval" + "/" + "add";
+ return this.apiRequest.post(_http, data); } // approved code end
+
+// updateaction
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad9/Ad9_cardvariable.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad9/Ad9_cardvariable.ts
new file mode 100644
index 0000000..dca4e0f
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Ad9/Ad9_cardvariable.ts
@@ -0,0 +1,4 @@
+export const Ad9cardvariable = {
+ "cardButton": false,
+ "cardmodeldata": ``
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv1/Adv1.component.html b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv1/Adv1.component.html
new file mode 100644
index 0000000..3542316
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv1/Adv1.component.html
@@ -0,0 +1,1380 @@
+
+ - Adv1
+
+
+
+
+
Adv1
+
+
+
+
+
+
+
+
+
+ Loading ...
+
+ {{error}}
+
+
+ ismale
+
+
+
+ idfemale
+
+
+
+
+
+ test1
+
+
+
+
+ test2
+
+
+
+
+
+
+
+
+ t1
+
+
+
+
+ t2
+
+
+
+
+ t4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Action
+
+
+
+
+
+{{user.ismale }}
+
+
+{{user.idfemale }}
+
+
+
+
+{{user.test1}}
+
+
+
+{{user.test2}}
+
+
+
+
+
+
+
+{{user.t1}}
+
+
+
+{{user.t2}}
+
+
+
+{{user.t4}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Who Column
+ Account ID: {{user.accountId}}
+ Created At: {{user.createdAt| date}}
+ Created By: {{user.createdBy}}
+ Updated At: {{user.updatedAt | date}}
+ Updated By: {{user.updatedBy}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Users per page
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
+ of {{pagination.totalItems}} users
+
+
+
+
+
+
+
+
+
+ Data could be found. Loading..
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] }}
+ {{afterText(item.fieldtext)}}
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] | date}}
+ {{afterText(item.fieldtext)}}
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ]}}
+ {{afterText(item.fieldtext)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Update Adv1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{rowSelected.id}}
+
+
+
+
+
+
+
Are You Sure Want to delete?
+ {{rowSelected.id}}
+
+
+
+
+
+ Add Adv1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form Extension
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv1/Adv1.component.scss b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv1/Adv1.component.scss
new file mode 100644
index 0000000..12f7fc8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv1/Adv1.component.scss
@@ -0,0 +1,85 @@
+//@import "../../../../assets/scss/var";
+.s-info-bar {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ button {
+ outline: none;
+ }
+}
+.delete,.heading{
+ text-align: center;
+ color: red;
+}
+.entry-pg {
+ width: 750px;
+}
+
+.button1::after {
+ content: none;
+}
+.button1:hover::after {
+ content: "ADD ROWS";
+}
+
+.section {
+ background-color: #dddddd;
+ height: 40px;
+}
+
+.section p {
+ //color: white;
+ padding: 10px;
+ font-size: 18px;
+}
+
+.clr-input {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ padding: 0.75rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.clr-file {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ //padding: 0.6rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.center {
+ text-align: center;
+}
+select{
+ width: 100%;
+ margin-top: 3px;
+ padding: 5px 5px;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+input[type=text],[type=date],[type=number],textarea {
+ width: 100%;
+ padding: 15px 15px;
+ background-color:rgb(255, 255, 255);
+ // margin: 8px 0;
+ display: inline-block;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ box-sizing: border-box;
+}
+.error_mess {
+ color: red;
+}
+.universal-section-header {
+ margin: 24px 0 10px 0;
+ font-weight: 600;
+ color: #1a237e;
+ letter-spacing: 0.5px;
+ font-size: 1.25rem;
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv1/Adv1.component.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv1/Adv1.component.ts
new file mode 100644
index 0000000..c6ec0e8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv1/Adv1.component.ts
@@ -0,0 +1,957 @@
+import { Component, OnInit } from '@angular/core';
+import { ToastrService } from 'ngx-toastr';
+import { AlertService } from 'src/app/services/alert.service';
+import { Adv1service} from './Adv1.service';
+import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
+import { ExtensionService } from 'src/app/services/fnd/extension.service';
+import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
+import { Adv1cardvariable } from './Adv1_cardvariable';
+import { UserInfoService } from 'src/app/services/user-info.service';
+declare var JsBarcode: any;
+@Component({
+ selector: 'app-Adv1',
+ templateUrl: './Adv1.component.html',
+ styleUrls: ['./Adv1.component.scss']
+})
+export class Adv1Component implements OnInit {
+ cardButton = Adv1cardvariable.cardButton;
+ cardmodeldata = Adv1cardvariable.cardmodeldata;
+ public dashboardArray: DashboardContentModel2[];
+ isCardview = Adv1cardvariable.cardButton;
+ cardmodal; changeView(){
+ this.isCardview = !this.isCardview;
+ }
+ beforeText(fieldtext: string): string { // Extract the text before the first '<'
+ const index = fieldtext.indexOf('<');
+ return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
+ }
+ afterText(fieldtext: string): string { // Extract the text after the last '>'
+ const index = fieldtext.lastIndexOf('>');
+ return index !== -1 ? fieldtext.substring(index + 1) : '';
+ }
+ transform(fieldtext: string): string {
+ const match = fieldtext.match(/<([^>]*)>/);
+ return match ? match[1] : ''; // Extract the text between '<' and '>'
+ }
+ userrole;
+ rowSelected :any= {};
+ modaldelete=false;
+ modalEdit=false;
+ modalAdd= false;
+ public entryForm: FormGroup;
+ loading = false;
+ product;
+ modalOpenedforNewLine = false;
+ newLine:any;
+ additionalFieldsFromBackend: any[] = [];
+ formcode = 'Adv1_formCode'
+tableName = 'Adv1'; checkFormCode; selected: any[] = []; constructor(
+ private extensionService: ExtensionService,
+private userInfoService:UserInfoService,
+ private mainService:Adv1service,
+ private alertService: AlertService,
+ private toastr: ToastrService,
+ private _fb: FormBuilder,
+ ) { }
+ private editInterval: any;
+// component button
+ ngOnInit(): void {
+ if(this.cardmodeldata !== ''){
+ this.cardmodal = JSON.parse(this.cardmodeldata);
+ this.dashboardArray = this.cardmodal.dashboard.slice();
+ console.log(this.dashboardArray)
+ }
+ this.userrole=this.userInfoService.getRoles();
+ this.getData();
+ this.entryForm = this._fb.group({
+ismale : [null],
+
+idfemale : [null],
+
+
+
+test1:[false],
+
+
+
+test2:[false],
+
+
+
+
+
+t1:[false],
+
+
+
+t2:[false],
+
+
+
+t4:[false],
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }); // component_button200
+ // form code start
+ this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
+ console.log(data);
+ const jsonArray = data.map((str) => JSON.parse(str));
+ this.additionalFieldsFromBackend = jsonArray;
+ this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Adv1_formCode");
+ console.log(this.checkFormCode);
+ console.log(this.additionalFieldsFromBackend);
+ if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
+ this.additionalFieldsFromBackend.forEach(field => {
+ if (field.formCode === this.formcode) {
+ if (!this.entryForm.contains(field.extValue)) {
+ // Add the control only if it doesn't exist in the form
+ this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
+ }
+ }
+ });
+ }
+ });
+ console.log(this.entryForm.value);
+ // form code end
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }
+ ngOnDestroy(): void {
+ if (this.editInterval) {
+ clearInterval(this.editInterval);
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+
+FileDataImageupload_field: any[];
+ selectedImageupload_field: any[];
+
+FileDataImageupload_field2: any[];
+ selectedImageupload_field2: any[];
+
+FileDataAudio_field: any[];
+ selectedAudio_field: any[];
+
+FileDataAudio_field2: any[];
+ selectedAudio_field2: any[];
+
+FileDataVideo_field: any[];
+ selectedVideo_field: any[];
+
+
+FileDataVideo_field2: any[];
+ selectedVideo_field2: any[];
+
+
+ error;
+ getData() {
+ this.mainService.getAll().subscribe((data) => {
+ console.log(data);
+ this.product = data;
+this.product = [...this.product].reverse(); if(this.product.length==0){
+ this.error="No Data Available"
+ }
+ },(error) => {
+ console.log(error);
+ if(error){
+ this.error="Server Error";
+ }
+ });
+ }
+ onEdit(row) {
+ this.rowSelected = row;
+
+
+
+
+
+
+
+
+ this.selectedfileupload_field = [];
+ this.mainService.uploadfilegetByIdfileupload_field(row.id,this.tableName).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ this.FileDatafileupload_field = uploaddata;
+
+ })
+
+ this.selectedfileupload_field2 = [];
+ this.mainService.uploadfilegetByIdfileupload_field2(row.id,this.tableName).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ this.FileDatafileupload_field2 = uploaddata;
+
+ })
+
+ this.selectedimageupload_field = [];
+ this.mainService.uploadImageupload_fieldgetById(row.id,this.tableName).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ this.FileDataimageupload_field = uploaddata;
+
+ })
+
+ this.selectedimageupload_field2 = [];
+ this.mainService.uploadImageupload_field2getById(row.id,this.tableName).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ this.FileDataimageupload_field2 = uploaddata;
+
+ })
+
+ this.selectedaudio_field = [];
+ this.mainService.uploadAudio_fieldgetById(row.id,this.tableName).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ this.FileDataaudio_field = uploaddata;
+
+ })
+
+ this.selectedaudio_field2 = [];
+ this.mainService.uploadAudio_field2getById(row.id,this.tableName).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ this.FileDataaudio_field2 = uploaddata;
+
+ })
+
+ this.selectedvideo_field = [];
+ this.mainService.uploadVideo_fieldgetById(row.id,this.tableName).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ this.FileDatavideo_field = uploaddata;
+
+ })
+
+ this.selectedvideo_field2 = [];
+ this.mainService.uploadVideo_field2getById(row.id,this.tableName).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ this.FileDatavideo_field2 = uploaddata;
+
+ })
+
+
+ this.modalEdit = true;
+ }
+ onDelete(row) {
+ this.rowSelected = row;
+ this.modaldelete=true;
+ }
+ delete(id)
+ {
+ this.modaldelete = false;
+ console.log("in delete "+id);
+ this.mainService.delete(id).subscribe(
+ (data) => {
+ console.log(data);
+ this.ngOnInit();
+ if (data) { this.toastr.success('Deleted successfully'); }
+ });
+ }
+ onUpdate(id) {
+ this.modalEdit = false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ //console.log("in update");
+ console.log("id " + id);
+ console.log(this.rowSelected);
+ //console.log("out update");
+ this.mainService.update(id, this.rowSelected).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+for (let i = 0; i < this.selectedfileupload_field.length; i++){
+
+ this.mainService.uploadfilefileupload_field(data.id,this.tableName,this.selectedfileupload_field[i]).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ })
+}
+
+for (let i = 0; i < this.selectedfileupload_field2.length; i++){
+
+ this.mainService.uploadfilefileupload_field2(data.id,this.tableName,this.selectedfileupload_field2[i]).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ })
+}
+
+for (let i = 0; i < this.selectedimageupload_field.length; i++){
+
+ this.mainService.uploadImageupload_field(data.id,this.tableName,this.selectedimageupload_field[i]).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ })
+}
+
+for (let i = 0; i < this.selectedimageupload_field2.length; i++){
+
+ this.mainService.uploadImageupload_field2(data.id,this.tableName,this.selectedimageupload_field2[i]).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ })
+}
+
+for (let i = 0; i < this.selectedaudio_field.length; i++){
+
+ this.mainService.uploadAudio_field(data.id,this.tableName,this.selectedaudio_field[i]).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ })
+}
+
+for (let i = 0; i < this.selectedaudio_field2.length; i++){
+
+ this.mainService.uploadAudio_field2(data.id,this.tableName,this.selectedaudio_field2[i]).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ })
+}
+
+for (let i = 0; i < this.selectedvideo_field.length; i++){
+
+ this.mainService.uploadVideo_field(data.id,this.tableName,this.selectedvideo_field[i]).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ })
+}
+
+for (let i = 0; i < this.selectedvideo_field2.length; i++){
+
+ this.mainService.uploadVideo_field2(data.id,this.tableName,this.selectedvideo_field2[i]).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ })
+}
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("update Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Updated");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Updated");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+onCreate() {
+ this.modalAdd=false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ this.mainService.create(this.entryForm.value).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Added Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+for (let i = 0; i < this.selectedfileupload_field.length; i++){
+
+ this.mainService.uploadfilefileupload_field(data.id,this.tableName,this.selectedfileupload_field[i]).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ })
+}
+
+for (let i = 0; i < this.selectedfileupload_field2.length; i++){
+
+ this.mainService.uploadfilefileupload_field2(data.id,this.tableName,this.selectedfileupload_field2[i]).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ })
+}
+
+for (let i = 0; i < this.selectedimageupload_field.length; i++){
+
+ this.mainService.uploadImageupload_field(data.id,this.tableName,this.selectedimageupload_field[i]).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ })
+}
+
+for (let i = 0; i < this.selectedimageupload_field2.length; i++){
+
+ this.mainService.uploadImageupload_field2(data.id,this.tableName,this.selectedimageupload_field2[i]).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ })
+}
+
+for (let i = 0; i < this.selectedaudio_field.length; i++){
+
+ this.mainService.uploadAudio_field(data.id,this.tableName,this.selectedaudio_field[i]).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ })
+}
+
+for (let i = 0; i < this.selectedaudio_field2.length; i++){
+
+ this.mainService.uploadAudio_field2(data.id,this.tableName,this.selectedaudio_field2[i]).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ })
+}
+
+for (let i = 0; i < this.selectedvideo_field.length; i++){
+
+ this.mainService.uploadVideo_field(data.id,this.tableName,this.selectedvideo_field[i]).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ })
+}
+
+for (let i = 0; i < this.selectedvideo_field2.length; i++){
+
+ this.mainService.uploadVideo_field2(data.id,this.tableName,this.selectedvideo_field2[i]).subscribe(uploaddata =>{
+ console.log(uploaddata);
+ })
+}
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("Added Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Added");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Added");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+ goToAdd(row) {
+this.modalAdd = true; this.submitted = false;
+
+
+
+
+
+
+
+this.FileDatafileupload_field = [];
+this.selectedfileupload_field =[];
+
+this.FileDatafileupload_field2 = [];
+this.selectedfileupload_field2 =[];
+
+this.FileDataImageupload_field = [];
+this.selectedImageupload_field =[];
+
+this.FileDataImageupload_field2 = [];
+this.selectedImageupload_field2 =[];
+
+this.FileDataAudio_field = [];
+this.selectedAudio_field =[];
+
+this.FileDataAudio_field2 = [];
+this.selectedAudio_field2 =[];
+
+this.FileDataVideo_field = [];
+this.selectedVideo_field =[];
+
+this.FileDataVideo_field2 = [];
+this.selectedVideo_field2 =[];
+
+
+ }
+ submitted = false;
+onSubmit() {
+ console.log(this.entryForm.value);
+ this.submitted = true;
+ if (this.entryForm.invalid) {
+ return;
+ }this.onCreate();
+
+}
+updateismale (ismale : string): void {
+ this.entryForm.get('ismale').setValue(ismale); }
+
+updateismaleEdit(ismale : string): void { this.rowSelected.ismale = ismale }
+ ;
+
+updateidfemale (idfemale : string): void {
+ this.entryForm.get('idfemale').setValue(idfemale); }
+
+updateidfemaleEdit(idfemale : string): void { this.rowSelected.idfemale = idfemale }
+ ;
+
+
+
+
+
+filePreviewfileupload_field: string | ArrayBuffer | null = null;
+FileDatafileupload_field: {uploadedfile_name?:any, filePreview: string | ArrayBuffer | null }[] = []; // Initialize the array
+selectedfileupload_field: File[]=[];
+public onFileChangedfileupload_field(event, index) {
+ const files = event.target.files;
+ for (let i = 0; i < files.length; i++) {
+ const file = files[i];
+ this.FileDatafileupload_field[index].uploadedfile_name = files[i].name;
+ this.selectedfileupload_field.push(files[i]);
+ if (file.type.startsWith('file/')) {
+ const reader = new FileReader();
+ reader.onload = (e) => {
+ // Set the file preview source
+ const filePreview = e.target?.result as string;
+ this.FileDatafileupload_field[index] = {
+ ...this.FileDatafileupload_field[index], // Preserve existing properties
+ filePreview: filePreview // Update only the filePreview property
+ };
+ };
+ reader.readAsDataURL(file);
+ }
+ }
+}
+ onAddLinesfileupload_field(){
+ this.FileDatafileupload_field.push({
+ uploadedfile_name: "",
+ filePreview: "",
+ // f3: "",
+ });
+ }
+ deleteRowfileupload_field(index,id) {
+ this.FileDatafileupload_field.splice(index, 1);
+
+ if(id){
+ this.mainService.uploadfiledeletefileupload_field(id).subscribe(data =>{
+ console.log(data);
+ })
+ }
+ }
+
+filePreviewfileupload_field2: string | ArrayBuffer | null = null;
+FileDatafileupload_field2: {uploadedfile_name?:any, filePreview: string | ArrayBuffer | null }[] = []; // Initialize the array
+selectedfileupload_field2: File[]=[];
+public onFileChangedfileupload_field2(event, index) {
+ const files = event.target.files;
+ for (let i = 0; i < files.length; i++) {
+ const file = files[i];
+ this.FileDatafileupload_field2[index].uploadedfile_name = files[i].name;
+ this.selectedfileupload_field2.push(files[i]);
+ if (file.type.startsWith('file/')) {
+ const reader = new FileReader();
+ reader.onload = (e) => {
+ // Set the file preview source
+ const filePreview = e.target?.result as string;
+ this.FileDatafileupload_field2[index] = {
+ ...this.FileDatafileupload_field2[index], // Preserve existing properties
+ filePreview: filePreview // Update only the filePreview property
+ };
+ };
+ reader.readAsDataURL(file);
+ }
+ }
+}
+ onAddLinesfileupload_field2(){
+ this.FileDatafileupload_field2.push({
+ uploadedfile_name: "",
+ filePreview: "",
+ // f3: "",
+ });
+ }
+ deleteRowfileupload_field2(index,id) {
+ this.FileDatafileupload_field2.splice(index, 1);
+
+ if(id){
+ this.mainService.uploadfiledeletefileupload_field2(id).subscribe(data =>{
+ console.log(data);
+ })
+ }
+ }
+
+filePreviewimageupload_field: string | ArrayBuffer | null = null;
+FileDataimageupload_field: {uploadedfile_name?:any, filePreview: string | ArrayBuffer | null }[] = []; // Initialize the array
+selectedimageupload_field: File[]=[];
+public onFileChangedimageupload_field(event, index) {
+ const files = event.target.files;
+ for (let i = 0; i < files.length; i++) {
+ const file = files[i];
+ this.FileDataimageupload_field[index].uploadedfile_name = files[i].name;
+ this.selectedimageupload_field.push(files[i]);
+ if (file.type.startsWith('image/')) {
+ const reader = new FileReader();
+ reader.onload = (e) => {
+ // Set the file preview source
+ const filePreview = e.target?.result as string;
+ this.FileDataimageupload_field[index] = {
+ ...this.FileDataimageupload_field[index], // Preserve existing properties
+ filePreview: filePreview // Update only the filePreview property
+ };
+ };
+ reader.readAsDataURL(file);
+ }
+ }
+}
+ onAddLinesimageupload_field(){
+ this.FileDataimageupload_field.push({
+ uploadedfile_name: "",
+ filePreview: "",
+ // f3: "",
+ });
+ }
+ deleteRowimageupload_field(index,id) {
+ this.FileDataimageupload_field.splice(index, 1);
+
+ if(id){
+ this.mainService.uploadImageupload_fielddelete(id).subscribe(data =>{
+ console.log(data);
+ })
+ }
+ }
+
+filePreviewimageupload_field2: string | ArrayBuffer | null = null;
+FileDataimageupload_field2: {uploadedfile_name?:any, filePreview: string | ArrayBuffer | null }[] = []; // Initialize the array
+selectedimageupload_field2: File[]=[];
+public onFileChangedimageupload_field2(event, index) {
+ const files = event.target.files;
+ for (let i = 0; i < files.length; i++) {
+ const file = files[i];
+ this.FileDataimageupload_field2[index].uploadedfile_name = files[i].name;
+ this.selectedimageupload_field2.push(files[i]);
+ if (file.type.startsWith('image/')) {
+ const reader = new FileReader();
+ reader.onload = (e) => {
+ // Set the file preview source
+ const filePreview = e.target?.result as string;
+ this.FileDataimageupload_field2[index] = {
+ ...this.FileDataimageupload_field2[index], // Preserve existing properties
+ filePreview: filePreview // Update only the filePreview property
+ };
+ };
+ reader.readAsDataURL(file);
+ }
+ }
+}
+ onAddLinesimageupload_field2(){
+ this.FileDataimageupload_field2.push({
+ uploadedfile_name: "",
+ filePreview: "",
+ // f3: "",
+ });
+ }
+ deleteRowimageupload_field2(index,id) {
+ this.FileDataimageupload_field2.splice(index, 1);
+
+ if(id){
+ this.mainService.uploadImageupload_field2delete(id).subscribe(data =>{
+ console.log(data);
+ })
+ }
+ }
+
+filePreviewaudio_field: string | ArrayBuffer | null = null;
+FileDataaudio_field: {uploadedfile_name?:any, filePreview: string | ArrayBuffer | null }[] = []; // Initialize the array
+selectedaudio_field: File[]=[];
+public onFileChangedaudio_field(event, index) {
+ const files = event.target.files;
+ for (let i = 0; i < files.length; i++) {
+ const file = files[i];
+ this.FileDataaudio_field[index].uploadedfile_name = files[i].name;
+ this.selectedaudio_field.push(files[i]);
+ if (file.type.startsWith('audio/')) {
+ const reader = new FileReader();
+ reader.onload = (e) => {
+ // Set the file preview source
+ const filePreview = e.target?.result as string;
+ this.FileDataaudio_field[index] = {
+ ...this.FileDataaudio_field[index], // Preserve existing properties
+ filePreview: filePreview // Update only the filePreview property
+ };
+ };
+ reader.readAsDataURL(file);
+ }
+ }
+}
+ onAddLinesaudio_field(){
+ this.FileDataaudio_field.push({
+ uploadedfile_name: "",
+ filePreview: "",
+ // f3: "",
+ });
+ }
+ deleteRowaudio_field(index,id) {
+ this.FileDataaudio_field.splice(index, 1);
+
+ if(id){
+ this.mainService.uploadAudio_fielddelete(id).subscribe(data =>{
+ console.log(data);
+ })
+ }
+ }
+
+filePreviewaudio_field2: string | ArrayBuffer | null = null;
+FileDataaudio_field2: {uploadedfile_name?:any, filePreview: string | ArrayBuffer | null }[] = []; // Initialize the array
+selectedaudio_field2: File[]=[];
+public onFileChangedaudio_field2(event, index) {
+ const files = event.target.files;
+ for (let i = 0; i < files.length; i++) {
+ const file = files[i];
+ this.FileDataaudio_field2[index].uploadedfile_name = files[i].name;
+ this.selectedaudio_field2.push(files[i]);
+ if (file.type.startsWith('audio/')) {
+ const reader = new FileReader();
+ reader.onload = (e) => {
+ // Set the file preview source
+ const filePreview = e.target?.result as string;
+ this.FileDataaudio_field2[index] = {
+ ...this.FileDataaudio_field2[index], // Preserve existing properties
+ filePreview: filePreview // Update only the filePreview property
+ };
+ };
+ reader.readAsDataURL(file);
+ }
+ }
+}
+ onAddLinesaudio_field2(){
+ this.FileDataaudio_field2.push({
+ uploadedfile_name: "",
+ filePreview: "",
+ // f3: "",
+ });
+ }
+ deleteRowaudio_field2(index,id) {
+ this.FileDataaudio_field2.splice(index, 1);
+
+ if(id){
+ this.mainService.uploadAudio_field2delete(id).subscribe(data =>{
+ console.log(data);
+ })
+ }
+ }
+
+filePreviewvideo_field: string | ArrayBuffer | null = null;
+FileDatavideo_field: {uploadedfile_name?:any, filePreview: string | ArrayBuffer | null }[] = []; // Initialize the array
+selectedvideo_field: File[]=[];
+public onFileChangedvideo_field(event, index) {
+ const files = event.target.files;
+ for (let i = 0; i < files.length; i++) {
+ const file = files[i];
+ this.FileDatavideo_field[index].uploadedfile_name = files[i].name;
+ this.selectedvideo_field.push(files[i]);
+ if (file.type.startsWith('video/')) {
+ const reader = new FileReader();
+ reader.onload = (e) => {
+ // Set the file preview source
+ const filePreview = e.target?.result as string;
+ this.FileDatavideo_field[index] = {
+ ...this.FileDatavideo_field[index], // Preserve existing properties
+ filePreview: filePreview // Update only the filePreview property
+ };
+ };
+ reader.readAsDataURL(file);
+ }
+ }
+}
+ onAddLinesvideo_field(){
+ this.FileDatavideo_field.push({
+ uploadedfile_name: "",
+ filePreview: "",
+ // f3: "",
+ });
+ }
+ deleteRowvideo_field(index,id) {
+ this.FileDatavideo_field.splice(index, 1);
+
+ if(id){
+ this.mainService.uploadVideo_fielddelete(id).subscribe(data =>{
+ console.log(data);
+ })
+ }
+ }
+
+filePreviewvideo_field2: string | ArrayBuffer | null = null;
+FileDatavideo_field2: {uploadedfile_name?:any, filePreview: string | ArrayBuffer | null }[] = []; // Initialize the array
+selectedvideo_field2: File[]=[];
+public onFileChangedvideo_field2(event, index) {
+ const files = event.target.files;
+ for (let i = 0; i < files.length; i++) {
+ const file = files[i];
+ this.FileDatavideo_field2[index].uploadedfile_name = files[i].name;
+ this.selectedvideo_field2.push(files[i]);
+ if (file.type.startsWith('video/')) {
+ const reader = new FileReader();
+ reader.onload = (e) => {
+ // Set the file preview source
+ const filePreview = e.target?.result as string;
+ this.FileDatavideo_field2[index] = {
+ ...this.FileDatavideo_field2[index], // Preserve existing properties
+ filePreview: filePreview // Update only the filePreview property
+ };
+ };
+ reader.readAsDataURL(file);
+ }
+ }
+}
+ onAddLinesvideo_field2(){
+ this.FileDatavideo_field2.push({
+ uploadedfile_name: "",
+ filePreview: "",
+ // f3: "",
+ });
+ }
+ deleteRowvideo_field2(index,id) {
+ this.FileDatavideo_field2.splice(index, 1);
+
+ if(id){
+ this.mainService.uploadVideo_field2delete(id).subscribe(data =>{
+ console.log(data);
+ })
+ }
+ }
+
+// updateaction
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv1/Adv1.service.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv1/Adv1.service.ts
new file mode 100644
index 0000000..ab39515
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv1/Adv1.service.ts
@@ -0,0 +1,161 @@
+import { Injectable } from '@angular/core';
+import { Observable } from "rxjs";
+import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
+import { ApiRequestService } from "src/app/services/api/api-request.service";
+import { environment } from 'src/environments/environment';
+@Injectable({
+ providedIn: 'root'
+})
+export class Adv1service{
+ private baseURL = "Adv1/Adv1" ; constructor(
+ private http: HttpClient,
+ private apiRequest: ApiRequestService,
+ ) { }
+ getAll(page?: number, size?: number): Observable {
+ return this.apiRequest.get(this.baseURL);
+ }
+ getById(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.get(_http);
+ }
+ create(data: any): Observable {
+ return this.apiRequest.post(this.baseURL, data);
+ }
+ update(id: number, data: any): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.put(_http, data);
+ }
+ delete(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.delete(_http);
+ }
+
+
+
+
+
+
+
+
+ uploadfilefileupload_field(ref:any, Adv1:any, file:any): Observable{
+ const formData = new FormData();
+ formData.append('file', file);
+ return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Adv1}`, formData);
+ }
+
+ uploadfilegetByIdfileupload_field(ref:any, Adv1:any,): Observable {
+ return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Adv1}`);
+ }
+
+
+ uploadfiledeletefileupload_field(id: number): Observable {
+ return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`);
+ }
+
+ uploadfilefileupload_field2(ref:any, Adv1:any, file:any): Observable{
+ const formData = new FormData();
+ formData.append('file', file);
+ return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Adv1}`, formData);
+ }
+
+ uploadfilegetByIdfileupload_field2(ref:any, Adv1:any,): Observable {
+ return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Adv1}`);
+ }
+
+
+ uploadfiledeletefileupload_field2(id: number): Observable {
+ return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`);
+ }
+
+ uploadImageupload_field(ref:any, Adv1:any, file:any): Observable{
+ const formData = new FormData();
+ formData.append('file', file);
+ return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Adv1}`, formData);
+ }
+
+ uploadImageupload_fieldgetById(ref:any, Adv1:any,): Observable {
+ return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Adv1}`);
+ }
+
+
+ uploadImageupload_fielddelete(id: number): Observable {
+ return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`);
+ }
+
+ uploadImageupload_field2(ref:any, Adv1:any, file:any): Observable{
+ const formData = new FormData();
+ formData.append('file', file);
+ return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Adv1}`, formData);
+ }
+
+ uploadImageupload_field2getById(ref:any, Adv1:any,): Observable {
+ return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Adv1}`);
+ }
+
+
+ uploadImageupload_field2delete(id: number): Observable {
+ return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`);
+ }
+
+ uploadAudio_field(ref:any, Adv1:any, file:any): Observable{
+ const formData = new FormData();
+ formData.append('file', file);
+ return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Adv1}`, formData);
+ }
+
+ uploadAudio_fieldgetById(ref:any, Adv1:any,): Observable {
+ return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Adv1}`);
+ }
+
+
+ uploadAudio_fielddelete(id: number): Observable {
+ return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`);
+ }
+
+ uploadAudio_field2(ref:any, Adv1:any, file:any): Observable{
+ const formData = new FormData();
+ formData.append('file', file);
+ return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Adv1}`, formData);
+ }
+
+ uploadAudio_field2getById(ref:any, Adv1:any,): Observable {
+ return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Adv1}`);
+ }
+
+
+ uploadAudio_field2delete(id: number): Observable {
+ return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`);
+ }
+
+ uploadVideo_field(ref:any, Adv1:any, file:any): Observable{
+ const formData = new FormData();
+ formData.append('file', file);
+ return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Adv1}`, formData);
+ }
+
+ uploadVideo_fieldgetById(ref:any, Adv1:any,): Observable {
+ return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Adv1}`);
+ }
+
+
+ uploadVideo_fielddelete(id: number): Observable {
+ return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`);
+ }
+
+ uploadVideo_field2(ref:any, Adv1:any, file:any): Observable{
+ const formData = new FormData();
+ formData.append('file', file);
+ return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Adv1}`, formData);
+ }
+
+ uploadVideo_field2getById(ref:any, Adv1:any,): Observable {
+ return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Adv1}`);
+ }
+
+
+ uploadVideo_field2delete(id: number): Observable {
+ return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`);
+ }
+
+// updateaction
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv1/Adv1_cardvariable.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv1/Adv1_cardvariable.ts
new file mode 100644
index 0000000..8b2bd5c
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv1/Adv1_cardvariable.ts
@@ -0,0 +1,4 @@
+export const Adv1cardvariable = {
+ "cardButton": false,
+ "cardmodeldata": ``
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv3/Adv3.component.html b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv3/Adv3.component.html
new file mode 100644
index 0000000..97e973b
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv3/Adv3.component.html
@@ -0,0 +1,898 @@
+
+ - Adv3
+
+
+
+
+
Adv3
+
+
+
+
+
+
+
+
+
+ Loading ...
+
+ {{error}}
+
+
+
+
+
+
+
+
+ country
+
+
+
+ state
+
+
+
+ stmlit
+
+
+
+ stmmlt2
+
+
+
+ dy2
+
+
+
+ dy1
+
+
+
+ dymlti1
+
+
+
+ dymlt2
+
+
+
+
+
+ Action
+
+
+
+
+
+
+
+
+
+
+
+{{user.country }}
+
+
+{{user.state }}
+
+
+{{user.stmlit }}
+
+
+{{user.stmmlt2 }}
+
+
+{{user.dy2identifier}}
+
+
+{{user.dy1identifier}}
+
+
+{{user. dymlti1 }}
+
+
+{{user. dymlt2 }}
+
+
+
+
+
+
+
+ Who Column
+ Account ID: {{user.accountId}}
+ Created At: {{user.createdAt| date}}
+ Created By: {{user.createdBy}}
+ Updated At: {{user.updatedAt | date}}
+ Updated By: {{user.updatedBy}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Users per page
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
+ of {{pagination.totalItems}} users
+
+
+
+
+
+
+
+
+
+ Data could be found. Loading..
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] }}
+ {{afterText(item.fieldtext)}}
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] | date}}
+ {{afterText(item.fieldtext)}}
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ]}}
+ {{afterText(item.fieldtext)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Update Adv3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{rowSelected.id}}
+
+
+
+
+
+
+
Are You Sure Want to delete?
+ {{rowSelected.id}}
+
+
+
+
+
+ Add Adv3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form Extension
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv3/Adv3.component.scss b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv3/Adv3.component.scss
new file mode 100644
index 0000000..12f7fc8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv3/Adv3.component.scss
@@ -0,0 +1,85 @@
+//@import "../../../../assets/scss/var";
+.s-info-bar {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ button {
+ outline: none;
+ }
+}
+.delete,.heading{
+ text-align: center;
+ color: red;
+}
+.entry-pg {
+ width: 750px;
+}
+
+.button1::after {
+ content: none;
+}
+.button1:hover::after {
+ content: "ADD ROWS";
+}
+
+.section {
+ background-color: #dddddd;
+ height: 40px;
+}
+
+.section p {
+ //color: white;
+ padding: 10px;
+ font-size: 18px;
+}
+
+.clr-input {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ padding: 0.75rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.clr-file {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ //padding: 0.6rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.center {
+ text-align: center;
+}
+select{
+ width: 100%;
+ margin-top: 3px;
+ padding: 5px 5px;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+input[type=text],[type=date],[type=number],textarea {
+ width: 100%;
+ padding: 15px 15px;
+ background-color:rgb(255, 255, 255);
+ // margin: 8px 0;
+ display: inline-block;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ box-sizing: border-box;
+}
+.error_mess {
+ color: red;
+}
+.universal-section-header {
+ margin: 24px 0 10px 0;
+ font-weight: 600;
+ color: #1a237e;
+ letter-spacing: 0.5px;
+ font-size: 1.25rem;
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv3/Adv3.component.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv3/Adv3.component.ts
new file mode 100644
index 0000000..cdc58c7
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv3/Adv3.component.ts
@@ -0,0 +1,777 @@
+import { Component, OnInit } from '@angular/core';
+import { ToastrService } from 'ngx-toastr';
+import { AlertService } from 'src/app/services/alert.service';
+import { Adv3service} from './Adv3.service';
+import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
+import { ExtensionService } from 'src/app/services/fnd/extension.service';
+import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
+import { Adv3cardvariable } from './Adv3_cardvariable';
+import { UserInfoService } from 'src/app/services/user-info.service';
+declare var JsBarcode: any;
+@Component({
+ selector: 'app-Adv3',
+ templateUrl: './Adv3.component.html',
+ styleUrls: ['./Adv3.component.scss']
+})
+export class Adv3Component implements OnInit {
+ cardButton = Adv3cardvariable.cardButton;
+ cardmodeldata = Adv3cardvariable.cardmodeldata;
+ public dashboardArray: DashboardContentModel2[];
+ isCardview = Adv3cardvariable.cardButton;
+ cardmodal; changeView(){
+ this.isCardview = !this.isCardview;
+ }
+ beforeText(fieldtext: string): string { // Extract the text before the first '<'
+ const index = fieldtext.indexOf('<');
+ return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
+ }
+ afterText(fieldtext: string): string { // Extract the text after the last '>'
+ const index = fieldtext.lastIndexOf('>');
+ return index !== -1 ? fieldtext.substring(index + 1) : '';
+ }
+ transform(fieldtext: string): string {
+ const match = fieldtext.match(/<([^>]*)>/);
+ return match ? match[1] : ''; // Extract the text between '<' and '>'
+ }
+ userrole;
+ rowSelected :any= {};
+ modaldelete=false;
+ modalEdit=false;
+ modalAdd= false;
+ public entryForm: FormGroup;
+ loading = false;
+ product;
+ modalOpenedforNewLine = false;
+ newLine:any;
+ additionalFieldsFromBackend: any[] = [];
+ formcode = 'Adv3_formCode'
+tableName = 'Adv3'; checkFormCode; selected: any[] = []; constructor(
+ private extensionService: ExtensionService,
+private userInfoService:UserInfoService,
+ private mainService:Adv3service,
+ private alertService: AlertService,
+ private toastr: ToastrService,
+ private _fb: FormBuilder,
+ ) { }
+ private editInterval: any;
+// component button
+ ngOnInit(): void {
+ if(this.cardmodeldata !== ''){
+ this.cardmodal = JSON.parse(this.cardmodeldata);
+ this.dashboardArray = this.cardmodal.dashboard.slice();
+ console.log(this.dashboardArray)
+ }
+ this.userrole=this.userInfoService.getRoles();
+ this.getData();
+ this.entryForm = this._fb.group({
+
+
+
+
+
+
+country : [null],
+
+state : [null],
+
+stmlit : [null],
+
+stmmlt2 : [null],
+
+dy2 : [null],
+
+dy1 : [null],
+
+dymlti1 : [null],
+
+dymlt2 : [null],
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }); // component_button200
+ // form code start
+ this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
+ console.log(data);
+ const jsonArray = data.map((str) => JSON.parse(str));
+ this.additionalFieldsFromBackend = jsonArray;
+ this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Adv3_formCode");
+ console.log(this.checkFormCode);
+ console.log(this.additionalFieldsFromBackend);
+ if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
+ this.additionalFieldsFromBackend.forEach(field => {
+ if (field.formCode === this.formcode) {
+ if (!this.entryForm.contains(field.extValue)) {
+ // Add the control only if it doesn't exist in the form
+ this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
+ }
+ }
+ });
+ }
+ });
+ console.log(this.entryForm.value);
+ // form code end
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+this.getalldy2();
+
+
+
+ if (this.dy2default) {
+ // Listen for product changes to auto-fill description
+
+
+
+ this.entryForm.get('dy2')?.valueChanges.subscribe(name => {
+ if (name && this.selectdy2) {
+
+ const found = this.selectdy2.find(p => p.name === name);
+
+
+
+ console.log('found is ', found);
+
+ // Auto-fill price when product is selected
+ if (found && found.default_field) {
+ this.entryForm.patchValue({ default_field: found.default_field_link });
+ } else {
+ this.entryForm.patchValue({ default_field: null });
+ }
+
+ }
+ });
+}
+
+this.getalldy1();
+
+
+
+ if (this.dy1default) {
+ // Listen for product changes to auto-fill description
+
+
+
+ this.entryForm.get('dy1')?.valueChanges.subscribe(description => {
+ if (description && this.selectdy1) {
+
+ const found = this.selectdy1.find(p => p.description === description);
+
+
+
+ console.log('found is ', found);
+
+ // Auto-fill price when product is selected
+ if (found && found.default_field) {
+ this.entryForm.patchValue({ default_field: found.default_field_link });
+ } else {
+ this.entryForm.patchValue({ default_field: null });
+ }
+
+ }
+ });
+}
+
+this.getalldymlti1();
+
+this.getalldymlt2();
+
+
+ }
+ ngOnDestroy(): void {
+ if (this.editInterval) {
+ clearInterval(this.editInterval);
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ error;
+ getData() {
+ this.mainService.getAll().subscribe((data) => {
+ console.log(data);
+ this.product = data;
+this.product = [...this.product].reverse(); if(this.product.length==0){
+ this.error="No Data Available"
+ }
+ },(error) => {
+ console.log(error);
+ if(error){
+ this.error="Server Error";
+ }
+ });
+ }
+ onEdit(row) {
+ this.rowSelected = row;
+
+
+
+
+
+
+
+
+
+
+this.nodeEditPropertiesstmlit.editselectedAttributesstmlit = JSON.parse(this.rowSelected.stmlit );
+
+this.nodeEditPropertiesstmmlt2.editselectedAttributesstmmlt2 = JSON.parse(this.rowSelected.stmmlt2 );
+
+
+
+
+
+this.nodeEditPropertiesdymlti1.editselectedAttributesdymlti1 = JSON.parse(this.rowSelected.dymlti1 );
+
+this.nodeEditPropertiesdymlt2.editselectedAttributesdymlt2 = JSON.parse(this.rowSelected.dymlt2 );
+
+
+ this.modalEdit = true;
+ }
+ onDelete(row) {
+ this.rowSelected = row;
+ this.modaldelete=true;
+ }
+ delete(id)
+ {
+ this.modaldelete = false;
+ console.log("in delete "+id);
+ this.mainService.delete(id).subscribe(
+ (data) => {
+ console.log(data);
+ this.ngOnInit();
+ if (data) { this.toastr.success('Deleted successfully'); }
+ });
+ }
+ onUpdate(id) {
+ this.modalEdit = false;
+
+
+
+
+
+
+
+
+
+
+this.rowSelected.stmlit = JSON.stringify(this.nodeEditPropertiesstmlit.editselectedAttributesstmlit );
+
+this.rowSelected.stmmlt2 = JSON.stringify(this.nodeEditPropertiesstmmlt2.editselectedAttributesstmmlt2 );
+
+
+
+
+
+this.rowSelected.dymlti1 = JSON.stringify(this.nodeEditPropertiesdymlti1.editselectedAttributesdymlti1 );
+
+this.rowSelected.dymlt2 = JSON.stringify(this.nodeEditPropertiesdymlt2.editselectedAttributesdymlt2 );
+
+ //console.log("in update");
+ console.log("id " + id);
+ console.log(this.rowSelected);
+ //console.log("out update");
+ this.mainService.update(id, this.rowSelected).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("update Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Updated");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Updated");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+onCreate() {
+ this.modalAdd=false;
+
+
+
+
+
+
+
+
+
+
+this.entryForm.value.stmlit = JSON.stringify(this.nodeEditPropertiesstmlit.addselectedAttributesstmlit );
+
+this.entryForm.value.stmmlt2 = JSON.stringify(this.nodeEditPropertiesstmmlt2.addselectedAttributesstmmlt2 );
+
+
+
+
+
+this.entryForm.value.dymlti1 = JSON.stringify(this.nodeEditPropertiesdymlti1.addselectedAttributesdymlti1 );
+
+this.entryForm.value.dymlt2 = JSON.stringify(this.nodeEditPropertiesdymlt2.addselectedAttributesdymlt2 );
+
+ this.mainService.create(this.entryForm.value).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Added Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("Added Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Added");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Added");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+ goToAdd(row) {
+this.modalAdd = true; this.submitted = false; this.getdatagrid_fieldData();
+
+ this.getdatagrid_field2Data();
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+this.nodeEditPropertiesdymlti1.addselectedAttributesdymlti1 = ""
+
+this.nodeEditPropertiesdymlt2.addselectedAttributesdymlt2 = ""
+
+
+ }
+ submitted = false;
+onSubmit() {
+ console.log(this.entryForm.value);
+ this.submitted = true;
+ if (this.entryForm.invalid) {
+ return;
+ }this.onCreate();
+
+}
+//datagrid datagrid_field filed start
+productdatagrid_field;
+ rowsdatagrid_field :any[];
+ getHeadersdatagrid_field () {
+ this.rowsdatagrid_field = this.productdatagrid_field;
+ let headers: string[] = [];
+ if(this.rowsdatagrid_field ) {
+this.rowsdatagrid_field.forEach((value) => {
+ Object.keys(value).forEach((key) => {
+ if(!headers.find((header) => header == key)){
+ headers.push(key)
+ }
+ })
+ })
+}
+
+ return headers;
+ }
+ //datagrid datagrid_field filed end
+
+getdatagrid_fieldData() {
+ this.mainService.getdatagrid_fieldAll().subscribe((data) => {
+ console.log(data); this.productdatagrid_field = data;
+ });
+}
+
+//datagrid datagrid_field2 filed start
+productdatagrid_field2;
+ rowsdatagrid_field2 :any[];
+ getHeadersdatagrid_field2 () {
+ this.rowsdatagrid_field2 = this.productdatagrid_field2;
+ let headers: string[] = [];
+ if(this.rowsdatagrid_field2 ) {
+this.rowsdatagrid_field2.forEach((value) => {
+ Object.keys(value).forEach((key) => {
+ if(!headers.find((header) => header == key)){
+ headers.push(key)
+ }
+ })
+ })
+}
+
+ return headers;
+ }
+ //datagrid datagrid_field2 filed end
+
+getdatagrid_field2Data() {
+ this.mainService.getdatagrid_field2All().subscribe((data) => {
+ console.log(data); this.productdatagrid_field2 = data;
+ });
+}
+
+
+
+
+
+
+
+nodeEditPropertiesstmlit = { addselectedAttributesstmlit :"", editselectedAttributesstmlit :"" }
+ selectstmlit =[
+
+
+ 'bihar',
+
+
+
+ 'sikkim',
+
+
+ ];
+
+nodeEditPropertiesstmmlt2 = { addselectedAttributesstmmlt2 :"", editselectedAttributesstmmlt2 :"" }
+ selectstmmlt2 =[
+
+
+ 'p2',
+
+
+
+ 'p3',
+
+
+
+ 'ap',
+
+
+ ];
+
+dy2default=false
+selectdy2 ;
+getalldy2() {
+ this.mainService.getAlldy2().subscribe(data=>{
+this.selectdy2 = data;
+console.log(data);
+},(error) => { console.log(error); }); }
+
+
+
+ // ================== ORDER SUMMARY LOGIC START ==================
+ /**
+ * Order Summary Array and Methods for Add to Order functionality
+ */
+ dy2Summary: any[] = [];
+ dy2total;
+isdy2order =false;
+ /**
+ * Add selected product to order summary
+ */
+ adddy2Order() {
+ const formValue = this.entryForm.value;
+ if (!formValue.dy2 ) {
+ this.toastr.error('Please select dy2');
+ return;
+ }
+ // Get description from master (selectdy2)
+
+
+
+
+ if (this.selectdy2 && Array.isArray(this.selectdy2)) {
+
+
+ const found = this.selectdy2.find(p => p.name === formValue.dy2);
+
+
+
+
+ }
+ const line = this.dy2Summary.length + 1;
+ const orderItem = {
+ line: line,
+
+ // unitPrice: Number(formValue.price),
+ // quantity: Number(formValue.quantity),
+ // total: Number(formValue.price) * Number(formValue.quantity)
+ };
+ this.dy2Summary.push(orderItem);
+
+ this.dy2total = '';
+ }
+
+ /**
+ * Remove item from order summary by index
+ */
+ removedy2Order(index: number) {
+ this.dy2Summary.splice(index, 1);
+ // Recalculate line numbers
+ this.dy2Summary.forEach((item, i) => {
+ item.line = i + 1;
+ });
+ }
+
+ /**
+ * Calculate subtotal of all order items
+ */
+ getdy2Subtotal(): number {
+ return this.dy2Summary.reduce((sum, item) => sum + item.total, 0);
+ }
+
+ /**
+ * Calculate GST (18%)
+ */
+ getdy2GST(): number {
+ return this.getdy2Subtotal() * 0.18;
+ }
+
+ /**
+ * Calculate grand total (subtotal + GST)
+ */
+ getdy2GrandTotal(): number {
+ return this.getdy2Subtotal() + this.getdy2GST();
+
+ }
+ // ================== ORDER SUMMARY LOGIC END ==================
+
+
+dy1default=false
+selectdy1 ;
+getalldy1() {
+ this.mainService.getAlldy1().subscribe(data=>{
+this.selectdy1 = data;
+console.log(data);
+},(error) => { console.log(error); }); }
+
+
+
+ // ================== ORDER SUMMARY LOGIC START ==================
+ /**
+ * Order Summary Array and Methods for Add to Order functionality
+ */
+ dy1Summary: any[] = [];
+ dy1total;
+isdy1order =false;
+ /**
+ * Add selected product to order summary
+ */
+ adddy1Order() {
+ const formValue = this.entryForm.value;
+ if (!formValue.dy1 ) {
+ this.toastr.error('Please select dy1');
+ return;
+ }
+ // Get description from master (selectdy1)
+
+
+
+
+ if (this.selectdy1 && Array.isArray(this.selectdy1)) {
+
+
+ const found = this.selectdy1.find(p => p.description === formValue.dy1);
+
+
+
+
+ }
+ const line = this.dy1Summary.length + 1;
+ const orderItem = {
+ line: line,
+
+ // unitPrice: Number(formValue.price),
+ // quantity: Number(formValue.quantity),
+ // total: Number(formValue.price) * Number(formValue.quantity)
+ };
+ this.dy1Summary.push(orderItem);
+
+ this.dy1total = '';
+ }
+
+ /**
+ * Remove item from order summary by index
+ */
+ removedy1Order(index: number) {
+ this.dy1Summary.splice(index, 1);
+ // Recalculate line numbers
+ this.dy1Summary.forEach((item, i) => {
+ item.line = i + 1;
+ });
+ }
+
+ /**
+ * Calculate subtotal of all order items
+ */
+ getdy1Subtotal(): number {
+ return this.dy1Summary.reduce((sum, item) => sum + item.total, 0);
+ }
+
+ /**
+ * Calculate GST (18%)
+ */
+ getdy1GST(): number {
+ return this.getdy1Subtotal() * 0.18;
+ }
+
+ /**
+ * Calculate grand total (subtotal + GST)
+ */
+ getdy1GrandTotal(): number {
+ return this.getdy1Subtotal() + this.getdy1GST();
+
+ }
+ // ================== ORDER SUMMARY LOGIC END ==================
+
+
+selectdymlti1;
+ getalldymlti1 () {
+ this.mainService.getAlldymlti1().subscribe(data=>{
+ this.selectdymlti1 = data;
+ console.log(data);
+ },(error) => { console.log(error); }); }
+ nodeEditPropertiesdymlti1 = { addselectedAttributesdymlti1:"", editselectedAttributesdymlti1 :"" }
+
+selectdymlt2;
+ getalldymlt2 () {
+ this.mainService.getAlldymlt2().subscribe(data=>{
+ this.selectdymlt2 = data;
+ console.log(data);
+ },(error) => { console.log(error); }); }
+ nodeEditPropertiesdymlt2 = { addselectedAttributesdymlt2:"", editselectedAttributesdymlt2 :"" }
+
+// updateaction
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv3/Adv3.service.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv3/Adv3.service.ts
new file mode 100644
index 0000000..c497e6f
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv3/Adv3.service.ts
@@ -0,0 +1,63 @@
+import { Injectable } from '@angular/core';
+import { Observable } from "rxjs";
+import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
+import { ApiRequestService } from "src/app/services/api/api-request.service";
+import { environment } from 'src/environments/environment';
+@Injectable({
+ providedIn: 'root'
+})
+export class Adv3service{
+ private baseURL = "Adv3/Adv3" ; constructor(
+ private http: HttpClient,
+ private apiRequest: ApiRequestService,
+ ) { }
+ getAll(page?: number, size?: number): Observable {
+ return this.apiRequest.get(this.baseURL);
+ }
+ getById(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.get(_http);
+ }
+ create(data: any): Observable {
+ return this.apiRequest.post(this.baseURL, data);
+ }
+ update(id: number, data: any): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.put(_http, data);
+ }
+ delete(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.delete(_http);
+ }
+getdatagrid_fieldAll(page?: number, size?: number): Observable {
+ return this.apiRequest.get("Country_ListFilter1/Country_ListFilter1");
+
+ }
+
+getdatagrid_field2All(page?: number, size?: number): Observable {
+ return this.apiRequest.get("Country_ListFilter1/Country_ListFilter1");
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+getAlldy2(): Observable {
+return this.apiRequest.get("Country_ListFilter1/Country_ListFilter1"); }
+
+getAlldy1(): Observable {
+return this.apiRequest.get("Country_ListFilter1/Country_ListFilter1"); }
+
+getAlldymlti1(): Observable { return this.apiRequest.get("Country_ListFilter1/Country_ListFilter1"); }
+
+getAlldymlt2(): Observable { return this.apiRequest.get("Country_ListFilter1/Country_ListFilter1"); }
+
+// updateaction
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv3/Adv3_cardvariable.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv3/Adv3_cardvariable.ts
new file mode 100644
index 0000000..8ed38af
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv3/Adv3_cardvariable.ts
@@ -0,0 +1,4 @@
+export const Adv3cardvariable = {
+ "cardButton": false,
+ "cardmodeldata": ``
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv4/Adv4.component.html b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv4/Adv4.component.html
new file mode 100644
index 0000000..cd312d1
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv4/Adv4.component.html
@@ -0,0 +1,623 @@
+
+ - Adv4
+
+
+
+
+
Adv4
+
+
+
+
+
+
+
+
+
+ Loading ...
+
+ {{error}}
+
+
+ atoc
+
+
+
+ atc2
+
+
+
+ atdy1
+
+
+
+ atdy2
+
+
+
+
+
+ description
+
+
+
+ name
+
+
+
+
+
+
+ active
+
+
+
+ description
+
+
+
+ name
+
+
+
+
+
+
+ Action
+
+
+
+
+
+{{user.atocidentifier}}
+
+
+{{user.atc2identifier}}
+
+
+{{user. atdy1 }}
+
+
+{{user. atdy2 }}
+
+
+
+
+{{user.support?.description}}
+
+
+
+{{user.support?.name}}
+
+
+
+
+
+
+{{user.childform?.active}}
+
+
+
+{{user.childform?.description}}
+
+
+
+{{user.childform?.name}}
+
+
+
+
+
+
+
+
+
+ Who Column
+ Account ID: {{user.accountId}}
+ Created At: {{user.createdAt| date}}
+ Created By: {{user.createdBy}}
+ Updated At: {{user.updatedAt | date}}
+ Updated By: {{user.updatedBy}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Users per page
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
+ of {{pagination.totalItems}} users
+
+
+
+
+
+
+
+
+
+ Data could be found. Loading..
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] }}
+ {{afterText(item.fieldtext)}}
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] | date}}
+ {{afterText(item.fieldtext)}}
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ]}}
+ {{afterText(item.fieldtext)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Update Adv4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Are You Sure Want to delete?
+ {{rowSelected.id}}
+
+
+
+
+
+ Add Adv4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form Extension
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv4/Adv4.component.scss b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv4/Adv4.component.scss
new file mode 100644
index 0000000..12f7fc8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv4/Adv4.component.scss
@@ -0,0 +1,85 @@
+//@import "../../../../assets/scss/var";
+.s-info-bar {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ button {
+ outline: none;
+ }
+}
+.delete,.heading{
+ text-align: center;
+ color: red;
+}
+.entry-pg {
+ width: 750px;
+}
+
+.button1::after {
+ content: none;
+}
+.button1:hover::after {
+ content: "ADD ROWS";
+}
+
+.section {
+ background-color: #dddddd;
+ height: 40px;
+}
+
+.section p {
+ //color: white;
+ padding: 10px;
+ font-size: 18px;
+}
+
+.clr-input {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ padding: 0.75rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.clr-file {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ //padding: 0.6rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.center {
+ text-align: center;
+}
+select{
+ width: 100%;
+ margin-top: 3px;
+ padding: 5px 5px;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+input[type=text],[type=date],[type=number],textarea {
+ width: 100%;
+ padding: 15px 15px;
+ background-color:rgb(255, 255, 255);
+ // margin: 8px 0;
+ display: inline-block;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ box-sizing: border-box;
+}
+.error_mess {
+ color: red;
+}
+.universal-section-header {
+ margin: 24px 0 10px 0;
+ font-weight: 600;
+ color: #1a237e;
+ letter-spacing: 0.5px;
+ font-size: 1.25rem;
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv4/Adv4.component.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv4/Adv4.component.ts
new file mode 100644
index 0000000..c6ba54c
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv4/Adv4.component.ts
@@ -0,0 +1,395 @@
+import { Component, OnInit } from '@angular/core';
+import { ToastrService } from 'ngx-toastr';
+import { AlertService } from 'src/app/services/alert.service';
+import { Adv4service} from './Adv4.service';
+import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
+import { ExtensionService } from 'src/app/services/fnd/extension.service';
+import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
+import { Adv4cardvariable } from './Adv4_cardvariable';
+import { UserInfoService } from 'src/app/services/user-info.service';
+declare var JsBarcode: any;
+@Component({
+ selector: 'app-Adv4',
+ templateUrl: './Adv4.component.html',
+ styleUrls: ['./Adv4.component.scss']
+})
+export class Adv4Component implements OnInit {
+ cardButton = Adv4cardvariable.cardButton;
+ cardmodeldata = Adv4cardvariable.cardmodeldata;
+ public dashboardArray: DashboardContentModel2[];
+ isCardview = Adv4cardvariable.cardButton;
+ cardmodal; changeView(){
+ this.isCardview = !this.isCardview;
+ }
+ beforeText(fieldtext: string): string { // Extract the text before the first '<'
+ const index = fieldtext.indexOf('<');
+ return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
+ }
+ afterText(fieldtext: string): string { // Extract the text after the last '>'
+ const index = fieldtext.lastIndexOf('>');
+ return index !== -1 ? fieldtext.substring(index + 1) : '';
+ }
+ transform(fieldtext: string): string {
+ const match = fieldtext.match(/<([^>]*)>/);
+ return match ? match[1] : ''; // Extract the text between '<' and '>'
+ }
+ userrole;
+ rowSelected :any= {};
+ modaldelete=false;
+ modalEdit=false;
+ modalAdd= false;
+ public entryForm: FormGroup;
+ loading = false;
+ product;
+ modalOpenedforNewLine = false;
+ newLine:any;
+ additionalFieldsFromBackend: any[] = [];
+ formcode = 'Adv4_formCode'
+tableName = 'Adv4'; checkFormCode; selected: any[] = []; constructor(
+ private extensionService: ExtensionService,
+private userInfoService:UserInfoService,
+ private mainService:Adv4service,
+ private alertService: AlertService,
+ private toastr: ToastrService,
+ private _fb: FormBuilder,
+ ) { }
+ private editInterval: any;
+// component button
+ ngOnInit(): void {
+ if(this.cardmodeldata !== ''){
+ this.cardmodal = JSON.parse(this.cardmodeldata);
+ this.dashboardArray = this.cardmodal.dashboard.slice();
+ console.log(this.dashboardArray)
+ }
+ this.userrole=this.userInfoService.getRoles();
+ this.getData();
+ this.entryForm = this._fb.group({
+atoc : [null],
+
+atc2 : [null],
+
+atdy1 : [null],
+
+atdy2 : [null],
+
+support: this.supportinitLinesForm(),
+
+childform: this.childforminitLinesForm(),
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }); // component_button200
+ // form code start
+ this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
+ console.log(data);
+ const jsonArray = data.map((str) => JSON.parse(str));
+ this.additionalFieldsFromBackend = jsonArray;
+ this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Adv4_formCode");
+ console.log(this.checkFormCode);
+ console.log(this.additionalFieldsFromBackend);
+ if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
+ this.additionalFieldsFromBackend.forEach(field => {
+ if (field.formCode === this.formcode) {
+ if (!this.entryForm.contains(field.extValue)) {
+ // Add the control only if it doesn't exist in the form
+ this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
+ }
+ }
+ });
+ }
+ });
+ console.log(this.entryForm.value);
+ // form code end
+this.getallatoc();
+
+this.getallatc2();
+
+this.getallatdy1();
+
+this.getallatdy2();
+
+
+
+
+
+
+ }
+ ngOnDestroy(): void {
+ if (this.editInterval) {
+ clearInterval(this.editInterval);
+ }
+ }
+
+
+
+
+
+
+
+
+supportinitLinesForm() { return this._fb.group({
+
+
+ description: [null],
+
+
+
+ name: [null],
+
+
+
+}); }
+
+
+
+childforminitLinesForm() { return this._fb.group({
+
+
+ active: [null],
+
+
+
+ description: [null],
+
+
+
+ name: [null],
+
+
+
+}); }
+
+
+ error;
+ getData() {
+ this.mainService.getAll().subscribe((data) => {
+ console.log(data);
+ this.product = data;
+this.product = [...this.product].reverse(); if(this.product.length==0){
+ this.error="No Data Available"
+ }
+ },(error) => {
+ console.log(error);
+ if(error){
+ this.error="Server Error";
+ }
+ });
+ }
+ onEdit(row) {
+ this.rowSelected = row;
+
+
+
+
+this.nodeEditPropertiesatdy1.editselectedAttributesatdy1 = JSON.parse(this.rowSelected.atdy1 );
+
+this.nodeEditPropertiesatdy2.editselectedAttributesatdy2 = JSON.parse(this.rowSelected.atdy2 );
+
+
+
+
+
+
+ this.modalEdit = true;
+ }
+ onDelete(row) {
+ this.rowSelected = row;
+ this.modaldelete=true;
+ }
+ delete(id)
+ {
+ this.modaldelete = false;
+ console.log("in delete "+id);
+ this.mainService.delete(id).subscribe(
+ (data) => {
+ console.log(data);
+ this.ngOnInit();
+ if (data) { this.toastr.success('Deleted successfully'); }
+ });
+ }
+ onUpdate(id) {
+ this.modalEdit = false;
+
+
+
+
+this.rowSelected.atdy1 = JSON.stringify(this.nodeEditPropertiesatdy1.editselectedAttributesatdy1 );
+
+this.rowSelected.atdy2 = JSON.stringify(this.nodeEditPropertiesatdy2.editselectedAttributesatdy2 );
+
+
+
+
+
+ //console.log("in update");
+ console.log("id " + id);
+ console.log(this.rowSelected);
+ //console.log("out update");
+ this.mainService.update(id, this.rowSelected).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("update Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Updated");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Updated");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+onCreate() {
+ this.modalAdd=false;
+
+
+
+
+this.entryForm.value.atdy1 = JSON.stringify(this.nodeEditPropertiesatdy1.addselectedAttributesatdy1 );
+
+this.entryForm.value.atdy2 = JSON.stringify(this.nodeEditPropertiesatdy2.addselectedAttributesatdy2 );
+
+
+
+
+
+ this.mainService.create(this.entryForm.value).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Added Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("Added Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Added");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Added");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+ goToAdd(row) {
+this.modalAdd = true; this.submitted = false;
+
+
+
+this.nodeEditPropertiesatdy1.addselectedAttributesatdy1 = ""
+
+this.nodeEditPropertiesatdy2.addselectedAttributesatdy2 = ""
+
+
+
+
+
+
+ }
+ submitted = false;
+onSubmit() {
+ console.log(this.entryForm.value);
+ this.submitted = true;
+ if (this.entryForm.invalid) {
+ return;
+ }this.onCreate();
+
+}
+selectatoc ;
+ getallatoc () {
+ this.mainService.getAllatoc().subscribe(data=>{
+ this.selectatoc = data; console.log(data);
+ },(error) => { console.log(error); }); }
+
+selectatc2 ;
+ getallatc2 () {
+ this.mainService.getAllatc2().subscribe(data=>{
+ this.selectatc2 = data; console.log(data);
+ },(error) => { console.log(error); }); }
+
+selectatdy1;
+ getallatdy1 () {
+ this.mainService.getAllatdy1().subscribe(data=>{
+ this.selectatdy1 = data;
+ console.log(data);
+ },(error) => { console.log(error); }); }
+ nodeEditPropertiesatdy1 = { addselectedAttributesatdy1:"", editselectedAttributesatdy1 :"" }
+
+selectatdy2;
+ getallatdy2 () {
+ this.mainService.getAllatdy2().subscribe(data=>{
+ this.selectatdy2 = data;
+ console.log(data);
+ },(error) => { console.log(error); }); }
+ nodeEditPropertiesatdy2 = { addselectedAttributesatdy2:"", editselectedAttributesatdy2 :"" }
+
+
+
+
+
+// updateaction
+}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv4/Adv4.service.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv4/Adv4.service.ts
new file mode 100644
index 0000000..fd55127
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv4/Adv4.service.ts
@@ -0,0 +1,45 @@
+import { Injectable } from '@angular/core';
+import { Observable } from "rxjs";
+import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
+import { ApiRequestService } from "src/app/services/api/api-request.service";
+import { environment } from 'src/environments/environment';
+@Injectable({
+ providedIn: 'root'
+})
+export class Adv4service{
+ private baseURL = "Adv4/Adv4" ; constructor(
+ private http: HttpClient,
+ private apiRequest: ApiRequestService,
+ ) { }
+ getAll(page?: number, size?: number): Observable {
+ return this.apiRequest.get(this.baseURL);
+ }
+ getById(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.get(_http);
+ }
+ create(data: any): Observable {
+ return this.apiRequest.post(this.baseURL, data);
+ }
+ update(id: number, data: any): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.put(_http, data);
+ }
+ delete(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.delete(_http);
+ }
+getAllatoc(): Observable { return this.apiRequest.get("Country_ListFilter1/Country_ListFilter1"); }
+
+getAllatc2(): Observable { return this.apiRequest.get("Country_ListFilter1/Country_ListFilter1"); }
+
+getAllatdy1(): Observable { return this.apiRequest.get("Country_ListFilter1/Country_ListFilter1"); }
+
+getAllatdy2(): Observable { return this.apiRequest.get("Country_ListFilter1/Country_ListFilter1"); }
+
+
+
+
+
+// updateaction
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv4/Adv4_cardvariable.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv4/Adv4_cardvariable.ts
new file mode 100644
index 0000000..bee29d9
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv4/Adv4_cardvariable.ts
@@ -0,0 +1,4 @@
+export const Adv4cardvariable = {
+ "cardButton": false,
+ "cardmodeldata": ``
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv5/Adv5.component.html b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv5/Adv5.component.html
new file mode 100644
index 0000000..88fba21
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv5/Adv5.component.html
@@ -0,0 +1,787 @@
+
+ - Adv5
+
+
+
+
+
Adv5
+
+
+
+
+
+
+
+
+
+ Loading ...
+
+ {{error}}
+
+
+ Name
+
+
+
+
+
+ age
+
+
+
+ age2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Action
+
+
+
+
+
+{{user.name }}
+
+
+
+
+{{user.age }}
+
+
+{{user.age2 }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Who Column
+ Account ID: {{user.accountId}}
+ Created At: {{user.createdAt| date}}
+ Created By: {{user.createdBy}}
+ Updated At: {{user.updatedAt | date}}
+ Updated By: {{user.updatedBy}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Users per page
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
+ of {{pagination.totalItems}} users
+
+
+
+
+
+
+
+
+
+ Data could be found. Loading..
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] }}
+ {{afterText(item.fieldtext)}}
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] | date}}
+ {{afterText(item.fieldtext)}}
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ]}}
+ {{afterText(item.fieldtext)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Update Adv5
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{rowSelected.id}}
+
+
+
+
+
+
+
Are You Sure Want to delete?
+ {{rowSelected.id}}
+
+
+
+
+
+ Add Adv5
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form Extension
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Select From value_list_field List:
+
+
+ Loading ...
+
+
+
+
+ age
+
+
+
+
+
+
+ {{user.age}}
+
+
+
+
+
+ Record per page
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
+ of {{pagination.totalItems}} Records
+
+
+
+
+
+ Select From value_list_field2 List:
+
+
+ Loading ...
+
+
+
+
+ name
+
+
+
+ age2
+
+
+
+ age
+
+
+
+
+
+
+ {{user.name}}
+
+
+
+ {{user.age2}}
+
+
+
+ {{user.age}}
+
+
+
+
+
+ Record per page
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
+ of {{pagination.totalItems}} Records
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv5/Adv5.component.scss b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv5/Adv5.component.scss
new file mode 100644
index 0000000..12f7fc8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv5/Adv5.component.scss
@@ -0,0 +1,85 @@
+//@import "../../../../assets/scss/var";
+.s-info-bar {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ button {
+ outline: none;
+ }
+}
+.delete,.heading{
+ text-align: center;
+ color: red;
+}
+.entry-pg {
+ width: 750px;
+}
+
+.button1::after {
+ content: none;
+}
+.button1:hover::after {
+ content: "ADD ROWS";
+}
+
+.section {
+ background-color: #dddddd;
+ height: 40px;
+}
+
+.section p {
+ //color: white;
+ padding: 10px;
+ font-size: 18px;
+}
+
+.clr-input {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ padding: 0.75rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.clr-file {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ //padding: 0.6rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.center {
+ text-align: center;
+}
+select{
+ width: 100%;
+ margin-top: 3px;
+ padding: 5px 5px;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+input[type=text],[type=date],[type=number],textarea {
+ width: 100%;
+ padding: 15px 15px;
+ background-color:rgb(255, 255, 255);
+ // margin: 8px 0;
+ display: inline-block;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ box-sizing: border-box;
+}
+.error_mess {
+ color: red;
+}
+.universal-section-header {
+ margin: 24px 0 10px 0;
+ font-weight: 600;
+ color: #1a237e;
+ letter-spacing: 0.5px;
+ font-size: 1.25rem;
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv5/Adv5.component.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv5/Adv5.component.ts
new file mode 100644
index 0000000..93aecb3
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv5/Adv5.component.ts
@@ -0,0 +1,851 @@
+import { Component, OnInit } from '@angular/core';
+import { ToastrService } from 'ngx-toastr';
+import { AlertService } from 'src/app/services/alert.service';
+import { Adv5service} from './Adv5.service';
+import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
+import { ExtensionService } from 'src/app/services/fnd/extension.service';
+import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
+import { Adv5cardvariable } from './Adv5_cardvariable';
+import { UserInfoService } from 'src/app/services/user-info.service';
+declare var JsBarcode: any;
+@Component({
+ selector: 'app-Adv5',
+ templateUrl: './Adv5.component.html',
+ styleUrls: ['./Adv5.component.scss']
+})
+export class Adv5Component implements OnInit {
+ cardButton = Adv5cardvariable.cardButton;
+ cardmodeldata = Adv5cardvariable.cardmodeldata;
+ public dashboardArray: DashboardContentModel2[];
+ isCardview = Adv5cardvariable.cardButton;
+ cardmodal; changeView(){
+ this.isCardview = !this.isCardview;
+ }
+ beforeText(fieldtext: string): string { // Extract the text before the first '<'
+ const index = fieldtext.indexOf('<');
+ return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
+ }
+ afterText(fieldtext: string): string { // Extract the text after the last '>'
+ const index = fieldtext.lastIndexOf('>');
+ return index !== -1 ? fieldtext.substring(index + 1) : '';
+ }
+ transform(fieldtext: string): string {
+ const match = fieldtext.match(/<([^>]*)>/);
+ return match ? match[1] : ''; // Extract the text between '<' and '>'
+ }
+ userrole;
+ rowSelected :any= {};
+ modaldelete=false;
+ modalEdit=false;
+ modalAdd= false;
+ public entryForm: FormGroup;
+ loading = false;
+ product;
+ modalOpenedforNewLine = false;
+ newLine:any;
+ additionalFieldsFromBackend: any[] = [];
+ formcode = 'Adv5_formCode'
+tableName = 'Adv5'; checkFormCode; selected: any[] = []; constructor(
+ private extensionService: ExtensionService,
+private userInfoService:UserInfoService,
+ private mainService:Adv5service,
+ private alertService: AlertService,
+ private toastr: ToastrService,
+ private _fb: FormBuilder,
+ ) { }
+ private editInterval: any;
+// component button
+ ngOnInit(): void {
+ if(this.cardmodeldata !== ''){
+ this.cardmodal = JSON.parse(this.cardmodeldata);
+ this.dashboardArray = this.cardmodal.dashboard.slice();
+ console.log(this.dashboardArray)
+ }
+ this.userrole=this.userInfoService.getRoles();
+ this.getData();
+ this.entryForm = this._fb.group({
+name : [null],
+
+support: this._fb.array([this.initsupportForm()]),
+
+age : [null,[Validators.required]],
+
+age2 : [null,[Validators.required]],
+
+
+
+
+
+
+
+
+
+childform: this._fb.array([this.initchildformForm()]),
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }); // component_button200
+ // form code start
+ this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
+ console.log(data);
+ const jsonArray = data.map((str) => JSON.parse(str));
+ this.additionalFieldsFromBackend = jsonArray;
+ this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Adv5_formCode");
+ console.log(this.checkFormCode);
+ console.log(this.additionalFieldsFromBackend);
+ if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
+ this.additionalFieldsFromBackend.forEach(field => {
+ if (field.formCode === this.formcode) {
+ if (!this.entryForm.contains(field.extValue)) {
+ // Add the control only if it doesn't exist in the form
+ this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
+ }
+ }
+ });
+ }
+ });
+ console.log(this.entryForm.value);
+ // form code end
+
+
+
+
+
+
+
+
+ // Subscribe to value changes for auto calculation
+ this.entryForm.valueChanges.subscribe(() => {
+ this.onInputChangeaddition('add');
+ });
+
+// Start polling for edit changes
+ this.editInterval = setInterval(() => {
+ if (this.modalEdit) {
+ this.onInputChangeaddition('edit');
+ }
+ }, 200);
+
+ // Subscribe to value changes for auto calculation
+ this.entryForm.valueChanges.subscribe(() => {
+ this.onInputChangemultiplication('add');
+ });
+
+// Start polling for edit changes
+ this.editInterval = setInterval(() => {
+ if (this.modalEdit) {
+ this.onInputChangemultiplication('edit');
+ }
+ }, 200);
+
+
+
+
+
+
+
+
+ }
+ ngOnDestroy(): void {
+ if (this.editInterval) {
+ clearInterval(this.editInterval);
+ }
+ }
+
+// one to many start
+ initsupportForm() { return this._fb.group({
+
+
+
+ description: [null],
+
+
+
+ name: [null],
+
+
+
+}); }
+get supportcontrols() {return (this.entryForm.get("support") as FormArray).controls; }
+onAddsupport() {
+(this.entryForm.get("support")).push(this.initsupportForm()); }
+onRemovesupport(index: number) {
+(this.entryForm.get("support")).removeAt(index); }
+ oneditsupport() { this.supportcomponents.push({
+
+
+description: "",
+
+
+
+name: "",
+
+
+
+ }); }
+ deletesupportRow(index) {
+ this.supportcomponents.splice(index, 1);
+ }
+supportcomponents;
+ // one to many end
+
+
+
+
+
+
+
+
+
+
+
+
+
+// one to many start
+ initchildformForm() { return this._fb.group({
+
+
+
+ active: [null],
+
+
+
+ description: [null],
+
+
+
+ name: [null],
+
+
+
+}); }
+get childformcontrols() {return (this.entryForm.get("childform") as FormArray).controls; }
+onAddchildform() {
+(this.entryForm.get("childform")).push(this.initchildformForm()); }
+onRemovechildform(index: number) {
+(this.entryForm.get("childform")).removeAt(index); }
+ oneditchildform() { this.childformcomponents.push({
+
+
+active: "",
+
+
+
+description: "",
+
+
+
+name: "",
+
+
+
+ }); }
+ deletechildformRow(index) {
+ this.childformcomponents.splice(index, 1);
+ }
+childformcomponents;
+ // one to many end
+
+ error;
+ getData() {
+ this.mainService.getAll().subscribe((data) => {
+ console.log(data);
+ this.product = data;
+this.product = [...this.product].reverse(); if(this.product.length==0){
+ this.error="No Data Available"
+ }
+ },(error) => {
+ console.log(error);
+ if(error){
+ this.error="Server Error";
+ }
+ });
+ }
+ onEdit(row) {
+ this.rowSelected = row;
+
+
+this.supportcomponents = row.support;
+
+
+
+
+
+
+
+
+
+
+
+
+
+this.childformcomponents = row.childform;
+
+
+ this.modalEdit = true;
+ }
+ onDelete(row) {
+ this.rowSelected = row;
+ this.modaldelete=true;
+ }
+ delete(id)
+ {
+ this.modaldelete = false;
+ console.log("in delete "+id);
+ this.mainService.delete(id).subscribe(
+ (data) => {
+ console.log(data);
+ this.ngOnInit();
+ if (data) { this.toastr.success('Deleted successfully'); }
+ });
+ }
+ onUpdate(id) {
+ this.modalEdit = false;
+
+
+
+
+
+
+
+
+//calculated field start
+
+this.onInputChangeaddition ('edit');
+ //calculated field end
+
+//calculated field start
+
+this.onInputChangemultiplication ('edit');
+ //calculated field end
+
+
+
+
+
+
+
+ //console.log("in update");
+ console.log("id " + id);
+ console.log(this.rowSelected);
+ //console.log("out update");
+ this.mainService.update(id, this.rowSelected).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("update Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Updated");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Updated");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+onCreate() {
+ this.modalAdd=false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ this.mainService.create(this.entryForm.value).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Added Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("Added Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Added");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Added");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+ goToAdd(row) {
+this.modalAdd = true; this.submitted = false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }
+ submitted = false;
+onSubmit() {
+ console.log(this.entryForm.value);
+ this.submitted = true;
+ if (this.entryForm.invalid) {
+ return;
+ }this.onCreate();
+
+}
+
+
+
+
+
+
+
+
+
+ // calculated field code start
+
+
+
+ additionage;
+
+
+
+ additionage2;
+
+
+
+ additiontotal;
+ additioncalculateOperators: 'Addition' | 'Subtraction' | 'Multiplication' | 'Division' | 'Concatination' = "Addition"
+ onInputChangeaddition(mode: 'add' | 'edit') {
+
+
+ const lastObj = 0
+ const lastObjstring = ''
+ if (mode === 'add') {
+
+
+ this.additionage = this.entryForm.value.age || '';
+
+
+
+ this.additionage2 = this.entryForm.value.age2 || '';
+
+
+
+ } else {
+
+
+ this.additionage = this.rowSelected.age;
+
+
+
+ this.additionage2 = this.rowSelected.age2;
+
+
+ }
+
+
+ const ageValue = parseFloat(this.additionage) || 0;
+
+
+
+ const age2Value = parseFloat(this.additionage2) || 0;
+
+
+ switch (this.additioncalculateOperators) {
+ case 'Addition':
+ this.additiontotal = (
+
+
+ ageValue +
+
+
+
+ age2Value +
+
+
+ lastObj).toString();
+ break;
+ case 'Subtraction':
+ this.additiontotal = (
+
+
+ ageValue -
+
+
+
+ age2Value -
+
+
+ lastObj).toString();
+ break;
+ case 'Multiplication':
+ this.additiontotal = (
+
+
+ ageValue *
+
+
+
+ age2Value *
+
+
+ 1).toString();
+
+ break;
+ case 'Division':
+
+ this.additiontotal = (
+
+
+ ageValue /
+
+
+
+ age2Value /
+
+
+ 1).toString();
+
+ break;
+ case 'Concatination':
+ this.additiontotal = `
+
+
+ ${this.additionage || ''}
+
+
+
+ ${this.additionage2 || ''}
+
+
+ ${lastObjstring || ''}`;
+
+ break;
+ default:
+ this.additiontotal = '';
+ }
+ }
+
+
+
+ // calculated field code start
+
+
+
+ multiplicationage;
+
+
+
+ multiplicationage2;
+
+
+
+ multiplicationtotal;
+ multiplicationcalculateOperators: 'Addition' | 'Subtraction' | 'Multiplication' | 'Division' | 'Concatination' = "Multiplication"
+ onInputChangemultiplication(mode: 'add' | 'edit') {
+
+
+ const lastObj = 0
+ const lastObjstring = ''
+ if (mode === 'add') {
+
+
+ this.multiplicationage = this.entryForm.value.age || '';
+
+
+
+ this.multiplicationage2 = this.entryForm.value.age2 || '';
+
+
+
+ } else {
+
+
+ this.multiplicationage = this.rowSelected.age;
+
+
+
+ this.multiplicationage2 = this.rowSelected.age2;
+
+
+ }
+
+
+ const ageValue = parseFloat(this.multiplicationage) || 0;
+
+
+
+ const age2Value = parseFloat(this.multiplicationage2) || 0;
+
+
+ switch (this.multiplicationcalculateOperators) {
+ case 'Addition':
+ this.multiplicationtotal = (
+
+
+ ageValue +
+
+
+
+ age2Value +
+
+
+ lastObj).toString();
+ break;
+ case 'Subtraction':
+ this.multiplicationtotal = (
+
+
+ ageValue -
+
+
+
+ age2Value -
+
+
+ lastObj).toString();
+ break;
+ case 'Multiplication':
+ this.multiplicationtotal = (
+
+
+ ageValue *
+
+
+
+ age2Value *
+
+
+ 1).toString();
+
+ break;
+ case 'Division':
+
+ this.multiplicationtotal = (
+
+
+ ageValue /
+
+
+
+ age2Value /
+
+
+ 1).toString();
+
+ break;
+ case 'Concatination':
+ this.multiplicationtotal = `
+
+
+ ${this.multiplicationage || ''}
+
+
+
+ ${this.multiplicationage2 || ''}
+
+
+ ${lastObjstring || ''}`;
+
+ break;
+ default:
+ this.multiplicationtotal = '';
+ }
+ }
+
+
+//Value List field start
+value_list_fieldMode;
+searchcusttextvalue_list_field :any;
+ valueListModalvalue_list_field :boolean=false;
+ openvalueListvalue_list_field(mode){
+ this.valueListModalvalue_list_field=!this.valueListModalvalue_list_field ;
+ this.value_list_fieldMode = mode; }
+ customerdatavalue_list_field ;
+value_list_fielderror;
+clickedvalue_list_fieldID:number;
+
+getcustvalue_list_fieldID(id:number){
+ this.clickedvalue_list_fieldID=id;
+ console.log("clicked by id"+ id);
+ this.mainService.getById(id).subscribe((data) => { console.log(data);
+ if(this.value_list_fieldMode == "ADD"){
+
+
+
+ this.entryForm.get('age').setValue(data.age);
+
+
+
+ }else if(this.value_list_fieldMode == "EDIT"){
+
+
+
+ this.rowSelected.age= data. age
+
+
+
+ } }); this.valueListModalvalue_list_field =false;
+ } //value List field end
+
+//Value List field start
+value_list_field2Mode;
+searchcusttextvalue_list_field2 :any;
+ valueListModalvalue_list_field2 :boolean=false;
+ openvalueListvalue_list_field2(mode){
+ this.valueListModalvalue_list_field2=!this.valueListModalvalue_list_field2 ;
+ this.value_list_field2Mode = mode; }
+ customerdatavalue_list_field2 ;
+value_list_field2error;
+clickedvalue_list_field2ID:number;
+
+getcustvalue_list_field2ID(id:number){
+ this.clickedvalue_list_field2ID=id;
+ console.log("clicked by id"+ id);
+ this.mainService.getById(id).subscribe((data) => { console.log(data);
+ if(this.value_list_field2Mode == "ADD"){
+
+
+
+ this.entryForm.get('name').setValue(data.name);
+
+
+
+ this.entryForm.get('age2').setValue(data.age2);
+
+
+
+ this.entryForm.get('age').setValue(data.age);
+
+
+
+ }else if(this.value_list_field2Mode == "EDIT"){
+
+
+
+ this.rowSelected.name= data. name
+
+
+
+ this.rowSelected.age2= data. age2
+
+
+
+ this.rowSelected.age= data. age
+
+
+
+ } }); this.valueListModalvalue_list_field2 =false;
+ } //value List field end
+
+
+
+// updateaction
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv5/Adv5.service.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv5/Adv5.service.ts
new file mode 100644
index 0000000..814350a
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv5/Adv5.service.ts
@@ -0,0 +1,51 @@
+import { Injectable } from '@angular/core';
+import { Observable } from "rxjs";
+import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
+import { ApiRequestService } from "src/app/services/api/api-request.service";
+import { environment } from 'src/environments/environment';
+@Injectable({
+ providedIn: 'root'
+})
+export class Adv5service{
+ private baseURL = "Adv5/Adv5" ; constructor(
+ private http: HttpClient,
+ private apiRequest: ApiRequestService,
+ ) { }
+ getAll(page?: number, size?: number): Observable {
+ return this.apiRequest.get(this.baseURL);
+ }
+ getById(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.get(_http);
+ }
+ create(data: any): Observable {
+ return this.apiRequest.post(this.baseURL, data);
+ }
+ update(id: number, data: any): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.put(_http, data);
+ }
+ delete(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.delete(_http);
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+// updateaction
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv5/Adv5_cardvariable.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv5/Adv5_cardvariable.ts
new file mode 100644
index 0000000..e55c622
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Adv5/Adv5_cardvariable.ts
@@ -0,0 +1,4 @@
+export const Adv5cardvariable = {
+ "cardButton": false,
+ "cardmodeldata": ``
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp1/Basicp1.component.html b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp1/Basicp1.component.html
new file mode 100644
index 0000000..9fb505a
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp1/Basicp1.component.html
@@ -0,0 +1,679 @@
+
+ - Basicp1
+
+
+
+
+
Basicp1
+
+
+
+
+
+
+
+
+
+ Loading ...
+
+ {{error}}
+
+
+ name
+
+
+
+ name2
+
+
+
+ number1
+
+
+
+ number2
+
+
+
+ Phone Number
+
+
+
+ Phone Number2
+
+
+
+ Paragraph Field
+
+
+
+ Paragraph Field2
+
+
+
+ Password Field
+
+
+
+ Textarea
+
+
+
+ Textarea Field
+
+
+
+ Textarea Field2
+
+
+
+
+
+ Action
+
+
+
+
+
+{{user.name }}
+
+
+{{user.name2 }}
+
+
+{{user.number1 }}
+
+
+{{user.number2 }}
+
+
+{{user.phone_number }}
+
+
+{{user.phone_number2 }}
+
+
+
+
+
+
+
+
+{{user.password_field }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Who Column
+ Account ID: {{user.accountId}}
+ Created At: {{user.createdAt| date}}
+ Created By: {{user.createdBy}}
+ Updated At: {{user.updatedAt | date}}
+ Updated By: {{user.updatedBy}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Users per page
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
+ of {{pagination.totalItems}} users
+
+
+
+
+
+
+
+
+
+ Data could be found. Loading..
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] }}
+ {{afterText(item.fieldtext)}}
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] | date}}
+ {{afterText(item.fieldtext)}}
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ]}}
+ {{afterText(item.fieldtext)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Update Basicp1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{rowSelected.id}}
+
+
+
+
+
+
+
Are You Sure Want to delete?
+ {{rowSelected.id}}
+
+
+
+
+
+ Add Basicp1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form Extension
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp1/Basicp1.component.scss b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp1/Basicp1.component.scss
new file mode 100644
index 0000000..12f7fc8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp1/Basicp1.component.scss
@@ -0,0 +1,85 @@
+//@import "../../../../assets/scss/var";
+.s-info-bar {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ button {
+ outline: none;
+ }
+}
+.delete,.heading{
+ text-align: center;
+ color: red;
+}
+.entry-pg {
+ width: 750px;
+}
+
+.button1::after {
+ content: none;
+}
+.button1:hover::after {
+ content: "ADD ROWS";
+}
+
+.section {
+ background-color: #dddddd;
+ height: 40px;
+}
+
+.section p {
+ //color: white;
+ padding: 10px;
+ font-size: 18px;
+}
+
+.clr-input {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ padding: 0.75rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.clr-file {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ //padding: 0.6rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.center {
+ text-align: center;
+}
+select{
+ width: 100%;
+ margin-top: 3px;
+ padding: 5px 5px;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+input[type=text],[type=date],[type=number],textarea {
+ width: 100%;
+ padding: 15px 15px;
+ background-color:rgb(255, 255, 255);
+ // margin: 8px 0;
+ display: inline-block;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ box-sizing: border-box;
+}
+.error_mess {
+ color: red;
+}
+.universal-section-header {
+ margin: 24px 0 10px 0;
+ font-weight: 600;
+ color: #1a237e;
+ letter-spacing: 0.5px;
+ font-size: 1.25rem;
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp1/Basicp1.component.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp1/Basicp1.component.ts
new file mode 100644
index 0000000..0a13508
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp1/Basicp1.component.ts
@@ -0,0 +1,533 @@
+import { Component, OnInit } from '@angular/core';
+import { ToastrService } from 'ngx-toastr';
+import { AlertService } from 'src/app/services/alert.service';
+import { Basicp1service} from './Basicp1.service';
+import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
+import { ExtensionService } from 'src/app/services/fnd/extension.service';
+import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
+import { Basicp1cardvariable } from './Basicp1_cardvariable';
+import { UserInfoService } from 'src/app/services/user-info.service';
+declare var JsBarcode: any;
+@Component({
+ selector: 'app-Basicp1',
+ templateUrl: './Basicp1.component.html',
+ styleUrls: ['./Basicp1.component.scss']
+})
+export class Basicp1Component implements OnInit {
+ cardButton = Basicp1cardvariable.cardButton;
+ cardmodeldata = Basicp1cardvariable.cardmodeldata;
+ public dashboardArray: DashboardContentModel2[];
+ isCardview = Basicp1cardvariable.cardButton;
+ cardmodal; changeView(){
+ this.isCardview = !this.isCardview;
+ }
+ beforeText(fieldtext: string): string { // Extract the text before the first '<'
+ const index = fieldtext.indexOf('<');
+ return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
+ }
+ afterText(fieldtext: string): string { // Extract the text after the last '>'
+ const index = fieldtext.lastIndexOf('>');
+ return index !== -1 ? fieldtext.substring(index + 1) : '';
+ }
+ transform(fieldtext: string): string {
+ const match = fieldtext.match(/<([^>]*)>/);
+ return match ? match[1] : ''; // Extract the text between '<' and '>'
+ }
+ userrole;
+ rowSelected :any= {};
+ modaldelete=false;
+ modalEdit=false;
+ modalAdd= false;
+ public entryForm: FormGroup;
+ loading = false;
+ product;
+ modalOpenedforNewLine = false;
+ newLine:any;
+ additionalFieldsFromBackend: any[] = [];
+ formcode = 'Basicp1_formCode'
+tableName = 'Basicp1'; checkFormCode; selected: any[] = []; constructor(
+ private extensionService: ExtensionService,
+private userInfoService:UserInfoService,
+ private mainService:Basicp1service,
+ private alertService: AlertService,
+ private toastr: ToastrService,
+ private _fb: FormBuilder,
+ ) { }
+ private editInterval: any;
+// component button
+ ngOnInit(): void {
+ if(this.cardmodeldata !== ''){
+ this.cardmodal = JSON.parse(this.cardmodeldata);
+ this.dashboardArray = this.cardmodal.dashboard.slice();
+ console.log(this.dashboardArray)
+ }
+ this.userrole=this.userInfoService.getRoles();
+ this.getData();
+ this.entryForm = this._fb.group({
+name : [null],
+
+name2 : [null],
+
+number1 : [null,[Validators.required]],
+
+number2 : [null,[Validators.required]],
+
+phone_number: ['+91'],
+
+phone_number2: ['+91'],
+
+paragraph_field : [null],
+
+paragraph_field2 : [null],
+
+password_field : [null],
+confirmpassword_field : [null],
+
+textarea : [null],
+
+textarea_field : [null],
+
+textarea_field2 : [null],
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }, {
+ validator: Confirmedpassword_fieldValidator('password_field', 'confirmpassword_field')
+
+
+
+
+
+
+
+ }); // component_button200
+ // form code start
+ this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
+ console.log(data);
+ const jsonArray = data.map((str) => JSON.parse(str));
+ this.additionalFieldsFromBackend = jsonArray;
+ this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Basicp1_formCode");
+ console.log(this.checkFormCode);
+ console.log(this.additionalFieldsFromBackend);
+ if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
+ this.additionalFieldsFromBackend.forEach(field => {
+ if (field.formCode === this.formcode) {
+ if (!this.entryForm.contains(field.extValue)) {
+ // Add the control only if it doesn't exist in the form
+ this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
+ }
+ }
+ });
+ }
+ });
+ console.log(this.entryForm.value);
+ // form code end
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }
+ ngOnDestroy(): void {
+ if (this.editInterval) {
+ clearInterval(this.editInterval);
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ error;
+ getData() {
+ this.mainService.getAll().subscribe((data) => {
+ console.log(data);
+ this.product = data;
+this.product = [...this.product].reverse(); if(this.product.length==0){
+ this.error="No Data Available"
+ }
+ },(error) => {
+ console.log(error);
+ if(error){
+ this.error="Server Error";
+ }
+ });
+ }
+ onEdit(row) {
+ this.rowSelected = row;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ this.modalEdit = true;
+ }
+ onDelete(row) {
+ this.rowSelected = row;
+ this.modaldelete=true;
+ }
+ delete(id)
+ {
+ this.modaldelete = false;
+ console.log("in delete "+id);
+ this.mainService.delete(id).subscribe(
+ (data) => {
+ console.log(data);
+ this.ngOnInit();
+ if (data) { this.toastr.success('Deleted successfully'); }
+ });
+ }
+ onUpdate(id) {
+ this.modalEdit = false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ //console.log("in update");
+ console.log("id " + id);
+ console.log(this.rowSelected);
+ //console.log("out update");
+ this.mainService.update(id, this.rowSelected).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("update Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Updated");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Updated");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+onCreate() {
+ this.modalAdd=false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ this.mainService.create(this.entryForm.value).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Added Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("Added Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Added");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Added");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+ goToAdd(row) {
+this.modalAdd = true; this.submitted = false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }
+ submitted = false;
+onSubmit() {
+ console.log(this.entryForm.value);
+ this.submitted = true;
+ if (this.entryForm.invalid) {
+ return;
+ }this.onCreate();
+
+}
+
+
+
+
+
+
+
+
+isValidPhone_number(phone: string): boolean {
+ const phonePattern = /^(\+[1-9][0-9]{0,2})?[1-9][0-9]{9}$/;
+ return phonePattern.test(phone);
+}
+
+isValidPhone_number2(phone: string): boolean {
+ const phonePattern = /^(\+[1-9][0-9]{0,2})?[1-9][0-9]{9}$/;
+ return phonePattern.test(phone);
+}
+
+rsModalparagraph_field = false;
+ goToReplaceStringparagraph_field (row){
+ this.rowSelected = row; this.rsModalparagraph_field =true; }
+
+rsModalparagraph_field2 = false;
+ goToReplaceStringparagraph_field2 (row){
+ this.rowSelected = row; this.rsModalparagraph_field2 =true; }
+
+newpHidepassword_field: boolean = true;
+ newIconpassword_field: string = "eye";
+newShapeChangerpassword_field() {
+this.newpHidepassword_field = !this.newpHidepassword_field;
+ if(this.newpHidepassword_field){
+this.newIconpassword_field = 'eye' } else { this.newIconpassword_field = 'eye-hide' }
+}
+
+ newaddpHidepassword_field: boolean = true;
+ newaddIconpassword_field: string = "eye";
+newaddChangerpassword_field() { this.newaddpHidepassword_field = !this.newaddpHidepassword_field;
+ if(this.newaddpHidepassword_field){ this.newaddIconpassword_field = 'eye' } else {
+ this.newaddIconpassword_field = 'eye-hide' } }
+
+rsModaltextarea = false;
+goToReplaceStringtextarea(row){
+this.rowSelected = row; this.rsModaltextarea =true; }
+
+rsModaltextarea_field = false;
+goToReplaceStringtextarea_field(row){
+this.rowSelected = row; this.rsModaltextarea_field =true; }
+
+rsModaltextarea_field2 = false;
+goToReplaceStringtextarea_field2(row){
+this.rowSelected = row; this.rsModaltextarea_field2 =true; }
+
+// updateaction
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+export function Confirmedpassword_fieldValidator(controlName: string, matchingControlName: string){
+ return (formGroup: FormGroup) => {
+ const control = formGroup.controls[controlName];
+ const matchingControl = formGroup.controls[matchingControlName];
+ if (matchingControl.errors && !matchingControl.errors.confirmedpassword_fieldValidator) {
+ return;
+ }
+ if (control.value !== matchingControl.value) {
+ matchingControl.setErrors({ confirmedpassword_fieldValidator: true });
+ } else {
+ matchingControl.setErrors(null);
+ }
+ }
+}
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp1/Basicp1.service.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp1/Basicp1.service.ts
new file mode 100644
index 0000000..4258bf3
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp1/Basicp1.service.ts
@@ -0,0 +1,57 @@
+import { Injectable } from '@angular/core';
+import { Observable } from "rxjs";
+import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
+import { ApiRequestService } from "src/app/services/api/api-request.service";
+import { environment } from 'src/environments/environment';
+@Injectable({
+ providedIn: 'root'
+})
+export class Basicp1service{
+ private baseURL = "Basicp1/Basicp1" ; constructor(
+ private http: HttpClient,
+ private apiRequest: ApiRequestService,
+ ) { }
+ getAll(page?: number, size?: number): Observable {
+ return this.apiRequest.get(this.baseURL);
+ }
+ getById(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.get(_http);
+ }
+ create(data: any): Observable {
+ return this.apiRequest.post(this.baseURL, data);
+ }
+ update(id: number, data: any): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.put(_http, data);
+ }
+ delete(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.delete(_http);
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+// updateaction
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp1/Basicp1_cardvariable.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp1/Basicp1_cardvariable.ts
new file mode 100644
index 0000000..69dfa6e
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp1/Basicp1_cardvariable.ts
@@ -0,0 +1,4 @@
+export const Basicp1cardvariable = {
+ "cardButton": false,
+ "cardmodeldata": ``
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp2/Basicp2.component.html b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp2/Basicp2.component.html
new file mode 100644
index 0000000..9fdc3e8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp2/Basicp2.component.html
@@ -0,0 +1,560 @@
+
+ - Basicp2
+
+
+
+
+
Basicp2
+
+
+
+
+
+
+
+
+
+ Loading ...
+
+ {{error}}
+
+
+ about
+
+
+
+ Textarea2
+
+
+
+ Date Field
+
+
+
+ Date Field2
+
+
+
+ Datetime Field
+
+
+
+ Datetime Field2
+
+
+
+ Email Field
+
+
+
+ Email Field2
+
+
+
+
+
+
+
+ Action
+
+
+
+
+
+
+
+
+
+
+
+
+
+{{user.date_field }}
+
+
+{{user.date_field2 }}
+
+
+{{user.datetime_field }}
+
+
+{{user.datetime_field2 }}
+
+
+{{user.email_field }}
+
+
+{{user.email_field2 }}
+
+
+
+
+
+
+
+
+
+ Who Column
+ Account ID: {{user.accountId}}
+ Created At: {{user.createdAt| date}}
+ Created By: {{user.createdBy}}
+ Updated At: {{user.updatedAt | date}}
+ Updated By: {{user.updatedBy}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Users per page
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
+ of {{pagination.totalItems}} users
+
+
+
+
+
+
+
+
+
+ Data could be found. Loading..
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] }}
+ {{afterText(item.fieldtext)}}
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] | date}}
+ {{afterText(item.fieldtext)}}
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ]}}
+ {{afterText(item.fieldtext)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Update Basicp2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{rowSelected.id}}
+
+
+
+
+
+
+
Are You Sure Want to delete?
+ {{rowSelected.id}}
+
+
+
+
+
+ Add Basicp2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form Extension
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp2/Basicp2.component.scss b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp2/Basicp2.component.scss
new file mode 100644
index 0000000..12f7fc8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp2/Basicp2.component.scss
@@ -0,0 +1,85 @@
+//@import "../../../../assets/scss/var";
+.s-info-bar {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ button {
+ outline: none;
+ }
+}
+.delete,.heading{
+ text-align: center;
+ color: red;
+}
+.entry-pg {
+ width: 750px;
+}
+
+.button1::after {
+ content: none;
+}
+.button1:hover::after {
+ content: "ADD ROWS";
+}
+
+.section {
+ background-color: #dddddd;
+ height: 40px;
+}
+
+.section p {
+ //color: white;
+ padding: 10px;
+ font-size: 18px;
+}
+
+.clr-input {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ padding: 0.75rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.clr-file {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ //padding: 0.6rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.center {
+ text-align: center;
+}
+select{
+ width: 100%;
+ margin-top: 3px;
+ padding: 5px 5px;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+input[type=text],[type=date],[type=number],textarea {
+ width: 100%;
+ padding: 15px 15px;
+ background-color:rgb(255, 255, 255);
+ // margin: 8px 0;
+ display: inline-block;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ box-sizing: border-box;
+}
+.error_mess {
+ color: red;
+}
+.universal-section-header {
+ margin: 24px 0 10px 0;
+ font-weight: 600;
+ color: #1a237e;
+ letter-spacing: 0.5px;
+ font-size: 1.25rem;
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp2/Basicp2.component.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp2/Basicp2.component.ts
new file mode 100644
index 0000000..bb0c699
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp2/Basicp2.component.ts
@@ -0,0 +1,425 @@
+import { Component, OnInit } from '@angular/core';
+import { ToastrService } from 'ngx-toastr';
+import { AlertService } from 'src/app/services/alert.service';
+import { Basicp2service} from './Basicp2.service';
+import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
+import { ExtensionService } from 'src/app/services/fnd/extension.service';
+import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
+import { Basicp2cardvariable } from './Basicp2_cardvariable';
+import { UserInfoService } from 'src/app/services/user-info.service';
+declare var JsBarcode: any;
+@Component({
+ selector: 'app-Basicp2',
+ templateUrl: './Basicp2.component.html',
+ styleUrls: ['./Basicp2.component.scss']
+})
+export class Basicp2Component implements OnInit {
+ cardButton = Basicp2cardvariable.cardButton;
+ cardmodeldata = Basicp2cardvariable.cardmodeldata;
+ public dashboardArray: DashboardContentModel2[];
+ isCardview = Basicp2cardvariable.cardButton;
+ cardmodal; changeView(){
+ this.isCardview = !this.isCardview;
+ }
+ beforeText(fieldtext: string): string { // Extract the text before the first '<'
+ const index = fieldtext.indexOf('<');
+ return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
+ }
+ afterText(fieldtext: string): string { // Extract the text after the last '>'
+ const index = fieldtext.lastIndexOf('>');
+ return index !== -1 ? fieldtext.substring(index + 1) : '';
+ }
+ transform(fieldtext: string): string {
+ const match = fieldtext.match(/<([^>]*)>/);
+ return match ? match[1] : ''; // Extract the text between '<' and '>'
+ }
+ userrole;
+ rowSelected :any= {};
+ modaldelete=false;
+ modalEdit=false;
+ modalAdd= false;
+ public entryForm: FormGroup;
+ loading = false;
+ product;
+ modalOpenedforNewLine = false;
+ newLine:any;
+ additionalFieldsFromBackend: any[] = [];
+ formcode = 'Basicp2_formCode'
+tableName = 'Basicp2'; checkFormCode; selected: any[] = []; constructor(
+ private extensionService: ExtensionService,
+private userInfoService:UserInfoService,
+ private mainService:Basicp2service,
+ private alertService: AlertService,
+ private toastr: ToastrService,
+ private _fb: FormBuilder,
+ ) { }
+ private editInterval: any;
+// component button
+ ngOnInit(): void {
+ if(this.cardmodeldata !== ''){
+ this.cardmodal = JSON.parse(this.cardmodeldata);
+ this.dashboardArray = this.cardmodal.dashboard.slice();
+ console.log(this.dashboardArray)
+ }
+ this.userrole=this.userInfoService.getRoles();
+ this.getData();
+ this.entryForm = this._fb.group({
+about : [null],
+
+textarea2 : [null],
+
+date_field : [null],
+
+date_field2 : [null],
+
+datetime_field : [null],
+
+datetime_field2 : [null],
+
+email_field : [null],
+
+email_field2 : [null],
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }); // component_button200
+ // form code start
+ this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
+ console.log(data);
+ const jsonArray = data.map((str) => JSON.parse(str));
+ this.additionalFieldsFromBackend = jsonArray;
+ this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Basicp2_formCode");
+ console.log(this.checkFormCode);
+ console.log(this.additionalFieldsFromBackend);
+ if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
+ this.additionalFieldsFromBackend.forEach(field => {
+ if (field.formCode === this.formcode) {
+ if (!this.entryForm.contains(field.extValue)) {
+ // Add the control only if it doesn't exist in the form
+ this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
+ }
+ }
+ });
+ }
+ });
+ console.log(this.entryForm.value);
+ // form code end
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }
+ ngOnDestroy(): void {
+ if (this.editInterval) {
+ clearInterval(this.editInterval);
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ error;
+ getData() {
+ this.mainService.getAll().subscribe((data) => {
+ console.log(data);
+ this.product = data;
+this.product = [...this.product].reverse(); if(this.product.length==0){
+ this.error="No Data Available"
+ }
+ },(error) => {
+ console.log(error);
+ if(error){
+ this.error="Server Error";
+ }
+ });
+ }
+ onEdit(row) {
+ this.rowSelected = row;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ this.modalEdit = true;
+ }
+ onDelete(row) {
+ this.rowSelected = row;
+ this.modaldelete=true;
+ }
+ delete(id)
+ {
+ this.modaldelete = false;
+ console.log("in delete "+id);
+ this.mainService.delete(id).subscribe(
+ (data) => {
+ console.log(data);
+ this.ngOnInit();
+ if (data) { this.toastr.success('Deleted successfully'); }
+ });
+ }
+ onUpdate(id) {
+ this.modalEdit = false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ //console.log("in update");
+ console.log("id " + id);
+ console.log(this.rowSelected);
+ //console.log("out update");
+ this.mainService.update(id, this.rowSelected).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("update Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Updated");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Updated");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+onCreate() {
+ this.modalAdd=false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ this.mainService.create(this.entryForm.value).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Added Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("Added Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Added");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Added");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+ goToAdd(row) {
+this.modalAdd = true; this.submitted = false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }
+ submitted = false;
+onSubmit() {
+ console.log(this.entryForm.value);
+ this.submitted = true;
+ if (this.entryForm.invalid) {
+ return;
+ }this.onCreate();
+
+}
+rsModalabout = false;
+goToReplaceStringabout(row){
+this.rowSelected = row; this.rsModalabout =true; }
+
+rsModaltextarea2 = false;
+goToReplaceStringtextarea2(row){
+this.rowSelected = row; this.rsModaltextarea2 =true; }
+
+
+
+
+
+
+
+
+
+isValidemail_field(email: string): boolean {
+ const emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
+ return emailPattern.test(email); }
+
+isValidemail_field2(email: string): boolean {
+ const emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
+ return emailPattern.test(email); }
+
+
+
+// updateaction
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp2/Basicp2.service.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp2/Basicp2.service.ts
new file mode 100644
index 0000000..dfd7233
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp2/Basicp2.service.ts
@@ -0,0 +1,51 @@
+import { Injectable } from '@angular/core';
+import { Observable } from "rxjs";
+import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
+import { ApiRequestService } from "src/app/services/api/api-request.service";
+import { environment } from 'src/environments/environment';
+@Injectable({
+ providedIn: 'root'
+})
+export class Basicp2service{
+ private baseURL = "Basicp2/Basicp2" ; constructor(
+ private http: HttpClient,
+ private apiRequest: ApiRequestService,
+ ) { }
+ getAll(page?: number, size?: number): Observable {
+ return this.apiRequest.get(this.baseURL);
+ }
+ getById(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.get(_http);
+ }
+ create(data: any): Observable {
+ return this.apiRequest.post(this.baseURL, data);
+ }
+ update(id: number, data: any): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.put(_http, data);
+ }
+ delete(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.delete(_http);
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+// updateaction
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp2/Basicp2_cardvariable.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp2/Basicp2_cardvariable.ts
new file mode 100644
index 0000000..48d7ae9
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp2/Basicp2_cardvariable.ts
@@ -0,0 +1,4 @@
+export const Basicp2cardvariable = {
+ "cardButton": false,
+ "cardmodeldata": ``
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp3/Basicp3.component.html b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp3/Basicp3.component.html
new file mode 100644
index 0000000..5d03ef2
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp3/Basicp3.component.html
@@ -0,0 +1,627 @@
+
+ - Basicp3
+
+
+
+
+
Basicp3
+
+
+
+
+
+
+
+
+
+ Loading ...
+
+ {{error}}
+
+
+ Toggle Switch
+
+
+
+ Toggle Switch2
+
+
+
+ Url Field
+
+
+
+ Url Field2
+
+
+
+ Decimal Field
+
+
+
+ Decimal Field2
+
+
+
+ Percentage Field
+
+
+
+ Percentage Field2
+
+
+
+ documentsequenc
+
+
+
+ recaptcha
+
+
+
+ recaptcha2
+
+
+
+
+
+ Action
+
+
+
+
+
+{{user.toggle_switch }}
+
+
+{{user.toggle_switch2 }}
+
+
+{{user.url_field}}
+
+
+{{user.url_field2}}
+
+
+{{user.decimal_field }}
+
+
+{{user.decimal_field2 }}
+
+
+{{user.percentage_field }}
+
+
+{{user.percentage_field2 }}
+
+
+{{user.documentsequenc }}
+
+
+{{user.recaptcha }}
+
+
+{{user.recaptcha2 }}
+
+
+
+
+
+
+
+ Who Column
+ Account ID: {{user.accountId}}
+ Created At: {{user.createdAt| date}}
+ Created By: {{user.createdBy}}
+ Updated At: {{user.updatedAt | date}}
+ Updated By: {{user.updatedBy}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Users per page
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
+ of {{pagination.totalItems}} users
+
+
+
+
+
+
+
+
+
+ Data could be found. Loading..
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] }}
+ {{afterText(item.fieldtext)}}
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] | date}}
+ {{afterText(item.fieldtext)}}
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ]}}
+ {{afterText(item.fieldtext)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Update Basicp3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{rowSelected.id}}
+
+
+
+
+
+
+
Are You Sure Want to delete?
+ {{rowSelected.id}}
+
+
+
+
+
+ Add Basicp3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form Extension
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp3/Basicp3.component.scss b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp3/Basicp3.component.scss
new file mode 100644
index 0000000..12f7fc8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp3/Basicp3.component.scss
@@ -0,0 +1,85 @@
+//@import "../../../../assets/scss/var";
+.s-info-bar {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ button {
+ outline: none;
+ }
+}
+.delete,.heading{
+ text-align: center;
+ color: red;
+}
+.entry-pg {
+ width: 750px;
+}
+
+.button1::after {
+ content: none;
+}
+.button1:hover::after {
+ content: "ADD ROWS";
+}
+
+.section {
+ background-color: #dddddd;
+ height: 40px;
+}
+
+.section p {
+ //color: white;
+ padding: 10px;
+ font-size: 18px;
+}
+
+.clr-input {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ padding: 0.75rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.clr-file {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ //padding: 0.6rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.center {
+ text-align: center;
+}
+select{
+ width: 100%;
+ margin-top: 3px;
+ padding: 5px 5px;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+input[type=text],[type=date],[type=number],textarea {
+ width: 100%;
+ padding: 15px 15px;
+ background-color:rgb(255, 255, 255);
+ // margin: 8px 0;
+ display: inline-block;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ box-sizing: border-box;
+}
+.error_mess {
+ color: red;
+}
+.universal-section-header {
+ margin: 24px 0 10px 0;
+ font-weight: 600;
+ color: #1a237e;
+ letter-spacing: 0.5px;
+ font-size: 1.25rem;
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp3/Basicp3.component.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp3/Basicp3.component.ts
new file mode 100644
index 0000000..41b9c71
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp3/Basicp3.component.ts
@@ -0,0 +1,517 @@
+import { Component, OnInit } from '@angular/core';
+import { ToastrService } from 'ngx-toastr';
+import { AlertService } from 'src/app/services/alert.service';
+import { Basicp3service} from './Basicp3.service';
+import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
+import { ExtensionService } from 'src/app/services/fnd/extension.service';
+import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
+import { Basicp3cardvariable } from './Basicp3_cardvariable';
+import { UserInfoService } from 'src/app/services/user-info.service';
+declare var JsBarcode: any;
+@Component({
+ selector: 'app-Basicp3',
+ templateUrl: './Basicp3.component.html',
+ styleUrls: ['./Basicp3.component.scss']
+})
+export class Basicp3Component implements OnInit {
+ cardButton = Basicp3cardvariable.cardButton;
+ cardmodeldata = Basicp3cardvariable.cardmodeldata;
+ public dashboardArray: DashboardContentModel2[];
+ isCardview = Basicp3cardvariable.cardButton;
+ cardmodal; changeView(){
+ this.isCardview = !this.isCardview;
+ }
+ beforeText(fieldtext: string): string { // Extract the text before the first '<'
+ const index = fieldtext.indexOf('<');
+ return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
+ }
+ afterText(fieldtext: string): string { // Extract the text after the last '>'
+ const index = fieldtext.lastIndexOf('>');
+ return index !== -1 ? fieldtext.substring(index + 1) : '';
+ }
+ transform(fieldtext: string): string {
+ const match = fieldtext.match(/<([^>]*)>/);
+ return match ? match[1] : ''; // Extract the text between '<' and '>'
+ }
+ userrole;
+ rowSelected :any= {};
+ modaldelete=false;
+ modalEdit=false;
+ modalAdd= false;
+ public entryForm: FormGroup;
+ loading = false;
+ product;
+ modalOpenedforNewLine = false;
+ newLine:any;
+ additionalFieldsFromBackend: any[] = [];
+ formcode = 'Basicp3_formCode'
+tableName = 'Basicp3'; checkFormCode; selected: any[] = []; constructor(
+ private extensionService: ExtensionService,
+private userInfoService:UserInfoService,
+ private mainService:Basicp3service,
+ private alertService: AlertService,
+ private toastr: ToastrService,
+ private _fb: FormBuilder,
+ ) { }
+ private editInterval: any;
+// component button
+ ngOnInit(): void {
+ if(this.cardmodeldata !== ''){
+ this.cardmodal = JSON.parse(this.cardmodeldata);
+ this.dashboardArray = this.cardmodal.dashboard.slice();
+ console.log(this.dashboardArray)
+ }
+ this.userrole=this.userInfoService.getRoles();
+ this.getData();
+ this.entryForm = this._fb.group({
+toggle_switch : [true],
+
+toggle_switch2 : [true],
+
+url_field : [null],
+
+url_field2 : [null],
+
+decimal_field : [null,[Validators.required]],
+
+decimal_field2 : [null,[Validators.required]],
+
+percentage_field : [null,[Validators.required]],
+
+percentage_field2 : [null,[Validators.required]],
+
+documentsequenc : [null],
+
+recaptcha : ['', [Validators.required,this.checkrecaptcha.bind(this)]],
+
+recaptcha2 : ['', [Validators.required,this.checkrecaptcha2.bind(this)]],
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }); // component_button200
+ // form code start
+ this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
+ console.log(data);
+ const jsonArray = data.map((str) => JSON.parse(str));
+ this.additionalFieldsFromBackend = jsonArray;
+ this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Basicp3_formCode");
+ console.log(this.checkFormCode);
+ console.log(this.additionalFieldsFromBackend);
+ if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
+ this.additionalFieldsFromBackend.forEach(field => {
+ if (field.formCode === this.formcode) {
+ if (!this.entryForm.contains(field.extValue)) {
+ // Add the control only if it doesn't exist in the form
+ this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
+ }
+ }
+ });
+ }
+ });
+ console.log(this.entryForm.value);
+ // form code end
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+this.generaterecaptcha()
+
+this.generaterecaptcha2()
+
+
+ }
+ ngOnDestroy(): void {
+ if (this.editInterval) {
+ clearInterval(this.editInterval);
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ error;
+ getData() {
+ this.mainService.getAll().subscribe((data) => {
+ console.log(data);
+ this.product = data;
+this.product = [...this.product].reverse(); if(this.product.length==0){
+ this.error="No Data Available"
+ }
+ },(error) => {
+ console.log(error);
+ if(error){
+ this.error="Server Error";
+ }
+ });
+ }
+ onEdit(row) {
+ this.rowSelected = row;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ this.modalEdit = true;
+ }
+ onDelete(row) {
+ this.rowSelected = row;
+ this.modaldelete=true;
+ }
+ delete(id)
+ {
+ this.modaldelete = false;
+ console.log("in delete "+id);
+ this.mainService.delete(id).subscribe(
+ (data) => {
+ console.log(data);
+ this.ngOnInit();
+ if (data) { this.toastr.success('Deleted successfully'); }
+ });
+ }
+ onUpdate(id) {
+ this.modalEdit = false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ //console.log("in update");
+ console.log("id " + id);
+ console.log(this.rowSelected);
+ //console.log("out update");
+ this.mainService.update(id, this.rowSelected).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("update Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Updated");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Updated");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+onCreate() {
+ this.modalAdd=false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ this.mainService.create(this.entryForm.value).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Added Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("Added Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Added");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Added");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+ goToAdd(row) {
+this.modalAdd = true; this.submitted = false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }
+ submitted = false;
+onSubmit() {
+ console.log(this.entryForm.value);
+ this.submitted = true;
+ if (this.entryForm.invalid) {
+ return;
+ }this.onCreate();
+
+}
+
+
+
+
+isValidurl_field(url: string): boolean {
+ return /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/.test(url); }
+ goTourl_fieldUrl(val){ window.open(val) }
+
+isValidurl_field2(url: string): boolean {
+ return /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/.test(url); }
+ goTourl_field2Url(val){ window.open(val) }
+
+
+
+
+
+
+
+
+
+
+
+recaptchaCode = '';
+generaterecaptcha (): void {
+ const possibleCharacters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
+ const codeLength = 6; // Change to desired length
+
+ let recaptcha= '';
+ for (let i = 0; i < codeLength; i++) {
+ const randomIndex = Math.floor(Math.random() * possibleCharacters.length);
+ recaptcha += possibleCharacters.charAt(randomIndex);
+ }
+ this.recaptchaCode = recaptcha;
+}
+
+checkrecaptcha(control: AbstractControl): ValidationErrors | null {
+ if (control.value !== this.recaptchaCode) {
+ return { recaptchaMismatch: true };
+ }
+ return null;
+}
+
+recaptchaMismatch = false;
+
+checkrecaptchaEdit(): void {
+ if (this.rowSelected.recaptcha !== this. recaptchaCode) {
+ this. recaptchaMismatch = true; } else { this.recaptchaMismatch = false; } }
+
+recaptcha2Code = '';
+generaterecaptcha2 (): void {
+ const possibleCharacters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
+ const codeLength = 6; // Change to desired length
+
+ let recaptcha2= '';
+ for (let i = 0; i < codeLength; i++) {
+ const randomIndex = Math.floor(Math.random() * possibleCharacters.length);
+ recaptcha2 += possibleCharacters.charAt(randomIndex);
+ }
+ this.recaptcha2Code = recaptcha2;
+}
+
+checkrecaptcha2(control: AbstractControl): ValidationErrors | null {
+ if (control.value !== this.recaptcha2Code) {
+ return { recaptcha2Mismatch: true };
+ }
+ return null;
+}
+
+recaptcha2Mismatch = false;
+
+checkrecaptcha2Edit(): void {
+ if (this.rowSelected.recaptcha2 !== this. recaptcha2Code) {
+ this. recaptcha2Mismatch = true; } else { this.recaptcha2Mismatch = false; } }
+
+// updateaction
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp3/Basicp3.service.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp3/Basicp3.service.ts
new file mode 100644
index 0000000..d02c10d
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp3/Basicp3.service.ts
@@ -0,0 +1,55 @@
+import { Injectable } from '@angular/core';
+import { Observable } from "rxjs";
+import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
+import { ApiRequestService } from "src/app/services/api/api-request.service";
+import { environment } from 'src/environments/environment';
+@Injectable({
+ providedIn: 'root'
+})
+export class Basicp3service{
+ private baseURL = "Basicp3/Basicp3" ; constructor(
+ private http: HttpClient,
+ private apiRequest: ApiRequestService,
+ ) { }
+ getAll(page?: number, size?: number): Observable {
+ return this.apiRequest.get(this.baseURL);
+ }
+ getById(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.get(_http);
+ }
+ create(data: any): Observable {
+ return this.apiRequest.post(this.baseURL, data);
+ }
+ update(id: number, data: any): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.put(_http, data);
+ }
+ delete(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.delete(_http);
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+// updateaction
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp3/Basicp3_cardvariable.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp3/Basicp3_cardvariable.ts
new file mode 100644
index 0000000..ff91595
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Basicp3/Basicp3_cardvariable.ts
@@ -0,0 +1,4 @@
+export const Basicp3cardvariable = {
+ "cardButton": false,
+ "cardmodeldata": ``
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Dv2/Dv2.component.html b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Dv2/Dv2.component.html
new file mode 100644
index 0000000..96f9833
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Dv2/Dv2.component.html
@@ -0,0 +1,688 @@
+
+ - Dv2
+
+
+
+
+
Dv2
+
+
+
+
+
+
+
+
+
+ Loading ...
+
+ {{error}}
+
+
+
+
+ test3
+
+
+
+
+ name
+
+
+
+
+ last_name
+
+
+
+
+
+
+
+
+ test
+
+
+
+
+
+
+ Currency
+
+
+
+ Currency2
+
+
+
+ QRCode Field
+
+
+
+ QRCode Field2
+
+
+
+ BarCode Field
+
+
+
+ BarCode Field2
+
+
+
+
+
+
+
+ Action
+
+
+
+
+
+
+
+{{user. test3}}
+
+
+
+{{user. name}}
+
+
+
+{{user. last_name}}
+
+
+
+
+
+
+
+{{user. test}}
+
+
+
+
+
+{{user.currency }}
+
+
+{{user.currency2 }}
+
+
+{{user.qrcode_field }}
+
+
+{{user.qrcode_field2 }}
+
+
+{{user.barcode_field }}
+
+
+{{user.barcode_field2 }}
+
+
+
+
+
+
+
+
+
+ Who Column
+ Account ID: {{user.accountId}}
+ Created At: {{user.createdAt| date}}
+ Created By: {{user.createdBy}}
+ Updated At: {{user.updatedAt | date}}
+ Updated By: {{user.updatedBy}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Users per page
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
+ of {{pagination.totalItems}} users
+
+
+
+
+
+
+
+
+
+ Data could be found. Loading..
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] }}
+ {{afterText(item.fieldtext)}}
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] | date}}
+ {{afterText(item.fieldtext)}}
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ]}}
+ {{afterText(item.fieldtext)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Update Dv2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{rowSelected.id}}
+
+
+
+
+
+
+
Are You Sure Want to delete?
+ {{rowSelected.id}}
+
+
+
+
+
+ Add Dv2
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form Extension
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Dv2/Dv2.component.scss b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Dv2/Dv2.component.scss
new file mode 100644
index 0000000..12f7fc8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Dv2/Dv2.component.scss
@@ -0,0 +1,85 @@
+//@import "../../../../assets/scss/var";
+.s-info-bar {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ button {
+ outline: none;
+ }
+}
+.delete,.heading{
+ text-align: center;
+ color: red;
+}
+.entry-pg {
+ width: 750px;
+}
+
+.button1::after {
+ content: none;
+}
+.button1:hover::after {
+ content: "ADD ROWS";
+}
+
+.section {
+ background-color: #dddddd;
+ height: 40px;
+}
+
+.section p {
+ //color: white;
+ padding: 10px;
+ font-size: 18px;
+}
+
+.clr-input {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ padding: 0.75rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.clr-file {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ //padding: 0.6rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.center {
+ text-align: center;
+}
+select{
+ width: 100%;
+ margin-top: 3px;
+ padding: 5px 5px;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+input[type=text],[type=date],[type=number],textarea {
+ width: 100%;
+ padding: 15px 15px;
+ background-color:rgb(255, 255, 255);
+ // margin: 8px 0;
+ display: inline-block;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ box-sizing: border-box;
+}
+.error_mess {
+ color: red;
+}
+.universal-section-header {
+ margin: 24px 0 10px 0;
+ font-weight: 600;
+ color: #1a237e;
+ letter-spacing: 0.5px;
+ font-size: 1.25rem;
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Dv2/Dv2.component.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Dv2/Dv2.component.ts
new file mode 100644
index 0000000..995f9a3
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Dv2/Dv2.component.ts
@@ -0,0 +1,471 @@
+import { Component, OnInit } from '@angular/core';
+import { ToastrService } from 'ngx-toastr';
+import { AlertService } from 'src/app/services/alert.service';
+import { Dv2service} from './Dv2.service';
+import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
+import { ExtensionService } from 'src/app/services/fnd/extension.service';
+import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
+import { Dv2cardvariable } from './Dv2_cardvariable';
+import { UserInfoService } from 'src/app/services/user-info.service';
+declare var JsBarcode: any;
+@Component({
+ selector: 'app-Dv2',
+ templateUrl: './Dv2.component.html',
+ styleUrls: ['./Dv2.component.scss']
+})
+export class Dv2Component implements OnInit {
+ cardButton = Dv2cardvariable.cardButton;
+ cardmodeldata = Dv2cardvariable.cardmodeldata;
+ public dashboardArray: DashboardContentModel2[];
+ isCardview = Dv2cardvariable.cardButton;
+ cardmodal; changeView(){
+ this.isCardview = !this.isCardview;
+ }
+ beforeText(fieldtext: string): string { // Extract the text before the first '<'
+ const index = fieldtext.indexOf('<');
+ return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
+ }
+ afterText(fieldtext: string): string { // Extract the text after the last '>'
+ const index = fieldtext.lastIndexOf('>');
+ return index !== -1 ? fieldtext.substring(index + 1) : '';
+ }
+ transform(fieldtext: string): string {
+ const match = fieldtext.match(/<([^>]*)>/);
+ return match ? match[1] : ''; // Extract the text between '<' and '>'
+ }
+ userrole;
+ rowSelected :any= {};
+ modaldelete=false;
+ modalEdit=false;
+ modalAdd= false;
+ public entryForm: FormGroup;
+ loading = false;
+ product;
+ modalOpenedforNewLine = false;
+ newLine:any;
+ additionalFieldsFromBackend: any[] = [];
+ formcode = 'Dv2_formCode'
+tableName = 'Dv2'; checkFormCode; selected: any[] = []; constructor(
+ private extensionService: ExtensionService,
+private userInfoService:UserInfoService,
+ private mainService:Dv2service,
+ private alertService: AlertService,
+ private toastr: ToastrService,
+ private _fb: FormBuilder,
+ ) { }
+ private editInterval: any;
+// component button
+ ngOnInit(): void {
+ if(this.cardmodeldata !== ''){
+ this.cardmodal = JSON.parse(this.cardmodeldata);
+ this.dashboardArray = this.cardmodal.dashboard.slice();
+ console.log(this.dashboardArray)
+ }
+ this.userrole=this.userInfoService.getRoles();
+ this.getData();
+ this.entryForm = this._fb.group({
+
+
+test3:[null],
+
+
+
+name:[null],
+
+
+
+last_name:[null],
+
+
+
+
+
+test:[null],
+
+
+
+currency : [null, { updateOn: 'blur' }],
+
+currency2 : [null, { updateOn: 'blur' }],
+
+qrcode_field : [null],
+
+qrcode_field2 : [null],
+
+barcode_field : [null],
+
+barcode_field2 : [null],
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }); // component_button200
+ // form code start
+ this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
+ console.log(data);
+ const jsonArray = data.map((str) => JSON.parse(str));
+ this.additionalFieldsFromBackend = jsonArray;
+ this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Dv2_formCode");
+ console.log(this.checkFormCode);
+ console.log(this.additionalFieldsFromBackend);
+ if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
+ this.additionalFieldsFromBackend.forEach(field => {
+ if (field.formCode === this.formcode) {
+ if (!this.entryForm.contains(field.extValue)) {
+ // Add the control only if it doesn't exist in the form
+ this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
+ }
+ }
+ });
+ }
+ });
+ console.log(this.entryForm.value);
+ // form code end
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }
+ ngOnDestroy(): void {
+ if (this.editInterval) {
+ clearInterval(this.editInterval);
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ error;
+ getData() {
+ this.mainService.getAll().subscribe((data) => {
+ console.log(data);
+ this.product = data;
+this.product = [...this.product].reverse(); if(this.product.length==0){
+ this.error="No Data Available"
+ }
+ },(error) => {
+ console.log(error);
+ if(error){
+ this.error="Server Error";
+ }
+ });
+ }
+ onEdit(row) {
+ this.rowSelected = row;
+
+
+
+
+
+
+
+
+
+
+
+
+ // bar code field start
+ setTimeout(function(){
+ JsBarcode("#barcodebarcode_field", row?.barcode_field);
+ }, 500);
+ // bar code field start
+
+ // bar code field start
+ setTimeout(function(){
+ JsBarcode("#barcodebarcode_field2", row?.barcode_field2);
+ }, 500);
+ // bar code field start
+
+
+
+
+ this.modalEdit = true;
+ }
+ onDelete(row) {
+ this.rowSelected = row;
+ this.modaldelete=true;
+ }
+ delete(id)
+ {
+ this.modaldelete = false;
+ console.log("in delete "+id);
+ this.mainService.delete(id).subscribe(
+ (data) => {
+ console.log(data);
+ this.ngOnInit();
+ if (data) { this.toastr.success('Deleted successfully'); }
+ });
+ }
+ onUpdate(id) {
+ this.modalEdit = false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ //console.log("in update");
+ console.log("id " + id);
+ console.log(this.rowSelected);
+ //console.log("out update");
+ this.mainService.update(id, this.rowSelected).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("update Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Updated");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Updated");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+onCreate() {
+ this.modalAdd=false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ this.mainService.create(this.entryForm.value).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Added Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("Added Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Added");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Added");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+ goToAdd(row) {
+this.modalAdd = true; this.submitted = false;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ }
+ submitted = false;
+onSubmit() {
+ console.log(this.entryForm.value);
+ this.submitted = true;
+ if (this.entryForm.invalid) {
+ return;
+ }this.onCreate();
+
+}
+
+
+
+
+//currency field start
+ formatCurrencycurrency () {
+ // Format the currency with two decimal places
+ this.rowSelected.currency = Number(this.rowSelected.currency ).toFixed(2);
+ // Remove commas from the formatted currency
+ this.rowSelected.currency = this.rowSelected.currency?.replace(/,/g, ''); }
+ //currency field end
+
+//currency field start
+ formatCurrencycurrency2 () {
+ // Format the currency with two decimal places
+ this.rowSelected.currency2 = Number(this.rowSelected.currency2 ).toFixed(2);
+ // Remove commas from the formatted currency
+ this.rowSelected.currency2 = this.rowSelected.currency2?.replace(/,/g, ''); }
+ //currency field end
+
+
+
+
+
+//bar code field start
+ generateBarcodebarcode_field(value) {
+ const barcodeValue = value;
+ const barcodeElement = document.getElementById("barcodebarcode_field");
+ if (barcodeElement) { if (barcodeValue) {
+ JsBarcode(barcodeElement, barcodeValue, { format: "CODE128"
+ }); } else {
+ // Clear the barcode if the input is empty
+ barcodeElement.innerHTML = ''; } } }
+ // bar code field end
+
+//bar code field start
+ generateBarcodebarcode_field2(value) {
+ const barcodeValue = value;
+ const barcodeElement = document.getElementById("barcodebarcode_field2");
+ if (barcodeElement) { if (barcodeValue) {
+ JsBarcode(barcodeElement, barcodeValue, { format: "CODE128"
+ }); } else {
+ // Clear the barcode if the input is empty
+ barcodeElement.innerHTML = ''; } } }
+ // bar code field end
+
+
+
+// updateaction
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Dv2/Dv2.service.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Dv2/Dv2.service.ts
new file mode 100644
index 0000000..39b761c
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Dv2/Dv2.service.ts
@@ -0,0 +1,51 @@
+import { Injectable } from '@angular/core';
+import { Observable } from "rxjs";
+import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
+import { ApiRequestService } from "src/app/services/api/api-request.service";
+import { environment } from 'src/environments/environment';
+@Injectable({
+ providedIn: 'root'
+})
+export class Dv2service{
+ private baseURL = "Dv2/Dv2" ; constructor(
+ private http: HttpClient,
+ private apiRequest: ApiRequestService,
+ ) { }
+ getAll(page?: number, size?: number): Observable {
+ return this.apiRequest.get(this.baseURL);
+ }
+ getById(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.get(_http);
+ }
+ create(data: any): Observable {
+ return this.apiRequest.post(this.baseURL, data);
+ }
+ update(id: number, data: any): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.put(_http, data);
+ }
+ delete(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.delete(_http);
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+// updateaction
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Dv2/Dv2_cardvariable.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Dv2/Dv2_cardvariable.ts
new file mode 100644
index 0000000..d4c379f
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Dv2/Dv2_cardvariable.ts
@@ -0,0 +1,4 @@
+export const Dv2cardvariable = {
+ "cardButton": false,
+ "cardmodeldata": ``
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Support/Support.component.html b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Support/Support.component.html
new file mode 100644
index 0000000..3995fc0
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Support/Support.component.html
@@ -0,0 +1,349 @@
+
+ - Support
+
+
+
+
+
Support
+
+
+
+
+
+
+
+
+
+ Loading ...
+
+ {{error}}
+
+
+ Name
+
+
+
+ Description
+
+
+
+
+
+ Action
+
+
+
+
+
+{{user.name }}
+
+
+
+
+
+
+
+
+
+
+
+ Who Column
+ Account ID: {{user.accountId}}
+ Created At: {{user.createdAt| date}}
+ Created By: {{user.createdBy}}
+ Updated At: {{user.updatedAt | date}}
+ Updated By: {{user.updatedBy}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Users per page
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
+ of {{pagination.totalItems}} users
+
+
+
+
+
+
+
+
+
+ Data could be found. Loading..
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] }}
+ {{afterText(item.fieldtext)}}
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] | date}}
+ {{afterText(item.fieldtext)}}
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ]}}
+ {{afterText(item.fieldtext)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Update Support
+
+
+
+
+
+
+
{{rowSelected.id}}
+
+
+
+
+
+
+
Are You Sure Want to delete?
+ {{rowSelected.id}}
+
+
+
+
+
+ Add Support
+
+
+
+
+
+
+
+
+
+
+ Form Extension
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Support/Support.component.scss b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Support/Support.component.scss
new file mode 100644
index 0000000..12f7fc8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Support/Support.component.scss
@@ -0,0 +1,85 @@
+//@import "../../../../assets/scss/var";
+.s-info-bar {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ button {
+ outline: none;
+ }
+}
+.delete,.heading{
+ text-align: center;
+ color: red;
+}
+.entry-pg {
+ width: 750px;
+}
+
+.button1::after {
+ content: none;
+}
+.button1:hover::after {
+ content: "ADD ROWS";
+}
+
+.section {
+ background-color: #dddddd;
+ height: 40px;
+}
+
+.section p {
+ //color: white;
+ padding: 10px;
+ font-size: 18px;
+}
+
+.clr-input {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ padding: 0.75rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.clr-file {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ //padding: 0.6rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.center {
+ text-align: center;
+}
+select{
+ width: 100%;
+ margin-top: 3px;
+ padding: 5px 5px;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+input[type=text],[type=date],[type=number],textarea {
+ width: 100%;
+ padding: 15px 15px;
+ background-color:rgb(255, 255, 255);
+ // margin: 8px 0;
+ display: inline-block;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ box-sizing: border-box;
+}
+.error_mess {
+ color: red;
+}
+.universal-section-header {
+ margin: 24px 0 10px 0;
+ font-weight: 600;
+ color: #1a237e;
+ letter-spacing: 0.5px;
+ font-size: 1.25rem;
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Support/Support.component.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Support/Support.component.ts
new file mode 100644
index 0000000..9af1ee4
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Support/Support.component.ts
@@ -0,0 +1,251 @@
+import { Component, OnInit } from '@angular/core';
+import { ToastrService } from 'ngx-toastr';
+import { AlertService } from 'src/app/services/alert.service';
+import { Supportservice} from './Support.service';
+import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
+import { ExtensionService } from 'src/app/services/fnd/extension.service';
+import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
+import { Supportcardvariable } from './Support_cardvariable';
+import { UserInfoService } from 'src/app/services/user-info.service';
+declare var JsBarcode: any;
+@Component({
+ selector: 'app-Support',
+ templateUrl: './Support.component.html',
+ styleUrls: ['./Support.component.scss']
+})
+export class SupportComponent implements OnInit {
+ cardButton = Supportcardvariable.cardButton;
+ cardmodeldata = Supportcardvariable.cardmodeldata;
+ public dashboardArray: DashboardContentModel2[];
+ isCardview = Supportcardvariable.cardButton;
+ cardmodal; changeView(){
+ this.isCardview = !this.isCardview;
+ }
+ beforeText(fieldtext: string): string { // Extract the text before the first '<'
+ const index = fieldtext.indexOf('<');
+ return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
+ }
+ afterText(fieldtext: string): string { // Extract the text after the last '>'
+ const index = fieldtext.lastIndexOf('>');
+ return index !== -1 ? fieldtext.substring(index + 1) : '';
+ }
+ transform(fieldtext: string): string {
+ const match = fieldtext.match(/<([^>]*)>/);
+ return match ? match[1] : ''; // Extract the text between '<' and '>'
+ }
+ userrole;
+ rowSelected :any= {};
+ modaldelete=false;
+ modalEdit=false;
+ modalAdd= false;
+ public entryForm: FormGroup;
+ loading = false;
+ product;
+ modalOpenedforNewLine = false;
+ newLine:any;
+ additionalFieldsFromBackend: any[] = [];
+ formcode = 'Support_formCode'
+tableName = 'Support'; checkFormCode; selected: any[] = []; constructor(
+ private extensionService: ExtensionService,
+private userInfoService:UserInfoService,
+ private mainService:Supportservice,
+ private alertService: AlertService,
+ private toastr: ToastrService,
+ private _fb: FormBuilder,
+ ) { }
+ private editInterval: any;
+// component button
+ ngOnInit(): void {
+ if(this.cardmodeldata !== ''){
+ this.cardmodal = JSON.parse(this.cardmodeldata);
+ this.dashboardArray = this.cardmodal.dashboard.slice();
+ console.log(this.dashboardArray)
+ }
+ this.userrole=this.userInfoService.getRoles();
+ this.getData();
+ this.entryForm = this._fb.group({
+name : [null],
+
+description : [null],
+
+
+
+
+
+
+ }); // component_button200
+ // form code start
+ this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
+ console.log(data);
+ const jsonArray = data.map((str) => JSON.parse(str));
+ this.additionalFieldsFromBackend = jsonArray;
+ this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Support_formCode");
+ console.log(this.checkFormCode);
+ console.log(this.additionalFieldsFromBackend);
+ if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
+ this.additionalFieldsFromBackend.forEach(field => {
+ if (field.formCode === this.formcode) {
+ if (!this.entryForm.contains(field.extValue)) {
+ // Add the control only if it doesn't exist in the form
+ this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
+ }
+ }
+ });
+ }
+ });
+ console.log(this.entryForm.value);
+ // form code end
+
+
+
+
+
+ }
+ ngOnDestroy(): void {
+ if (this.editInterval) {
+ clearInterval(this.editInterval);
+ }
+ }
+
+
+
+ error;
+ getData() {
+ this.mainService.getAll().subscribe((data) => {
+ console.log(data);
+ this.product = data;
+this.product = [...this.product].reverse(); if(this.product.length==0){
+ this.error="No Data Available"
+ }
+ },(error) => {
+ console.log(error);
+ if(error){
+ this.error="Server Error";
+ }
+ });
+ }
+ onEdit(row) {
+ this.rowSelected = row;
+
+
+
+
+
+ this.modalEdit = true;
+ }
+ onDelete(row) {
+ this.rowSelected = row;
+ this.modaldelete=true;
+ }
+ delete(id)
+ {
+ this.modaldelete = false;
+ console.log("in delete "+id);
+ this.mainService.delete(id).subscribe(
+ (data) => {
+ console.log(data);
+ this.ngOnInit();
+ if (data) { this.toastr.success('Deleted successfully'); }
+ });
+ }
+ onUpdate(id) {
+ this.modalEdit = false;
+
+
+
+
+ //console.log("in update");
+ console.log("id " + id);
+ console.log(this.rowSelected);
+ //console.log("out update");
+ this.mainService.update(id, this.rowSelected).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("update Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Updated");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Updated");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+onCreate() {
+ this.modalAdd=false;
+
+
+
+
+ this.mainService.create(this.entryForm.value).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Added Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("Added Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Added");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Added");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+ goToAdd(row) {
+this.modalAdd = true; this.submitted = false;
+
+
+
+
+ }
+ submitted = false;
+onSubmit() {
+ console.log(this.entryForm.value);
+ this.submitted = true;
+ if (this.entryForm.invalid) {
+ return;
+ }this.onCreate();
+
+}
+
+
+rsModaldescription = false;
+goToReplaceStringdescription(row){
+this.rowSelected = row; this.rsModaldescription =true; }
+
+// updateaction
+}
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Support/Support.service.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Support/Support.service.ts
new file mode 100644
index 0000000..d3f45f1
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Support/Support.service.ts
@@ -0,0 +1,37 @@
+import { Injectable } from '@angular/core';
+import { Observable } from "rxjs";
+import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
+import { ApiRequestService } from "src/app/services/api/api-request.service";
+import { environment } from 'src/environments/environment';
+@Injectable({
+ providedIn: 'root'
+})
+export class Supportservice{
+ private baseURL = "Support/Support" ; constructor(
+ private http: HttpClient,
+ private apiRequest: ApiRequestService,
+ ) { }
+ getAll(page?: number, size?: number): Observable {
+ return this.apiRequest.get(this.baseURL);
+ }
+ getById(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.get(_http);
+ }
+ create(data: any): Observable {
+ return this.apiRequest.post(this.baseURL, data);
+ }
+ update(id: number, data: any): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.put(_http, data);
+ }
+ delete(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.delete(_http);
+ }
+
+
+
+
+// updateaction
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Support/Support_cardvariable.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Support/Support_cardvariable.ts
new file mode 100644
index 0000000..544e78a
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/angulardatatype/Support/Support_cardvariable.ts
@@ -0,0 +1,4 @@
+export const Supportcardvariable = {
+ "cardButton": false,
+ "cardmodeldata": ``
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/stpkg/Childform/Childform.component.html b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/stpkg/Childform/Childform.component.html
new file mode 100644
index 0000000..75c7b56
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/stpkg/Childform/Childform.component.html
@@ -0,0 +1,376 @@
+
+ - Childform
+
+
+
+
+
Childform
+
+
+
+
+
+
+
+
+
+ Loading ...
+
+ {{error}}
+
+
+ Name
+
+
+
+ Description
+
+
+
+ Active
+
+
+
+
+
+ Action
+
+
+
+
+
+{{user.name }}
+
+
+
+
+
+
+{{user.active }}
+
+
+
+
+
+
+
+ Who Column
+ Account ID: {{user.accountId}}
+ Created At: {{user.createdAt| date}}
+ Created By: {{user.createdBy}}
+ Updated At: {{user.updatedAt | date}}
+ Updated By: {{user.updatedBy}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Users per page
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
+ of {{pagination.totalItems}} users
+
+
+
+
+
+
+
+
+
+ Data could be found. Loading..
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] }}
+ {{afterText(item.fieldtext)}}
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] | date}}
+ {{afterText(item.fieldtext)}}
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ]}}
+ {{afterText(item.fieldtext)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Update Childform
+
+
+
+
+
+
+
+
+
{{rowSelected.id}}
+
+
+
+
+
+
+
Are You Sure Want to delete?
+ {{rowSelected.id}}
+
+
+
+
+
+ Add Childform
+
+
+
+
+
+
+
+
+
+
+
+
+ Form Extension
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/stpkg/Childform/Childform.component.scss b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/stpkg/Childform/Childform.component.scss
new file mode 100644
index 0000000..12f7fc8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/stpkg/Childform/Childform.component.scss
@@ -0,0 +1,85 @@
+//@import "../../../../assets/scss/var";
+.s-info-bar {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ button {
+ outline: none;
+ }
+}
+.delete,.heading{
+ text-align: center;
+ color: red;
+}
+.entry-pg {
+ width: 750px;
+}
+
+.button1::after {
+ content: none;
+}
+.button1:hover::after {
+ content: "ADD ROWS";
+}
+
+.section {
+ background-color: #dddddd;
+ height: 40px;
+}
+
+.section p {
+ //color: white;
+ padding: 10px;
+ font-size: 18px;
+}
+
+.clr-input {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ padding: 0.75rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.clr-file {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ //padding: 0.6rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.center {
+ text-align: center;
+}
+select{
+ width: 100%;
+ margin-top: 3px;
+ padding: 5px 5px;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+input[type=text],[type=date],[type=number],textarea {
+ width: 100%;
+ padding: 15px 15px;
+ background-color:rgb(255, 255, 255);
+ // margin: 8px 0;
+ display: inline-block;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ box-sizing: border-box;
+}
+.error_mess {
+ color: red;
+}
+.universal-section-header {
+ margin: 24px 0 10px 0;
+ font-weight: 600;
+ color: #1a237e;
+ letter-spacing: 0.5px;
+ font-size: 1.25rem;
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/stpkg/Childform/Childform.component.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/stpkg/Childform/Childform.component.ts
new file mode 100644
index 0000000..6a60776
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/stpkg/Childform/Childform.component.ts
@@ -0,0 +1,275 @@
+import { Component, OnInit } from '@angular/core';
+import { ToastrService } from 'ngx-toastr';
+import { AlertService } from 'src/app/services/alert.service';
+import { Childformservice} from './Childform.service';
+import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
+import { ExtensionService } from 'src/app/services/fnd/extension.service';
+import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
+import { Childformcardvariable } from './Childform_cardvariable';
+import { UserInfoService } from 'src/app/services/user-info.service';
+declare var JsBarcode: any;
+@Component({
+ selector: 'app-Childform',
+ templateUrl: './Childform.component.html',
+ styleUrls: ['./Childform.component.scss']
+})
+export class ChildformComponent implements OnInit {
+ cardButton = Childformcardvariable.cardButton;
+ cardmodeldata = Childformcardvariable.cardmodeldata;
+ public dashboardArray: DashboardContentModel2[];
+ isCardview = Childformcardvariable.cardButton;
+ cardmodal; changeView(){
+ this.isCardview = !this.isCardview;
+ }
+ beforeText(fieldtext: string): string { // Extract the text before the first '<'
+ const index = fieldtext.indexOf('<');
+ return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
+ }
+ afterText(fieldtext: string): string { // Extract the text after the last '>'
+ const index = fieldtext.lastIndexOf('>');
+ return index !== -1 ? fieldtext.substring(index + 1) : '';
+ }
+ transform(fieldtext: string): string {
+ const match = fieldtext.match(/<([^>]*)>/);
+ return match ? match[1] : ''; // Extract the text between '<' and '>'
+ }
+ userrole;
+ rowSelected :any= {};
+ modaldelete=false;
+ modalEdit=false;
+ modalAdd= false;
+ public entryForm: FormGroup;
+ loading = false;
+ product;
+ modalOpenedforNewLine = false;
+ newLine:any;
+ additionalFieldsFromBackend: any[] = [];
+ formcode = 'Childform_formCode'
+tableName = 'Childform'; checkFormCode; selected: any[] = []; constructor(
+ private extensionService: ExtensionService,
+private userInfoService:UserInfoService,
+ private mainService:Childformservice,
+ private alertService: AlertService,
+ private toastr: ToastrService,
+ private _fb: FormBuilder,
+ ) { }
+ private editInterval: any;
+// component button
+ ngOnInit(): void {
+ if(this.cardmodeldata !== ''){
+ this.cardmodal = JSON.parse(this.cardmodeldata);
+ this.dashboardArray = this.cardmodal.dashboard.slice();
+ console.log(this.dashboardArray)
+ }
+ this.userrole=this.userInfoService.getRoles();
+ this.getData();
+ this.entryForm = this._fb.group({
+name : [null],
+
+description : [null],
+
+active : [true],
+
+
+
+
+
+
+
+
+ }); // component_button200
+ // form code start
+ this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
+ console.log(data);
+ const jsonArray = data.map((str) => JSON.parse(str));
+ this.additionalFieldsFromBackend = jsonArray;
+ this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Childform_formCode");
+ console.log(this.checkFormCode);
+ console.log(this.additionalFieldsFromBackend);
+ if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
+ this.additionalFieldsFromBackend.forEach(field => {
+ if (field.formCode === this.formcode) {
+ if (!this.entryForm.contains(field.extValue)) {
+ // Add the control only if it doesn't exist in the form
+ this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
+ }
+ }
+ });
+ }
+ });
+ console.log(this.entryForm.value);
+ // form code end
+
+
+
+
+
+
+
+ }
+ ngOnDestroy(): void {
+ if (this.editInterval) {
+ clearInterval(this.editInterval);
+ }
+ }
+
+
+
+
+
+ error;
+ getData() {
+ this.mainService.getAll().subscribe((data) => {
+ console.log(data);
+ this.product = data;
+this.product = [...this.product].reverse(); if(this.product.length==0){
+ this.error="No Data Available"
+ }
+ },(error) => {
+ console.log(error);
+ if(error){
+ this.error="Server Error";
+ }
+ });
+ }
+ onEdit(row) {
+ this.rowSelected = row;
+
+
+
+
+
+
+
+ this.modalEdit = true;
+ }
+ onDelete(row) {
+ this.rowSelected = row;
+ this.modaldelete=true;
+ }
+ delete(id)
+ {
+ this.modaldelete = false;
+ console.log("in delete "+id);
+ this.mainService.delete(id).subscribe(
+ (data) => {
+ console.log(data);
+ this.ngOnInit();
+ if (data) { this.toastr.success('Deleted successfully'); }
+ });
+ }
+ onUpdate(id) {
+ this.modalEdit = false;
+
+
+
+
+
+
+ //console.log("in update");
+ console.log("id " + id);
+ console.log(this.rowSelected);
+ //console.log("out update");
+ this.mainService.update(id, this.rowSelected).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("update Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Updated");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Updated");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+onCreate() {
+ this.modalAdd=false;
+
+
+
+
+
+
+ this.mainService.create(this.entryForm.value).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Added Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("Added Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Added");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Added");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+ goToAdd(row) {
+this.modalAdd = true; this.submitted = false;
+
+
+
+
+
+
+ }
+ submitted = false;
+onSubmit() {
+ console.log(this.entryForm.value);
+ this.submitted = true;
+ if (this.entryForm.invalid) {
+ return;
+ }this.onCreate();
+
+}
+
+
+rsModaldescription = false;
+goToReplaceStringdescription(row){
+this.rowSelected = row; this.rsModaldescription =true; }
+
+
+
+// updateaction
+}
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/stpkg/Childform/Childform.service.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/stpkg/Childform/Childform.service.ts
new file mode 100644
index 0000000..3c8571d
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/stpkg/Childform/Childform.service.ts
@@ -0,0 +1,39 @@
+import { Injectable } from '@angular/core';
+import { Observable } from "rxjs";
+import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
+import { ApiRequestService } from "src/app/services/api/api-request.service";
+import { environment } from 'src/environments/environment';
+@Injectable({
+ providedIn: 'root'
+})
+export class Childformservice{
+ private baseURL = "Childform/Childform" ; constructor(
+ private http: HttpClient,
+ private apiRequest: ApiRequestService,
+ ) { }
+ getAll(page?: number, size?: number): Observable {
+ return this.apiRequest.get(this.baseURL);
+ }
+ getById(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.get(_http);
+ }
+ create(data: any): Observable {
+ return this.apiRequest.post(this.baseURL, data);
+ }
+ update(id: number, data: any): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.put(_http, data);
+ }
+ delete(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.delete(_http);
+ }
+
+
+
+
+
+
+// updateaction
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/stpkg/Childform/Childform_cardvariable.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/stpkg/Childform/Childform_cardvariable.ts
new file mode 100644
index 0000000..8809902
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/stpkg/Childform/Childform_cardvariable.ts
@@ -0,0 +1,4 @@
+export const Childformcardvariable = {
+ "cardButton": false,
+ "cardmodeldata": ``
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/Country/Country.component.html b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/Country/Country.component.html
new file mode 100644
index 0000000..e5ee328
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/Country/Country.component.html
@@ -0,0 +1,376 @@
+
+ - Country
+
+
+
+
+
Country
+
+
+
+
+
+
+
+
+
+ Loading ...
+
+ {{error}}
+
+
+ Name
+
+
+
+ Description
+
+
+
+ Active
+
+
+
+
+
+ Action
+
+
+
+
+
+{{user.name }}
+
+
+
+
+
+
+{{user.active }}
+
+
+
+
+
+
+
+ Who Column
+ Account ID: {{user.accountId}}
+ Created At: {{user.createdAt| date}}
+ Created By: {{user.createdBy}}
+ Updated At: {{user.updatedAt | date}}
+ Updated By: {{user.updatedBy}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Users per page
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
+ of {{pagination.totalItems}} users
+
+
+
+
+
+
+
+
+
+ Data could be found. Loading..
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] }}
+ {{afterText(item.fieldtext)}}
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] | date}}
+ {{afterText(item.fieldtext)}}
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ]}}
+ {{afterText(item.fieldtext)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Update Country
+
+
+
+
+
+
+
+
+
{{rowSelected.id}}
+
+
+
+
+
+
+
Are You Sure Want to delete?
+ {{rowSelected.id}}
+
+
+
+
+
+ Add Country
+
+
+
+
+
+
+
+
+
+
+
+
+ Form Extension
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/Country/Country.component.scss b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/Country/Country.component.scss
new file mode 100644
index 0000000..12f7fc8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/Country/Country.component.scss
@@ -0,0 +1,85 @@
+//@import "../../../../assets/scss/var";
+.s-info-bar {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ button {
+ outline: none;
+ }
+}
+.delete,.heading{
+ text-align: center;
+ color: red;
+}
+.entry-pg {
+ width: 750px;
+}
+
+.button1::after {
+ content: none;
+}
+.button1:hover::after {
+ content: "ADD ROWS";
+}
+
+.section {
+ background-color: #dddddd;
+ height: 40px;
+}
+
+.section p {
+ //color: white;
+ padding: 10px;
+ font-size: 18px;
+}
+
+.clr-input {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ padding: 0.75rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.clr-file {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ //padding: 0.6rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.center {
+ text-align: center;
+}
+select{
+ width: 100%;
+ margin-top: 3px;
+ padding: 5px 5px;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+input[type=text],[type=date],[type=number],textarea {
+ width: 100%;
+ padding: 15px 15px;
+ background-color:rgb(255, 255, 255);
+ // margin: 8px 0;
+ display: inline-block;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ box-sizing: border-box;
+}
+.error_mess {
+ color: red;
+}
+.universal-section-header {
+ margin: 24px 0 10px 0;
+ font-weight: 600;
+ color: #1a237e;
+ letter-spacing: 0.5px;
+ font-size: 1.25rem;
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/Country/Country.component.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/Country/Country.component.ts
new file mode 100644
index 0000000..ad128e1
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/Country/Country.component.ts
@@ -0,0 +1,275 @@
+import { Component, OnInit } from '@angular/core';
+import { ToastrService } from 'ngx-toastr';
+import { AlertService } from 'src/app/services/alert.service';
+import { Countryservice} from './Country.service';
+import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
+import { ExtensionService } from 'src/app/services/fnd/extension.service';
+import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
+import { Countrycardvariable } from './Country_cardvariable';
+import { UserInfoService } from 'src/app/services/user-info.service';
+declare var JsBarcode: any;
+@Component({
+ selector: 'app-Country',
+ templateUrl: './Country.component.html',
+ styleUrls: ['./Country.component.scss']
+})
+export class CountryComponent implements OnInit {
+ cardButton = Countrycardvariable.cardButton;
+ cardmodeldata = Countrycardvariable.cardmodeldata;
+ public dashboardArray: DashboardContentModel2[];
+ isCardview = Countrycardvariable.cardButton;
+ cardmodal; changeView(){
+ this.isCardview = !this.isCardview;
+ }
+ beforeText(fieldtext: string): string { // Extract the text before the first '<'
+ const index = fieldtext.indexOf('<');
+ return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
+ }
+ afterText(fieldtext: string): string { // Extract the text after the last '>'
+ const index = fieldtext.lastIndexOf('>');
+ return index !== -1 ? fieldtext.substring(index + 1) : '';
+ }
+ transform(fieldtext: string): string {
+ const match = fieldtext.match(/<([^>]*)>/);
+ return match ? match[1] : ''; // Extract the text between '<' and '>'
+ }
+ userrole;
+ rowSelected :any= {};
+ modaldelete=false;
+ modalEdit=false;
+ modalAdd= false;
+ public entryForm: FormGroup;
+ loading = false;
+ product;
+ modalOpenedforNewLine = false;
+ newLine:any;
+ additionalFieldsFromBackend: any[] = [];
+ formcode = 'Country_formCode'
+tableName = 'Country'; checkFormCode; selected: any[] = []; constructor(
+ private extensionService: ExtensionService,
+private userInfoService:UserInfoService,
+ private mainService:Countryservice,
+ private alertService: AlertService,
+ private toastr: ToastrService,
+ private _fb: FormBuilder,
+ ) { }
+ private editInterval: any;
+// component button
+ ngOnInit(): void {
+ if(this.cardmodeldata !== ''){
+ this.cardmodal = JSON.parse(this.cardmodeldata);
+ this.dashboardArray = this.cardmodal.dashboard.slice();
+ console.log(this.dashboardArray)
+ }
+ this.userrole=this.userInfoService.getRoles();
+ this.getData();
+ this.entryForm = this._fb.group({
+name : [null],
+
+description : [null],
+
+active : [true],
+
+
+
+
+
+
+
+
+ }); // component_button200
+ // form code start
+ this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
+ console.log(data);
+ const jsonArray = data.map((str) => JSON.parse(str));
+ this.additionalFieldsFromBackend = jsonArray;
+ this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Country_formCode");
+ console.log(this.checkFormCode);
+ console.log(this.additionalFieldsFromBackend);
+ if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
+ this.additionalFieldsFromBackend.forEach(field => {
+ if (field.formCode === this.formcode) {
+ if (!this.entryForm.contains(field.extValue)) {
+ // Add the control only if it doesn't exist in the form
+ this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
+ }
+ }
+ });
+ }
+ });
+ console.log(this.entryForm.value);
+ // form code end
+
+
+
+
+
+
+
+ }
+ ngOnDestroy(): void {
+ if (this.editInterval) {
+ clearInterval(this.editInterval);
+ }
+ }
+
+
+
+
+
+ error;
+ getData() {
+ this.mainService.getAll().subscribe((data) => {
+ console.log(data);
+ this.product = data;
+this.product = [...this.product].reverse(); if(this.product.length==0){
+ this.error="No Data Available"
+ }
+ },(error) => {
+ console.log(error);
+ if(error){
+ this.error="Server Error";
+ }
+ });
+ }
+ onEdit(row) {
+ this.rowSelected = row;
+
+
+
+
+
+
+
+ this.modalEdit = true;
+ }
+ onDelete(row) {
+ this.rowSelected = row;
+ this.modaldelete=true;
+ }
+ delete(id)
+ {
+ this.modaldelete = false;
+ console.log("in delete "+id);
+ this.mainService.delete(id).subscribe(
+ (data) => {
+ console.log(data);
+ this.ngOnInit();
+ if (data) { this.toastr.success('Deleted successfully'); }
+ });
+ }
+ onUpdate(id) {
+ this.modalEdit = false;
+
+
+
+
+
+
+ //console.log("in update");
+ console.log("id " + id);
+ console.log(this.rowSelected);
+ //console.log("out update");
+ this.mainService.update(id, this.rowSelected).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("update Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Updated");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Updated");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+onCreate() {
+ this.modalAdd=false;
+
+
+
+
+
+
+ this.mainService.create(this.entryForm.value).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Added Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("Added Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Added");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Added");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+ goToAdd(row) {
+this.modalAdd = true; this.submitted = false;
+
+
+
+
+
+
+ }
+ submitted = false;
+onSubmit() {
+ console.log(this.entryForm.value);
+ this.submitted = true;
+ if (this.entryForm.invalid) {
+ return;
+ }this.onCreate();
+
+}
+
+
+rsModaldescription = false;
+goToReplaceStringdescription(row){
+this.rowSelected = row; this.rsModaldescription =true; }
+
+
+
+// updateaction
+}
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/Country/Country.service.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/Country/Country.service.ts
new file mode 100644
index 0000000..05a5665
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/Country/Country.service.ts
@@ -0,0 +1,39 @@
+import { Injectable } from '@angular/core';
+import { Observable } from "rxjs";
+import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
+import { ApiRequestService } from "src/app/services/api/api-request.service";
+import { environment } from 'src/environments/environment';
+@Injectable({
+ providedIn: 'root'
+})
+export class Countryservice{
+ private baseURL = "Country/Country" ; constructor(
+ private http: HttpClient,
+ private apiRequest: ApiRequestService,
+ ) { }
+ getAll(page?: number, size?: number): Observable {
+ return this.apiRequest.get(this.baseURL);
+ }
+ getById(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.get(_http);
+ }
+ create(data: any): Observable {
+ return this.apiRequest.post(this.baseURL, data);
+ }
+ update(id: number, data: any): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.put(_http, data);
+ }
+ delete(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.delete(_http);
+ }
+
+
+
+
+
+
+// updateaction
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/Country/Country_cardvariable.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/Country/Country_cardvariable.ts
new file mode 100644
index 0000000..efc9e50
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/Country/Country_cardvariable.ts
@@ -0,0 +1,4 @@
+export const Countrycardvariable = {
+ "cardButton": false,
+ "cardmodeldata": ``
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/District/District.component.html b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/District/District.component.html
new file mode 100644
index 0000000..125eb51
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/District/District.component.html
@@ -0,0 +1,405 @@
+
+ - District
+
+
+
+
+
District
+
+
+
+
+
+
+
+
+
+ Loading ...
+
+ {{error}}
+
+
+ district name
+
+
+
+ Description
+
+
+
+ Active
+
+
+
+ state name
+
+
+
+
+
+ Action
+
+
+
+
+
+{{user.district_name }}
+
+
+
+
+
+
+{{user.active }}
+
+
+{{user.state_name }}
+
+
+
+
+
+
+
+ Who Column
+ Account ID: {{user.accountId}}
+ Created At: {{user.createdAt| date}}
+ Created By: {{user.createdBy}}
+ Updated At: {{user.updatedAt | date}}
+ Updated By: {{user.updatedBy}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Users per page
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
+ of {{pagination.totalItems}} users
+
+
+
+
+
+
+
+
+
+ Data could be found. Loading..
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] }}
+ {{afterText(item.fieldtext)}}
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] | date}}
+ {{afterText(item.fieldtext)}}
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ]}}
+ {{afterText(item.fieldtext)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Update District
+
+
+
+
+
+
+
+
+
+
+
{{rowSelected.id}}
+
+
+
+
+
+
+
Are You Sure Want to delete?
+ {{rowSelected.id}}
+
+
+
+
+
+ Add District
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form Extension
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/District/District.component.scss b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/District/District.component.scss
new file mode 100644
index 0000000..12f7fc8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/District/District.component.scss
@@ -0,0 +1,85 @@
+//@import "../../../../assets/scss/var";
+.s-info-bar {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ button {
+ outline: none;
+ }
+}
+.delete,.heading{
+ text-align: center;
+ color: red;
+}
+.entry-pg {
+ width: 750px;
+}
+
+.button1::after {
+ content: none;
+}
+.button1:hover::after {
+ content: "ADD ROWS";
+}
+
+.section {
+ background-color: #dddddd;
+ height: 40px;
+}
+
+.section p {
+ //color: white;
+ padding: 10px;
+ font-size: 18px;
+}
+
+.clr-input {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ padding: 0.75rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.clr-file {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ //padding: 0.6rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.center {
+ text-align: center;
+}
+select{
+ width: 100%;
+ margin-top: 3px;
+ padding: 5px 5px;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+input[type=text],[type=date],[type=number],textarea {
+ width: 100%;
+ padding: 15px 15px;
+ background-color:rgb(255, 255, 255);
+ // margin: 8px 0;
+ display: inline-block;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ box-sizing: border-box;
+}
+.error_mess {
+ color: red;
+}
+.universal-section-header {
+ margin: 24px 0 10px 0;
+ font-weight: 600;
+ color: #1a237e;
+ letter-spacing: 0.5px;
+ font-size: 1.25rem;
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/District/District.component.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/District/District.component.ts
new file mode 100644
index 0000000..781fdf0
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/District/District.component.ts
@@ -0,0 +1,299 @@
+import { Component, OnInit } from '@angular/core';
+import { ToastrService } from 'ngx-toastr';
+import { AlertService } from 'src/app/services/alert.service';
+import { Districtservice} from './District.service';
+import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
+import { ExtensionService } from 'src/app/services/fnd/extension.service';
+import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
+import { Districtcardvariable } from './District_cardvariable';
+import { UserInfoService } from 'src/app/services/user-info.service';
+declare var JsBarcode: any;
+@Component({
+ selector: 'app-District',
+ templateUrl: './District.component.html',
+ styleUrls: ['./District.component.scss']
+})
+export class DistrictComponent implements OnInit {
+ cardButton = Districtcardvariable.cardButton;
+ cardmodeldata = Districtcardvariable.cardmodeldata;
+ public dashboardArray: DashboardContentModel2[];
+ isCardview = Districtcardvariable.cardButton;
+ cardmodal; changeView(){
+ this.isCardview = !this.isCardview;
+ }
+ beforeText(fieldtext: string): string { // Extract the text before the first '<'
+ const index = fieldtext.indexOf('<');
+ return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
+ }
+ afterText(fieldtext: string): string { // Extract the text after the last '>'
+ const index = fieldtext.lastIndexOf('>');
+ return index !== -1 ? fieldtext.substring(index + 1) : '';
+ }
+ transform(fieldtext: string): string {
+ const match = fieldtext.match(/<([^>]*)>/);
+ return match ? match[1] : ''; // Extract the text between '<' and '>'
+ }
+ userrole;
+ rowSelected :any= {};
+ modaldelete=false;
+ modalEdit=false;
+ modalAdd= false;
+ public entryForm: FormGroup;
+ loading = false;
+ product;
+ modalOpenedforNewLine = false;
+ newLine:any;
+ additionalFieldsFromBackend: any[] = [];
+ formcode = 'District_formCode'
+tableName = 'District'; checkFormCode; selected: any[] = []; constructor(
+ private extensionService: ExtensionService,
+private userInfoService:UserInfoService,
+ private mainService:Districtservice,
+ private alertService: AlertService,
+ private toastr: ToastrService,
+ private _fb: FormBuilder,
+ ) { }
+ private editInterval: any;
+// component button
+ ngOnInit(): void {
+ if(this.cardmodeldata !== ''){
+ this.cardmodal = JSON.parse(this.cardmodeldata);
+ this.dashboardArray = this.cardmodal.dashboard.slice();
+ console.log(this.dashboardArray)
+ }
+ this.userrole=this.userInfoService.getRoles();
+ this.getData();
+ this.entryForm = this._fb.group({
+district_name : [null],
+
+description : [null],
+
+active : [true],
+
+state_name : [null],
+
+
+
+
+
+
+
+
+
+
+ }); // component_button200
+ // form code start
+ this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
+ console.log(data);
+ const jsonArray = data.map((str) => JSON.parse(str));
+ this.additionalFieldsFromBackend = jsonArray;
+ this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "District_formCode");
+ console.log(this.checkFormCode);
+ console.log(this.additionalFieldsFromBackend);
+ if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
+ this.additionalFieldsFromBackend.forEach(field => {
+ if (field.formCode === this.formcode) {
+ if (!this.entryForm.contains(field.extValue)) {
+ // Add the control only if it doesn't exist in the form
+ this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
+ }
+ }
+ });
+ }
+ });
+ console.log(this.entryForm.value);
+ // form code end
+
+
+
+
+
+
+
+
+
+ }
+ ngOnDestroy(): void {
+ if (this.editInterval) {
+ clearInterval(this.editInterval);
+ }
+ }
+
+
+
+
+
+
+
+ error;
+ getData() {
+ this.mainService.getAll().subscribe((data) => {
+ console.log(data);
+ this.product = data;
+this.product = [...this.product].reverse(); if(this.product.length==0){
+ this.error="No Data Available"
+ }
+ },(error) => {
+ console.log(error);
+ if(error){
+ this.error="Server Error";
+ }
+ });
+ }
+ onEdit(row) {
+ this.rowSelected = row;
+
+
+
+
+
+
+
+
+
+ this.modalEdit = true;
+ }
+ onDelete(row) {
+ this.rowSelected = row;
+ this.modaldelete=true;
+ }
+ delete(id)
+ {
+ this.modaldelete = false;
+ console.log("in delete "+id);
+ this.mainService.delete(id).subscribe(
+ (data) => {
+ console.log(data);
+ this.ngOnInit();
+ if (data) { this.toastr.success('Deleted successfully'); }
+ });
+ }
+ onUpdate(id) {
+ this.modalEdit = false;
+
+
+
+
+
+
+
+
+ //console.log("in update");
+ console.log("id " + id);
+ console.log(this.rowSelected);
+ //console.log("out update");
+ this.mainService.update(id, this.rowSelected).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("update Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Updated");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Updated");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+onCreate() {
+ this.modalAdd=false;
+
+
+
+
+
+
+
+
+ this.mainService.create(this.entryForm.value).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Added Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("Added Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Added");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Added");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+ goToAdd(row) {
+this.modalAdd = true; this.submitted = false;
+
+
+
+
+
+
+
+
+ }
+ submitted = false;
+onSubmit() {
+ console.log(this.entryForm.value);
+ this.submitted = true;
+ if (this.entryForm.invalid) {
+ return;
+ }this.onCreate();
+
+}
+
+
+rsModaldescription = false;
+goToReplaceStringdescription(row){
+this.rowSelected = row; this.rsModaldescription =true; }
+
+
+
+
+
+// updateaction
+}
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/District/District.service.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/District/District.service.ts
new file mode 100644
index 0000000..3484a22
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/District/District.service.ts
@@ -0,0 +1,41 @@
+import { Injectable } from '@angular/core';
+import { Observable } from "rxjs";
+import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
+import { ApiRequestService } from "src/app/services/api/api-request.service";
+import { environment } from 'src/environments/environment';
+@Injectable({
+ providedIn: 'root'
+})
+export class Districtservice{
+ private baseURL = "District/District" ; constructor(
+ private http: HttpClient,
+ private apiRequest: ApiRequestService,
+ ) { }
+ getAll(page?: number, size?: number): Observable {
+ return this.apiRequest.get(this.baseURL);
+ }
+ getById(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.get(_http);
+ }
+ create(data: any): Observable {
+ return this.apiRequest.post(this.baseURL, data);
+ }
+ update(id: number, data: any): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.put(_http, data);
+ }
+ delete(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.delete(_http);
+ }
+
+
+
+
+
+
+
+
+// updateaction
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/District/District_cardvariable.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/District/District_cardvariable.ts
new file mode 100644
index 0000000..7dd47dd
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/District/District_cardvariable.ts
@@ -0,0 +1,4 @@
+export const Districtcardvariable = {
+ "cardButton": false,
+ "cardmodeldata": ``
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/State/State.component.html b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/State/State.component.html
new file mode 100644
index 0000000..e9e8cf1
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/State/State.component.html
@@ -0,0 +1,405 @@
+
+ - State
+
+
+
+
+
State
+
+
+
+
+
+
+
+
+
+ Loading ...
+
+ {{error}}
+
+
+ state name
+
+
+
+ Description
+
+
+
+ Active
+
+
+
+ country name
+
+
+
+
+
+ Action
+
+
+
+
+
+{{user.state_name }}
+
+
+
+
+
+
+{{user.active }}
+
+
+{{user.country_name }}
+
+
+
+
+
+
+
+ Who Column
+ Account ID: {{user.accountId}}
+ Created At: {{user.createdAt| date}}
+ Created By: {{user.createdBy}}
+ Updated At: {{user.updatedAt | date}}
+ Updated By: {{user.updatedBy}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Users per page
+ {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}}
+ of {{pagination.totalItems}} users
+
+
+
+
+
+
+
+
+
+ Data could be found. Loading..
+ Loading ...
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] }}
+ {{afterText(item.fieldtext)}}
+
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ] | date}}
+ {{afterText(item.fieldtext)}}
+
+
+ {{beforeText(item.fieldtext)}}
+ {{ app[transform(item.fieldtext) ]}}
+ {{afterText(item.fieldtext)}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Update State
+
+
+
+
+
+
+
+
+
+
+
{{rowSelected.id}}
+
+
+
+
+
+
+
Are You Sure Want to delete?
+ {{rowSelected.id}}
+
+
+
+
+
+ Add State
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Form Extension
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/State/State.component.scss b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/State/State.component.scss
new file mode 100644
index 0000000..12f7fc8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/State/State.component.scss
@@ -0,0 +1,85 @@
+//@import "../../../../assets/scss/var";
+.s-info-bar {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-between;
+ button {
+ outline: none;
+ }
+}
+.delete,.heading{
+ text-align: center;
+ color: red;
+}
+.entry-pg {
+ width: 750px;
+}
+
+.button1::after {
+ content: none;
+}
+.button1:hover::after {
+ content: "ADD ROWS";
+}
+
+.section {
+ background-color: #dddddd;
+ height: 40px;
+}
+
+.section p {
+ //color: white;
+ padding: 10px;
+ font-size: 18px;
+}
+
+.clr-input {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ padding: 0.75rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.clr-file {
+ color: #212529;
+ border: 1px solid #ced4da;
+ border-radius: 0.25rem;
+ //padding: 0.6rem 0.75rem;
+ margin-top: 3px;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.center {
+ text-align: center;
+}
+select{
+ width: 100%;
+ margin-top: 3px;
+ padding: 5px 5px;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+}
+input[type=text],[type=date],[type=number],textarea {
+ width: 100%;
+ padding: 15px 15px;
+ background-color:rgb(255, 255, 255);
+ // margin: 8px 0;
+ display: inline-block;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ box-sizing: border-box;
+}
+.error_mess {
+ color: red;
+}
+.universal-section-header {
+ margin: 24px 0 10px 0;
+ font-weight: 600;
+ color: #1a237e;
+ letter-spacing: 0.5px;
+ font-size: 1.25rem;
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/State/State.component.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/State/State.component.ts
new file mode 100644
index 0000000..1ac0731
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/State/State.component.ts
@@ -0,0 +1,299 @@
+import { Component, OnInit } from '@angular/core';
+import { ToastrService } from 'ngx-toastr';
+import { AlertService } from 'src/app/services/alert.service';
+import { Stateservice} from './State.service';
+import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms';
+import { ExtensionService } from 'src/app/services/fnd/extension.service';
+import { DashboardContentModel2 } from 'src/app/models/builder/dashboard';
+import { Statecardvariable } from './State_cardvariable';
+import { UserInfoService } from 'src/app/services/user-info.service';
+declare var JsBarcode: any;
+@Component({
+ selector: 'app-State',
+ templateUrl: './State.component.html',
+ styleUrls: ['./State.component.scss']
+})
+export class StateComponent implements OnInit {
+ cardButton = Statecardvariable.cardButton;
+ cardmodeldata = Statecardvariable.cardmodeldata;
+ public dashboardArray: DashboardContentModel2[];
+ isCardview = Statecardvariable.cardButton;
+ cardmodal; changeView(){
+ this.isCardview = !this.isCardview;
+ }
+ beforeText(fieldtext: string): string { // Extract the text before the first '<'
+ const index = fieldtext.indexOf('<');
+ return index !== -1 ? fieldtext.substring(0, index) : fieldtext;
+ }
+ afterText(fieldtext: string): string { // Extract the text after the last '>'
+ const index = fieldtext.lastIndexOf('>');
+ return index !== -1 ? fieldtext.substring(index + 1) : '';
+ }
+ transform(fieldtext: string): string {
+ const match = fieldtext.match(/<([^>]*)>/);
+ return match ? match[1] : ''; // Extract the text between '<' and '>'
+ }
+ userrole;
+ rowSelected :any= {};
+ modaldelete=false;
+ modalEdit=false;
+ modalAdd= false;
+ public entryForm: FormGroup;
+ loading = false;
+ product;
+ modalOpenedforNewLine = false;
+ newLine:any;
+ additionalFieldsFromBackend: any[] = [];
+ formcode = 'State_formCode'
+tableName = 'State'; checkFormCode; selected: any[] = []; constructor(
+ private extensionService: ExtensionService,
+private userInfoService:UserInfoService,
+ private mainService:Stateservice,
+ private alertService: AlertService,
+ private toastr: ToastrService,
+ private _fb: FormBuilder,
+ ) { }
+ private editInterval: any;
+// component button
+ ngOnInit(): void {
+ if(this.cardmodeldata !== ''){
+ this.cardmodal = JSON.parse(this.cardmodeldata);
+ this.dashboardArray = this.cardmodal.dashboard.slice();
+ console.log(this.dashboardArray)
+ }
+ this.userrole=this.userInfoService.getRoles();
+ this.getData();
+ this.entryForm = this._fb.group({
+state_name : [null],
+
+description : [null],
+
+active : [true],
+
+country_name : [null],
+
+
+
+
+
+
+
+
+
+
+ }); // component_button200
+ // form code start
+ this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
+ console.log(data);
+ const jsonArray = data.map((str) => JSON.parse(str));
+ this.additionalFieldsFromBackend = jsonArray;
+ this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "State_formCode");
+ console.log(this.checkFormCode);
+ console.log(this.additionalFieldsFromBackend);
+ if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) {
+ this.additionalFieldsFromBackend.forEach(field => {
+ if (field.formCode === this.formcode) {
+ if (!this.entryForm.contains(field.extValue)) {
+ // Add the control only if it doesn't exist in the form
+ this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue));
+ }
+ }
+ });
+ }
+ });
+ console.log(this.entryForm.value);
+ // form code end
+
+
+
+
+
+
+
+
+
+ }
+ ngOnDestroy(): void {
+ if (this.editInterval) {
+ clearInterval(this.editInterval);
+ }
+ }
+
+
+
+
+
+
+
+ error;
+ getData() {
+ this.mainService.getAll().subscribe((data) => {
+ console.log(data);
+ this.product = data;
+this.product = [...this.product].reverse(); if(this.product.length==0){
+ this.error="No Data Available"
+ }
+ },(error) => {
+ console.log(error);
+ if(error){
+ this.error="Server Error";
+ }
+ });
+ }
+ onEdit(row) {
+ this.rowSelected = row;
+
+
+
+
+
+
+
+
+
+ this.modalEdit = true;
+ }
+ onDelete(row) {
+ this.rowSelected = row;
+ this.modaldelete=true;
+ }
+ delete(id)
+ {
+ this.modaldelete = false;
+ console.log("in delete "+id);
+ this.mainService.delete(id).subscribe(
+ (data) => {
+ console.log(data);
+ this.ngOnInit();
+ if (data) { this.toastr.success('Deleted successfully'); }
+ });
+ }
+ onUpdate(id) {
+ this.modalEdit = false;
+
+
+
+
+
+
+
+
+ //console.log("in update");
+ console.log("id " + id);
+ console.log(this.rowSelected);
+ //console.log("out update");
+ this.mainService.update(id, this.rowSelected).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Update Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("update Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Updated");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Updated");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+onCreate() {
+ this.modalAdd=false;
+
+
+
+
+
+
+
+
+ this.mainService.create(this.entryForm.value).subscribe(
+ (data) => {
+ console.log(data);
+ if (data || data.status >= 200 && data.status <= 299) {
+ this.toastr.success("Added Successfully");
+ }
+setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+
+
+
+
+
+
+
+
+ }, (error) => {
+ console.log(error);
+ if (error.status >= 200 && error.status <= 299) {
+ // this.toastr.success("Added Succesfully");
+ }
+ if (error.status >= 400 && error.status <= 499) {
+ this.toastr.error("Not Added");
+ }
+ if (error.status >= 500 && error.status <= 599) {
+ this.toastr.error("Not Added");
+ }
+ });
+ setTimeout(() => {
+ this.ngOnInit();
+ }, 500);
+ }
+ goToAdd(row) {
+this.modalAdd = true; this.submitted = false;
+
+
+
+
+
+
+
+
+ }
+ submitted = false;
+onSubmit() {
+ console.log(this.entryForm.value);
+ this.submitted = true;
+ if (this.entryForm.invalid) {
+ return;
+ }this.onCreate();
+
+}
+
+
+rsModaldescription = false;
+goToReplaceStringdescription(row){
+this.rowSelected = row; this.rsModaldescription =true; }
+
+
+
+
+
+// updateaction
+}
+
+
+
+
+
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/State/State.service.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/State/State.service.ts
new file mode 100644
index 0000000..b072891
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/State/State.service.ts
@@ -0,0 +1,41 @@
+import { Injectable } from '@angular/core';
+import { Observable } from "rxjs";
+import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http";
+import { ApiRequestService } from "src/app/services/api/api-request.service";
+import { environment } from 'src/environments/environment';
+@Injectable({
+ providedIn: 'root'
+})
+export class Stateservice{
+ private baseURL = "State/State" ; constructor(
+ private http: HttpClient,
+ private apiRequest: ApiRequestService,
+ ) { }
+ getAll(page?: number, size?: number): Observable {
+ return this.apiRequest.get(this.baseURL);
+ }
+ getById(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.get(_http);
+ }
+ create(data: any): Observable {
+ return this.apiRequest.post(this.baseURL, data);
+ }
+ update(id: number, data: any): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.put(_http, data);
+ }
+ delete(id: number): Observable {
+ const _http = this.baseURL + "/" + id;
+ return this.apiRequest.delete(_http);
+ }
+
+
+
+
+
+
+
+
+// updateaction
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/State/State_cardvariable.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/State/State_cardvariable.ts
new file mode 100644
index 0000000..fce7bf8
--- /dev/null
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/testdata/State/State_cardvariable.ts
@@ -0,0 +1,4 @@
+export const Statecardvariable = {
+ "cardButton": false,
+ "cardmodeldata": ``
+}
\ No newline at end of file
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts
index 5b6b3b6..135ca33 100644
--- a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts
@@ -1,3 +1,20 @@
+import { ChildformComponent } from './BuilderComponents/stpkg/Childform/Childform.component';
+import { DistrictComponent } from './BuilderComponents/testdata/District/District.component';
+import { StateComponent } from './BuilderComponents/testdata/State/State.component';
+import { CountryComponent } from './BuilderComponents/testdata/Country/Country.component';
+import { Ad9Component } from './BuilderComponents/angulardatatype/Ad9/Ad9.component';
+import { Ad8Component } from './BuilderComponents/angulardatatype/Ad8/Ad8.component';
+import { Ad7Component } from './BuilderComponents/angulardatatype/Ad7/Ad7.component';
+import { Ad6Component } from './BuilderComponents/angulardatatype/Ad6/Ad6.component';
+import { Adv5Component } from './BuilderComponents/angulardatatype/Adv5/Adv5.component';
+import { Adv4Component } from './BuilderComponents/angulardatatype/Adv4/Adv4.component';
+import { SupportComponent } from './BuilderComponents/angulardatatype/Support/Support.component';
+import { Adv3Component } from './BuilderComponents/angulardatatype/Adv3/Adv3.component';
+import { Dv2Component } from './BuilderComponents/angulardatatype/Dv2/Dv2.component';
+import { Adv1Component } from './BuilderComponents/angulardatatype/Adv1/Adv1.component';
+import { Basicp3Component } from './BuilderComponents/angulardatatype/Basicp3/Basicp3.component';
+import { Basicp2Component } from './BuilderComponents/angulardatatype/Basicp2/Basicp2.component';
+import { Basicp1Component } from './BuilderComponents/angulardatatype/Basicp1/Basicp1.component';
import { SequencegenaratorComponent } from './fnd/sequencegenarator/sequencegenarator.component';
import { Component, NgModule } from '@angular/core';
@@ -260,6 +277,57 @@ const routes: Routes = [
// buildercomponents
+{path:'Childform',component:ChildformComponent},
+
+
+{path:'District',component:DistrictComponent},
+
+
+{path:'State',component:StateComponent},
+
+
+{path:'Country',component:CountryComponent},
+
+
+{path:'Ad9',component:Ad9Component},
+
+
+{path:'Ad8',component:Ad8Component},
+
+
+{path:'Ad7',component:Ad7Component},
+
+
+{path:'Ad6',component:Ad6Component},
+
+
+{path:'Adv5',component:Adv5Component},
+
+
+{path:'Adv4',component:Adv4Component},
+
+
+{path:'Support',component:SupportComponent},
+
+
+{path:'Adv3',component:Adv3Component},
+
+
+{path:'Dv2',component:Dv2Component},
+
+
+{path:'Adv1',component:Adv1Component},
+
+
+{path:'Basicp3',component:Basicp3Component},
+
+
+{path:'Basicp2',component:Basicp2Component},
+
+
+{path:'Basicp1',component:Basicp1Component},
+
+
{ path: 'tokenregistery', component: Token_registeryComponent },
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts
index 0914655..6512450 100644
--- a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts
@@ -1,3 +1,20 @@
+import { ChildformComponent } from './BuilderComponents/stpkg/Childform/Childform.component';
+import { DistrictComponent } from './BuilderComponents/testdata/District/District.component';
+import { StateComponent } from './BuilderComponents/testdata/State/State.component';
+import { CountryComponent } from './BuilderComponents/testdata/Country/Country.component';
+import { Ad9Component } from './BuilderComponents/angulardatatype/Ad9/Ad9.component';
+import { Ad8Component } from './BuilderComponents/angulardatatype/Ad8/Ad8.component';
+import { Ad7Component } from './BuilderComponents/angulardatatype/Ad7/Ad7.component';
+import { Ad6Component } from './BuilderComponents/angulardatatype/Ad6/Ad6.component';
+import { Adv5Component } from './BuilderComponents/angulardatatype/Adv5/Adv5.component';
+import { Adv4Component } from './BuilderComponents/angulardatatype/Adv4/Adv4.component';
+import { SupportComponent } from './BuilderComponents/angulardatatype/Support/Support.component';
+import { Adv3Component } from './BuilderComponents/angulardatatype/Adv3/Adv3.component';
+import { Dv2Component } from './BuilderComponents/angulardatatype/Dv2/Dv2.component';
+import { Adv1Component } from './BuilderComponents/angulardatatype/Adv1/Adv1.component';
+import { Basicp3Component } from './BuilderComponents/angulardatatype/Basicp3/Basicp3.component';
+import { Basicp2Component } from './BuilderComponents/angulardatatype/Basicp2/Basicp2.component';
+import { Basicp1Component } from './BuilderComponents/angulardatatype/Basicp1/Basicp1.component';
import { CommonModule } from '@angular/common';
@@ -133,6 +150,57 @@ import { MyworkspaceComponent } from './admin/myworkspace/myworkspace.component'
// buildercomponents
+ChildformComponent,
+
+
+DistrictComponent,
+
+
+StateComponent,
+
+
+CountryComponent,
+
+
+Ad9Component,
+
+
+Ad8Component,
+
+
+Ad7Component,
+
+
+Ad6Component,
+
+
+Adv5Component,
+
+
+Adv4Component,
+
+
+SupportComponent,
+
+
+Adv3Component,
+
+
+Dv2Component,
+
+
+Adv1Component,
+
+
+Basicp3Component,
+
+
+Basicp2Component,
+
+
+Basicp1Component,
+
+
diff --git a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json
index 0b299c4..57d2b9b 100644
--- a/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json
+++ b/test17sep-demot1-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json
@@ -228,113 +228,82 @@
"SUB_MENU": "Sub Menu",
"video_Field2": "video_Field2",
"video_Field": "video_Field",
- "numadd": "numadd",
"Support": "Support",
"about": "about",
"Button_Field2": "Button_Field2",
- "autotest": "autotest",
"Childform": "Childform",
- "Test2": "Test2",
- "Chtes2": "Chtes2",
"documentsequenc": "documentsequenc",
"state_name": "state_name",
"Currency": "Currency",
- "token_name": "token_name",
"state": "state",
"Adv5": "Adv5",
"Adv4": "Adv4",
"Adv3": "Adv3",
"addition": "addition",
- "automulti": "automulti",
- "calculated_Field": "calculated_Field",
- "counrymulti": "counrymulti",
"Paragraph_Field2": "Paragraph_Field2",
- "Number_Field": "Number_Field",
"Basicp1": "Basicp1",
- "Sum": "Sum",
"ButtonUpdate": "ButtonUpdate",
- "datagrid_Field": "datagrid_Field",
"Email_Field": "Email_Field",
+ "datagrid_Field": "datagrid_Field",
"audio_Field2": "audio_Field2",
"QRCode_Field2": "QRCode_Field2",
- "dylist": "dylist",
"Basicp3": "Basicp3",
"Basicp2": "Basicp2",
"stmlit": "stmlit",
- "1ega": "1ega",
- "Country": "Country",
"BarCode_Field2": "BarCode_Field2",
+ "Country": "Country",
"Imageupload_Field": "Imageupload_Field",
- "dy2": "dy2",
"name2": "name2",
"idfemale": "idfemale",
- "dy1": "dy1",
+ "dy2": "dy2",
"Url_Field2": "Url_Field2",
"t1": "t1",
- "age2": "age2",
+ "dy1": "dy1",
"t2": "t2",
- "age1": "age1",
- "Sum2": "Sum2",
+ "age2": "age2",
"t4": "t4",
"Decimal_Field2": "Decimal_Field2",
"Description": "Description",
- "gender": "gender",
- "select_Field": "select_Field",
"QRCode_Field": "QRCode_Field",
"Datetime_Field": "Datetime_Field",
- "sum": "sum",
"test1": "test1",
- "Test11": "Test11",
- "Checkout_Field": "Checkout_Field",
"Ad6": "Ad6",
- "picupload": "picupload",
"Textarea_Field": "Textarea_Field",
"Textarea": "Textarea",
"Ad8": "Ad8",
"Ad7": "Ad7",
"Ad9": "Ad9",
- "num1": "num1",
"multiplication": "multiplication",
"Date_Field": "Date_Field",
- "num3": "num3",
- "num2": "num2",
- "Token_registery": "Token_registery",
- "dymulti": "dymulti",
"Toggle_Switch": "Toggle_Switch",
"last_name": "last_name",
"atoc": "atoc",
"Percentage_Field2": "Percentage_Field2",
- "Test22": "Test22",
"Date_Field2": "Date_Field2",
- "default_Prce": "default_Prce",
- "token": "token",
"test2": "test2",
"test3": "test3",
"dymlti1": "dymlti1",
"Fileupload_Field2": "Fileupload_Field2",
"audio_Field": "audio_Field",
- "mobile_number": "mobile_number",
"Decimal_Field": "Decimal_Field",
"country": "country",
"ismale": "ismale",
"Currency2": "Currency2",
"Name": "Name",
"atc2": "atc2",
- "data_grid_Field": "data_grid_Field",
- "BarCode_Field": "BarCode_Field",
"Imageupload_Field2": "Imageupload_Field2",
+ "BarCode_Field": "BarCode_Field",
"recaptcha2": "recaptcha2",
"Buttonupdate2": "Buttonupdate2",
"test": "test",
"atdy1": "atdy1",
"Phone_Number2": "Phone_Number2",
"atdy2": "atdy2",
- "Sttest": "Sttest",
"Percentage_Field": "Percentage_Field",
"Textarea2": "Textarea2",
"Url_Field": "Url_Field",
- "Active": "Active",
"dymlt2": "dymlt2",
+ "Active": "Active",
"Paragraph_Field": "Paragraph_Field",
"State": "State",
"district": "district",
@@ -343,7 +312,6 @@
"Email_Field2": "Email_Field2",
"Static": "Static",
"District": "District",
- "about_yourself": "about_yourself",
"datagrid_Field2": "datagrid_Field2",
"Toggle_Switch2": "Toggle_Switch2",
"Dv2": "Dv2",
@@ -351,8 +319,8 @@
"description": "description",
"number1": "number1",
"Phone_Number": "Phone_Number",
- "Fileupload_Field": "Fileupload_Field",
"number2": "number2",
+ "Fileupload_Field": "Fileupload_Field",
"Value_List_Field": "Value_List_Field",
"Value_List_Field2": "Value_List_Field2",
"district_name": "district_name",
@@ -360,15 +328,11 @@
"recaptcha": "recaptcha",
"stmmlt2": "stmmlt2",
"country_name": "country_name",
- "Dependent_Dropdown_Field": "Dependent_Dropdown_Field",
"Adv1": "Adv1",
"OneToManyExtension": "OneToManyExtension",
"Datetime_Field2": "Datetime_Field2",
- "country_list": "country_list",
"Textarea_Field2": "Textarea_Field2",
- "Defatest": "Defatest",
"Approved_Field": "Approved_Field",
- "select_Field2": "select_Field2",
"Password_Field": "Password_Field",
"age": "age",
"Button_Field": "Button_Field"
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java
index f9801fb..4ec8bc3 100644
--- a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java
@@ -69,6 +69,57 @@ public class BuilderService {
executeDump(true);
// ADD OTHER SERVICE
+addCustomMenu( "Childform","Childform", "Transcations");
+
+
+addCustomMenu( "District","District", "Transcations");
+
+
+addCustomMenu( "State","State", "Transcations");
+
+
+addCustomMenu( "Country","Country", "Transcations");
+
+
+addCustomMenu( "Ad9","Ad9", "Transcations");
+
+
+addCustomMenu( "Ad8","Ad8", "Transcations");
+
+
+addCustomMenu( "Ad7","Ad7", "Transcations");
+
+
+addCustomMenu( "Ad6","Ad6", "Transcations");
+
+
+addCustomMenu( "Adv5","Adv5", "Transcations");
+
+
+addCustomMenu( "Adv4","Adv4", "Transcations");
+
+
+addCustomMenu( "Support","Support", "Transcations");
+
+
+addCustomMenu( "Adv3","Adv3", "Transcations");
+
+
+addCustomMenu( "Dv2","Dv2", "Transcations");
+
+
+addCustomMenu( "Adv1","Adv1", "Transcations");
+
+
+addCustomMenu( "Basicp3","Basicp3", "Transcations");
+
+
+addCustomMenu( "Basicp2","Basicp2", "Transcations");
+
+
+addCustomMenu( "Basicp1","Basicp1", "Transcations");
+
+
System.out.println("dashboard and menu inserted...");
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Ad6Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Ad6Controller.java
new file mode 100644
index 0000000..efeb618
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Ad6Controller.java
@@ -0,0 +1,115 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.realnet.config.EmailService;
+import com.realnet.users.entity1.AppUser;
+import com.realnet.users.service1.AppUserServiceImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.data.domain.*;
+import com.realnet.fnd.response.EntityResponse;
+import org.springframework.http.*;
+import org.springframework.beans.factory.annotation.*;
+import com.realnet.angulardatatype.Entity.Ad6;
+import com.realnet.angulardatatype.Services.Ad6Service ;
+
+
+
+
+
+
+
+
+
+
+@RequestMapping(value = "/Ad6")
+ @CrossOrigin("*")
+@RestController
+public class Ad6Controller {
+ @Autowired
+ private Ad6Service Service;
+
+@Value("${projectPath}")
+ private String projectPath;
+
+
+
+
+
+
+
+
+
+
+
+ @PostMapping("/Ad6")
+ public Ad6 Savedata(@RequestBody Ad6 data) {
+ Ad6 save = Service.Savedata(data) ;
+
+
+
+
+
+
+
+
+
+ System.out.println("data saved..." + save);
+
+ return save;
+ }
+@PutMapping("/Ad6/{id}")
+ public Ad6 update(@RequestBody Ad6 data,@PathVariable Integer id ) {
+ Ad6 update = Service.update(data,id);
+ System.out.println("data update..." + update);
+ return update;
+ }
+// get all with pagination
+ @GetMapping("/Ad6/getall/page")
+ public Page getall(@RequestParam(value = "page", required = false) Integer page,
+ @RequestParam(value = "size", required = false) Integer size) {
+ Pageable paging = PageRequest.of(page, size);
+ Page get = Service.getAllWithPagination(paging);
+
+ return get;
+
+ }
+ @GetMapping("/Ad6")
+ public List getdetails() {
+ List get = Service.getdetails();
+ return get;
+}
+// get all without authentication
+
+ @GetMapping("/token/Ad6")
+ public List getallwioutsec() {
+ List get = Service.getdetails();
+ return get;
+}
+@GetMapping("/Ad6/{id}")
+ public Ad6 getdetailsbyId(@PathVariable Integer id ) {
+ Ad6 get = Service.getdetailsbyId(id);
+ return get;
+ }
+@DeleteMapping("/Ad6/{id}")
+ public ResponseEntity> delete_by_id(@PathVariable Integer id ) {
+ Service.delete_by_id(id);
+ return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Ad7Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Ad7Controller.java
new file mode 100644
index 0000000..e9045ed
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Ad7Controller.java
@@ -0,0 +1,113 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.realnet.config.EmailService;
+import com.realnet.users.entity1.AppUser;
+import com.realnet.users.service1.AppUserServiceImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.data.domain.*;
+import com.realnet.fnd.response.EntityResponse;
+import org.springframework.http.*;
+import org.springframework.beans.factory.annotation.*;
+import com.realnet.angulardatatype.Entity.Ad7;
+import com.realnet.angulardatatype.Services.Ad7Service ;
+
+
+import com.realnet.angulardatatype.Entity.Basicp3;
+
+
+import com.realnet.angulardatatype.Entity.Support;
+
+
+@RequestMapping(value = "/Ad7")
+ @CrossOrigin("*")
+@RestController
+public class Ad7Controller {
+ @Autowired
+ private Ad7Service Service;
+
+@Value("${projectPath}")
+ private String projectPath;
+
+
+
+
+
+
+
+ @PostMapping("/Ad7")
+ public Ad7 Savedata(@RequestBody Ad7 data) {
+ Ad7 save = Service.Savedata(data) ;
+
+
+
+
+
+ System.out.println("data saved..." + save);
+
+ return save;
+ }
+@PutMapping("/Ad7/{id}")
+ public Ad7 update(@RequestBody Ad7 data,@PathVariable Integer id ) {
+ Ad7 update = Service.update(data,id);
+ System.out.println("data update..." + update);
+ return update;
+ }
+// get all with pagination
+ @GetMapping("/Ad7/getall/page")
+ public Page getall(@RequestParam(value = "page", required = false) Integer page,
+ @RequestParam(value = "size", required = false) Integer size) {
+ Pageable paging = PageRequest.of(page, size);
+ Page get = Service.getAllWithPagination(paging);
+
+ return get;
+
+ }
+ @GetMapping("/Ad7")
+ public List getdetails() {
+ List get = Service.getdetails();
+ return get;
+}
+// get all without authentication
+
+ @GetMapping("/token/Ad7")
+ public List getallwioutsec() {
+ List get = Service.getdetails();
+ return get;
+}
+@GetMapping("/Ad7/{id}")
+ public Ad7 getdetailsbyId(@PathVariable Integer id ) {
+ Ad7 get = Service.getdetailsbyId(id);
+ return get;
+ }
+@DeleteMapping("/Ad7/{id}")
+ public ResponseEntity> delete_by_id(@PathVariable Integer id ) {
+ Service.delete_by_id(id);
+ return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
+
+ }
+
+
+
+
+
+ @PostMapping("/Ad7/Basicp3_insert")
+ public Basicp3 insertBasicp3(@RequestBody Basicp3 data) {
+ Basicp3 insertaction = Service.insertBasicp3(data);
+ return insertaction;
+ }
+
+
+
+ @PostMapping("/Ad7/Support_insert")
+ public Support insertSupport(@RequestBody Support data) {
+ Support insertaction = Service.insertSupport(data);
+ return insertaction;
+ }
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Ad8Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Ad8Controller.java
new file mode 100644
index 0000000..b8a4690
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Ad8Controller.java
@@ -0,0 +1,131 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.realnet.config.EmailService;
+import com.realnet.users.entity1.AppUser;
+import com.realnet.users.service1.AppUserServiceImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.data.domain.*;
+import com.realnet.fnd.response.EntityResponse;
+import org.springframework.http.*;
+import org.springframework.beans.factory.annotation.*;
+import com.realnet.angulardatatype.Entity.Ad8;
+import com.realnet.angulardatatype.Services.Ad8Service ;
+
+
+import com.realnet.angulardatatype.Entity.Support;
+
+
+import com.realnet.stpkg.Entity.Childform;
+
+
+
+
+
+
+@RequestMapping(value = "/Ad8")
+ @CrossOrigin("*")
+@RestController
+public class Ad8Controller {
+ @Autowired
+ private Ad8Service Service;
+
+@Value("${projectPath}")
+ private String projectPath;
+
+
+
+
+
+
+
+
+
+
+
+ @PostMapping("/Ad8")
+ public Ad8 Savedata(@RequestBody Ad8 data) {
+ Ad8 save = Service.Savedata(data) ;
+
+
+
+
+
+
+
+
+
+ System.out.println("data saved..." + save);
+
+ return save;
+ }
+@PutMapping("/Ad8/{id}")
+ public Ad8 update(@RequestBody Ad8 data,@PathVariable Integer id ) {
+ Ad8 update = Service.update(data,id);
+ System.out.println("data update..." + update);
+ return update;
+ }
+// get all with pagination
+ @GetMapping("/Ad8/getall/page")
+ public Page getall(@RequestParam(value = "page", required = false) Integer page,
+ @RequestParam(value = "size", required = false) Integer size) {
+ Pageable paging = PageRequest.of(page, size);
+ Page get = Service.getAllWithPagination(paging);
+
+ return get;
+
+ }
+ @GetMapping("/Ad8")
+ public List getdetails() {
+ List get = Service.getdetails();
+ return get;
+}
+// get all without authentication
+
+ @GetMapping("/token/Ad8")
+ public List getallwioutsec() {
+ List get = Service.getdetails();
+ return get;
+}
+@GetMapping("/Ad8/{id}")
+ public Ad8 getdetailsbyId(@PathVariable Integer id ) {
+ Ad8 get = Service.getdetailsbyId(id);
+ return get;
+ }
+@DeleteMapping("/Ad8/{id}")
+ public ResponseEntity> delete_by_id(@PathVariable Integer id ) {
+ Service.delete_by_id(id);
+ return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
+
+ }
+
+
+
+
+
+@PutMapping("/Ad8/Support_update/{id}")
+ public ResponseEntity> updateSupport(@PathVariable Integer id, @RequestBody Support data) {
+ ResponseEntity> update = Service.updateSupport(id, data);
+ System.out.println(update + " updateed");
+ return update;
+ }
+
+
+
+@PutMapping("/Ad8/Childform_update/{id}")
+ public ResponseEntity> updateChildform(@PathVariable Integer id, @RequestBody Childform data) {
+ ResponseEntity> update = Service.updateChildform(id, data);
+ System.out.println(update + " updateed");
+ return update;
+ }
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Ad9Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Ad9Controller.java
new file mode 100644
index 0000000..b361ba0
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Ad9Controller.java
@@ -0,0 +1,91 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.realnet.config.EmailService;
+import com.realnet.users.entity1.AppUser;
+import com.realnet.users.service1.AppUserServiceImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.data.domain.*;
+import com.realnet.fnd.response.EntityResponse;
+import org.springframework.http.*;
+import org.springframework.beans.factory.annotation.*;
+import com.realnet.angulardatatype.Entity.Ad9;
+import com.realnet.angulardatatype.Services.Ad9Service ;
+
+
+
+
+@RequestMapping(value = "/Ad9")
+ @CrossOrigin("*")
+@RestController
+public class Ad9Controller {
+ @Autowired
+ private Ad9Service Service;
+
+@Value("${projectPath}")
+ private String projectPath;
+
+
+
+
+
+ @PostMapping("/Ad9")
+ public Ad9 Savedata(@RequestBody Ad9 data) {
+ Ad9 save = Service.Savedata(data) ;
+
+
+
+ System.out.println("data saved..." + save);
+
+ return save;
+ }
+@PutMapping("/Ad9/{id}")
+ public Ad9 update(@RequestBody Ad9 data,@PathVariable Integer id ) {
+ Ad9 update = Service.update(data,id);
+ System.out.println("data update..." + update);
+ return update;
+ }
+// get all with pagination
+ @GetMapping("/Ad9/getall/page")
+ public Page getall(@RequestParam(value = "page", required = false) Integer page,
+ @RequestParam(value = "size", required = false) Integer size) {
+ Pageable paging = PageRequest.of(page, size);
+ Page get = Service.getAllWithPagination(paging);
+
+ return get;
+
+ }
+ @GetMapping("/Ad9")
+ public List getdetails() {
+ List get = Service.getdetails();
+ return get;
+}
+// get all without authentication
+
+ @GetMapping("/token/Ad9")
+ public List getallwioutsec() {
+ List get = Service.getdetails();
+ return get;
+}
+@GetMapping("/Ad9/{id}")
+ public Ad9 getdetailsbyId(@PathVariable Integer id ) {
+ Ad9 get = Service.getdetailsbyId(id);
+ return get;
+ }
+@DeleteMapping("/Ad9/{id}")
+ public ResponseEntity> delete_by_id(@PathVariable Integer id ) {
+ Service.delete_by_id(id);
+ return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
+
+ }
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Adv1Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Adv1Controller.java
new file mode 100644
index 0000000..bd75017
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Adv1Controller.java
@@ -0,0 +1,171 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.realnet.config.EmailService;
+import com.realnet.users.entity1.AppUser;
+import com.realnet.users.service1.AppUserServiceImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.data.domain.*;
+import com.realnet.fnd.response.EntityResponse;
+import org.springframework.http.*;
+import org.springframework.beans.factory.annotation.*;
+import com.realnet.angulardatatype.Entity.Adv1;
+import com.realnet.angulardatatype.Services.Adv1Service ;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+@RequestMapping(value = "/Adv1")
+ @CrossOrigin("*")
+@RestController
+public class Adv1Controller {
+ @Autowired
+ private Adv1Service Service;
+
+@Value("${projectPath}")
+ private String projectPath;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @PostMapping("/Adv1")
+ public Adv1 Savedata(@RequestBody Adv1 data) {
+ Adv1 save = Service.Savedata(data) ;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.out.println("data saved..." + save);
+
+ return save;
+ }
+@PutMapping("/Adv1/{id}")
+ public Adv1 update(@RequestBody Adv1 data,@PathVariable Integer id ) {
+ Adv1 update = Service.update(data,id);
+ System.out.println("data update..." + update);
+ return update;
+ }
+// get all with pagination
+ @GetMapping("/Adv1/getall/page")
+ public Page getall(@RequestParam(value = "page", required = false) Integer page,
+ @RequestParam(value = "size", required = false) Integer size) {
+ Pageable paging = PageRequest.of(page, size);
+ Page get = Service.getAllWithPagination(paging);
+
+ return get;
+
+ }
+ @GetMapping("/Adv1")
+ public List getdetails() {
+ List get = Service.getdetails();
+ return get;
+}
+// get all without authentication
+
+ @GetMapping("/token/Adv1")
+ public List getallwioutsec() {
+ List get = Service.getdetails();
+ return get;
+}
+@GetMapping("/Adv1/{id}")
+ public Adv1 getdetailsbyId(@PathVariable Integer id ) {
+ Adv1 get = Service.getdetailsbyId(id);
+ return get;
+ }
+@DeleteMapping("/Adv1/{id}")
+ public ResponseEntity> delete_by_id(@PathVariable Integer id ) {
+ Service.delete_by_id(id);
+ return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Adv3Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Adv3Controller.java
new file mode 100644
index 0000000..126655b
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Adv3Controller.java
@@ -0,0 +1,163 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.realnet.config.EmailService;
+import com.realnet.users.entity1.AppUser;
+import com.realnet.users.service1.AppUserServiceImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.data.domain.*;
+import com.realnet.fnd.response.EntityResponse;
+import org.springframework.http.*;
+import org.springframework.beans.factory.annotation.*;
+import com.realnet.angulardatatype.Entity.Adv3;
+import com.realnet.angulardatatype.Services.Adv3Service ;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+@RequestMapping(value = "/Adv3")
+ @CrossOrigin("*")
+@RestController
+public class Adv3Controller {
+ @Autowired
+ private Adv3Service Service;
+
+@Value("${projectPath}")
+ private String projectPath;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @PostMapping("/Adv3")
+ public Adv3 Savedata(@RequestBody Adv3 data) {
+ Adv3 save = Service.Savedata(data) ;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.out.println("data saved..." + save);
+
+ return save;
+ }
+@PutMapping("/Adv3/{id}")
+ public Adv3 update(@RequestBody Adv3 data,@PathVariable Integer id ) {
+ Adv3 update = Service.update(data,id);
+ System.out.println("data update..." + update);
+ return update;
+ }
+// get all with pagination
+ @GetMapping("/Adv3/getall/page")
+ public Page getall(@RequestParam(value = "page", required = false) Integer page,
+ @RequestParam(value = "size", required = false) Integer size) {
+ Pageable paging = PageRequest.of(page, size);
+ Page get = Service.getAllWithPagination(paging);
+
+ return get;
+
+ }
+ @GetMapping("/Adv3")
+ public List getdetails() {
+ List get = Service.getdetails();
+ return get;
+}
+// get all without authentication
+
+ @GetMapping("/token/Adv3")
+ public List getallwioutsec() {
+ List get = Service.getdetails();
+ return get;
+}
+@GetMapping("/Adv3/{id}")
+ public Adv3 getdetailsbyId(@PathVariable Integer id ) {
+ Adv3 get = Service.getdetailsbyId(id);
+ return get;
+ }
+@DeleteMapping("/Adv3/{id}")
+ public ResponseEntity> delete_by_id(@PathVariable Integer id ) {
+ Service.delete_by_id(id);
+ return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Adv4Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Adv4Controller.java
new file mode 100644
index 0000000..9548212
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Adv4Controller.java
@@ -0,0 +1,123 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.realnet.config.EmailService;
+import com.realnet.users.entity1.AppUser;
+import com.realnet.users.service1.AppUserServiceImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.data.domain.*;
+import com.realnet.fnd.response.EntityResponse;
+import org.springframework.http.*;
+import org.springframework.beans.factory.annotation.*;
+import com.realnet.angulardatatype.Entity.Adv4;
+import com.realnet.angulardatatype.Services.Adv4Service ;
+
+
+
+
+
+
+
+
+
+
+
+
+@RequestMapping(value = "/Adv4")
+ @CrossOrigin("*")
+@RestController
+public class Adv4Controller {
+ @Autowired
+ private Adv4Service Service;
+
+@Value("${projectPath}")
+ private String projectPath;
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @PostMapping("/Adv4")
+ public Adv4 Savedata(@RequestBody Adv4 data) {
+ Adv4 save = Service.Savedata(data) ;
+
+
+
+
+
+
+
+
+
+
+
+ System.out.println("data saved..." + save);
+
+ return save;
+ }
+@PutMapping("/Adv4/{id}")
+ public Adv4 update(@RequestBody Adv4 data,@PathVariable Integer id ) {
+ Adv4 update = Service.update(data,id);
+ System.out.println("data update..." + update);
+ return update;
+ }
+// get all with pagination
+ @GetMapping("/Adv4/getall/page")
+ public Page getall(@RequestParam(value = "page", required = false) Integer page,
+ @RequestParam(value = "size", required = false) Integer size) {
+ Pageable paging = PageRequest.of(page, size);
+ Page get = Service.getAllWithPagination(paging);
+
+ return get;
+
+ }
+ @GetMapping("/Adv4")
+ public List getdetails() {
+ List get = Service.getdetails();
+ return get;
+}
+// get all without authentication
+
+ @GetMapping("/token/Adv4")
+ public List getallwioutsec() {
+ List get = Service.getdetails();
+ return get;
+}
+@GetMapping("/Adv4/{id}")
+ public Adv4 getdetailsbyId(@PathVariable Integer id ) {
+ Adv4 get = Service.getdetailsbyId(id);
+ return get;
+ }
+@DeleteMapping("/Adv4/{id}")
+ public ResponseEntity> delete_by_id(@PathVariable Integer id ) {
+ Service.delete_by_id(id);
+ return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Adv5Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Adv5Controller.java
new file mode 100644
index 0000000..44efce2
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Adv5Controller.java
@@ -0,0 +1,147 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.realnet.config.EmailService;
+import com.realnet.users.entity1.AppUser;
+import com.realnet.users.service1.AppUserServiceImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.data.domain.*;
+import com.realnet.fnd.response.EntityResponse;
+import org.springframework.http.*;
+import org.springframework.beans.factory.annotation.*;
+import com.realnet.angulardatatype.Entity.Adv5;
+import com.realnet.angulardatatype.Services.Adv5Service ;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+@RequestMapping(value = "/Adv5")
+ @CrossOrigin("*")
+@RestController
+public class Adv5Controller {
+ @Autowired
+ private Adv5Service Service;
+
+@Value("${projectPath}")
+ private String projectPath;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @PostMapping("/Adv5")
+ public Adv5 Savedata(@RequestBody Adv5 data) {
+ Adv5 save = Service.Savedata(data) ;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.out.println("data saved..." + save);
+
+ return save;
+ }
+@PutMapping("/Adv5/{id}")
+ public Adv5 update(@RequestBody Adv5 data,@PathVariable Integer id ) {
+ Adv5 update = Service.update(data,id);
+ System.out.println("data update..." + update);
+ return update;
+ }
+// get all with pagination
+ @GetMapping("/Adv5/getall/page")
+ public Page getall(@RequestParam(value = "page", required = false) Integer page,
+ @RequestParam(value = "size", required = false) Integer size) {
+ Pageable paging = PageRequest.of(page, size);
+ Page get = Service.getAllWithPagination(paging);
+
+ return get;
+
+ }
+ @GetMapping("/Adv5")
+ public List getdetails() {
+ List get = Service.getdetails();
+ return get;
+}
+// get all without authentication
+
+ @GetMapping("/token/Adv5")
+ public List getallwioutsec() {
+ List get = Service.getdetails();
+ return get;
+}
+@GetMapping("/Adv5/{id}")
+ public Adv5 getdetailsbyId(@PathVariable Integer id ) {
+ Adv5 get = Service.getdetailsbyId(id);
+ return get;
+ }
+@DeleteMapping("/Adv5/{id}")
+ public ResponseEntity> delete_by_id(@PathVariable Integer id ) {
+ Service.delete_by_id(id);
+ return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Basicp1Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Basicp1Controller.java
new file mode 100644
index 0000000..2be35e3
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Basicp1Controller.java
@@ -0,0 +1,171 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.realnet.config.EmailService;
+import com.realnet.users.entity1.AppUser;
+import com.realnet.users.service1.AppUserServiceImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.data.domain.*;
+import com.realnet.fnd.response.EntityResponse;
+import org.springframework.http.*;
+import org.springframework.beans.factory.annotation.*;
+import com.realnet.angulardatatype.Entity.Basicp1;
+import com.realnet.angulardatatype.Services.Basicp1Service ;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+@RequestMapping(value = "/Basicp1")
+ @CrossOrigin("*")
+@RestController
+public class Basicp1Controller {
+ @Autowired
+ private Basicp1Service Service;
+
+@Value("${projectPath}")
+ private String projectPath;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @PostMapping("/Basicp1")
+ public Basicp1 Savedata(@RequestBody Basicp1 data) {
+ Basicp1 save = Service.Savedata(data) ;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.out.println("data saved..." + save);
+
+ return save;
+ }
+@PutMapping("/Basicp1/{id}")
+ public Basicp1 update(@RequestBody Basicp1 data,@PathVariable Integer id ) {
+ Basicp1 update = Service.update(data,id);
+ System.out.println("data update..." + update);
+ return update;
+ }
+// get all with pagination
+ @GetMapping("/Basicp1/getall/page")
+ public Page getall(@RequestParam(value = "page", required = false) Integer page,
+ @RequestParam(value = "size", required = false) Integer size) {
+ Pageable paging = PageRequest.of(page, size);
+ Page get = Service.getAllWithPagination(paging);
+
+ return get;
+
+ }
+ @GetMapping("/Basicp1")
+ public List getdetails() {
+ List get = Service.getdetails();
+ return get;
+}
+// get all without authentication
+
+ @GetMapping("/token/Basicp1")
+ public List getallwioutsec() {
+ List get = Service.getdetails();
+ return get;
+}
+@GetMapping("/Basicp1/{id}")
+ public Basicp1 getdetailsbyId(@PathVariable Integer id ) {
+ Basicp1 get = Service.getdetailsbyId(id);
+ return get;
+ }
+@DeleteMapping("/Basicp1/{id}")
+ public ResponseEntity> delete_by_id(@PathVariable Integer id ) {
+ Service.delete_by_id(id);
+ return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Basicp2Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Basicp2Controller.java
new file mode 100644
index 0000000..0ed5536
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Basicp2Controller.java
@@ -0,0 +1,147 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.realnet.config.EmailService;
+import com.realnet.users.entity1.AppUser;
+import com.realnet.users.service1.AppUserServiceImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.data.domain.*;
+import com.realnet.fnd.response.EntityResponse;
+import org.springframework.http.*;
+import org.springframework.beans.factory.annotation.*;
+import com.realnet.angulardatatype.Entity.Basicp2;
+import com.realnet.angulardatatype.Services.Basicp2Service ;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+@RequestMapping(value = "/Basicp2")
+ @CrossOrigin("*")
+@RestController
+public class Basicp2Controller {
+ @Autowired
+ private Basicp2Service Service;
+
+@Value("${projectPath}")
+ private String projectPath;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @PostMapping("/Basicp2")
+ public Basicp2 Savedata(@RequestBody Basicp2 data) {
+ Basicp2 save = Service.Savedata(data) ;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.out.println("data saved..." + save);
+
+ return save;
+ }
+@PutMapping("/Basicp2/{id}")
+ public Basicp2 update(@RequestBody Basicp2 data,@PathVariable Integer id ) {
+ Basicp2 update = Service.update(data,id);
+ System.out.println("data update..." + update);
+ return update;
+ }
+// get all with pagination
+ @GetMapping("/Basicp2/getall/page")
+ public Page getall(@RequestParam(value = "page", required = false) Integer page,
+ @RequestParam(value = "size", required = false) Integer size) {
+ Pageable paging = PageRequest.of(page, size);
+ Page get = Service.getAllWithPagination(paging);
+
+ return get;
+
+ }
+ @GetMapping("/Basicp2")
+ public List getdetails() {
+ List get = Service.getdetails();
+ return get;
+}
+// get all without authentication
+
+ @GetMapping("/token/Basicp2")
+ public List getallwioutsec() {
+ List get = Service.getdetails();
+ return get;
+}
+@GetMapping("/Basicp2/{id}")
+ public Basicp2 getdetailsbyId(@PathVariable Integer id ) {
+ Basicp2 get = Service.getdetailsbyId(id);
+ return get;
+ }
+@DeleteMapping("/Basicp2/{id}")
+ public ResponseEntity> delete_by_id(@PathVariable Integer id ) {
+ Service.delete_by_id(id);
+ return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Basicp3Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Basicp3Controller.java
new file mode 100644
index 0000000..7e1b203
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Basicp3Controller.java
@@ -0,0 +1,163 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.realnet.config.EmailService;
+import com.realnet.users.entity1.AppUser;
+import com.realnet.users.service1.AppUserServiceImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.data.domain.*;
+import com.realnet.fnd.response.EntityResponse;
+import org.springframework.http.*;
+import org.springframework.beans.factory.annotation.*;
+import com.realnet.angulardatatype.Entity.Basicp3;
+import com.realnet.angulardatatype.Services.Basicp3Service ;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+@RequestMapping(value = "/Basicp3")
+ @CrossOrigin("*")
+@RestController
+public class Basicp3Controller {
+ @Autowired
+ private Basicp3Service Service;
+
+@Value("${projectPath}")
+ private String projectPath;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @PostMapping("/Basicp3")
+ public Basicp3 Savedata(@RequestBody Basicp3 data) {
+ Basicp3 save = Service.Savedata(data) ;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.out.println("data saved..." + save);
+
+ return save;
+ }
+@PutMapping("/Basicp3/{id}")
+ public Basicp3 update(@RequestBody Basicp3 data,@PathVariable Integer id ) {
+ Basicp3 update = Service.update(data,id);
+ System.out.println("data update..." + update);
+ return update;
+ }
+// get all with pagination
+ @GetMapping("/Basicp3/getall/page")
+ public Page getall(@RequestParam(value = "page", required = false) Integer page,
+ @RequestParam(value = "size", required = false) Integer size) {
+ Pageable paging = PageRequest.of(page, size);
+ Page get = Service.getAllWithPagination(paging);
+
+ return get;
+
+ }
+ @GetMapping("/Basicp3")
+ public List getdetails() {
+ List get = Service.getdetails();
+ return get;
+}
+// get all without authentication
+
+ @GetMapping("/token/Basicp3")
+ public List getallwioutsec() {
+ List get = Service.getdetails();
+ return get;
+}
+@GetMapping("/Basicp3/{id}")
+ public Basicp3 getdetailsbyId(@PathVariable Integer id ) {
+ Basicp3 get = Service.getdetailsbyId(id);
+ return get;
+ }
+@DeleteMapping("/Basicp3/{id}")
+ public ResponseEntity> delete_by_id(@PathVariable Integer id ) {
+ Service.delete_by_id(id);
+ return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Basicp3InsertController2.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Basicp3InsertController2.java
new file mode 100644
index 0000000..9963a59
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Basicp3InsertController2.java
@@ -0,0 +1,21 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.http.*;
+import com.realnet.angulardatatype.Entity.Basicp3;
+import com.realnet.angulardatatype.Services.Basicp3InsertService2;
+@RequestMapping(value = "/Basicp3")
+@RestController
+public class Basicp3InsertController2{
+
+ @Autowired
+ private Basicp3InsertService2 Service;
+
+@PostMapping("/Basicp3_insert")
+ public ResponseEntity> insert(@RequestBody Basicp3 basicp3) {
+ Basicp3 insertaction = Service.insertaction(basicp3);
+ return new ResponseEntity<>(insertaction, HttpStatus.OK);
+ }
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/ChildformUpdateController3.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/ChildformUpdateController3.java
new file mode 100644
index 0000000..b791086
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/ChildformUpdateController3.java
@@ -0,0 +1,23 @@
+package com.realnet.angulardatatype.Controllers;
+
+ import java.util.List;
+import org.springframework.http.ResponseEntity;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import com.realnet.stpkg.Entity.Childform;
+import com.realnet.angulardatatype.Services.ChildformUpdateService3 ;
+@RequestMapping(value = "/Childform")
+@RestController
+public class ChildformUpdateController3{
+
+ @Autowired
+ private ChildformUpdateService3 Service;
+
+@PutMapping("/Childform_update/{id}")
+ public ResponseEntity> update(@PathVariable Integer id,@RequestBody Childform childform) {
+ ResponseEntity> update = Service.updateaction(id,childform );
+ System.out.println(update+" updateed");
+ return update;
+ }
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/District_ListFilter1Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/District_ListFilter1Controller.java
new file mode 100644
index 0000000..48015b1
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/District_ListFilter1Controller.java
@@ -0,0 +1,24 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import com.realnet.angulardatatype.Entity.District_ListFilter1;
+import com.realnet.angulardatatype.Services.District_ListFilter1Service ;
+@RequestMapping(value = "/District_ListFilter1")
+@RestController
+public class District_ListFilter1Controller {
+
+ @Autowired
+ private District_ListFilter1Service Service;
+
+ @GetMapping("/District_ListFilter1")
+ public List getlist() {
+ List get = Service.getlistbuilder();
+ return get;
+}
+ @GetMapping("/District_ListFilter11/{item}")
+ public List getlistwithparam( @PathVariable String item) {
+ List get = Service.getlistbuilderparam( item);
+ return get;
+}
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Dv2Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Dv2Controller.java
new file mode 100644
index 0000000..9f3d963
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/Dv2Controller.java
@@ -0,0 +1,147 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.realnet.config.EmailService;
+import com.realnet.users.entity1.AppUser;
+import com.realnet.users.service1.AppUserServiceImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.data.domain.*;
+import com.realnet.fnd.response.EntityResponse;
+import org.springframework.http.*;
+import org.springframework.beans.factory.annotation.*;
+import com.realnet.angulardatatype.Entity.Dv2;
+import com.realnet.angulardatatype.Services.Dv2Service ;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+@RequestMapping(value = "/Dv2")
+ @CrossOrigin("*")
+@RestController
+public class Dv2Controller {
+ @Autowired
+ private Dv2Service Service;
+
+@Value("${projectPath}")
+ private String projectPath;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @PostMapping("/Dv2")
+ public Dv2 Savedata(@RequestBody Dv2 data) {
+ Dv2 save = Service.Savedata(data) ;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.out.println("data saved..." + save);
+
+ return save;
+ }
+@PutMapping("/Dv2/{id}")
+ public Dv2 update(@RequestBody Dv2 data,@PathVariable Integer id ) {
+ Dv2 update = Service.update(data,id);
+ System.out.println("data update..." + update);
+ return update;
+ }
+// get all with pagination
+ @GetMapping("/Dv2/getall/page")
+ public Page getall(@RequestParam(value = "page", required = false) Integer page,
+ @RequestParam(value = "size", required = false) Integer size) {
+ Pageable paging = PageRequest.of(page, size);
+ Page get = Service.getAllWithPagination(paging);
+
+ return get;
+
+ }
+ @GetMapping("/Dv2")
+ public List getdetails() {
+ List get = Service.getdetails();
+ return get;
+}
+// get all without authentication
+
+ @GetMapping("/token/Dv2")
+ public List getallwioutsec() {
+ List get = Service.getdetails();
+ return get;
+}
+@GetMapping("/Dv2/{id}")
+ public Dv2 getdetailsbyId(@PathVariable Integer id ) {
+ Dv2 get = Service.getdetailsbyId(id);
+ return get;
+ }
+@DeleteMapping("/Dv2/{id}")
+ public ResponseEntity> delete_by_id(@PathVariable Integer id ) {
+ Service.delete_by_id(id);
+ return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/State_ListFilter1Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/State_ListFilter1Controller.java
new file mode 100644
index 0000000..f6483bb
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/State_ListFilter1Controller.java
@@ -0,0 +1,24 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import com.realnet.angulardatatype.Entity.State_ListFilter1;
+import com.realnet.angulardatatype.Services.State_ListFilter1Service ;
+@RequestMapping(value = "/State_ListFilter1")
+@RestController
+public class State_ListFilter1Controller {
+
+ @Autowired
+ private State_ListFilter1Service Service;
+
+ @GetMapping("/State_ListFilter1")
+ public List getlist() {
+ List get = Service.getlistbuilder();
+ return get;
+}
+ @GetMapping("/State_ListFilter11/{item}")
+ public List getlistwithparam( @PathVariable String item) {
+ List get = Service.getlistbuilderparam( item);
+ return get;
+}
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/SupportController.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/SupportController.java
new file mode 100644
index 0000000..9469a8c
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/SupportController.java
@@ -0,0 +1,91 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.realnet.config.EmailService;
+import com.realnet.users.entity1.AppUser;
+import com.realnet.users.service1.AppUserServiceImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.data.domain.*;
+import com.realnet.fnd.response.EntityResponse;
+import org.springframework.http.*;
+import org.springframework.beans.factory.annotation.*;
+import com.realnet.angulardatatype.Entity.Support;
+import com.realnet.angulardatatype.Services.SupportService ;
+
+
+
+
+@RequestMapping(value = "/Support")
+ @CrossOrigin("*")
+@RestController
+public class SupportController {
+ @Autowired
+ private SupportService Service;
+
+@Value("${projectPath}")
+ private String projectPath;
+
+
+
+
+
+ @PostMapping("/Support")
+ public Support Savedata(@RequestBody Support data) {
+ Support save = Service.Savedata(data) ;
+
+
+
+ System.out.println("data saved..." + save);
+
+ return save;
+ }
+@PutMapping("/Support/{id}")
+ public Support update(@RequestBody Support data,@PathVariable Integer id ) {
+ Support update = Service.update(data,id);
+ System.out.println("data update..." + update);
+ return update;
+ }
+// get all with pagination
+ @GetMapping("/Support/getall/page")
+ public Page getall(@RequestParam(value = "page", required = false) Integer page,
+ @RequestParam(value = "size", required = false) Integer size) {
+ Pageable paging = PageRequest.of(page, size);
+ Page get = Service.getAllWithPagination(paging);
+
+ return get;
+
+ }
+ @GetMapping("/Support")
+ public List getdetails() {
+ List get = Service.getdetails();
+ return get;
+}
+// get all without authentication
+
+ @GetMapping("/token/Support")
+ public List getallwioutsec() {
+ List get = Service.getdetails();
+ return get;
+}
+@GetMapping("/Support/{id}")
+ public Support getdetailsbyId(@PathVariable Integer id ) {
+ Support get = Service.getdetailsbyId(id);
+ return get;
+ }
+@DeleteMapping("/Support/{id}")
+ public ResponseEntity> delete_by_id(@PathVariable Integer id ) {
+ Service.delete_by_id(id);
+ return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
+
+ }
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/SupportInsertController3.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/SupportInsertController3.java
new file mode 100644
index 0000000..19c926d
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/SupportInsertController3.java
@@ -0,0 +1,21 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.http.*;
+import com.realnet.angulardatatype.Entity.Support;
+import com.realnet.angulardatatype.Services.SupportInsertService3;
+@RequestMapping(value = "/Support")
+@RestController
+public class SupportInsertController3{
+
+ @Autowired
+ private SupportInsertService3 Service;
+
+@PostMapping("/Support_insert")
+ public ResponseEntity> insert(@RequestBody Support support) {
+ Support insertaction = Service.insertaction(support);
+ return new ResponseEntity<>(insertaction, HttpStatus.OK);
+ }
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/SupportUpdateController2.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/SupportUpdateController2.java
new file mode 100644
index 0000000..6948143
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/SupportUpdateController2.java
@@ -0,0 +1,23 @@
+package com.realnet.angulardatatype.Controllers;
+
+ import java.util.List;
+import org.springframework.http.ResponseEntity;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import com.realnet.angulardatatype.Entity.Support;
+import com.realnet.angulardatatype.Services.SupportUpdateService2 ;
+@RequestMapping(value = "/Support")
+@RestController
+public class SupportUpdateController2{
+
+ @Autowired
+ private SupportUpdateService2 Service;
+
+@PutMapping("/Support_update/{id}")
+ public ResponseEntity> update(@PathVariable Integer id,@RequestBody Support support) {
+ ResponseEntity> update = Service.updateaction(id,support );
+ System.out.println(update+" updateed");
+ return update;
+ }
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/tokenFree_Ad6Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/tokenFree_Ad6Controller.java
new file mode 100644
index 0000000..cb2bf8a
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/tokenFree_Ad6Controller.java
@@ -0,0 +1,115 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.realnet.config.EmailService;
+import com.realnet.users.entity1.AppUser;
+import com.realnet.users.service1.AppUserServiceImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.data.domain.*;
+import com.realnet.fnd.response.EntityResponse;
+import org.springframework.http.*;
+import org.springframework.beans.factory.annotation.*;
+import com.realnet.angulardatatype.Entity.Ad6;
+import com.realnet.angulardatatype.Services.Ad6Service ;
+
+
+
+
+
+
+
+
+
+
+@RequestMapping(value = "/token/Ad6")
+ @CrossOrigin("*")
+@RestController
+public class tokenFree_Ad6Controller {
+ @Autowired
+ private Ad6Service Service;
+
+@Value("${projectPath}")
+ private String projectPath;
+
+
+
+
+
+
+
+
+
+
+
+ @PostMapping("/Ad6")
+ public Ad6 Savedata(@RequestBody Ad6 data) {
+ Ad6 save = Service.Savedata(data) ;
+
+
+
+
+
+
+
+
+
+ System.out.println("data saved..." + save);
+
+ return save;
+ }
+@PutMapping("/Ad6/{id}")
+ public Ad6 update(@RequestBody Ad6 data,@PathVariable Integer id ) {
+ Ad6 update = Service.update(data,id);
+ System.out.println("data update..." + update);
+ return update;
+ }
+// get all with pagination
+ @GetMapping("/Ad6/getall/page")
+ public Page getall(@RequestParam(value = "page", required = false) Integer page,
+ @RequestParam(value = "size", required = false) Integer size) {
+ Pageable paging = PageRequest.of(page, size);
+ Page get = Service.getAllWithPagination(paging);
+
+ return get;
+
+ }
+ @GetMapping("/Ad6")
+ public List getdetails() {
+ List get = Service.getdetails();
+ return get;
+}
+// get all without authentication
+
+ @GetMapping("/token/Ad6")
+ public List getallwioutsec() {
+ List get = Service.getdetails();
+ return get;
+}
+@GetMapping("/Ad6/{id}")
+ public Ad6 getdetailsbyId(@PathVariable Integer id ) {
+ Ad6 get = Service.getdetailsbyId(id);
+ return get;
+ }
+@DeleteMapping("/Ad6/{id}")
+ public ResponseEntity> delete_by_id(@PathVariable Integer id ) {
+ Service.delete_by_id(id);
+ return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/tokenFree_Ad7Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/tokenFree_Ad7Controller.java
new file mode 100644
index 0000000..f76af28
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/tokenFree_Ad7Controller.java
@@ -0,0 +1,113 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.realnet.config.EmailService;
+import com.realnet.users.entity1.AppUser;
+import com.realnet.users.service1.AppUserServiceImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.data.domain.*;
+import com.realnet.fnd.response.EntityResponse;
+import org.springframework.http.*;
+import org.springframework.beans.factory.annotation.*;
+import com.realnet.angulardatatype.Entity.Ad7;
+import com.realnet.angulardatatype.Services.Ad7Service ;
+
+
+import com.realnet.angulardatatype.Entity.Basicp3;
+
+
+import com.realnet.angulardatatype.Entity.Support;
+
+
+@RequestMapping(value = "/token/Ad7")
+ @CrossOrigin("*")
+@RestController
+public class tokenFree_Ad7Controller {
+ @Autowired
+ private Ad7Service Service;
+
+@Value("${projectPath}")
+ private String projectPath;
+
+
+
+
+
+
+
+ @PostMapping("/Ad7")
+ public Ad7 Savedata(@RequestBody Ad7 data) {
+ Ad7 save = Service.Savedata(data) ;
+
+
+
+
+
+ System.out.println("data saved..." + save);
+
+ return save;
+ }
+@PutMapping("/Ad7/{id}")
+ public Ad7 update(@RequestBody Ad7 data,@PathVariable Integer id ) {
+ Ad7 update = Service.update(data,id);
+ System.out.println("data update..." + update);
+ return update;
+ }
+// get all with pagination
+ @GetMapping("/Ad7/getall/page")
+ public Page getall(@RequestParam(value = "page", required = false) Integer page,
+ @RequestParam(value = "size", required = false) Integer size) {
+ Pageable paging = PageRequest.of(page, size);
+ Page get = Service.getAllWithPagination(paging);
+
+ return get;
+
+ }
+ @GetMapping("/Ad7")
+ public List getdetails() {
+ List get = Service.getdetails();
+ return get;
+}
+// get all without authentication
+
+ @GetMapping("/token/Ad7")
+ public List getallwioutsec() {
+ List get = Service.getdetails();
+ return get;
+}
+@GetMapping("/Ad7/{id}")
+ public Ad7 getdetailsbyId(@PathVariable Integer id ) {
+ Ad7 get = Service.getdetailsbyId(id);
+ return get;
+ }
+@DeleteMapping("/Ad7/{id}")
+ public ResponseEntity> delete_by_id(@PathVariable Integer id ) {
+ Service.delete_by_id(id);
+ return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
+
+ }
+
+
+
+
+
+ @PostMapping("/Ad7/Basicp3_insert")
+ public Basicp3 insertBasicp3(@RequestBody Basicp3 data) {
+ Basicp3 insertaction = Service.insertBasicp3(data);
+ return insertaction;
+ }
+
+
+
+ @PostMapping("/Ad7/Support_insert")
+ public Support insertSupport(@RequestBody Support data) {
+ Support insertaction = Service.insertSupport(data);
+ return insertaction;
+ }
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/tokenFree_Ad8Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/tokenFree_Ad8Controller.java
new file mode 100644
index 0000000..bfa3043
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/tokenFree_Ad8Controller.java
@@ -0,0 +1,131 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.realnet.config.EmailService;
+import com.realnet.users.entity1.AppUser;
+import com.realnet.users.service1.AppUserServiceImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.data.domain.*;
+import com.realnet.fnd.response.EntityResponse;
+import org.springframework.http.*;
+import org.springframework.beans.factory.annotation.*;
+import com.realnet.angulardatatype.Entity.Ad8;
+import com.realnet.angulardatatype.Services.Ad8Service ;
+
+
+import com.realnet.angulardatatype.Entity.Support;
+
+
+import com.realnet.stpkg.Entity.Childform;
+
+
+
+
+
+
+@RequestMapping(value = "/token/Ad8")
+ @CrossOrigin("*")
+@RestController
+public class tokenFree_Ad8Controller {
+ @Autowired
+ private Ad8Service Service;
+
+@Value("${projectPath}")
+ private String projectPath;
+
+
+
+
+
+
+
+
+
+
+
+ @PostMapping("/Ad8")
+ public Ad8 Savedata(@RequestBody Ad8 data) {
+ Ad8 save = Service.Savedata(data) ;
+
+
+
+
+
+
+
+
+
+ System.out.println("data saved..." + save);
+
+ return save;
+ }
+@PutMapping("/Ad8/{id}")
+ public Ad8 update(@RequestBody Ad8 data,@PathVariable Integer id ) {
+ Ad8 update = Service.update(data,id);
+ System.out.println("data update..." + update);
+ return update;
+ }
+// get all with pagination
+ @GetMapping("/Ad8/getall/page")
+ public Page getall(@RequestParam(value = "page", required = false) Integer page,
+ @RequestParam(value = "size", required = false) Integer size) {
+ Pageable paging = PageRequest.of(page, size);
+ Page get = Service.getAllWithPagination(paging);
+
+ return get;
+
+ }
+ @GetMapping("/Ad8")
+ public List getdetails() {
+ List get = Service.getdetails();
+ return get;
+}
+// get all without authentication
+
+ @GetMapping("/token/Ad8")
+ public List getallwioutsec() {
+ List get = Service.getdetails();
+ return get;
+}
+@GetMapping("/Ad8/{id}")
+ public Ad8 getdetailsbyId(@PathVariable Integer id ) {
+ Ad8 get = Service.getdetailsbyId(id);
+ return get;
+ }
+@DeleteMapping("/Ad8/{id}")
+ public ResponseEntity> delete_by_id(@PathVariable Integer id ) {
+ Service.delete_by_id(id);
+ return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
+
+ }
+
+
+
+
+
+@PutMapping("/Ad8/Support_update/{id}")
+ public ResponseEntity> updateSupport(@PathVariable Integer id, @RequestBody Support data) {
+ ResponseEntity> update = Service.updateSupport(id, data);
+ System.out.println(update + " updateed");
+ return update;
+ }
+
+
+
+@PutMapping("/Ad8/Childform_update/{id}")
+ public ResponseEntity> updateChildform(@PathVariable Integer id, @RequestBody Childform data) {
+ ResponseEntity> update = Service.updateChildform(id, data);
+ System.out.println(update + " updateed");
+ return update;
+ }
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/tokenFree_Ad9Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/tokenFree_Ad9Controller.java
new file mode 100644
index 0000000..e4d563d
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/tokenFree_Ad9Controller.java
@@ -0,0 +1,91 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.realnet.config.EmailService;
+import com.realnet.users.entity1.AppUser;
+import com.realnet.users.service1.AppUserServiceImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.data.domain.*;
+import com.realnet.fnd.response.EntityResponse;
+import org.springframework.http.*;
+import org.springframework.beans.factory.annotation.*;
+import com.realnet.angulardatatype.Entity.Ad9;
+import com.realnet.angulardatatype.Services.Ad9Service ;
+
+
+
+
+@RequestMapping(value = "/token/Ad9")
+ @CrossOrigin("*")
+@RestController
+public class tokenFree_Ad9Controller {
+ @Autowired
+ private Ad9Service Service;
+
+@Value("${projectPath}")
+ private String projectPath;
+
+
+
+
+
+ @PostMapping("/Ad9")
+ public Ad9 Savedata(@RequestBody Ad9 data) {
+ Ad9 save = Service.Savedata(data) ;
+
+
+
+ System.out.println("data saved..." + save);
+
+ return save;
+ }
+@PutMapping("/Ad9/{id}")
+ public Ad9 update(@RequestBody Ad9 data,@PathVariable Integer id ) {
+ Ad9 update = Service.update(data,id);
+ System.out.println("data update..." + update);
+ return update;
+ }
+// get all with pagination
+ @GetMapping("/Ad9/getall/page")
+ public Page getall(@RequestParam(value = "page", required = false) Integer page,
+ @RequestParam(value = "size", required = false) Integer size) {
+ Pageable paging = PageRequest.of(page, size);
+ Page get = Service.getAllWithPagination(paging);
+
+ return get;
+
+ }
+ @GetMapping("/Ad9")
+ public List getdetails() {
+ List get = Service.getdetails();
+ return get;
+}
+// get all without authentication
+
+ @GetMapping("/token/Ad9")
+ public List getallwioutsec() {
+ List get = Service.getdetails();
+ return get;
+}
+@GetMapping("/Ad9/{id}")
+ public Ad9 getdetailsbyId(@PathVariable Integer id ) {
+ Ad9 get = Service.getdetailsbyId(id);
+ return get;
+ }
+@DeleteMapping("/Ad9/{id}")
+ public ResponseEntity> delete_by_id(@PathVariable Integer id ) {
+ Service.delete_by_id(id);
+ return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
+
+ }
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/tokenFree_Adv1Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/tokenFree_Adv1Controller.java
new file mode 100644
index 0000000..e495341
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/tokenFree_Adv1Controller.java
@@ -0,0 +1,171 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.realnet.config.EmailService;
+import com.realnet.users.entity1.AppUser;
+import com.realnet.users.service1.AppUserServiceImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.data.domain.*;
+import com.realnet.fnd.response.EntityResponse;
+import org.springframework.http.*;
+import org.springframework.beans.factory.annotation.*;
+import com.realnet.angulardatatype.Entity.Adv1;
+import com.realnet.angulardatatype.Services.Adv1Service ;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+@RequestMapping(value = "/token/Adv1")
+ @CrossOrigin("*")
+@RestController
+public class tokenFree_Adv1Controller {
+ @Autowired
+ private Adv1Service Service;
+
+@Value("${projectPath}")
+ private String projectPath;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @PostMapping("/Adv1")
+ public Adv1 Savedata(@RequestBody Adv1 data) {
+ Adv1 save = Service.Savedata(data) ;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.out.println("data saved..." + save);
+
+ return save;
+ }
+@PutMapping("/Adv1/{id}")
+ public Adv1 update(@RequestBody Adv1 data,@PathVariable Integer id ) {
+ Adv1 update = Service.update(data,id);
+ System.out.println("data update..." + update);
+ return update;
+ }
+// get all with pagination
+ @GetMapping("/Adv1/getall/page")
+ public Page getall(@RequestParam(value = "page", required = false) Integer page,
+ @RequestParam(value = "size", required = false) Integer size) {
+ Pageable paging = PageRequest.of(page, size);
+ Page get = Service.getAllWithPagination(paging);
+
+ return get;
+
+ }
+ @GetMapping("/Adv1")
+ public List getdetails() {
+ List get = Service.getdetails();
+ return get;
+}
+// get all without authentication
+
+ @GetMapping("/token/Adv1")
+ public List getallwioutsec() {
+ List get = Service.getdetails();
+ return get;
+}
+@GetMapping("/Adv1/{id}")
+ public Adv1 getdetailsbyId(@PathVariable Integer id ) {
+ Adv1 get = Service.getdetailsbyId(id);
+ return get;
+ }
+@DeleteMapping("/Adv1/{id}")
+ public ResponseEntity> delete_by_id(@PathVariable Integer id ) {
+ Service.delete_by_id(id);
+ return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+}
\ No newline at end of file
diff --git a/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/tokenFree_Adv3Controller.java b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/tokenFree_Adv3Controller.java
new file mode 100644
index 0000000..aa59320
--- /dev/null
+++ b/test17sep-test2-b/authsec_springboot/backend/src/main/java/com/realnet/angulardatatype/Controllers/tokenFree_Adv3Controller.java
@@ -0,0 +1,163 @@
+package com.realnet.angulardatatype.Controllers;
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+ import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import org.springframework.web.bind.annotation.CrossOrigin;
+import com.fasterxml.jackson.databind.JsonMappingException;
+import com.realnet.config.EmailService;
+import com.realnet.users.entity1.AppUser;
+import com.realnet.users.service1.AppUserServiceImpl;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import org.springframework.data.domain.*;
+import com.realnet.fnd.response.EntityResponse;
+import org.springframework.http.*;
+import org.springframework.beans.factory.annotation.*;
+import com.realnet.angulardatatype.Entity.Adv3;
+import com.realnet.angulardatatype.Services.Adv3Service ;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+@RequestMapping(value = "/token/Adv3")
+ @CrossOrigin("*")
+@RestController
+public class tokenFree_Adv3Controller {
+ @Autowired
+ private Adv3Service Service;
+
+@Value("${projectPath}")
+ private String projectPath;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @PostMapping("/Adv3")
+ public Adv3 Savedata(@RequestBody Adv3 data) {
+ Adv3 save = Service.Savedata(data) ;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.out.println("data saved..." + save);
+
+ return save;
+ }
+@PutMapping("/Adv3/{id}")
+ public Adv3 update(@RequestBody Adv3 data,@PathVariable Integer id ) {
+ Adv3 update = Service.update(data,id);
+ System.out.println("data update..." + update);
+ return update;
+ }
+// get all with pagination
+ @GetMapping("/Adv3/getall/page")
+ public Page getall(@RequestParam(value = "page", required = false) Integer page,
+ @RequestParam(value = "size", required = false) Integer size) {
+ Pageable paging = PageRequest.of(page, size);
+ Page get = Service.getAllWithPagination(paging);
+
+ return get;
+
+ }
+ @GetMapping("/Adv3")
+ public List getdetails() {
+ List get = Service.getdetails();
+ return get;
+}
+// get all without authentication
+
+ @GetMapping("/token/Adv3")
+ public List