Notes
Notes - notes.io |
function all(){
var store = Ext.create('Ext.data.Store', {
title: "All Invoices",
storeId : 'all',
autoLoad : true,
pageSize : 20,
proxy : {
type : 'ajax',
extraParams : {
invoicestype: 'all'
},
url : 'UserDataServ',
actionMethods : {
read : 'GET'
},
reader: {
type : 'json',
rootProperty : 'rows',
totalProperty : 'results',
keepRawData :true
}
},
});
var c=true;
var grid = Ext.create('Ext.grid.Panel', {
title: 'All Invoices',
store: Ext.data.StoreManager.lookup('all'),
dockedItems: [{
xtype: 'toolbar',
dock: 'top',
itemId:'all_invoices_toolbar',
items: [
{
xtype: 'button',
text: 'Edit',
itemId:'all_invoices_edit_button',
listeners: {
click: function () {
if(c){
Edit_adder.show();
c=false;
}
else
{
Edit_adder.hide();
c=true;
}
}
}
// handler: function() {
// alert('You clicked the Edit button!');
// }
},
{
xtype: 'button',
text: 'Predict',
itemId:'all_invoices_predict_button',
listeners: {
// click: function () {
//
// }
},
handler: function() {
alert('You clicked the predit button!');
}
},'->',
{
xtype: 'button',
itemId:'all_invoices_advancesearch_button',
text: 'Advance Search',
listeners: {
click: function() {
if(c){
All_adder.show();
c=false;
}
else
{
All_adder.hide();
c=true;
}
}
}
}
]
}],
tbar : {
xtype : 'pagingtoolbar',
pageSize : 20,
displayInfo : true,
store : 'all'
},
bbar : {
xtype : 'pagingtoolbar',
pageSize : 20,
displayInfo : true,
store : 'all'
},
columns: [
{text:'id' , dataIndex:'id'},
{ text : 'Customer Name', dataIndex : 'customerName' },
{ text : 'Customer Number', dataIndex : 'customerNumberNorm'},
{ text : 'Document Number', dataIndex : 'documentNumberNorm'},
{ text : 'Company Code', dataIndex : 'companyCode' },
{ text : 'FiscalYear', dataIndex : 'fiscalYear' },
{ text : 'Branch', dataIndex : 'branch' },
{ text : 'Document Date Norm', dataIndex : 'documentDateNorm' },
{ text : 'Baseline Date', dataIndex : 'baselineDateNorm' },
{ text : 'Due Date Norm', dataIndex : 'dueDateNorm' },
{ text : 'Invoice Number', dataIndex : 'invoiceNumberNorm' },
{ text : 'Open Amount Norm', dataIndex : 'openAmountNorm' },
{ text : 'Payment Terms', dataIndex : 'paymentTerms' },
{ text : 'Clearing Date', dataIndex : 'clearingDateNorm' },
{ text : 'IsOpen', dataIndex : 'isOpen' },
{ text : 'Order Type', dataIndex : 'orderType' },
{ text : 'Order Date', dataIndex : 'orderDate' },
{ text : 'BusinessArea', dataIndex : 'businessArea' },
{ text : 'Ship Date', dataIndex : 'shipDate' },
{ text : 'JobId', dataIndex : 'jobId' },
{ text : 'Tax Amount', dataIndex : 'taxAmt' },
{ text : 'Current Dispute Amount',dataIndex : 'currentDisputeAmount'},
{ text : 'ShipTo', dataIndex : 'shipTo' },
{ text : 'Document Id', dataIndex : 'documentId' },
{ text : 'Document Date', dataIndex : 'documentDate' },
{ text : 'Actual OpenAmount', dataIndex : 'actualOpenAmount' },
{ text : 'Due Date', dataIndex : 'dueDate', },
{ text : 'Invoice Age', dataIndex : 'invoiceAge' },
{ text : 'IsValidDispute', dataIndex : 'isValidDispute'},
{ text : 'Retainage Amount', dataIndex : 'retainageAmount' },
{ text : 'Posting Key', dataIndex : 'postingKey' },
{ text : 'Currency', dataIndex : 'currency' },
{ text : 'DebitCreditIndicator', dataIndex : 'debitCreditIndicator'},
{ text : 'Valid Open Amount', dataIndex : 'validOpenAmount'}
],
selModel:'checkboxmodel',
height: 450,
width: true,
});
return grid;
}
var All_adder = Ext.create('Ext.window.Window', {
requires : [
'Ext.form.Panel', 'Ext.form.field.Text', 'Ext.button.Button' ],
title : 'Simple Form',
labelAlign : 'right',
closeAction : 'destroy',
bodyPadding : 5,
itemId:'all_invoices_advancesearch_panel',
style : {
marginLeft : 'auto',
//marginRight: 'auto'
},
width : 650,
height :250,
labelAlign : 'right',
defaults : {
anchor : '100%'
},
items : [ {
xtype : 'form',
bodyPadding : 10,
layout : 'column',
items : [ {
xtype : 'datefield',
itemId:'all_invoices_due_date',
margin:'10px',
name : 'Due-Date',
fieldLabel : 'Due-Date',
}, {
xtype : 'numberfield',
name : 'Fiscal Year',
itemId:'all_invoices_fiscal_year',
margin:'10px',
value : 2000,
maxValue : 2019,
minValue : 1997,
fieldLabel : 'Fiscal Year',
}, {
xtype : 'textfield',
margin:'10px',
itemId:'all_invoices_actual_open_account',
name : 'Actual Open Amount',
fieldLabel : 'Actual Open Amount',
}, {
xtype : 'textfield',
margin:'10px',
itemId:'all_invoices_customer_name',
name : 'Customer Name',
fieldLabel : 'Customer Name',
}
],
} ],
buttons : [ {
xtype : 'button',
formBind : true,
itemId : 'all_invoices_search_button',
text : 'Search',
listeners : {
click : function() {
}
}
}, {
xtype : 'button',
formBind : true,
itemId : 'all_invoices_clear_advanceSearch',
text : 'Clear',
listeners : {
click : function() {
}
}
} ],
renderTo : Ext.getBody()
});
All_adder.hide();
//edit button
var Edit_adder = Ext.create('Ext.window.Window', {
requires : [
'Ext.form.Panel', 'Ext.form.field.Text', 'Ext.button.Button' ],
title : 'Simple Form',
labelAlign : 'right',
closeAction : 'destroy',
bodyPadding : 5,
itemId:'all_invoices_advancesearch_panel',
style : {
marginLeft : 'auto',
//marginRight: 'auto'
},
width : 650,
height : 200,
labelAlign : 'right',
defaults : {
anchor : '100%'
},
items : [ {
xtype : 'form',
bodyPadding : 10,
layout : 'column',
items : [
{
xtype : 'textfield',
margin:'10px',
itemId:'all_invoices_actual_open_account',
name : 'Job Id',
fieldLabel : 'Actual Open Amount',
}, {
xtype : 'textfield',
margin:'10px',
itemId:'all_invoices_customer_name',
name : 'Ship To',
fieldLabel : 'Customer Name',
}
],
} ],
buttons : [ {
xtype : 'button',
formBind : true,
itemId : 'all_invoices_search_button',
text : 'Save',
listeners : {
click : function() {
}
}
}, {
xtype : 'button',
formBind : true,
itemId : 'all_invoices_clear_advanceSearch',
text : 'Clear',
listeners : {
click : function() {
}
}
} ],
renderTo : Ext.getBody()
});
Edit_adder.hide();
///////
ally easy to share with others. Click here ...
|
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