在子表 筛选按钮点击事件中 添加了tntcode
点击
function(){
var form = window.parent.contentPane;
var tntcode = this.options.form.getWidgetByName("tntcode").getValue();
var userName = this.options.form.getWidgetByName("userName").getValue();
var tradeType = this.options.form.getWidgetByName("tradeType").getValue();
var CREATEORGID = this.options.form.getWidgetByName("CREATEORGID").getValue();
//拿取当前页面的父窗口(即获取填报界面)
var Widget = form.parameterEl.getWidgetByName('tntcode');
Widget.setValue(tntcode);
var Widget = form.parameterEl.getWidgetByName('userName');
Widget.setValue(userName);
var Widget = form.parameterEl.getWidgetByName('tradeType');
Widget.setValue(tradeType);
var Widget = form.parameterEl.getWidgetByName('CREATEORGID');
Widget.setValue(CREATEORGID);
//form.setCellValue($("div.fr-trigger-editor.ui-state-enabled[widgetname='SUPPLIERS_NO']"),val);
//赋值的索引要做下处理,做对应
//form.setCellValue(col,row-1,va2);
//给文本控件的单元格(A2)赋值val,0代表第一列,1代表第2行
window.parent.FR.closeDialog(); //确定获取值后,关闭取消父窗口的对话框
window.parent.FR.destroyDialog();
}
初始化
function(){
var form = window.parent.contentPane;
var tntcode = form.parameterEl.getWidgetByName("tntcode").getValue();
var userName = form.parameterEl.getWidgetByName("userName").getValue();
var tradeType = form.parameterEl.getWidgetByName("tradeType").getValue();
var shiftNo = form.parameterEl.getWidgetByName("CREATEORGID").getValue();
//拿取当前页面的父窗口(即获取填报界面)
var Widget = this.options.form.getWidgetByName('tntcode');
Widget.setValue(tntcode);
var Widget = this.options.form.getWidgetByName('userName');
Widget.setValue(userName);
var Widget = this.options.form.getWidgetByName('tradeType');
Widget.setValue(tradeType);
var Widget = this.options.form.getWidgetByName('CREATEORGID');
Widget.setValue(shiftNo);
}