daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Copyright (c) 2017 Construction Management Systems, LLC. - All Rights Reserved
  2.  
  3. /**
  4.  * Created by swarren on 8/1/16.
  5.  */
  6.  
  7. Ext.define('cmsmobile.view.Expense.ExpenseItems.List', {
  8.     extend: 'cmsmobile.common.views.advList.BaseList',
  9.     requires: [
  10.         'cmsmobile.view.Expense.ExpenseItems.ListViewController'
  11.     ],
  12.     xtype: 'expenseitemslist',
  13.     controller: 'expitemsviewcontroller',
  14.     viewModel: {},
  15.     includeCreateButton: true,
  16.     config: {
  17.         title: 'Expense Items',
  18.         emptyText: cmsmobile.util.Strings.msg(152), //'No expense items.',
  19.         //itemTpl: '<table><tr><td style="width:<tpl if="Ext.os.deviceType === \'Phone\'">10<tpl else>5</tpl>%;white-space: nowrap;">{[cmsmobile.util.Misc.returnExpenseTypeIcon(values.type)]} {[cmsmobile.util.Misc.expItemCreqStat(values.checkRequest)]}</td><td><span class="explistclass2" status="{status}" type="{type}" unid="{unid}">{description}</span></td><td valign="top">{[cmsmobile.util.Conversion.formatDataType(values.amount,"currency")]}</td></tr><tr><td></td><td>{formattedDate}</td><td></td></tr></table>'
  20.         itemTpl: '<table><tr><td>{[cmsmobile.util.Misc.returnExpenseTypeIcon(values.type)]}</td><td> {[cmsmobile.util.Misc.expItemCreqStat(values.checkRequest)]}</td><td class="xBold">{formattedDate}</td><td valign="top">{[cmsmobile.util.Conversion.formatDataType(values.amount,"currency")]}</td></tr></table><div><span status="{status}" type="{type}" unid="{unid}">{description}</span></div>'
  21.     }
  22. });
RAW Paste Data
Top