console removed : ps

This commit is contained in:
venbatechnologies@gmail.com 2019-01-10 12:32:14 +05:30
parent 832838b56b
commit a8ff3480ff
9 changed files with 42 additions and 41 deletions

View File

@ -108,7 +108,7 @@ export class DashboardComponent {
ngOnInit(){
console.clear();
this.getDoughnutChartData();
@ -203,7 +203,7 @@ getDoughnutChartData(){
this._dashboardService.getPDDetailForDoughnut(fromdate,todate,cityarr,lenderarr).subscribe(data => {
this.flag = 1;
console.log(' ***** Doughnut Chart Data *****',data);
// console.log(' ***** Doughnut Chart Data *****',data);
let DraftIndexvalue = this.doughnutChartLabels.indexOf('Draft');
let TriggedIndexvalue = this.doughnutChartLabels.indexOf('Triggered');
@ -215,7 +215,7 @@ getDoughnutChartData(){
if(data.records.current_month.length != 0){
//console.log('If Condition monthLY');
console.log('Monthly Status',data.records.current_month);
// console.log('Monthly Status',data.records.current_month);
let MonthlyFullPDArr = data.records.current_month.filter(arr=>arr.PDTYPE == 'FULL' );
let MonthlySmartPDArr = data.records.current_month.filter(arr=>arr.PDTYPE == 'SMART' );
@ -496,9 +496,9 @@ getDoughnutChartData(){
this.total2 = this.tempDataSmartPD.reduce((a, b) => a + b, 0);
this.total3 = this.tempDataTelePD.reduce((a, b) => a + b, 0);
console.log('Final Full Data '+ this.doughnutChartDataForFullPD+'Temp Data'+this.tempDataFullPD+'Full Total '+this.total1);
console.log('Final Smart Data '+ this.doughnutChartDataForSmartPD+' Temp Data '+this.tempDataSmartPD+'Smart Total '+this.total2);
console.log('Final Tele Data '+ this.doughnutChartDataForTelePD+' Temp Data'+this.tempDataTelePD+'Tele Total '+this.total3);
// console.log('Final Full Data '+ this.doughnutChartDataForFullPD+'Temp Data'+this.tempDataFullPD+'Full Total '+this.total1);
// console.log('Final Smart Data '+ this.doughnutChartDataForSmartPD+' Temp Data '+this.tempDataSmartPD+'Smart Total '+this.total2);
// console.log('Final Tele Data '+ this.doughnutChartDataForTelePD+' Temp Data'+this.tempDataTelePD+'Tele Total '+this.total3);
})
}
@ -552,7 +552,7 @@ onChange(e: any,flag: any) {
this._dashboardService.getPDDetailForDoughnut(fromdate,todate,this.selectedCity,this.selectedLender).subscribe(data => {
console.log(' *****Updated Date Doughnut Chart Data *****',data);
// console.log(' *****Updated Date Doughnut Chart Data *****',data);
if(data.records.current_month.length != 0){
this.total1 = 0;
@ -578,7 +578,7 @@ onChange(e: any,flag: any) {
if(data.records.current_month.length != 0){
//console.log('If Condition monthLY');
console.log('Monthly Status',data.records.current_month);
// console.log('Monthly Status',data.records.current_month);
let MonthlyFullPDArr = data.records.current_month.filter(arr=>arr.PDTYPE == 'FULL' );
let MonthlySmartPDArr = data.records.current_month.filter(arr=>arr.PDTYPE == 'SMART' );
@ -866,9 +866,9 @@ onChange(e: any,flag: any) {
this.SmartCanvas.chart.update();
this.TeleCanvas.chart.update();
console.log('Final Full Data '+ this.doughnutChartDataForFullPD+'Temp Data'+this.tempDataFullPD+'Full Total '+this.total1);
console.log('Final Smart Data '+ this.doughnutChartDataForSmartPD+' Temp Data '+this.tempDataSmartPD+'Smart Total '+this.total2);
console.log('Final Tele Data '+ this.doughnutChartDataForTelePD+' Temp Data'+this.tempDataTelePD+'Tele Total '+this.total3);
// console.log('Final Full Data '+ this.doughnutChartDataForFullPD+'Temp Data'+this.tempDataFullPD+'Full Total '+this.total1);
// console.log('Final Smart Data '+ this.doughnutChartDataForSmartPD+' Temp Data '+this.tempDataSmartPD+'Smart Total '+this.total2);
// console.log('Final Tele Data '+ this.doughnutChartDataForTelePD+' Temp Data'+this.tempDataTelePD+'Tele Total '+this.total3);
})

View File

@ -53,7 +53,7 @@ export class DashboardService {
getPDDetailForDoughnut(fromdate,todate,cityarr,lenderarr): Observable<any> {
console.log(' From : ' + fromdate + ' To : ' + todate + ' Lender Array : ' + lenderarr + ' City Array : ' + cityarr);
// console.log(' From : ' + fromdate + ' To : ' + todate + ' Lender Array : ' + lenderarr + ' City Array : ' + cityarr);
return this._http.post(this.apiUrl+'getDashBoardMaster', {
"fromdate":fromdate != '' && fromdate != null && fromdate != undefined ? fromdate : '',

View File

@ -87,21 +87,22 @@ export class AdminLayoutComponent implements OnInit, OnDestroy {
/** 3) Getting PD Details For Alert Message */
this._dashboardService.getAlertDetail().subscribe(data => {
console.log(' *****Layout Alert Message *****');
console.log('Layout Alert Message Whole Data',data);
// console.log(' *****Layout Alert Message *****');
// console.log('Layout Alert Message Whole Data',data);
this.alertCount = data.records.length;
this.alertMsgTriggerType = data.records.filter(trigger=>trigger.pd_status == "TRIGGERED" );
this.alertMsgAllocateType = data.records.filter(allocate=>allocate.pd_status == "ALLOCATED" );
console.log('Layout Alert Message',this.alertMsgTriggerType);
console.log('Layout Alert Message',this.alertMsgAllocateType);
console.log('Layout Alert Count',this.alertCount);
// console.log('Layout Alert Message',this.alertMsgTriggerType);
// console.log('Layout Alert Message',this.alertMsgAllocateType);
// console.log('Layout Alert Count',this.alertCount);
});
}
ngOnInit(): void {
console.clear();
const elemSidebar = <HTMLElement>document.querySelector('.sidebar-container ');
if (window.matchMedia(`(min-width: 960px)`).matches && !this.isMac() && !this.compactSidebar && this.layoutDir != 'rtl') {
@ -185,7 +186,7 @@ export class AdminLayoutComponent implements OnInit, OnDestroy {
changeMenuLayout(value)
{
console.log(value)
// console.log(value)
if(value)
{
this.menuLayout = 'top-menu';

View File

@ -69,7 +69,7 @@ export class ProductListComponent implements OnInit {
//To open dialog for edit the data
editProductMaster(arr: any[]) {
//alert(arr);
console.log(arr);
// console.log(arr);
this.isPopupOpened = true;
//const contact = this._ProductService.getAllProductMaster().find(c => c.ID === id);
// let contact = this._ProductService.getProd().map(res=>res.filter(data =>data.product_id == id))[0];

View File

@ -67,7 +67,7 @@ export class UomDialogComponent implements OnInit {
if(isNaN(this.data.uom_id)) {
Object.keys(UOMFormValues).forEach((key) => ( UOMFormValues[key] == null) && delete UOMFormValues[key]);
console.log(UOMFormValues);
// console.log(UOMFormValues);
this._mastersService.addMasterDetails(UOMFormValues,'UOM').subscribe(
dataresult=>{

View File

@ -59,7 +59,7 @@ export class PdTeamListComponent implements OnInit {
/** To edit data */
toEditPdTeam(pdteam_id){
//this.router.navigate(['/setting/pdteam/editpdteam',pdteam_id]);
console.log(btoa(pdteam_id));
// console.log(btoa(pdteam_id));
this.router.navigate(['/setting/pdteam/editpdteam',btoa(pdteam_id)]);
}

View File

@ -47,7 +47,7 @@ onNoClick(): void {
this.viewpage = true;
this.pdTeamManageData = this.pdTeamManageData.records;
console.log(this.pdTeamManageData);
// console.log(this.pdTeamManageData);
}else
{
@ -65,10 +65,10 @@ onNoClick(): void {
let [bagName, el, target, source] = args;
//console.log(el);
console.log(this.bag1.nativeElement);
console.log(this.bag1.nativeElement === target);
// console.log(this.bag1.nativeElement);
// console.log(this.bag1.nativeElement === target);
if(this.bag1.nativeElement){ // needed since dropModel triggers for all bags, not only on the dropped bag
console.log(this.bag1.nativeElement);
// console.log(this.bag1.nativeElement);
let transferData:any = {
userid: el.dataset.id,
@ -76,7 +76,7 @@ onNoClick(): void {
newTeamName: target.dataset.id,
oldIndex: el.dataset.index
}
console.log(el);
// console.log(el);
for(let i = 0; i < that.pdTeamManageData.length; i++){
let users = that.pdTeamManageData[i].USERPROFILE;
for(let us of users){
@ -85,7 +85,7 @@ onNoClick(): void {
//console.log(transferData);
this.pdTeamNewList.push(transferData);
//console.log(that.transferData);
console.log(this.pdTeamNewList);
// console.log(this.pdTeamNewList);
this.btnsave = false;
break;
}

View File

@ -101,7 +101,7 @@ export class RegisterComponent implements OnInit {
//console.log(this.types);
this.regForm.controls['type'].setValue(this.types[0]);
this.users.roles().subscribe(res=>{
console.log(res);
// console.log(res);
this.roleload = false;
//console.log(roleload);
this.role = res;
@ -156,7 +156,7 @@ export class RegisterComponent implements OnInit {
var reader = new FileReader();
//if($event.target.files[0] < 0 ){
this.files = $event.target.files[0];
console.log(this.files);
// console.log(this.files);
reader.onload = ($event: ProgressEvent) => {
// console.log((<FileReader>$event.target).result);
@ -170,7 +170,7 @@ export class RegisterComponent implements OnInit {
register(userData) {
console.log(userData);
// console.log(userData);
let data:any;
// console.log(this.files);
@ -199,7 +199,7 @@ this.loader = true;
if (data.status == 200) {
this.AWS.adminUpdateuser(userData, data.record).subscribe(res => {
this.loader =false;
console.log(res);
// console.log(res);
Swal('User Created');
this.router.navigate(['setting/users/userlist']);
});
@ -227,7 +227,7 @@ this.loader = true;
}
toggleAllSelection(e,enitiyid) {
console.log(enitiyid);
// console.log(enitiyid);
// if(e.value){
// if(e.value.role_name == pdoff && enitiyid.entity_type_id == 1){
@ -255,8 +255,8 @@ this.loader = true;
}
getcity(e){
console.log(e);
console.log(this.Cities);
// console.log(e);
// console.log(this.Cities);
this.City = this.Cities.filter(city=>city.fk_state_id == e.value.state_id);
@ -296,7 +296,7 @@ this.loader = true;
let role = this.role.filter(role=>role.role_type == this.usersData.fk_entity_type_id && role.role_id == this.usersData.user_role)[0];
this.regForm.controls['role'].setValue(role);
console.log(role);
// console.log(role);
this.toggleAllSelection(role,this.types[0]);
// this.regForm.controls['role'].setValue(role);
@ -313,7 +313,7 @@ this.loader = true;
if (this.State.status == 200) {
this.State = this.State.records.filter(ent=>ent.isactive ==1);
let states = this.State.filter(state => state.state_id == this.usersData.fk_state)[0];
console.log(states);
// console.log(states);
this.regForm.controls['state'].setValue(states);
this.users.City().subscribe(res => {
this.Cities = res;
@ -388,7 +388,7 @@ this.loader = true;
checktype(e){
console.log(e);
// console.log(e);
this.roleAccess= false;
let userRole:any;
if(e !== undefined){
@ -396,7 +396,7 @@ this.loader = true;
//console.log(roleload);
this.roles = this.role.filter(role=>role.role_type == e.entity_type_id);
console.log(this.roles);
// console.log(this.roles);
// let role = this.roles.filter(role=>role.role_id == this.usersData.user_role_id);
// console.log(role);
// this.regForm.controls['role'].setValue(role);

View File

@ -65,11 +65,11 @@ export class UserListComponent implements OnInit {
let data:any;
this.users.getuserdata().subscribe(res => {
this.loader = false;
console.log(res);
// console.log(res);
data = res;
if (data.status == 200) {
this.userdata = data.records;
console.log(data.records.length);
// console.log(data.records.length);
this.dataLength = data.records.length;
this.dataSource.data = this.userdata;
if(data.records.length >= 1){