1: PACKAGE BODY ICX_REQ_NAVIGATION as
2: /* $Header: ICXREQSB.pls 115.2 99/07/17 03:22:07 porting ship $ */
3: /*----------------BEGIN Welcome Page--------------- */
4: /* Welcome page for Requisitions */
5: ------------------------------------------------------
76: v_message_text := FND_MESSAGE.GET;
77: htp.p('
81: ">' || ' 82: '/FNDISEL.gif border=no height=75 width=75 align=absmiddle> | ');84: '/FNDIBLBR.gif width=500 height=4> | |
135: v_0_encrypt, htf.img('/OA_MEDIA/' || v_lang ||
136: '/FNDISELS.gif', cattributes => 'BORDER = NO align=absmiddle' ));
137: FND_MESSAGE.SET_NAME('ICX', 'ICX_RQS_PROCEED_TTL');
138: htp.p('');
139: htp.anchor(v_dcdName || '/ICX_REQ_NAVIGATION.ic_parent?cart_id=' ||
140: v_0_encrypt, FND_MESSAGE.GET);
141: htp.p('');
142: htp.p('
714: v_template := 'none';
715: end if;
716:
717: htp.frame(v_dcdName ||
718: '/ICX_REQ_NAVIGATION.top_frame?tab_name=template&emergency=' ||
719: v_emergency,'tabs','0','0','no','NORESIZE', 'FRAMEBORDER=NO');
720:
721: htp.frame(v_dcdName || '/ICX_REQ_TEMPLATES.templates?p_where=' ||
722: icx_call.encrypt2( '(NEW)' ||
725:
726: else
727:
728: htp.frame(v_dcdName ||
729: '/ICX_REQ_NAVIGATION.top_frame?tab_name=my_order&emergency=' ||
730: v_emergency,'tabs','0','0','no','NORESIZE', 'FRAMEBORDER=NO');
731: htp.frame(v_dcdName || '/ICX_REQ_ORDER.my_order?n_org=' ||
732: icx_call.encrypt2(v_org_id) || '&n_emergency=' ||
733: icx_call.encrypt2(v_emergency) || '&n_cart_id=' ||
784: htp.p('function switchFrames(tabName) {
785: var lastPlace = "";
786: tabSynch.tabName = tabName;
787: open("' || v_dcdName ||
788: '/ICX_REQ_NAVIGATION.top_frame?tab_name="+ tabName+"&emergency=' ||
789: v_emergency ||'", ''tabs'');
790:
791: if (tabName == "template" ) {
792: lastPlace = "' || v_dcdName || '/ICX_REQ_TEMPLATES.templates?p_where=";
833: if (parent.tabSynch.tabName <> tabName) {
834: parent.tabSynch.tabName = tabName;
835: if (locon == ''nav'') {
836: open("' || v_dcdName ||
837: '/ICX_REQ_NAVIGATION.top_frame?tab_name="+ tabName+"&emergency='
838: || v_emergency ||'", ''tabs'');
839: } else {
840: switchFrames( tabName );
841: }
995:
996: FND_MESSAGE.SET_NAME('ICX', 'ICX_ONE_PO_PER_REQUISITION');
997: htp.p('//Reserve a po number.
998: function get_po(){
999: open(top.dcd + "/ICX_REQ_NAVIGATION.get_emergency_po_num?n_org=" + top.org_id, ''navigation'');
1000:
1001: }
1002:
1003: ');
1097: -- icx_util.getPrompts(178,'ICX_PARENT_TEMPLATE',c_title,c_prompts);
1098: icx_util.getPrompts(601,'ICX_PARENT_TEMPLATE',c_title,c_prompts);
1099:
1100: -- Get the org id from shopper_id
1101: ICX_REQ_NAVIGATION.shopper_info(employee_id, shopper_name, v_location_id, v_location_code, v_org_id, v_org_code);
1102:
1103: if ((employee_id is null) or (v_org_id is null))then
1104: sysadmin_error;
1105: return;
1218:
1219:
1220: js.scriptOpen;
1221:
1222: ICX_REQ_NAVIGATION.create_multilevel_js_functions(v_language);
1223: js.arrayCreate;
1224: replaceQuotes;
1225:
1226: htp.p('// GLOBALS
1226: htp.p('// GLOBALS
1227: org_id = "' || icx_call.encrypt2(to_char(v_org_id)) || '";
1228: ');
1229:
1230: ICX_REQ_NAVIGATION.synchObject;
1231: js.checkNumber;
1232: js.checkValuePos;
1233: ICX_REQ_NAVIGATION.spin_box;
1234: ICX_REQ_NAVIGATION.giveWarning;
1229:
1230: ICX_REQ_NAVIGATION.synchObject;
1231: js.checkNumber;
1232: js.checkValuePos;
1233: ICX_REQ_NAVIGATION.spin_box;
1234: ICX_REQ_NAVIGATION.giveWarning;
1235: ICX_REQ_NAVIGATION.popWindow;
1236:
1237: htp.p('cartId = "' || icx_call.encrypt2(to_char(v_cart_id)) || '";');
1230: ICX_REQ_NAVIGATION.synchObject;
1231: js.checkNumber;
1232: js.checkValuePos;
1233: ICX_REQ_NAVIGATION.spin_box;
1234: ICX_REQ_NAVIGATION.giveWarning;
1235: ICX_REQ_NAVIGATION.popWindow;
1236:
1237: htp.p('cartId = "' || icx_call.encrypt2(to_char(v_cart_id)) || '";');
1238: htp.p('emergency = "' || icx_call.encrypt2(v_emergency) || '";');
1231: js.checkNumber;
1232: js.checkValuePos;
1233: ICX_REQ_NAVIGATION.spin_box;
1234: ICX_REQ_NAVIGATION.giveWarning;
1235: ICX_REQ_NAVIGATION.popWindow;
1236:
1237: htp.p('cartId = "' || icx_call.encrypt2(to_char(v_cart_id)) || '";');
1238: htp.p('emergency = "' || icx_call.encrypt2(v_emergency) || '";');
1239: htp.p('account_dist= "";');
1238: htp.p('emergency = "' || icx_call.encrypt2(v_emergency) || '";');
1239: htp.p('account_dist= "";');
1240: htp.p('cartLineId = "";');
1241:
1242: ICX_REQ_NAVIGATION.synch(v_org_id,v_emergency,v_cart_id,v_language,shopper_id,v_dcdName);
1243: ICX_REQ_CATEGORIES.GetCategoryTop(v_org_id);
1244: ICX_REQ_TEMPLATES.GetTemplateTop(v_org_id, v_emergency);
1245: js.scriptClose;
1246:
1381: into v_preparer_id, v_req_status
1382: from po_requisition_headers
1383: where requisition_header_id = v_req_header_id;
1384:
1385: ICX_REQ_NAVIGATION.shopper_info(v_preparer_id,l_shopper_name,l_location_id,l_location_code,l_org_id,l_org_code);
1386:
1387: if (v_req_status = 'CANCELLED') then
1388: icx_util.error_page_setup;
1389: fnd_message.set_name('ICX', 'ICX_REQ_PREV_CANCEL');
1829:
1830: -- fill in cart id here. I suggest using a new one
1831: -- Show the page, displaying this new shopping cart
1832: if v_emergency is NULL then
1833: ICX_REQ_NAVIGATION.ic_parent(icx_call.encrypt2(to_char(v_cart_id)));
1834: else
1835: ICX_REQ_NAVIGATION.ic_parent(icx_call.encrypt2(to_char(v_cart_id)),icx_call.encrypt2(v_emergency));
1836: end if;
1837:
1831: -- Show the page, displaying this new shopping cart
1832: if v_emergency is NULL then
1833: ICX_REQ_NAVIGATION.ic_parent(icx_call.encrypt2(to_char(v_cart_id)));
1834: else
1835: ICX_REQ_NAVIGATION.ic_parent(icx_call.encrypt2(to_char(v_cart_id)),icx_call.encrypt2(v_emergency));
1836: end if;
1837:
1838: end if; -- v_req_status
1839:
1873: end get_currency;
1874:
1875:
1876:
1877: end ICX_REQ_NAVIGATION;