Commit 30119f06 authored by stone's avatar stone

[fix]修改bug

parent 08c1e16d
var add_datafilters = [ {
name : 'project_id',
expression : "t1.project_id=${@project_id}"
} ];
add_datafilter();
var add_datafilters = [ {
name : 'project_id',
expression : "t1.project_id=${@project_id}"
} ];
add_datafilter();
......@@ -196,7 +196,7 @@
<a:column name="real_insurance_date" renderer="Leaf.formatDate" prompt="保险起始日" width="120" editor="edit_date"/>
<a:column name="insurance_end_date" renderer="Leaf.formatDate" prompt="保单到期日" width="120" editor="edit_date"/>
<a:column name="insurance_fee" prompt="保险费" width="120" editor="edit_number" renderer="Leaf.formatMoney" align="right"/>
<a:column name="insurance_rate" prompt="保险费率(%)" width="120" editor="edit_number" renderer="Leaf.formatMoney"/>
<a:column name="insurance_rate" prompt="保险费率(%)" width="120" editor="edit_number" align="center"/>
<a:column name="ins_company" prompt="保险公司" width="120" editor="edit_text"/>
<!-- <a:column name="attachment_file" prompt="附件" width="120" renderer="receipt_attachment_upload" align="center"/>-->
<!-- <a:column name="err_message" prompt="错误信息" width="230"/>-->
......
......@@ -53,11 +53,12 @@
model="prj.PRJ505.prj_project_create_contract" modelaction="execute"/>
<a:link id="prj_approval_link_id" model="prj.PRJ501N.project_approval" modelaction="update"/>
<a:link id="check_prj_lease_item_link_id" model="prj.PRJ501N.project_approval" modelaction="execute"/>
<script src="${/request/@context_path}/javascripts/jquery-1.6.4.min.js" type="text/javascript"/>
<!--<link href="${/request/@context_path}/css/lightbox.css" rel="stylesheet" type="text/css"/>
<script src="${/request/@context_path}/javascripts/lightbox.js" type="text/javascript"/>-->
<script type="text/javascript"><![CDATA[
jQuery.noConflict();
window['${/parameter/@layout_code}_user_button5_layout_dynamic_click'] = function () {
Leaf.showConfirm('提示', '是否确认生成合同?', function () {
var ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_project');
......@@ -595,6 +596,10 @@ function prj501n_contract_number_renderer(id, name, query_only){
$(bp_ds_id).query();
var quotation_ds_id = get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'], 'prj_quotation');
$(quotation_ds_id).query();
var billing_ds_id=get_dsid_by_basetable(window['${/parameter/@layout_code}_layoutDataSetList'],'prj_project_bp');
console.log('${/parameter/@project_id}');
$(billing_ds_id).setQueryParameter("project_id",'${/parameter/@project_id}');
$(billing_ds_id).query();
})
//序号自增 add by lijingjing
window['${/parameter/@bp_seq}${/parameter/@layout_code}_on_layout_dynamic_grid_add'] = function(ds, record, config_records, bp_seq) {
......@@ -615,8 +620,22 @@ function prj501n_contract_number_renderer(id, name, query_only){
}
var rk_value = seq_num + 1;
record.set('lease_item_seq', rk_value);
}
};
//indexchange事件(grid,attach,gridbox,table)
// window['${/parameter/@layout_code}_on_layout_dynamic_grid_indexchange'] = function(ds, record, bp_seq) {
// if(!record.get('pattern')){
//
// var nodes=document.querySelectorAll('td[dataindex="machine_number"]');
// // var nodes=document.getElementsByClassName('cell-editor-div');
// for (var i=1;i<nodes.length;i++){
// nodes[i].children[0].style.backgroundColor= "#FAFACD";
// }
// // $('.cell-editor-div').parent().css("background-color","yellow");
// }
// };
//客户评分
window['${/parameter/@layout_code}_user_button9_layout_dynamic_click'] = function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment