利用condition,打開表單自動向voFile屬性賦值

打開表單時,通過condition傳值,可以自動給表單的bean對象賦值,不用自己解釋參數再賦值
//創建發票
function createInvoice(CP_TYP,VESSEL_CD,VYG_NO,CP_NO){
	var formId="2c998690627da5420162847eb0e11e2e";
	var style = "dialogHeight="+screen.height+"px;dialogWidth="+screen.width+"px;scroll:no;status:no;resizable:yes;";
	var scriptfile="";
	var condition= "VESSEL_CD=\'"+VESSEL_CD+"\' and VYG_NO=\'"+VYG_NO+"\' and CP_NO=\'"+CP_NO+"\' ";
	scriptfile = Systempath+"/scripts/common/file/File_Info_Template.jsp?isnewdoc=1&FormID="+formId+"&condition="+condition;
	window.showModalDialog(scriptfile,window,style);
}

表單對應jsp,完成bean賦值的代碼在<%@ include file="/scripts/common/file/File_Info_Data.jsp"%>


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章