build_app
This commit is contained in:
parent
bd6c534f94
commit
c1bea9ad25
@ -69,6 +69,12 @@ public class BuilderService {
|
|||||||
executeDump(true);
|
executeDump(true);
|
||||||
|
|
||||||
// ADD OTHER SERVICE
|
// ADD OTHER SERVICE
|
||||||
|
addCustomMenu( "Formb", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Forma", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
addCustomMenu( "Child", "Transcations");
|
addCustomMenu( "Child", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -21,22 +21,6 @@ import com.realnet.basicp1.Services.FormbService ;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -54,22 +38,6 @@ public class FormbController {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -80,22 +48,6 @@ public class FormbController {
|
|||||||
Formb save = Service.Savedata(data) ;
|
Formb save = Service.Savedata(data) ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -147,22 +99,6 @@ public class FormbController {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -8,22 +8,6 @@ import com.realnet.WhoColumn.Entity.Extension;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -49,35 +33,5 @@ private String recaptchaf;
|
|||||||
|
|
||||||
private String documentseq;
|
private String documentseq;
|
||||||
|
|
||||||
private Long user_id;
|
|
||||||
private String user_name;
|
|
||||||
|
|
||||||
private String selectst;
|
|
||||||
|
|
||||||
private String radiod;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private boolean a;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private boolean b;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private String fileuploadjname;
|
|
||||||
private String fileuploadjpath ;
|
|
||||||
|
|
||||||
private String imageuploadhname;
|
|
||||||
private String imageuploadhpath ;
|
|
||||||
|
|
||||||
private String audiohname;
|
|
||||||
private String audiohpath ;
|
|
||||||
|
|
||||||
private String videohname;
|
|
||||||
private String videohpath ;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,22 +14,6 @@ import java.util.*;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -16,22 +16,6 @@ import com.realnet.users.entity1.AppUser;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -55,22 +39,6 @@ private FormbRepository Repository;
|
|||||||
@Autowired
|
@Autowired
|
||||||
private SequenceService documentseqsequenceService;
|
private SequenceService documentseqsequenceService;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Formb Savedata(Formb data) {
|
public Formb Savedata(Formb data) {
|
||||||
|
|
||||||
|
|
||||||
@ -80,23 +48,6 @@ public Formb Savedata(Formb data) {
|
|||||||
|
|
||||||
data.setDocumentseq (documentseqsequenceService.GenerateSequence("hh"));
|
data.setDocumentseq (documentseqsequenceService.GenerateSequence("hh"));
|
||||||
|
|
||||||
data.setUser_id(getUser().getUserId());
|
|
||||||
data.setUser_name(getUser().getFullName());
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
data.setUpdatedBy(getUser().getUserId());
|
data.setUpdatedBy(getUser().getUserId());
|
||||||
data.setCreatedBy(getUser().getUserId());
|
data.setCreatedBy(getUser().getUserId());
|
||||||
data.setAccountId(getUser().getAccount().getAccount_id());
|
data.setAccountId(getUser().getAccount().getAccount_id());
|
||||||
@ -136,54 +87,12 @@ old.setRecaptchaf(data.getRecaptchaf());
|
|||||||
|
|
||||||
old.setDocumentseq(data.getDocumentseq());
|
old.setDocumentseq(data.getDocumentseq());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
old.setSelectst(data.getSelectst());
|
|
||||||
|
|
||||||
old.setRadiod(data.getRadiod());
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
old.setA(data.isA());
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
old.setB(data.isB());
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final Formb test = Repository.save(old);
|
final Formb test = Repository.save(old);
|
||||||
data.setUpdatedBy(getUser().getUserId());
|
data.setUpdatedBy(getUser().getUserId());
|
||||||
return test;}
|
return test;}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,8 +1,4 @@
|
|||||||
CREATE TABLE db.Forma(id BIGINT NOT NULL AUTO_INCREMENT, paragraph_field VARCHAR(400), textarea VARCHAR(400), toggle_switch VARCHAR(400), number_field int, text_field VARCHAR(400), datetime_field VARCHAR(400), phone_number VARCHAR(400), password_field VARCHAR(400), date_field Date, email_field VARCHAR(400), url_field VARCHAR(400), PRIMARY KEY (id));
|
CREATE TABLE db.Forma(id BIGINT NOT NULL AUTO_INCREMENT, paragraph_field VARCHAR(400), textarea VARCHAR(400), toggle_switch VARCHAR(400), number_field int, text_field VARCHAR(400), datetime_field VARCHAR(400), phone_number VARCHAR(400), password_field VARCHAR(400), date_field Date, email_field VARCHAR(400), url_field VARCHAR(400), PRIMARY KEY (id));
|
||||||
|
|
||||||
CREATE TABLE db.Formb(id BIGINT NOT NULL AUTO_INCREMENT, a bit(1), b bit(1), recaptchaf VARCHAR(400), useridf VARCHAR(400), imageuploadh VARCHAR(400), percentagef int, fileuploadj VARCHAR(400), documentseq VARCHAR(400), audioh VARCHAR(400), selectst VARCHAR(400), radiod VARCHAR(400), decimald double, videoh VARCHAR(400), PRIMARY KEY (id));
|
CREATE TABLE db.Formb(id BIGINT NOT NULL AUTO_INCREMENT, percentagef int, documentseq VARCHAR(400), recaptchaf VARCHAR(400), decimald double, PRIMARY KEY (id));
|
||||||
|
|
||||||
CREATE TABLE db.Formc(id BIGINT NOT NULL AUTO_INCREMENT, numbers int, numbered int, a VARCHAR(400), valuey VARCHAR(400), onetoone VARCHAR(400), b VARCHAR(400), qrcode VARCHAR(400), currencys VARCHAR(400), barcode VARCHAR(400), datagg VARCHAR(400), calculatedadd VARCHAR(400), PRIMARY KEY (id));
|
|
||||||
|
|
||||||
CREATE TABLE db.Child(id BIGINT NOT NULL AUTO_INCREMENT, namem VARCHAR(400), PRIMARY KEY (id));
|
|
||||||
|
|
||||||
|
|||||||
@ -38,38 +38,6 @@
|
|||||||
<clr-dg-column [clrDgField]="' documentseq'"> <ng-container *clrDgHideableColumn="{hidden: false}"> documentseq
|
<clr-dg-column [clrDgField]="' documentseq'"> <ng-container *clrDgHideableColumn="{hidden: false}"> documentseq
|
||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' selectst'"> <ng-container *clrDgHideableColumn="{hidden: false}"> selectst
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' radiod'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Radiod
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' a'"> <ng-container *clrDgHideableColumn="{hidden: false}"> a
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' b'"> <ng-container *clrDgHideableColumn="{hidden: false}"> b
|
|
||||||
</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
<!-- who column -->
|
||||||
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
||||||
@ -90,34 +58,6 @@
|
|||||||
|
|
||||||
<clr-dg-cell>{{user. documentseq }}</clr-dg-cell>
|
<clr-dg-cell>{{user. documentseq }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. selectst }}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. radiod }}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. a}}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. b}}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
<!-- who column -->
|
||||||
<clr-dg-cell>
|
<clr-dg-cell>
|
||||||
@ -274,22 +214,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -301,22 +225,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -346,83 +254,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label> selectst</label>
|
|
||||||
<select name="selectst" [(ngModel)]="rowSelected.selectst">
|
|
||||||
<option [value]="null">Selectselectst
|
|
||||||
</option>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<option> a </option>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<option> b </option>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</select> </div>
|
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label> Radiod</label>
|
|
||||||
<clr-radio-container clrInline style="margin-top: 0;">
|
|
||||||
|
|
||||||
|
|
||||||
<clr-radio-wrapper>
|
|
||||||
<input type="radio" clrRadio (change)="updateradiodEdit('f')" [checked]="rowSelected.radiod === 'f'" />
|
|
||||||
<label>f</label>
|
|
||||||
</clr-radio-wrapper>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-radio-wrapper>
|
|
||||||
<input type="radio" clrRadio (change)="updateradiodEdit('m')" [checked]="rowSelected.radiod === 'm'" />
|
|
||||||
<label>m</label>
|
|
||||||
</clr-radio-wrapper>
|
|
||||||
|
|
||||||
|
|
||||||
</clr-radio-container> </div>
|
|
||||||
|
|
||||||
<!-- multiselect checkbox field start -->
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label> checkboxh</label>
|
|
||||||
<div class="clr-form-control" style="margin-top: 5px;margin-bottom: 10px;">
|
|
||||||
<div class="clr-control-container">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="clr-checkbox-wrapper"> <input type="checkbox" id="a" name="a" [(ngModel)]="rowSelected.a" class="clr-checkbox" />
|
|
||||||
<label for="a" class="clr-control-label"> a</label> </div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="clr-checkbox-wrapper"> <input type="checkbox" id="b" name="b" [(ngModel)]="rowSelected.b" class="clr-checkbox" />
|
|
||||||
<label for="b" class="clr-control-label"> b</label> </div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- multiselect checkbox field end -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -432,182 +263,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<h6> List of fileuploadj</h6>
|
|
||||||
|
|
||||||
<div class="clr-row" style="margin-top: 10px;">
|
|
||||||
<table class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>No</th>
|
|
||||||
<th> File</th>
|
|
||||||
<th>File Name</th>
|
|
||||||
<th>Preview</th>
|
|
||||||
<th>Cancel</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody >
|
|
||||||
<tr *ngFor="let attach of FileDatafileuploadj; let i=index">
|
|
||||||
<td style="width: 70px;"><input type="text" class="clr-input" value={{i+1}} [readonly]="true"> </td>
|
|
||||||
<td><input type="file" (change)="onFileChangedfileuploadj($event, i)" accept = "application/pdf,.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"/>
|
|
||||||
</td>
|
|
||||||
<td>{{attach.uploadedfile_name}}</td>
|
|
||||||
<td > <img [src]="attach.filePreview" alt="File Preview" [ngModelOptions]="{standalone: true}" name="filePreview" width="100px" height="100px"></td>
|
|
||||||
<td>
|
|
||||||
<clr-signpost style="padding-right: 10px;">
|
|
||||||
<clr-icon shape="trash" class="is-error" aria-label="Icon Button Trigger" clrSignpostTrigger></clr-icon>
|
|
||||||
|
|
||||||
<clr-signpost-content [clrPosition]="'bottom-middle'" *clrIfOpen>
|
|
||||||
<div style="text-align: center;"><b >Are you sure?</b></div>
|
|
||||||
<button class="btn btn-outline" [clrSignpostTrigger]="false">cancel</button>
|
|
||||||
<button class="btn btn-primary" (click)="deleteRowfileuploadj(i,attach.id)" >Delete</button>
|
|
||||||
</clr-signpost-content>
|
|
||||||
</clr-signpost>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
<button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesfileuploadj()">
|
|
||||||
<clr-icon shape="plus"></clr-icon>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
</table> </div>
|
|
||||||
|
|
||||||
<h6> List of imageuploadh</h6>
|
|
||||||
|
|
||||||
<div class="clr-row" style="margin-top: 10px;">
|
|
||||||
<table class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>No</th>
|
|
||||||
<th> File</th>
|
|
||||||
<th>File Name</th>
|
|
||||||
<th>Preview</th>
|
|
||||||
<th>Cancel</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody >
|
|
||||||
<tr *ngFor="let attach of FileDataimageuploadh; let i=index">
|
|
||||||
<td style="width: 70px;"><input type="text" class="clr-input" value={{i+1}} [readonly]="true"> </td>
|
|
||||||
<td><input type="file" (change)="onFileChangedimageuploadh($event, i)" accept="image/*" />
|
|
||||||
</td>
|
|
||||||
<td>{{attach.uploadedfile_name}}</td>
|
|
||||||
<td > <img [src]="attach.filePreview" alt="File Preview" [ngModelOptions]="{standalone: true}" name="filePreview" width="100px" height="100px"></td>
|
|
||||||
<td>
|
|
||||||
<clr-signpost style="padding-right: 10px;">
|
|
||||||
<clr-icon shape="trash" class="is-error" aria-label="Icon Button Trigger" clrSignpostTrigger></clr-icon>
|
|
||||||
|
|
||||||
<clr-signpost-content [clrPosition]="'bottom-middle'" *clrIfOpen>
|
|
||||||
<div style="text-align: center;"><b >Are you sure?</b></div>
|
|
||||||
<button class="btn btn-outline" [clrSignpostTrigger]="false">cancel</button>
|
|
||||||
<button class="btn btn-primary" (click)="deleteRowimageuploadh(i,attach.id)" >Delete</button>
|
|
||||||
</clr-signpost-content>
|
|
||||||
</clr-signpost>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
<button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesimageuploadh()">
|
|
||||||
<clr-icon shape="plus"></clr-icon>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
</table> </div>
|
|
||||||
|
|
||||||
<h6> List of audioh</h6>
|
|
||||||
|
|
||||||
<div class="clr-row" style="margin-top: 10px;">
|
|
||||||
<table class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>No</th>
|
|
||||||
<th> File</th>
|
|
||||||
<th>File Name</th>
|
|
||||||
<th>Preview</th>
|
|
||||||
<th>Cancel</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody >
|
|
||||||
<tr *ngFor="let attach of FileDataaudioh; let i=index">
|
|
||||||
<td style="width: 70px;"><input type="text" class="clr-input" value={{i+1}} [readonly]="true"> </td>
|
|
||||||
<td><input type="file" (change)="onFileChangedaudioh($event, i)" accept="audio/*" />
|
|
||||||
</td>
|
|
||||||
<td>{{attach.uploadedfile_name}}</td>
|
|
||||||
<td > <audio *ngIf="attach.filePreview" [src]="attach.filePreview" controls></audio></td>
|
|
||||||
<td>
|
|
||||||
<clr-signpost style="padding-right: 10px;">
|
|
||||||
<clr-icon shape="trash" class="is-error" aria-label="Icon Button Trigger" clrSignpostTrigger></clr-icon>
|
|
||||||
|
|
||||||
<clr-signpost-content [clrPosition]="'bottom-middle'" *clrIfOpen>
|
|
||||||
<div style="text-align: center;"><b >Are you sure?</b></div>
|
|
||||||
<button class="btn btn-outline" [clrSignpostTrigger]="false">cancel</button>
|
|
||||||
<button class="btn btn-primary" (click)="deleteRowaudioh(i,attach.id)" >Delete</button>
|
|
||||||
</clr-signpost-content>
|
|
||||||
</clr-signpost>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
<button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesaudioh()">
|
|
||||||
<clr-icon shape="plus"></clr-icon>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
</table> </div>
|
|
||||||
|
|
||||||
<h6> List of videoh</h6>
|
|
||||||
|
|
||||||
<div class="clr-row" style="margin-top: 10px;">
|
|
||||||
<table class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>No</th>
|
|
||||||
<th> File</th>
|
|
||||||
<th>File Name</th>
|
|
||||||
<th>Preview</th>
|
|
||||||
<th>Cancel</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody >
|
|
||||||
<tr *ngFor="let attach of FileDatavideoh; let i=index">
|
|
||||||
<td style="width: 70px;"><input type="text" class="clr-input" value={{i+1}} [readonly]="true"> </td>
|
|
||||||
<td><input type="file" (change)="onFileChangedvideoh($event, i)" accept="video/*" />
|
|
||||||
</td>
|
|
||||||
<td>{{attach.uploadedfile_name}}</td>
|
|
||||||
<td > <video *ngIf="attach.filePreview" [src]="attach.filePreview" width="100px" height="100px" controls></video></td>
|
|
||||||
<td>
|
|
||||||
<clr-signpost style="padding-right: 10px;">
|
|
||||||
<clr-icon shape="trash" class="is-error" aria-label="Icon Button Trigger" clrSignpostTrigger></clr-icon>
|
|
||||||
|
|
||||||
<clr-signpost-content [clrPosition]="'bottom-middle'" *clrIfOpen>
|
|
||||||
<div style="text-align: center;"><b >Are you sure?</b></div>
|
|
||||||
<button class="btn btn-outline" [clrSignpostTrigger]="false">cancel</button>
|
|
||||||
<button class="btn btn-primary" (click)="deleteRowvideoh(i,attach.id)" >Delete</button>
|
|
||||||
</clr-signpost-content>
|
|
||||||
</clr-signpost>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
<button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesvideoh()">
|
|
||||||
<clr-icon shape="plus"></clr-icon>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
</table> </div>
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
<div *ngIf="checkFormCode">
|
<div *ngIf="checkFormCode">
|
||||||
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
@ -655,22 +310,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -717,78 +356,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label>selectst</label>
|
|
||||||
<select formControlName="selectst">
|
|
||||||
<option [value]="null">Select selectst </option>
|
|
||||||
|
|
||||||
|
|
||||||
<option> a </option>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<option> b </option>
|
|
||||||
|
|
||||||
|
|
||||||
</select></div>
|
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label>Radiod</label>
|
|
||||||
<clr-radio-container clrInline style="margin-top: 0;">
|
|
||||||
|
|
||||||
|
|
||||||
<clr-radio-wrapper>
|
|
||||||
<input type="radio" clrRadio formControlName="radiod" (change)="updateradiod('f')" [checked]="entryForm.get('radiod').value === 'f'" />
|
|
||||||
<label> f </label>
|
|
||||||
</clr-radio-wrapper>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-radio-wrapper>
|
|
||||||
<input type="radio" clrRadio formControlName="radiod" (change)="updateradiod('m')" [checked]="entryForm.get('radiod').value === 'm'" />
|
|
||||||
<label> m </label>
|
|
||||||
</clr-radio-wrapper>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</clr-radio-container>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- multiselect checkbox field start -->
|
|
||||||
<div class="clr-col-sm-12">
|
|
||||||
<label> checkboxh</label>
|
|
||||||
<div class="clr-form-control" style="margin-top: 5px;margin-bottom: 10px;">
|
|
||||||
<div class="clr-control-container">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="clr-checkbox-wrapper">
|
|
||||||
<input type="checkbox" id="a" formControlName="a" class="clr-checkbox" />
|
|
||||||
<label for="a" class="clr-control-label">a</label> </div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="clr-checkbox-wrapper">
|
|
||||||
<input type="checkbox" id="b" formControlName="b" class="clr-checkbox" />
|
|
||||||
<label for="b" class="clr-control-label">b</label> </div>
|
|
||||||
|
|
||||||
|
|
||||||
</div> </div> </div>
|
|
||||||
<!-- multiselect checkbox field end -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -799,154 +366,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<h6> List of fileuploadj</h6>
|
|
||||||
|
|
||||||
<div class="clr-row" style="margin-top: 10px;">
|
|
||||||
<table class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>No</th>
|
|
||||||
<th> File</th>
|
|
||||||
<th>File Name</th>
|
|
||||||
<th>Preview</th>
|
|
||||||
<th>Cancel</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody >
|
|
||||||
<tr *ngFor="let attach of FileDatafileuploadj; let i=index">
|
|
||||||
<td style="width: 70px;"><input type="text" class="clr-input" value={{i+1}} [readonly]="true"> </td>
|
|
||||||
<td><input type="file" (change)="onFileChangedfileuploadj($event, i)" accept = "application/pdf,.csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel" /><!--accept=".pdf,.doc,.docx,.jpg,.msg"-->
|
|
||||||
</td>
|
|
||||||
<td>{{attach.uploadedfile_name}}</td>
|
|
||||||
<td > <img [src]="attach.filePreview" alt="File Preview" [ngModelOptions]="{standalone: true}" name="filePreview" width="100px" height="100px"></td>
|
|
||||||
<td>
|
|
||||||
<a (click)="deleteRowfileuploadj(i)">
|
|
||||||
<clr-icon shape="trash" class="is-error"></clr-icon>
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
<button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesfileuploadj()">
|
|
||||||
<clr-icon shape="plus"></clr-icon>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
</table> </div>
|
|
||||||
|
|
||||||
<h6> List of imageuploadh</h6>
|
|
||||||
|
|
||||||
<div class="clr-row" style="margin-top: 10px;">
|
|
||||||
<table class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>No</th>
|
|
||||||
<th> File</th>
|
|
||||||
<th>File Name</th>
|
|
||||||
<th>Preview</th>
|
|
||||||
<th>Cancel</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody >
|
|
||||||
<tr *ngFor="let attach of FileDataimageuploadh; let i=index">
|
|
||||||
<td style="width: 70px;"><input type="text" class="clr-input" value={{i+1}} [readonly]="true"> </td>
|
|
||||||
<td><input type="file" (change)="onFileChangedimageuploadh($event, i)" accept="image/*" /><!--accept=".pdf,.doc,.docx,.jpg,.msg"-->
|
|
||||||
</td>
|
|
||||||
<td>{{attach.uploadedfile_name}}</td>
|
|
||||||
<td > <img [src]="attach.filePreview" alt="File Preview" [ngModelOptions]="{standalone: true}" name="filePreview" width="100px" height="100px"></td>
|
|
||||||
<td>
|
|
||||||
<a (click)="deleteRowimageuploadh(i)">
|
|
||||||
<clr-icon shape="trash" class="is-error"></clr-icon>
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
<button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesimageuploadh()">
|
|
||||||
<clr-icon shape="plus"></clr-icon>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
</table> </div>
|
|
||||||
|
|
||||||
<h6> List of audioh</h6>
|
|
||||||
|
|
||||||
<div class="clr-row" style="margin-top: 10px;">
|
|
||||||
<table class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>No</th>
|
|
||||||
<th> File</th>
|
|
||||||
<th>File Name</th>
|
|
||||||
<th>Preview</th>
|
|
||||||
<th>Cancel</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody >
|
|
||||||
<tr *ngFor="let attach of FileDataaudioh; let i=index">
|
|
||||||
<td style="width: 70px;"><input type="text" class="clr-input" value={{i+1}} [readonly]="true"> </td>
|
|
||||||
<td><input type="file" (change)="onFileChangedaudioh($event, i)" accept="audio/*" /><!--accept=".pdf,.doc,.docx,.jpg,.msg"-->
|
|
||||||
</td>
|
|
||||||
<td>{{attach.uploadedfile_name}}</td>
|
|
||||||
<td > <audio *ngIf="attach.filePreview" [src]="attach.filePreview" controls></audio></td>
|
|
||||||
<td>
|
|
||||||
<a (click)="deleteRowaudioh(i)">
|
|
||||||
<clr-icon shape="trash" class="is-error"></clr-icon>
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
<button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesaudioh()">
|
|
||||||
<clr-icon shape="plus"></clr-icon>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
</table> </div>
|
|
||||||
|
|
||||||
<h6> List of videoh</h6>
|
|
||||||
|
|
||||||
<div class="clr-row" style="margin-top: 10px;">
|
|
||||||
<table class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>No</th>
|
|
||||||
<th> File</th>
|
|
||||||
<th>File Name</th>
|
|
||||||
<th>Preview</th>
|
|
||||||
<th>Cancel</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody >
|
|
||||||
<tr *ngFor="let attach of FileDatavideoh; let i=index">
|
|
||||||
<td style="width: 70px;"><input type="text" class="clr-input" value={{i+1}} [readonly]="true"> </td>
|
|
||||||
<td><input type="file" (change)="onFileChangedvideoh($event, i)" accept="video/*" /><!--accept=".mp4,.mpeg4"-->
|
|
||||||
</td>
|
|
||||||
<td>{{attach.uploadedfile_name}}</td>
|
|
||||||
<td > <video *ngIf="attach.filePreview" [src]="attach.filePreview" width="100px" height="100px" controls></video></td>
|
|
||||||
<td>
|
|
||||||
<a (click)="deleteRowvideoh(i)">
|
|
||||||
<clr-icon shape="trash" class="is-error"></clr-icon>
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
<button type="button" class="btn btn-primary button1" style="margin-left: 20px;" (click)="onAddLinesvideoh()">
|
|
||||||
<clr-icon shape="plus"></clr-icon>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
</table> </div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
@ -982,22 +401,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -72,47 +72,7 @@ recaptchaf : [null, [Validators.required,this.checkrecaptchaf.bind(this)]],
|
|||||||
documentseq : [null],
|
documentseq : [null],
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
selectst : [null],
|
|
||||||
|
|
||||||
radiod : [null],
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
a:[false],
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
b:[false],
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -150,22 +110,6 @@ this.generaterecaptchaf()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -176,26 +120,6 @@ this.generaterecaptchaf()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FileDataImageuploadh: any[];
|
|
||||||
selectedImageuploadh: any[];
|
|
||||||
|
|
||||||
FileDataAudioh: any[];
|
|
||||||
selectedAudioh: any[];
|
|
||||||
|
|
||||||
FileDataVideoh: any[];
|
|
||||||
selectedVideoh: any[];
|
|
||||||
|
|
||||||
|
|
||||||
error;
|
error;
|
||||||
getData() {
|
getData() {
|
||||||
this.mainService.getAll().subscribe((data) => {
|
this.mainService.getAll().subscribe((data) => {
|
||||||
@ -221,42 +145,6 @@ FileDataVideoh: any[];
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.selectedfileuploadj = [];
|
|
||||||
this.mainService.uploadfilegetByIdfileuploadj(row.id,this.tableName).subscribe(uploaddata =>{
|
|
||||||
console.log(uploaddata);
|
|
||||||
this.FileDatafileuploadj = uploaddata;
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
this.selectedimageuploadh = [];
|
|
||||||
this.mainService.uploadImageuploadhgetById(row.id,this.tableName).subscribe(uploaddata =>{
|
|
||||||
console.log(uploaddata);
|
|
||||||
this.FileDataimageuploadh = uploaddata;
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
this.selectedaudioh = [];
|
|
||||||
this.mainService.uploadAudiohgetById(row.id,this.tableName).subscribe(uploaddata =>{
|
|
||||||
console.log(uploaddata);
|
|
||||||
this.FileDataaudioh = uploaddata;
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
this.selectedvideoh = [];
|
|
||||||
this.mainService.uploadVideohgetById(row.id,this.tableName).subscribe(uploaddata =>{
|
|
||||||
console.log(uploaddata);
|
|
||||||
this.FileDatavideoh = uploaddata;
|
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
this.modalEdit = true;
|
this.modalEdit = true;
|
||||||
}
|
}
|
||||||
@ -280,22 +168,6 @@ FileDataVideoh: any[];
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -320,42 +192,6 @@ FileDataVideoh: any[];
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for (let i = 0; i < this.selectedfileuploadj.length; i++){
|
|
||||||
|
|
||||||
this.mainService.uploadfilefileuploadj(data.id,this.tableName,this.selectedfileuploadj[i]).subscribe(uploaddata =>{
|
|
||||||
console.log(uploaddata);
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
for (let i = 0; i < this.selectedimageuploadh.length; i++){
|
|
||||||
|
|
||||||
this.mainService.uploadImageuploadh(data.id,this.tableName,this.selectedimageuploadh[i]).subscribe(uploaddata =>{
|
|
||||||
console.log(uploaddata);
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
for (let i = 0; i < this.selectedaudioh.length; i++){
|
|
||||||
|
|
||||||
this.mainService.uploadAudioh(data.id,this.tableName,this.selectedaudioh[i]).subscribe(uploaddata =>{
|
|
||||||
console.log(uploaddata);
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
for (let i = 0; i < this.selectedvideoh.length; i++){
|
|
||||||
|
|
||||||
this.mainService.uploadVideoh(data.id,this.tableName,this.selectedvideoh[i]).subscribe(uploaddata =>{
|
|
||||||
console.log(uploaddata);
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
if (error.status >= 200 && error.status <= 299) {
|
if (error.status >= 200 && error.status <= 299) {
|
||||||
@ -377,22 +213,6 @@ onCreate() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -412,42 +232,6 @@ onCreate() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for (let i = 0; i < this.selectedfileuploadj.length; i++){
|
|
||||||
|
|
||||||
this.mainService.uploadfilefileuploadj(data.id,this.tableName,this.selectedfileuploadj[i]).subscribe(uploaddata =>{
|
|
||||||
console.log(uploaddata);
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
for (let i = 0; i < this.selectedimageuploadh.length; i++){
|
|
||||||
|
|
||||||
this.mainService.uploadImageuploadh(data.id,this.tableName,this.selectedimageuploadh[i]).subscribe(uploaddata =>{
|
|
||||||
console.log(uploaddata);
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
for (let i = 0; i < this.selectedaudioh.length; i++){
|
|
||||||
|
|
||||||
this.mainService.uploadAudioh(data.id,this.tableName,this.selectedaudioh[i]).subscribe(uploaddata =>{
|
|
||||||
console.log(uploaddata);
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
for (let i = 0; i < this.selectedvideoh.length; i++){
|
|
||||||
|
|
||||||
this.mainService.uploadVideoh(data.id,this.tableName,this.selectedvideoh[i]).subscribe(uploaddata =>{
|
|
||||||
console.log(uploaddata);
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
@ -474,26 +258,6 @@ this.modalAdd = true; this.submitted = false;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.FileDatafileuploadj = [];
|
|
||||||
this.selectedfileuploadj =[];
|
|
||||||
|
|
||||||
this.FileDataImageuploadh = [];
|
|
||||||
this.selectedImageuploadh =[];
|
|
||||||
|
|
||||||
this.FileDataAudioh = [];
|
|
||||||
this.selectedAudioh =[];
|
|
||||||
|
|
||||||
this.FileDataVideoh = [];
|
|
||||||
this.selectedVideoh =[];
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
submitted = false;
|
submitted = false;
|
||||||
@ -537,200 +301,12 @@ checkrecaptchafEdit(): void {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
updateradiod (radiod : string): void {
|
|
||||||
this.entryForm.get('radiod').setValue(radiod); }
|
|
||||||
|
|
||||||
updateradiodEdit(radiod : string): void { this.rowSelected.radiod = radiod }
|
|
||||||
;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
filePreviewfileuploadj: string | ArrayBuffer | null = null;
|
|
||||||
FileDatafileuploadj: {uploadedfile_name?:any, filePreview: string | ArrayBuffer | null }[] = []; // Initialize the array
|
|
||||||
selectedfileuploadj: File[]=[];
|
|
||||||
public onFileChangedfileuploadj(event, index) {
|
|
||||||
const files = event.target.files;
|
|
||||||
for (let i = 0; i < files.length; i++) {
|
|
||||||
const file = files[i];
|
|
||||||
this.FileDatafileuploadj[index].uploadedfile_name = files[i].name;
|
|
||||||
this.selectedfileuploadj.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.FileDatafileuploadj[index] = {
|
|
||||||
...this.FileDatafileuploadj[index], // Preserve existing properties
|
|
||||||
filePreview: filePreview // Update only the filePreview property
|
|
||||||
};
|
|
||||||
};
|
|
||||||
reader.readAsDataURL(file);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
onAddLinesfileuploadj(){
|
|
||||||
this.FileDatafileuploadj.push({
|
|
||||||
uploadedfile_name: "",
|
|
||||||
filePreview: "",
|
|
||||||
// f3: "",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
deleteRowfileuploadj(index,id) {
|
|
||||||
this.FileDatafileuploadj.splice(index, 1);
|
|
||||||
|
|
||||||
if(id){
|
|
||||||
this.mainService.uploadfiledeletefileuploadj(id).subscribe(data =>{
|
|
||||||
console.log(data);
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
filePreviewimageuploadh: string | ArrayBuffer | null = null;
|
|
||||||
FileDataimageuploadh: {uploadedfile_name?:any, filePreview: string | ArrayBuffer | null }[] = []; // Initialize the array
|
|
||||||
selectedimageuploadh: File[]=[];
|
|
||||||
public onFileChangedimageuploadh(event, index) {
|
|
||||||
const files = event.target.files;
|
|
||||||
for (let i = 0; i < files.length; i++) {
|
|
||||||
const file = files[i];
|
|
||||||
this.FileDataimageuploadh[index].uploadedfile_name = files[i].name;
|
|
||||||
this.selectedimageuploadh.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.FileDataimageuploadh[index] = {
|
|
||||||
...this.FileDataimageuploadh[index], // Preserve existing properties
|
|
||||||
filePreview: filePreview // Update only the filePreview property
|
|
||||||
};
|
|
||||||
};
|
|
||||||
reader.readAsDataURL(file);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
onAddLinesimageuploadh(){
|
|
||||||
this.FileDataimageuploadh.push({
|
|
||||||
uploadedfile_name: "",
|
|
||||||
filePreview: "",
|
|
||||||
// f3: "",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
deleteRowimageuploadh(index,id) {
|
|
||||||
this.FileDataimageuploadh.splice(index, 1);
|
|
||||||
|
|
||||||
if(id){
|
|
||||||
this.mainService.uploadImageuploadhdelete(id).subscribe(data =>{
|
|
||||||
console.log(data);
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
filePreviewaudioh: string | ArrayBuffer | null = null;
|
|
||||||
FileDataaudioh: {uploadedfile_name?:any, filePreview: string | ArrayBuffer | null }[] = []; // Initialize the array
|
|
||||||
selectedaudioh: File[]=[];
|
|
||||||
public onFileChangedaudioh(event, index) {
|
|
||||||
const files = event.target.files;
|
|
||||||
for (let i = 0; i < files.length; i++) {
|
|
||||||
const file = files[i];
|
|
||||||
this.FileDataaudioh[index].uploadedfile_name = files[i].name;
|
|
||||||
this.selectedaudioh.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.FileDataaudioh[index] = {
|
|
||||||
...this.FileDataaudioh[index], // Preserve existing properties
|
|
||||||
filePreview: filePreview // Update only the filePreview property
|
|
||||||
};
|
|
||||||
};
|
|
||||||
reader.readAsDataURL(file);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
onAddLinesaudioh(){
|
|
||||||
this.FileDataaudioh.push({
|
|
||||||
uploadedfile_name: "",
|
|
||||||
filePreview: "",
|
|
||||||
// f3: "",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
deleteRowaudioh(index,id) {
|
|
||||||
this.FileDataaudioh.splice(index, 1);
|
|
||||||
|
|
||||||
if(id){
|
|
||||||
this.mainService.uploadAudiohdelete(id).subscribe(data =>{
|
|
||||||
console.log(data);
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
filePreviewvideoh: string | ArrayBuffer | null = null;
|
|
||||||
FileDatavideoh: {uploadedfile_name?:any, filePreview: string | ArrayBuffer | null }[] = []; // Initialize the array
|
|
||||||
selectedvideoh: File[]=[];
|
|
||||||
public onFileChangedvideoh(event, index) {
|
|
||||||
const files = event.target.files;
|
|
||||||
for (let i = 0; i < files.length; i++) {
|
|
||||||
const file = files[i];
|
|
||||||
this.FileDatavideoh[index].uploadedfile_name = files[i].name;
|
|
||||||
this.selectedvideoh.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.FileDatavideoh[index] = {
|
|
||||||
...this.FileDatavideoh[index], // Preserve existing properties
|
|
||||||
filePreview: filePreview // Update only the filePreview property
|
|
||||||
};
|
|
||||||
};
|
|
||||||
reader.readAsDataURL(file);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
onAddLinesvideoh(){
|
|
||||||
this.FileDatavideoh.push({
|
|
||||||
uploadedfile_name: "",
|
|
||||||
filePreview: "",
|
|
||||||
// f3: "",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
deleteRowvideoh(index,id) {
|
|
||||||
this.FileDatavideoh.splice(index, 1);
|
|
||||||
|
|
||||||
if(id){
|
|
||||||
this.mainService.uploadVideohdelete(id).subscribe(data =>{
|
|
||||||
console.log(data);
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// updateaction
|
// updateaction
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -37,73 +37,5 @@ export class Formbservice{
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
uploadfilefileuploadj(ref:any, Formb:any, file:any): Observable<any>{
|
|
||||||
const formData = new FormData();
|
|
||||||
formData.append('file', file);
|
|
||||||
return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Formb}`, formData);
|
|
||||||
}
|
|
||||||
|
|
||||||
uploadfilegetByIdfileuploadj(ref:any, Formb:any,): Observable<any> {
|
|
||||||
return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Formb}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
uploadfiledeletefileuploadj(id: number): Observable<any> {
|
|
||||||
return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
uploadImageuploadh(ref:any, Formb:any, file:any): Observable<any>{
|
|
||||||
const formData = new FormData();
|
|
||||||
formData.append('file', file);
|
|
||||||
return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Formb}`, formData);
|
|
||||||
}
|
|
||||||
|
|
||||||
uploadImageuploadhgetById(ref:any, Formb:any,): Observable<any> {
|
|
||||||
return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Formb}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
uploadImageuploadhdelete(id: number): Observable<any> {
|
|
||||||
return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
uploadAudioh(ref:any, Formb:any, file:any): Observable<any>{
|
|
||||||
const formData = new FormData();
|
|
||||||
formData.append('file', file);
|
|
||||||
return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Formb}`, formData);
|
|
||||||
}
|
|
||||||
|
|
||||||
uploadAudiohgetById(ref:any, Formb:any,): Observable<any> {
|
|
||||||
return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Formb}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
uploadAudiohdelete(id: number): Observable<any> {
|
|
||||||
return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
uploadVideoh(ref:any, Formb:any, file:any): Observable<any>{
|
|
||||||
const formData = new FormData();
|
|
||||||
formData.append('file', file);
|
|
||||||
return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Formb}`, formData);
|
|
||||||
}
|
|
||||||
|
|
||||||
uploadVideohgetById(ref:any, Formb:any,): Observable<any> {
|
|
||||||
return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Formb}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
uploadVideohdelete(id: number): Observable<any> {
|
|
||||||
return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`);
|
|
||||||
}
|
|
||||||
|
|
||||||
// updateaction
|
// updateaction
|
||||||
}
|
}
|
||||||
@ -1,3 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
import { ChildComponent } from './BuilderComponents/basicp1/Child/Child.component';
|
import { ChildComponent } from './BuilderComponents/basicp1/Child/Child.component';
|
||||||
import { FormcComponent } from './BuilderComponents/basicp1/Formc/Formc.component';
|
import { FormcComponent } from './BuilderComponents/basicp1/Formc/Formc.component';
|
||||||
import { FormbComponent } from './BuilderComponents/basicp1/Formb/Formb.component';
|
import { FormbComponent } from './BuilderComponents/basicp1/Formb/Formb.component';
|
||||||
@ -245,6 +247,10 @@ const routes: Routes = [
|
|||||||
|
|
||||||
|
|
||||||
// buildercomponents
|
// buildercomponents
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{path:'Child',component:ChildComponent},
|
{path:'Child',component:ChildComponent},
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
import { ChildComponent } from './BuilderComponents/basicp1/Child/Child.component';
|
import { ChildComponent } from './BuilderComponents/basicp1/Child/Child.component';
|
||||||
import { FormcComponent } from './BuilderComponents/basicp1/Formc/Formc.component';
|
import { FormcComponent } from './BuilderComponents/basicp1/Formc/Formc.component';
|
||||||
import { FormbComponent } from './BuilderComponents/basicp1/Formb/Formb.component';
|
import { FormbComponent } from './BuilderComponents/basicp1/Formb/Formb.component';
|
||||||
@ -146,6 +148,10 @@ import { MappingruleeditComponent } from './datamanagement/mappingrule/mappingru
|
|||||||
|
|
||||||
|
|
||||||
// buildercomponents
|
// buildercomponents
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ChildComponent,
|
ChildComponent,
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -226,42 +226,21 @@
|
|||||||
"MENU_ACTION_LINK": "Menu Action Link",
|
"MENU_ACTION_LINK": "Menu Action Link",
|
||||||
"STATUS": "Status",
|
"STATUS": "Status",
|
||||||
"SUB_MENU": "Sub Menu",
|
"SUB_MENU": "Sub Menu",
|
||||||
"Valuey": "Valuey",
|
"Toggle_Switch": "Toggle_Switch",
|
||||||
"Qrcode": "Qrcode",
|
"Number_Field": "Number_Field",
|
||||||
"Currencys": "Currencys",
|
|
||||||
"Text_Field": "Text_Field",
|
"Text_Field": "Text_Field",
|
||||||
"Datetime_Field": "Datetime_Field",
|
"Datetime_Field": "Datetime_Field",
|
||||||
"Phone_Number": "Phone_Number",
|
"Phone_Number": "Phone_Number",
|
||||||
"Numbers": "Numbers",
|
|
||||||
"OneToOne": "OneToOne",
|
|
||||||
"Textarea": "Textarea",
|
|
||||||
"Imageuploadh": "Imageuploadh",
|
|
||||||
"documentseq": "documentseq",
|
|
||||||
"selectst": "selectst",
|
|
||||||
"Radiod": "Radiod",
|
|
||||||
"Namem": "Namem",
|
|
||||||
"Date_Field": "Date_Field",
|
|
||||||
"Decimald": "Decimald",
|
|
||||||
"Child": "Child",
|
|
||||||
"videoh": "videoh",
|
|
||||||
"a": "a",
|
|
||||||
"Numbered": "Numbered",
|
|
||||||
"b": "b",
|
|
||||||
"Toggle_Switch": "Toggle_Switch",
|
|
||||||
"Number_Field": "Number_Field",
|
|
||||||
"recaptchaf": "recaptchaf",
|
"recaptchaf": "recaptchaf",
|
||||||
"Email_Field": "Email_Field",
|
"Email_Field": "Email_Field",
|
||||||
"calculatedadd": "calculatedadd",
|
|
||||||
"Url_Field": "Url_Field",
|
"Url_Field": "Url_Field",
|
||||||
"Formb": "Formb",
|
"Formb": "Formb",
|
||||||
"Formc": "Formc",
|
|
||||||
"Forma": "Forma",
|
"Forma": "Forma",
|
||||||
"UserIdf": "UserIdf",
|
|
||||||
"Paragraph_Field": "Paragraph_Field",
|
"Paragraph_Field": "Paragraph_Field",
|
||||||
|
"Textarea": "Textarea",
|
||||||
"Percentagef": "Percentagef",
|
"Percentagef": "Percentagef",
|
||||||
"Fileuploadj": "Fileuploadj",
|
"documentseq": "documentseq",
|
||||||
"Barcode": "Barcode",
|
"Password_Field": "Password_Field",
|
||||||
"audioh": "audioh",
|
"Date_Field": "Date_Field",
|
||||||
"datagg": "datagg",
|
"Decimald": "Decimald"
|
||||||
"Password_Field": "Password_Field"
|
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user