表单控件、系统变量赋值取值

var A=ScanStr(formObj,"['审批日期']",0);

fromObj.getUser() //获取USERID

fromObj.getInst() //获取slid

fromObj.getFlow() //获取FlowId

window.webform.getFlow() //获取流程号






fromObj.GetElement(name).innerHTML = '亲亲娃儿额';

fromObj.setCtrlValue("抽中单位名称", obj.dwmc);







var w=null;

                            for(var i = 0; i < parent.frames.length; i++) {

                                   if(parent.frames[i].window.webform.getFormId() == "72213") {

                                          w= parent.frames[i].window.webform;

                                          break

                                   }

                            }

                            if(w!=null)

                            {         

                                   info=Ext.decode(info);

                                   debugger;

                                   varyx011Tp=info.JSYDGZQ["011"]==undefined?"0":info.JSYDGZQ["011"];

                                   varyx012Tp=info.JSYDGZQ["012"]==undefined?"0":info.JSYDGZQ["012"];



                                   w.setCtrlValue("允许建设区面积",parseFloat(yx011Tp)+parseFloat(yx012Tp));

                                   w.setCtrlValue("限制/有条件建设区面积",info.JSYDGZQ["020"]==undefined?"":info.JSYDGZQ["020"]);

                                   w.setCtrlValue("限制建设区面积",info.JSYDGZQ["030"]==undefined?"":info.JSYDGZQ["030"]);

                                   w.setCtrlValue("禁止建设区面积",info.JSYDGZQ["040"]==undefined?"":info.JSYDGZQ["040"]);

你可能感兴趣的:(表单控件、系统变量赋值取值)