easyui记录

Posted xsj1989

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了easyui记录相关的知识,希望对你有一定的参考价值。

编辑:

$(‘#ezd1‘).ezdialog({
submitUrl: ‘/xxx/xxx‘,
refreshTable: ‘#applicationview‘,
ezcontent: [
{ title: ‘Id‘, field: ‘Id‘, hidden: true },
{ title: ‘账单类型‘, field: ‘BillType‘, type: ‘combobox‘ },
{ title: ‘项目‘, field: ‘Project‘, type: ‘combobox‘ },
{ title: ‘项目描述‘, field: ‘ProDescription‘, type: ‘textbox‘ },
{ title: ‘部门‘, field: ‘Department‘, type: ‘combobox‘ },
{ title: ‘年‘, field: ‘BYear‘, type: ‘combobox‘ },
{ title: ‘月‘, field: ‘BMonth‘, type: ‘combobox‘ },
{ title: ‘金额‘, field: ‘Amount‘, type: ‘textbox‘ },
{ title: ‘税率‘, field: ‘TaxRate‘, type: ‘textbox‘},
{ title: ‘税额‘, field: ‘TaxAmount‘, type: ‘textbox‘},
{ title: ‘开票日期‘, field: ‘InvoiceDate‘, type: ‘datebox‘, formatter: function (value, row) { return value ? value.substr(0, 10) : ‘‘; }},
{ title: ‘发票号码‘, field: ‘InvoiceNumber‘, type: ‘textbox‘},
{ title: ‘收款日期‘, field: ‘ReceivablesDate‘, type: ‘datebox‘, formatter: function (value, row) { return value ? value.substr(0, 10) : ‘‘; }},
{ title: ‘合同账期到帐日‘, field: ‘ArrivalDate‘, type: ‘datebox‘, formatter: function (value, row) { return value ? value.substr(0, 10) : ‘‘; }},
{ title: ‘发票抬头‘, field: ‘InvoiceIssuing‘, type: ‘textbox‘},
{ title: ‘对账负责人‘, field: ‘ChargePerson‘, type: ‘textbox‘ },
{ title: ‘状态‘, field: ‘StatusCode‘, type: ‘combobox‘ },
{ title: ‘备注‘, field: ‘Remark‘, type: ‘textbox‘ },
 

{ title: ‘申请人‘, field: ‘ApplicantName‘, options: "{readonly: true}" },
{ title: ‘申请人所属部门‘, field: ‘ApplicantOwnDepartment‘, options: "{readonly: true}" },
//{ title: ‘预算年份‘, field: ‘BYear‘, type: ‘combobox‘, options: "{required: true, textField: ‘Value‘, valueField: ‘Id‘}" },
//{ title: ‘预算月份‘, field: ‘BMonth‘, type: ‘combobox‘, options: "{required: true, textField: ‘Value‘, valueField: ‘Id‘}" },
{ title: ‘PaymentUnitId‘, field: ‘PaymentUnitId‘, hidden: true },
{ title: ‘给付单位‘, field: ‘PaymentUnit‘, type: ‘combobox‘, options: "{required: true, onSelect: function(row){$(‘#ezd1 #PaymentUnitId‘).textbox(‘setValue‘, row.Id);$(‘#ezd1 #PaymentAccount‘).combobox({url: ‘/ExpenseManager/GetPaymentAccount?selUnitId=‘+row.Id}).combobox(‘reload‘);}, textField: ‘Value‘, valueField: ‘Value‘}" },
{ title: ‘给付账号‘, field: ‘PaymentAccount‘, type: ‘combobox‘, native: true, options: "{required: true, textField: ‘Value‘, valueField: ‘Value‘,onLoadSuccess: function(){var val = $(this).combobox(‘getData‘);val.length ? $(this).combobox(‘select‘, val[0].Value) : ‘‘;}}" },
{ title: ‘付款种类‘, field: ‘PaymentType‘, type: ‘combobox‘, options: "{required: true, textField: ‘Value‘, valueField: ‘Value‘}" },
{ title: ‘单据及附件页数‘, field: ‘AttachmentPageNum‘, type: ‘numberbox‘, options: "{required: true}" },
{ title: ‘申请人备注‘, field: ‘Memo‘ }
]
});

 

以上是关于easyui记录的主要内容,如果未能解决你的问题,请参考以下文章

Easyui datagrid 实现表格记录拖拽

easyui换主题,并记录在cookie

JQuery EasyUI学习记录

EasyUI:PHP+EasyUI的增删改操作的完整示例

easyUI API

easyui记录