11: ------------------------------------------------------------
12: procedure popWindow is
13: ------------------------------------------------------------
14: begin
15: htp.p('function popWindow(sourceURL) {
16: win = window.open(sourceURL, "drillDown", "resizable=yes,scrollbars=yes,width=750,height=300");
17: win = window.open(sourceURL, "drillDown", "resizable=yes,scrollbars=yes,width=750,height=300");
18: }
19: ');
61: ------------------------------------------------------------
62: begin
63:
64: FND_MESSAGE.SET_NAME('ICX', 'ICX_CART_RMV_ALL');
65: htp.p('function giveWarning() {
66: if (confirm(''' || icx_util.replace_quotes(FND_MESSAGE.GET) || ''')) {
67: return true;
68: } else {
69: return false;
85:
86: -- icx_admin_sig.openHeader;
87: -- icx_admin_sig.closeHeader;
88:
89: htp.htmlOpen;
90: htp.headOpen;
91: icx_admin_sig.toolbar(language_code => v_lang);
92: icx_util.copyright;
93: js.scriptOpen;
86: -- icx_admin_sig.openHeader;
87: -- icx_admin_sig.closeHeader;
88:
89: htp.htmlOpen;
90: htp.headOpen;
91: icx_admin_sig.toolbar(language_code => v_lang);
92: icx_util.copyright;
93: js.scriptOpen;
94:
91: icx_admin_sig.toolbar(language_code => v_lang);
92: icx_util.copyright;
93: js.scriptOpen;
94:
95: htp.p('function help_window() {
96: help_win = window.open(''/OA_DOC/' || v_lang || '/awe' || '/icxhlprq.htm'', "help_win","resizable=yes,scrollbars=yes,toolbar=yes,width=450,height=250");
97: help_win = window.open(''/OA_DOC/' || v_lang || '/awe' || '/icxhlprq.htm'', "help_win","resizable=yes,scrollbars=yes,toolbar=yes,width=450,height=250")}
98: ');
99: js.scriptClose;
98: ');
99: js.scriptClose;
100:
101:
102: htp.headClose;
103: htp.bodyOpen('/OA_MEDIA/' || v_lang || '/ICXBCKGR.jpg');
104:
105: FND_MESSAGE.SET_NAME('ICX', 'ICX_DATA_INCORRECT');
106: icx_util.add_error(FND_MESSAGE.GET);
99: js.scriptClose;
100:
101:
102: htp.headClose;
103: htp.bodyOpen('/OA_MEDIA/' || v_lang || '/ICXBCKGR.jpg');
104:
105: FND_MESSAGE.SET_NAME('ICX', 'ICX_DATA_INCORRECT');
106: icx_util.add_error(FND_MESSAGE.GET);
107: icx_util.error_page_print;
104:
105: FND_MESSAGE.SET_NAME('ICX', 'ICX_DATA_INCORRECT');
106: icx_util.add_error(FND_MESSAGE.GET);
107: icx_util.error_page_print;
108: -- htp.p(FND_MESSAGE.GET);
109:
110:
111: htp.bodyClose;
112:
107: icx_util.error_page_print;
108: -- htp.p(FND_MESSAGE.GET);
109:
110:
111: htp.bodyClose;
112:
113: end sysadmin_error ;
114:
115:
126: l_message varchar2(1000);
127: l_first_time varchar2(1);
128:
129: begin
130: --dc htp.p('//Draw errors at top of the cart.
131: --dc function drawCartErrors() {
132: --dc if (top.cartErrors.length > 0 ) {
133: --dc var result = "";
134: --dc result += "
' || prec.error_text || ' |
' || prec.error_text || ' |
' || prec.error_text || ' |
150:
151: htp.p('
161: ------------------------------------------------
162: procedure updateCartHeaderObject is
163: ------------------------------------------------
164: begin
165: htp.p('//Update the requestor.
166: function Update_requestor(id, name,org_id,loc_id,loc_cd) {
167: document.KEVIN.ICX_DEST_ORG_ID.value = document.KEVIN.ICX_REQ_ORG_ID.value;
168: document.KEVIN.ICX_DELIVER_TO_LOCATION_ID.value = document.KEVIN.ICX_REQ_LOC_ID.value;
169: document.KEVIN.ICX_DELIVER_TO_LOCATION.value = document.KEVIN.ICX_REQ_LOC_CD.value;
194:
195: --get dcd name
196: v_dcdName := owa_util.get_cgi_env('SCRIPT_NAME');
197:
198: htp.p('//Reserve a po number.
199: function get_po(){
200: open("' || v_dcdName || '/ICX_REQ_ORDER.get_emergency_po_num?n_org=' || n_org || '&n_cart_id= ' || n_cart_id || '", "navigation");
201:
202: }
235:
236: FND_MESSAGE.SET_NAME('RG', 'RG_DELETE_ROW');
237: v_message := FND_MESSAGE.GET;
238:
239: htp.p('function remove(number) {
240: if (confirm("' || icx_util.replace_quotes(v_message) || '") ) {
241: //dc parent.removeItem(number);
242: document.LINE.cartLineId.value = number;
243: document.LINE.cartLineAction.value = "DELETE";
248: }
249: ');
250:
251:
252: htp.p('function splitLine(number) {
253: //dc parent.splitLine(number);
254: document.LINE.cartLineId.value = number;
255: document.LINE.cartLineAction.value = "COPY";
256: document.LINE.submit();
257: //dc top.switchFrames("my_order");
258: }');
259:
260: -- Added for account distributions
261: htp.p('function accountDist(number) {
262: document.LINE.cartLineId.value = number;
263: document.LINE.cartLineAction.value = "ACCOUNT";
264: parent.parent.account_dist="Y";
265: parent.parent.cartLineId=number;
280:
281: FND_MESSAGE.SET_NAME('ICX','ICX_CART_EMPTY');
282: v_empty_cart_msg := FND_MESSAGE.GET;
283:
284: htp.p('function save_order() {
285:
286: // if (parent.frames[0].document.LINE.itemCount.value == 0) {
287: // alert("' || icx_util.replace_quotes(v_empty_cart_msg) || '");
288: // } else {
297:
298: FND_MESSAGE.SET_NAME('ICX','ICX_APPLY_CHANGES_CONFIRM');
299: v_confirm_text := FND_MESSAGE.GET;
300:
301: htp.p('function modify_order() {
302:
303: // if (parent.frames[0].document.LINE.itemCount.value == 0) {
304: // alert("' || icx_util.replace_quotes(v_empty_cart_msg) || '");
305: // } else {
308: parent.frames[0].document.KEVIN.submit();
309: // }
310: }');
311:
312: htp.p('function get_po_modify_order() {
313: // if (parent.frames[0].document.LINE.itemCount.value == 0) {
314: // alert ("' || icx_util.replace_quotes(v_empty_cart_msg) || '");
315: // } else {
316: parent.frames[0].document.KEVIN.user_action.value = "GET_PO_MODIFY";
320:
321:
322: FND_MESSAGE.SET_NAME('ICX','ICX_CONFIRM_ORDER');
323: v_confirm_text := FND_MESSAGE.GET;
324: htp.p('function submit_order() {
325:
326: if (parent.frames[0].document.LINE.itemCount.value == 0) {
327: alert("' || icx_util.replace_quotes(v_empty_cart_msg) || '");
328: } else {
335: }');
336:
337: FND_MESSAGE.SET_NAME('ICX','ICX_CANCEL_CONFIRM');
338: v_confirm_text := FND_MESSAGE.GET;
339: htp.p('function delete_saved_cart() {
340:
341: // if (parent.frames[0].document.LINE.itemCount.value == 0) {
342: // alert("' || icx_util.replace_quotes(v_empty_cart_msg) || '");
343: // } else {
1019: procedure addAttachmentScript is
1020: ------------------------------------------------------------
1021:
1022: begin
1023: htp.p('
1024:
1025: function attachment(en, pk1, pk2, dcd) {
1026: var temp = "";
1027: if (en == 1){
1049: ------------------------------------------------------------
1050: procedure updateCarts is
1051: ------------------------------------------------------------
1052: begin
1053: htp.p('function resetItemCount(fld) {
1054: fld.value = 0;
1055: }');
1056:
1057: htp.p('function formSequence(seq) {
1053: htp.p('function resetItemCount(fld) {
1054: fld.value = 0;
1055: }');
1056:
1057: htp.p('function formSequence(seq) {
1058: this.sequence = seq }');
1059:
1060: htp.p('LOVSequence1 = new formSequence("0")');
1061: htp.p('LOVSequence2 = new formSequence("0")');
1056:
1057: htp.p('function formSequence(seq) {
1058: this.sequence = seq }');
1059:
1060: htp.p('LOVSequence1 = new formSequence("0")');
1061: htp.p('LOVSequence2 = new formSequence("0")');
1062: htp.p('LOVSequence3 = new formSequence("0")');
1063: htp.p('LOVSequence4 = new formSequence("0")');
1064: htp.p('LOVSequence5 = new formSequence("0")');
1057: htp.p('function formSequence(seq) {
1058: this.sequence = seq }');
1059:
1060: htp.p('LOVSequence1 = new formSequence("0")');
1061: htp.p('LOVSequence2 = new formSequence("0")');
1062: htp.p('LOVSequence3 = new formSequence("0")');
1063: htp.p('LOVSequence4 = new formSequence("0")');
1064: htp.p('LOVSequence5 = new formSequence("0")');
1065: htp.p('LOVSequence6 = new formSequence("0")');
1058: this.sequence = seq }');
1059:
1060: htp.p('LOVSequence1 = new formSequence("0")');
1061: htp.p('LOVSequence2 = new formSequence("0")');
1062: htp.p('LOVSequence3 = new formSequence("0")');
1063: htp.p('LOVSequence4 = new formSequence("0")');
1064: htp.p('LOVSequence5 = new formSequence("0")');
1065: htp.p('LOVSequence6 = new formSequence("0")');
1066: htp.p('LOVSequence7 = new formSequence("0")');
1059:
1060: htp.p('LOVSequence1 = new formSequence("0")');
1061: htp.p('LOVSequence2 = new formSequence("0")');
1062: htp.p('LOVSequence3 = new formSequence("0")');
1063: htp.p('LOVSequence4 = new formSequence("0")');
1064: htp.p('LOVSequence5 = new formSequence("0")');
1065: htp.p('LOVSequence6 = new formSequence("0")');
1066: htp.p('LOVSequence7 = new formSequence("0")');
1067: htp.p('LOVSequence0 = new formSequence("0")');
1060: htp.p('LOVSequence1 = new formSequence("0")');
1061: htp.p('LOVSequence2 = new formSequence("0")');
1062: htp.p('LOVSequence3 = new formSequence("0")');
1063: htp.p('LOVSequence4 = new formSequence("0")');
1064: htp.p('LOVSequence5 = new formSequence("0")');
1065: htp.p('LOVSequence6 = new formSequence("0")');
1066: htp.p('LOVSequence7 = new formSequence("0")');
1067: htp.p('LOVSequence0 = new formSequence("0")');
1068:
1061: htp.p('LOVSequence2 = new formSequence("0")');
1062: htp.p('LOVSequence3 = new formSequence("0")');
1063: htp.p('LOVSequence4 = new formSequence("0")');
1064: htp.p('LOVSequence5 = new formSequence("0")');
1065: htp.p('LOVSequence6 = new formSequence("0")');
1066: htp.p('LOVSequence7 = new formSequence("0")');
1067: htp.p('LOVSequence0 = new formSequence("0")');
1068:
1069: htp.p('function PRE_LOV0(attr_id, attr_code, region_id, region_code, form_name, frame_name, where_clause, c_js_where_clause,sequence0) {
1062: htp.p('LOVSequence3 = new formSequence("0")');
1063: htp.p('LOVSequence4 = new formSequence("0")');
1064: htp.p('LOVSequence5 = new formSequence("0")');
1065: htp.p('LOVSequence6 = new formSequence("0")');
1066: htp.p('LOVSequence7 = new formSequence("0")');
1067: htp.p('LOVSequence0 = new formSequence("0")');
1068:
1069: htp.p('function PRE_LOV0(attr_id, attr_code, region_id, region_code, form_name, frame_name, where_clause, c_js_where_clause,sequence0) {
1070: LOVSequence0.sequence = sequence0
1063: htp.p('LOVSequence4 = new formSequence("0")');
1064: htp.p('LOVSequence5 = new formSequence("0")');
1065: htp.p('LOVSequence6 = new formSequence("0")');
1066: htp.p('LOVSequence7 = new formSequence("0")');
1067: htp.p('LOVSequence0 = new formSequence("0")');
1068:
1069: htp.p('function PRE_LOV0(attr_id, attr_code, region_id, region_code, form_name, frame_name, where_clause, c_js_where_clause,sequence0) {
1070: LOVSequence0.sequence = sequence0
1071:
1065: htp.p('LOVSequence6 = new formSequence("0")');
1066: htp.p('LOVSequence7 = new formSequence("0")');
1067: htp.p('LOVSequence0 = new formSequence("0")');
1068:
1069: htp.p('function PRE_LOV0(attr_id, attr_code, region_id, region_code, form_name, frame_name, where_clause, c_js_where_clause,sequence0) {
1070: LOVSequence0.sequence = sequence0
1071:
1072: LOV(attr_id, attr_code, region_id, region_code, form_name, frame_name , where_clause,c_js_where_clause)
1073: }');
1072: LOV(attr_id, attr_code, region_id, region_code, form_name, frame_name , where_clause,c_js_where_clause)
1073: }');
1074:
1075:
1076: htp.p('function PRE_LOV1(attr_id, attr_code, region_id, region_code, form_name, frame_name, where_clause, c_js_where_clause,sequence1,sequence2,sequence3,sequence4) {
1077: LOVSequence1.sequence = sequence1
1078: LOVSequence2.sequence = sequence2
1079: LOVSequence3.sequence = sequence3
1080: LOVSequence4.sequence = sequence4
1082: LOV(attr_id, attr_code, region_id, region_code, form_name, frame_name, where_clause,c_js_where_clause)
1083: }');
1084:
1085:
1086: htp.p('function PRE_LOV2(attr_id, attr_code, region_id, region_code, form_name, frame_name, where_clause, c_js_where_clause,sequence5,sequence6,sequence7){
1087: LOVSequence5.sequence = sequence5
1088: LOVSequence6.sequence = sequence6
1089: LOVSequence7.sequence = sequence7
1090:
1091: LOV(attr_id, attr_code, region_id, region_code, form_name, frame_name, where_clause,c_js_where_clause)
1092: }');
1093:
1094:
1095: htp.p('function postLOV(value0,value01,value02) {
1096: var seq0 = LOVSequence0.sequence
1097: document.KEVIN.elements[seq0].value = value0
1098: }');
1099:
1096: var seq0 = LOVSequence0.sequence
1097: document.KEVIN.elements[seq0].value = value0
1098: }');
1099:
1100: htp.p('function updateCarts(value1,value2,value3,value4) {
1101: var seq1 = LOVSequence1.sequence
1102: var seq2 = LOVSequence2.sequence
1103: var seq3 = LOVSequence3.sequence
1104: var seq4 = LOVSequence4.sequence
1110: }
1111: ');
1112:
1113:
1114: htp.p('function Updatelineloc(value1,value2,value3) {
1115: var seq5 = LOVSequence5.sequence
1116: var seq6 = LOVSequence6.sequence
1117: var seq7 = LOVSequence7.sequence
1118: document.KEVIN.elements[seq5].value = value1
' || ak_query_pkg.g_items_table(i).attribute_label_long || ' | ');||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
' || ak_query_pkg.g_items_table(i).attribute_label_long || ' | ');'); 1261: htp.p(''); 1262: if (l_po_number is not null) then Line 1260: htp.p('
1256: end if; ' || ak_query_pkg.g_items_table(i).attribute_label_long || ' | ');1259: 1260: htp.p(' '); | 1261: htp.p(''); 1262: if (l_po_number is not null) then 1263: htp.p(l_po_number); 1264: 1265: else Line 1263: htp.p(l_po_number); | ' || ak_query_pkg.g_items_table(i).attribute_label_long || ' | ');'); 1261: htp.p(''); 1262: if (l_po_number is not null) then 1263: htp.p(l_po_number); 1264: Line 1261: htp.p(''); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
' || ak_query_pkg.g_items_table(i).attribute_label_long || ' | ');||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
' || ak_query_pkg.g_items_table(i).attribute_label_long || ' | ');'); 1309: 1310: 1311: Line 1308: htp.p('
1304: ' || ak_query_pkg.g_items_table(i).attribute_label_long || ' | ');1308: htp.p(' '); | ');1309: 1310: 1311: 1312: htp.p(''); 1309: 1310: 1311: 1312: htp.p(' 1315: '" onBlur='' document.KEVIN.ICX_APPROVER_ID.value ="";''>'); 1316: Line 1321: htp.p('
1317: '); | 1323: htp.p(icx_util.LOVButton(c_attribute_app_id => 178, 1324: c_attribute_code => 'ICX_APPROVER_NAME', 1325: c_region_app_id => 601, Line 1322: htp.p('
1318: l_pos := l_pos + 1; 1323: htp.p(icx_util.LOVButton(c_attribute_app_id => 178, 1324: c_attribute_code => 'ICX_APPROVER_NAME', 1325: c_region_app_id => 601, 1326: c_region_code => 'ICX_SHOPPING_CART_HEADER_R', Line 1323: htp.p(icx_util.LOVButton(c_attribute_app_id => 178, | "; }'); | "; }'); | "; }'); | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
' || ak_query_pkg.g_items_table(i).attribute_label_long || ' | ');||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
' || ak_query_pkg.g_items_table(i).attribute_label_long || ' | ');'); 1344: 1345: 1346: --dc htp.p('if (parent.my_cart_header.' || ak_query_pkg.g_items_table(i).attribute_code || ' == "")'); Line 1343: htp.p('
1339: l_pos := l_pos + 1; | ' || ak_query_pkg.g_items_table(i).attribute_label_long || ' | ');'); 1344: 1345: 1346: --dc htp.p('if (parent.my_cart_header.' || ak_query_pkg.g_items_table(i).attribute_code || ' == "")'); 1347: Line 1346: --dc htp.p('if (parent.my_cart_header.' || ak_query_pkg.g_items_table(i).attribute_code || ' == "")'); | ' || ak_query_pkg.g_items_table(i).attribute_label_long || ' | ');'); 1344: 1345: 1346: --dc htp.p('if (parent.my_cart_header.' || ak_query_pkg.g_items_table(i).attribute_code || ' == "")'); 1347: 1348: if y_table(ak_query_pkg.g_items_table(i).value_id) is NULL then 1349: 1350: htp.p('
|
1259:
1260: htp.p('
1263: htp.p(l_po_number);
1264:
1265: else
1266:
1267: htp.p('
');
1268: end if;
1269: htp.p('');
1270: htp.p('
1265: else
1266:
1267: htp.p('
');
1268: end if;
1269: htp.p('');
1270: htp.p('');
1271: htp.p('
1266:
1267: htp.p('
');
1268: end if;
1269: htp.p('');
1270: htp.p('');
1271: htp.p('
1267: htp.p('
');
1268: end if;
1269: htp.p('');
1270: htp.p('
1270: htp.p('
1272:
1273:
1274: --htp.p('result += "
1288: P_JavaScriptFlag => FALSE);
1289:
1290:
1291:
1292: --dc htp.p('} result = "";');
1293:
1294: end if;
1295: htp.p('
1319:
1320: -- 'parent.my_cart_header.ICX_APPROVER_NAME=this.value''>";');
1321: htp.p('