Notes
Notes - notes.io |
//@author baidehi.ghosh
// namespace for the tab
Ext.ns('highradius.training.openInvoice');
// datatype ID from DB, it is always reserved and hardcoded
highradius.training.openInvoice.dataTypeId = 110055;
function resolveTrainingPath(URL) {
URL = '/RRDMSProject/training/' + URL;
return URL;
}
// this function is called from DB
highradius.training.openInvoice.createView = function(attributes) {
var fields = dms.common.getFields(1, highradius.training.openInvoice.dataTypeId);
var extraFields = [];
// create Store
highradius.training.openInvoice.employeeDetailsGridStore = dms.common.createStore('invoiceDetails',resolveTrainingPath('getOpenInvoiceDetails.do'), fields,extraFields, undefined, undefined, undefined, false,undefined, true);
var layoutsArray = dms.common.getLayoutsList(highradius.training.openInvoice.dataTypeId, false);
var employeeLayoutArray=dms.common.createLayoutArray(layoutsArray[0],fields);
var headerArray = layoutsArray[1].split(",");
highradius.training.openInvoice.savedSearchStore = dms.common.getSavedSearchStore(highradius.training.openInvoice.dataTypeId);
//create advance search panel
highradius.training.openInvoice.advancedSearchPanel = dms.advancedsearch.component.createAdvancedSearchComponent('invoiceDetailsSearch',employeeLayoutArray,resolveTrainingPath('getOpenInvoiceDetails.do'),highradius.training.openInvoice.employeeDetailsGridStore,highradius.training.openInvoice.savedSearchStore,highradius.training.openInvoice.dataTypeId,null);
//create simple search panel
highradius.training.openInvoice.simpleSearchPanel = dms.simplesearch.component.createSimpleSearchComponent('invoiceDetailsSearch',resolveTrainingPath('getOpenInvoiceDetails.do'),highradius.training.openInvoice.savedSearchStore,highradius.training.openInvoice.employeeDetailsGridStore,highradius.training.openInvoice.advancedSearchPanel,employeeLayoutArray,resolveTrainingPath('getOpenInvoiceDetails.do'),highradius.training.openInvoice.dataTypeId,null,null,null,null,null,null);
// create Grid
highradius.training.openInvoice.employeeDetailsGridPanel = dms.grid.component.createGridComponent('invoiceDetailsGrid', 'invoiceDetailsGridPanel',
highradius.training.openInvoice.employeeDetailsGridStore,
fields, headerArray, '', '{}',
highradius.training.openInvoice.dataTypeId, null, undefined,
undefined, undefined, highradius.training.openInvoice.dataTypeId);
// create the main panel which is rendered as the view
highradius.training.openInvoice.namePanel = Ext.create('Ext.panel.Panel', {
// don't want content to crunch against the borders
bodyPadding : 5,
title : 'Invoice Details',
// all items which are to be displayed in the panel go here
items : [highradius.training.openInvoice.advancedSearchPanel,
highradius.training.openInvoice.simpleSearchPanel,
{
// create a field set to contain all form fields
xtype : 'fieldset',
title : 'Add area',
layout : {
type : 'hbox',
align : 'middle'
},
// all items within the fieldset go here
items : [{
xtype : 'button',
text : 'New'
}]},
// add grid panel after search area is complete
highradius.training.openInvoice.employeeDetailsGridPanel
]
})
// return the main panel, which will be rendered on the UI alongwith items it contains
return highradius.training.openInvoice.namePanel;
};
|
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