标签:success 账号 fresh sele char bye erb 预算 count
编辑:
$(‘#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‘ }
]
});
标签:success 账号 fresh sele char bye erb 预算 count
原文地址:https://www.cnblogs.com/xsj1989/p/12455940.html