contract_print_path.js 920 Bytes
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2
function print_insert_fnd_atm(type) {
	var guid_file_name_path = $ctx.get('/model/guid_file_name_path')
3 4 5
		.getChildren();
	var contract_file_path = $ctx.get('/model/contract_file_path')
		.getChildren();
Spencer Chang's avatar
Spencer Chang committed
6
	var file_name = $ctx.parameter.file_name + '.' + type;
7 8

	var file_path = contract_file_path[0].contract_file_path+encodeURI($ctx.parameter.file_name, 'utf-8')+'.'+ type;;
Spencer Chang's avatar
Spencer Chang committed
9 10 11 12 13 14
	$bm('cont.CON500.con_sign_content_update').update( {
		table_name : 'CON_CONTRACT_CONTENT',
		content_id : $ctx.parameter.content_id,
		file_name : file_name.toString(),
		file_path : file_path.toString()
	});
15 16 17 18 19 20 21 22
}
var con_print_path = {
	'con_print_path' : '/u01/hls_file/excel/'

};


function set_parameter_file_path(name) {
23 24
	$ctx.parameter.file_path = 'D:/u01/hls_file/excel/';
	$ctx.parameter.pdf_path = 'D:/u01/hls_file/content_pdf/';
25
};
26 27 28
function set_pdf_parameter_file_path(name) {
	$ctx.parameter.file_path = 'D:/u01/hls_file/excel/';
};