build_app
This commit is contained in:
parent
044c948e5e
commit
090a4195e4
@ -72,6 +72,9 @@ public class BuilderService {
|
||||
addCustomMenu( "Forma","Forma", "Transcations");
|
||||
|
||||
|
||||
addCustomMenu( "Forma","Forma", "Transcations");
|
||||
|
||||
|
||||
|
||||
System.out.println("dashboard and menu inserted...");
|
||||
|
||||
|
||||
@ -20,8 +20,6 @@ import com.realnet.basicp1.Services.FormaService ;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@RequestMapping(value = "/Forma")
|
||||
@CrossOrigin("*")
|
||||
@RestController
|
||||
@ -36,16 +34,12 @@ public class FormaController {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@PostMapping("/Forma")
|
||||
public Forma Savedata(@RequestBody Forma data) {
|
||||
Forma save = Service.Savedata(data) ;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
System.out.println("data saved..." + save);
|
||||
|
||||
return save;
|
||||
@ -94,6 +88,4 @@ public class FormaController {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -20,8 +20,6 @@ import com.realnet.basicp1.Services.FormaService ;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@RequestMapping(value = "/token/Forma")
|
||||
@CrossOrigin("*")
|
||||
@RestController
|
||||
@ -36,16 +34,12 @@ public class tokenFree_FormaController {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@PostMapping("/Forma")
|
||||
public Forma Savedata(@RequestBody Forma data) {
|
||||
Forma save = Service.Savedata(data) ;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
System.out.println("data saved..." + save);
|
||||
|
||||
return save;
|
||||
@ -94,6 +88,4 @@ public class tokenFree_FormaController {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -8,8 +8,6 @@ import com.realnet.WhoColumn.Entity.Extension;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Entity
|
||||
@Data
|
||||
public class Forma extends Extension {
|
||||
@ -26,8 +24,5 @@ private String name;
|
||||
|
||||
private String documentsequence;
|
||||
|
||||
private Long user_id;
|
||||
private String user_name;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -15,8 +15,6 @@ import java.util.*;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
import com.realnet.basicp1.Entity.Forma;
|
||||
|
||||
@Repository
|
||||
|
||||
@ -16,8 +16,6 @@ import com.realnet.users.entity1.AppUser;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
@ -32,16 +30,11 @@ private FormaRepository Repository;
|
||||
@Autowired
|
||||
private SequenceService documentsequencesequenceService;
|
||||
|
||||
|
||||
|
||||
public Forma Savedata(Forma data) {
|
||||
|
||||
|
||||
data.setDocumentsequence (documentsequencesequenceService.GenerateSequence("kk"));
|
||||
|
||||
data.setUser_id(getUser().getUserId());
|
||||
data.setUser_name(getUser().getFullName());
|
||||
|
||||
data.setUpdatedBy(getUser().getUserId());
|
||||
data.setCreatedBy(getUser().getUserId());
|
||||
data.setAccountId(getUser().getAccount().getAccount_id());
|
||||
@ -77,8 +70,6 @@ old.setName(data.getName());
|
||||
|
||||
old.setDocumentsequence(data.getDocumentsequence());
|
||||
|
||||
|
||||
|
||||
final Forma test = Repository.save(old);
|
||||
data.setUpdatedBy(getUser().getUserId());
|
||||
return test;}
|
||||
@ -86,8 +77,6 @@ final Forma test = Repository.save(old);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public AppUser getUser() {
|
||||
AppUser user = userService.getLoggedInUser();
|
||||
return user;
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
CREATE TABLE db.Forma(id BIGINT NOT NULL AUTO_INCREMENT, userid_field VARCHAR(400), name VARCHAR(400), documentsequence VARCHAR(400), PRIMARY KEY (id));
|
||||
CREATE TABLE db.Forma(id BIGINT NOT NULL AUTO_INCREMENT, name VARCHAR(400), documentsequence VARCHAR(400), PRIMARY KEY (id));
|
||||
|
||||
|
||||
@ -31,8 +31,6 @@
|
||||
</ng-container></clr-dg-column>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- who column -->
|
||||
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
||||
<clr-icon shape="bars"></clr-icon> Action
|
||||
@ -47,8 +45,6 @@
|
||||
<clr-dg-cell>{{user. documentsequence }}</clr-dg-cell>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- who column -->
|
||||
<clr-dg-cell>
|
||||
<clr-signpost>
|
||||
@ -204,8 +200,6 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- // EDIT DATA......... -->
|
||||
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||
<h3 class="modal-title">Update Forma
|
||||
@ -213,8 +207,6 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</h3>
|
||||
<div class="modal-body" *ngIf="rowSelected.id">
|
||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||
@ -228,15 +220,11 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- form code start -->
|
||||
<div *ngIf="checkFormCode">
|
||||
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||
@ -285,8 +273,6 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- aeroplane icon -->
|
||||
|
||||
<a *ngIf="userrole?.includes('ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
|
||||
@ -308,8 +294,6 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@ -317,8 +301,6 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- form code start -->
|
||||
<div *ngIf="checkFormCode">
|
||||
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||
@ -353,6 +335,4 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- htmlpopup -->
|
||||
|
||||
@ -72,10 +72,6 @@ documentsequence : [null],
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}); // component_button200
|
||||
// form code start
|
||||
this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
|
||||
@ -103,15 +99,11 @@ documentsequence : [null],
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
error;
|
||||
getData() {
|
||||
this.mainService.getAll().subscribe((data) => {
|
||||
@ -134,8 +126,6 @@ documentsequence : [null],
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
this.modalEdit = true;
|
||||
}
|
||||
onDelete(row) {
|
||||
@ -159,8 +149,6 @@ documentsequence : [null],
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//console.log("in update");
|
||||
console.log("id " + id);
|
||||
console.log(this.rowSelected);
|
||||
@ -178,8 +166,6 @@ setTimeout(() => {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}, (error) => {
|
||||
console.log(error);
|
||||
if (error.status >= 200 && error.status <= 299) {
|
||||
@ -202,8 +188,6 @@ onCreate() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
this.mainService.create(this.entryForm.value).subscribe(
|
||||
(data) => {
|
||||
console.log(data);
|
||||
@ -217,8 +201,6 @@ setTimeout(() => {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}, (error) => {
|
||||
console.log(error);
|
||||
if (error.status >= 200 && error.status <= 299) {
|
||||
@ -241,8 +223,6 @@ this.modalAdd = true; this.submitted = false;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
submitted = false;
|
||||
onSubmit() {
|
||||
@ -257,12 +237,8 @@ onSubmit() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// updateaction
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -33,7 +33,5 @@ export class Formaservice{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// updateaction
|
||||
}
|
||||
@ -1,3 +1,4 @@
|
||||
|
||||
import { FormaComponent } from './BuilderComponents/basicp1/Forma/Forma.component';
|
||||
|
||||
import { SequencegenaratorComponent } from './fnd/sequencegenarator/sequencegenarator.component';
|
||||
@ -257,6 +258,8 @@ const routes: Routes = [
|
||||
|
||||
|
||||
// buildercomponents
|
||||
|
||||
|
||||
{path:'Forma',component:FormaComponent},
|
||||
|
||||
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
|
||||
import { FormaComponent } from './BuilderComponents/basicp1/Forma/Forma.component';
|
||||
|
||||
|
||||
@ -130,6 +131,8 @@ import { Stepper_workflowComponent } from './BuilderComponents/stepperworkflow/S
|
||||
|
||||
|
||||
// buildercomponents
|
||||
|
||||
|
||||
FormaComponent,
|
||||
|
||||
|
||||
|
||||
@ -227,7 +227,6 @@
|
||||
"STATUS": "Status",
|
||||
"SUB_MENU": "Sub Menu",
|
||||
"Forma": "Forma",
|
||||
"UserId_Field": "UserId_Field",
|
||||
"Name": "Name",
|
||||
"documentsequence": "documentsequence"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user