NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

Ext.application({
name: 'Fiddle',

launch: function () {

//var db = Ext.create('Ext.data.store',{

//});

var toolbar = Ext.create('Ext.toolbar.Toolbar', {
width : 'fit',
items: [{
text: 'Edit',
width:100,
},{
text: 'Predict',
width:100,
},
'->',{
text: 'Advance Search',
width:175,
},
]});

// Ext.create('Ext.data.Store', {
// storeId: 'openinvoices',
// fields:[ 'name', 'rollno', 'subject','trainer'],
// data: [
// { name: 'Akash Jaiswal', rollno: '1629189', subject: 'EXTJS', trainer: 'Pratima' },
// { name: 'Sneha', rollno: '1605218', subject: 'JAVA', trainer: 'Ajay' },
// { name: 'Neeraj', rollno: '160456', subject: 'C', trainer: 'Vijay' },
// { name: 'Manmohan', rollno: '160673', subject: 'C++', trainer: 'Pratyush' },
// { name: 'Akash Jaiswal', rollno: '1629189', subject: 'EXTJS', trainer: 'Pratima' },
// { name: 'Sneha', rollno: '1605218', subject: 'JAVA', trainer: 'Ajay' },
// { name: 'Neeraj', rollno: '160456', subject: 'C', trainer: 'Vijay' },
// { name: 'Manmohan', rollno: '160673', subject: 'C++', trainer: 'Pratyush' },
// { name: 'Akash Jaiswal', rollno: '1629189', subject: 'EXTJS', trainer: 'Pratima' },
// { name: 'Sneha', rollno: '1605218', subject: 'JAVA', trainer: 'Ajay' },
// { name: 'Neeraj', rollno: '160456', subject: 'C', trainer: 'Vijay' },
// { name: 'Manmohan', rollno: '160673', subject: 'C++', trainer: 'Pratyush' },
// { name: 'Akash Jaiswal', rollno: '1629189', subject: 'EXTJS', trainer: 'Pratima' },
// { name: 'Sneha', rollno: '1605218', subject: 'JAVA', trainer: 'Ajay' },
// { name: 'Neeraj', rollno: '160456', subject: 'C', trainer: 'Vijay' },
// { name: 'Manmohan', rollno: '160673', subject: 'C++', trainer: 'Pratyush' },
// { name: 'Akash Jaiswal', rollno: '1629189', subject: 'EXTJS', trainer: 'Pratima' },
// { name: 'Sneha', rollno: '1605218', subject: 'JAVA', trainer: 'Ajay' },
// { name: 'Neeraj', rollno: '160456', subject: 'C', trainer: 'Vijay' },
// { name: 'Manmohan', rollno: '160673', subject: 'C++', trainer: 'Pratyush' },
// { name: 'Akash Jaiswal', rollno: '1629189', subject: 'EXTJS', trainer: 'Pratima' },
// { name: 'Sneha', rollno: '1605218', subject: 'JAVA', trainer: 'Ajay' },
// { name: 'Neeraj', rollno: '160456', subject: 'C', trainer: 'Vijay' },
// { name: 'Manmohan', rollno: '160673', subject: 'C++', trainer: 'Pratyush' },
// { name: 'Akash Jaiswal', rollno: '1629189', subject: 'EXTJS', trainer: 'Pratima' },
// { name: 'Sneha', rollno: '1605218', subject: 'JAVA', trainer: 'Ajay' },
// { name: 'Neeraj', rollno: '160456', subject: 'C', trainer: 'Vijay' },
// { name: 'Manmohan', rollno: '160673', subject: 'C++', trainer: 'Pratyush' },
//
// ]
// });

// var store = Ext.create('Ext.data.Store', {
// id: 'openinvoices',
// actionMethods : {
// read : 'GET'
// },
// autoLoad: false,
// //fields: [ 'account_id', 'document_number_form', 'company_code', 'fiscal_year', 'branch', 'customer_number_norm', 'fk_customer_map_id', 'document_date_norm', 'baseline_date_norm', 'due_date_norm', 'invoice_number_norm', 'open_amount_norm', 'payment_terms', 'clearing_date_norm', 'open', 'order_type', 'order_date', 'business_area', 'ship_date', 'job_id', 'tax_amt', 'current_disput_amount', 'ship_to', 'document_id', 'document_date', 'actual_open_amount', 'due_date', 'invoice_age', 'isvalid_dispute', 'posting_key', 'strategy_id', 'currency', 'debit_credit_indicator', 'valid_open_amount'],
//
// fields: ['account_id', 'document_number_form', 'company_code', 'fiscal_year', 'branch', 'customer_number_norm', 'fk_customer_map_id', 'document_date_norm', 'baseline_date_norm', 'due_date_norm', 'invoice_number_norm', 'open_amount_norm', 'payment_terms', 'clearing_date_norm', 'order_type', 'order_date', 'business_area', 'ship_date', 'job_id', 'tax_amt', 'current_disput_amount', 'ship_to', 'document_id', 'document_date', 'actual_open_amount', 'due_date', 'invoice_age', 'isvalid_dispute', 'posting_key', 'strategy_id', 'currency', 'valid_open_amount', 'customer_name', 'open'],
// pageSize: 100,
// proxy: {
// type: 'ajax',
// url: 'http://localhost:8080/hrc-project/View_data',
// reader: {
// type: 'json',
// rootProperty: 'items',
//
// }
// }
// });

var store = Ext.create('Ext.data.Store', {
storeId : 'openinvoices',

fields: [ 'account_id','document_number','company_code','fiscal_year','branch','customer_number','fk_customer_map_id','document_date_norm','baseline_date_norm','due_date_norm','invoice_number_form','open_amount_norm','payment_terms','clearing_date_norm','isOpen','order_type','order_date','business_area','ship_date','job_id','tax_amt','current_disput_amount','ship_to','document_id','document_date','actual_open_amount','due_date','invoice_age','isvalid_dispute','posting_key','stategy_id','currency','valid_open_amount','customer_name','debit_credit_indicator','retainage_amount'],
//fields: ['accountId', 'documentNumberForm', 'companyCode', 'fiscalYear', 'branch'],
//fields: [ 'account_id', 'document_number', 'company_code', 'fiscal_year', 'branch'],
autoLoad : true,
pageSize:20,
proxy : {
type : 'ajax',
url : 'getinv.do',
actionMethods : {
read : 'GET'
},


reader : {
rootProperty : 'rows',
totalProperty : 'results',
keepRawData : true
}
}
});



store.load({
params: {
start: 20,
limit: 100
}
});
var grid_all_invoices=Ext.create('Ext.grid.Panel', {
title: 'All Invoices',
store: Ext.data.StoreManager.lookup('openinvoices'),
columns: [
{text: 'Account ID ', dataIndex:'account_id'},
{text: 'Document Number ', dataIndex:'document_number_form'},
{text: 'Company Code ', dataIndex:'company_code'},
{text: 'Fiscal Year ', dataIndex:'fiscal_year'},
{text: 'Branch ', dataIndex:'branch'},
{text: 'Consumer Number ', dataIndex:'customer_number_norm'},
{text: 'Customer ID ', dataIndex:'fk_customer_map_id'},
{text: 'Document Date Norm ', dataIndex:'document_date_norm'},
{text: 'Base Line Date Norm ', dataIndex:'baseline_date_norm'},
{text: 'Due Date Norm ', dataIndex:'due_date_norm'},
{text: 'Invpoice Numnber Norm ', dataIndex:'invoice_number_norm'},
{text: 'Open amount norm ', dataIndex:'open_amount_norm'},
{text: 'Payment terms ', dataIndex:'payment_terms'},
{text: 'Clearing Date Norm ', dataIndex:'clearing_date_norm'},
{text: 'is Open ', dataIndex:'open'},
{text: 'Order Type ', dataIndex:'order_type'},
{text: 'Order Date ', dataIndex:'order_date'},
{text: 'Business Area ', dataIndex:'business_area'},
{text: 'Ship Date ', dataIndex:'ship_date'},
{text: 'Job ID ', dataIndex:'job_id'},
{text: 'Tax Amount ', dataIndex:'tax_amt'},
{text: 'Current Dispute Amount ', dataIndex:'current_disput_amount'},
{text: 'Ship To ', dataIndex:'ship_to'},
{text: 'Document Id ', dataIndex:'document_id'},
{text: 'Document Date ', dataIndex:'document_date'},
{text: 'Actual Open Amount ', dataIndex:'actual_open_amount'},
{text: 'Due Date ', dataIndex:'due_date'},
{text: 'Invoice Age ', dataIndex:'invoice_age'},
{text: 'Is valid Dispute ', dataIndex:'isvalid_dispute'},
{text: 'Posting Key ', dataIndex:'posting_key'},
{text: 'Strategy Key ', dataIndex:'stategy_id'},
{text: 'Currency ', dataIndex:'currency'},
{text: 'Calid Open Amount ', dataIndex:'valid_open_amount'},
{text: 'Customer Name ', dataIndex:'customer_name'},
{text: 'Debit Credit Indicator ', dataIndex:'debit_credit_indicator'},
{text: 'Retainage Amount ', dataIndex:'retainage_cmount'}

],
height: 'fit',
width: 'fit',
//renderTo: Ext.getBody()
bbar: {
xtype: 'pagingtoolbar',
displayInfo: true
},
dockedItems: [{
xtype: 'pagingtoolbar',
store: 'openinvoices',
dock: 'bottom',
displayInfo: true
}]
});


var tab_panel = Ext.create('Ext.TabPanel',{
fullscreen: true,
///tabBarPosition: 'top',
//renderTo : Ext.getBody(),
defaults:{
StyleHtmlContent : true
},

items: [
{
itemID: 'all_invoices_panel',
items:[toolbar, grid_all_invoices],
title: 'All Invoices',
iconCls: 'home',
},
{
itemID: 'open_invoices_panel',
//items:[grid_poen_invoices],
title: 'Opened Invoices',
iconCls: 'user',
html: 'Opened Invoices'
},
{
itemID: 'closed_invoices_panel',
title: 'Closed Incvoices',
iconCls: 'user',
html: 'Closed Invoices'
},
]
});



var my_panel = Ext.create('Ext.panel.Panel',{
title:"Invoices",
items:[tab_panel],
renderTo:Ext.getBody()
})
}

});
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.