Commit 3a16852d authored by SABURI PATEKAR's avatar SABURI PATEKAR
parents e5b8c01a cf43bd17
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('salesquot',6,'ibase/resource/objaction/confirm.svg','Acknowledgement','pre_post_item_change','a','X','Acknowledge','1','2',null,'U',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'2','000',null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME,FORM_NO) values
('salesquot','pre_post_item_change','1','sales_quot_status',null,'0',to_date('04-DEC-07','DD-MON-RR'),'Jiten','user3','2','JB','ibase.webitm.ejb.dis.SalesQuotationAcknowledge',null,null,null);
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION,SERVICE_TYPE,SERVICE_HANDLER,DESCR) values ('sales_quot_status','Action To update status','http://localhost:9090/axis/services/ActionHandlerService','Base','updateStatus','String','S',null,null,to_date('24-JAN-18','DD-MON-RR'),'base ','base',null,null,null,null,null,null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('sales_quot_status',1,'COMPONENT_TYPE','I','Component Type','S',null,to_date('01-JUN-12','DD-MON-RR'),'BASE ','BASE','JB');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('sales_quot_status',2,'COMPONENT_NAME','I','Component Name','S',null,to_date('01-JUN-12','DD-MON-RR'),'BASE ','BASE','ibase.webitm.ejb.dis.SalesQuotationAcknowledge');
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('sales_quot_status',3,'<tran_id>','I','tranid','B.String',null,to_date('01-JUN-12','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('sales_quot_status',4,'XTRA_PARAMS','I','Extra Arguments','S',null,to_date('01-JUN-12','DD-MON-RR'),'BASE ','BASE',null);
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE) values ('sales_quot_status',5,'FORCED_FLAG','I','Forced Flag','S',null,to_date('01-JUN-12','DD-MON-RR'),'BASE ','BASE',null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values
('SALESACK','Acknowledgement completed successfully.','The transaction has been successfully acknowledged.','P','Y',null,null,null,to_date('25-DEC-13','DD-MON-RR'),'BASE','BASE',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values
('NOACKN','Transaction not acknowledged','Stockist details cannot be entered because the transaction has not been acknowledged.','E','Y',null,null,null,to_date('25-DEC-13','DD-MON-RR'),'BASE','BASE',null,null);
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import ibase.utility.BaseLogger;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.utility.ITMException;
public class SalesQuotationAcknowledge extends ActionHandlerEJB{
public String updateStatus(String tranID,String xtraParams, String forcedFlag) throws RemoteException,ITMException
{
Connection conn = null;
String errString = "";
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
try
{
BaseLogger.log("3", getUserInfo(), null, "SalesQuotationAcknowledge --> tranID MArch 9 2026["+tranID+"]");
conn = getConnection();
//Added by Ajit on 06-MARCH to update the status to "A" on click of Acknowledged button [Start]
String updateStatusSql = "update sales_quot set status = 'A' where QUOT_NO = ?";
PreparedStatement updateStatusPs = conn.prepareStatement(updateStatusSql);
updateStatusPs.setString(1, tranID);
int updateStatusCnt = updateStatusPs.executeUpdate();
BaseLogger.log("3", getUserInfo(), null, "SalesQuotationAcknowledge --> updateStatusCnt ["+updateStatusCnt+"]");
if(updateStatusCnt>0) {
conn.commit();
return errString = itmDBAccessEJB.getErrorString("","SALESACK","","",conn);
}
}catch(Exception e) {
BaseLogger.log("3", getUserInfo(), null, "Exception from SalesQuotationAcknowledge updateStatus --["+e.getMessage()+"]");
e.printStackTrace();
}
return " ";
}
}
......@@ -252,14 +252,10 @@
<name>mgmnt_apprv</name>
<dbname>sales_quot_req.mgmnt_apprv</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_req&quot; ) COLUMN(NAME=&quot;sales_quot_req.tran_id&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_date&quot;) COLUMN(NAME=&quot;sales_quot_req.quot_type&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_code&quot;) COLUMN(NAME=&quot;sales_quot_req.contact_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.item_ser&quot;) COLUMN(NAME=&quot;sales_quot_req.req_date&quot;) COLUMN(NAME=&quot;sales_quot_req.valid_upto&quot;) COLUMN(NAME=&quot;sales_quot_req.sales_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.confirmed&quot;) COLUMN(NAME=&quot;sales_quot_req.confirm_date&quot;) COLUMN(NAME=&quot;sales_quot_req.emp_code_conf&quot;) COLUMN(NAME=&quot;sales_quot_req.status&quot;) COLUMN(NAME=&quot;sales_quot_req.status_date&quot;) COLUMN(NAME=&quot;sales_quot_req.wf_status&quot;) COLUMN(NAME=&quot;sales_quot_req.remarks&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_id__ref&quot;) COLUMN(NAME=&quot;sales_quot_req.add_date&quot;) COLUMN(NAME=&quot;sales_quot_req.add_user&quot;) COLUMN(NAME=&quot;sales_quot_req.add_term&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_date&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_user&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_term&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_name&quot;) COLUMN(NAME=&quot;sales_quot_req.addr1&quot;) COLUMN(NAME=&quot;sales_quot_req.addr2&quot;) COLUMN(NAME=&quot;sales_quot_req.addr3&quot;) COLUMN(NAME=&quot;sales_quot_req.site_code&quot;) COLUMN(NAME=&quot;sales_quot_req.mgmnt_apprv&quot;)WHERE( EXP1 =&quot;sales_quot_req.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = number) </retrieve>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_req&quot; ) COLUMN(NAME=&quot;sales_quot_req.tran_id&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_date&quot;) COLUMN(NAME=&quot;sales_quot_req.quot_type&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_code&quot;) COLUMN(NAME=&quot;sales_quot_req.contact_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.item_ser&quot;) COLUMN(NAME=&quot;sales_quot_req.req_date&quot;) COLUMN(NAME=&quot;sales_quot_req.valid_upto&quot;) COLUMN(NAME=&quot;sales_quot_req.sales_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.confirmed&quot;) COLUMN(NAME=&quot;sales_quot_req.confirm_date&quot;) COLUMN(NAME=&quot;sales_quot_req.emp_code_conf&quot;) COLUMN(NAME=&quot;sales_quot_req.status&quot;) COLUMN(NAME=&quot;sales_quot_req.status_date&quot;) COLUMN(NAME=&quot;sales_quot_req.wf_status&quot;) COLUMN(NAME=&quot;sales_quot_req.remarks&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_id__ref&quot;) COLUMN(NAME=&quot;sales_quot_req.add_date&quot;) COLUMN(NAME=&quot;sales_quot_req.add_user&quot;) COLUMN(NAME=&quot;sales_quot_req.add_term&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_date&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_user&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_term&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_name&quot;) COLUMN(NAME=&quot;sales_quot_req.addr1&quot;) COLUMN(NAME=&quot;sales_quot_req.addr2&quot;) COLUMN(NAME=&quot;sales_quot_req.addr3&quot;) COLUMN(NAME=&quot;sales_quot_req.site_code&quot;) COLUMN(NAME=&quot;sales_quot_req.mgmnt_apprv&quot;)) </retrieve>
<update>sales_quot_req</update>
<updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<argument>
<name>tran_id</name>
<type>number</type>
</argument>
</TableDefinition>
<TextObject>
<band>Header</band>
......
......@@ -262,7 +262,13 @@
<name>mgmnt_apprv</name>
<dbname>sales_quot_req.mgmnt_apprv</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_req&quot; ) COLUMN(NAME=&quot;sales_quot_req.tran_id&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_date&quot;) COLUMN(NAME=&quot;sales_quot_req.quot_type&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_code&quot;) COLUMN(NAME=&quot;sales_quot_req.contact_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.item_ser&quot;) COLUMN(NAME=&quot;sales_quot_req.req_date&quot;) COLUMN(NAME=&quot;sales_quot_req.valid_upto&quot;) COLUMN(NAME=&quot;sales_quot_req.sales_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.confirmed&quot;) COLUMN(NAME=&quot;sales_quot_req.confirm_date&quot;) COLUMN(NAME=&quot;sales_quot_req.emp_code_conf&quot;) COLUMN(NAME=&quot;sales_quot_req.status&quot;) COLUMN(NAME=&quot;sales_quot_req.status_date&quot;) COLUMN(NAME=&quot;sales_quot_req.wf_status&quot;) COLUMN(NAME=&quot;sales_quot_req.remarks&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_id__ref&quot;) COLUMN(NAME=&quot;sales_quot_req.add_date&quot;) COLUMN(NAME=&quot;sales_quot_req.add_user&quot;) COLUMN(NAME=&quot;sales_quot_req.add_term&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_date&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_user&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_term&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_name&quot;) COLUMN(NAME=&quot;sales_quot_req.addr1&quot;) COLUMN(NAME=&quot;sales_quot_req.addr2&quot;) COLUMN(NAME=&quot;sales_quot_req.addr3&quot;) COLUMN(NAME=&quot;sales_quot_req.site_code&quot;) COLUMN(NAME=&quot;sales_quot_req.mgmnt_apprv&quot;)WHERE( EXP1 =&quot;sales_quot_req.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = number) </retrieve>
<table_column>
<type size="40">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>descr</name>
<dbname>itemser.descr</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;sales_quot_req&quot; ) TABLE(NAME=&quot;itemser&quot; ) COLUMN(NAME=&quot;sales_quot_req.tran_id&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_date&quot;) COLUMN(NAME=&quot;sales_quot_req.quot_type&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_code&quot;) COLUMN(NAME=&quot;sales_quot_req.contact_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.item_ser&quot;) COLUMN(NAME=&quot;sales_quot_req.req_date&quot;) COLUMN(NAME=&quot;sales_quot_req.valid_upto&quot;) COLUMN(NAME=&quot;sales_quot_req.sales_pers&quot;) COLUMN(NAME=&quot;sales_quot_req.confirmed&quot;) COLUMN(NAME=&quot;sales_quot_req.confirm_date&quot;) COLUMN(NAME=&quot;sales_quot_req.emp_code_conf&quot;) COLUMN(NAME=&quot;sales_quot_req.status&quot;) COLUMN(NAME=&quot;sales_quot_req.status_date&quot;) COLUMN(NAME=&quot;sales_quot_req.wf_status&quot;) COLUMN(NAME=&quot;sales_quot_req.remarks&quot;) COLUMN(NAME=&quot;sales_quot_req.tran_id__ref&quot;) COLUMN(NAME=&quot;sales_quot_req.add_date&quot;) COLUMN(NAME=&quot;sales_quot_req.add_user&quot;) COLUMN(NAME=&quot;sales_quot_req.add_term&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_date&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_user&quot;) COLUMN(NAME=&quot;sales_quot_req.chg_term&quot;) COLUMN(NAME=&quot;sales_quot_req.cust_name&quot;) COLUMN(NAME=&quot;sales_quot_req.addr1&quot;) COLUMN(NAME=&quot;sales_quot_req.addr2&quot;) COLUMN(NAME=&quot;sales_quot_req.addr3&quot;) COLUMN(NAME=&quot;sales_quot_req.site_code&quot;) COLUMN(NAME=&quot;sales_quot_req.mgmnt_apprv&quot;) COLUMN(NAME=&quot;itemser.descr&quot;) JOIN (LEFT=&quot;sales_quot_req.item_ser&quot; OP =&quot;=&quot;RIGHT=&quot;itemser.item_ser&quot; OUTER1 =&quot;sales_quot_req.item_ser&quot; )WHERE( EXP1 =&quot;sales_quot_req.tran_id&quot; OP =&quot;=&quot; EXP2 =&quot;:tran_id&quot; ) ) ARG(NAME = &quot;tran_id&quot; TYPE = number) </retrieve>
<update>sales_quot_req</update>
<updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
......@@ -1389,6 +1395,7 @@
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<required>yes</required>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
......@@ -1454,6 +1461,7 @@
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<required>yes</required>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -1651,6 +1659,7 @@
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<required>yes</required>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
......@@ -2293,6 +2302,35 @@
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>30</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>0</color>
<x>130</x>
<y>181</y>
<height>16</height>
<width>69</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>descr</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
......
......@@ -816,6 +816,7 @@
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<required>yes</required>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
......@@ -1078,6 +1079,7 @@
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<required>yes</required>
<imemode>0</imemode>
</EditStyle>
<font>
......
......@@ -34,7 +34,7 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tran_i
column=(type=char(40) update=yes updatewhereclause=yes name=addr3 dbname="addr3" )
column=(type=char(10) update=yes updatewhereclause=yes name=site_code dbname="sales_quot_req.site_code" )
column=(type=char(1) update=yes updatewhereclause=yes name=mgmnt_apprv dbname="sales_quot_req.mgmnt_apprv" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sales_quot_req~" ) COLUMN(NAME=~"sales_quot_req.tran_id~") COLUMN(NAME=~"sales_quot_req.tran_date~") COLUMN(NAME=~"sales_quot_req.quot_type~") COLUMN(NAME=~"sales_quot_req.cust_code~") COLUMN(NAME=~"sales_quot_req.contact_pers~") COLUMN(NAME=~"sales_quot_req.item_ser~") COLUMN(NAME=~"sales_quot_req.req_date~") COLUMN(NAME=~"sales_quot_req.valid_upto~") COLUMN(NAME=~"sales_quot_req.sales_pers~") COLUMN(NAME=~"sales_quot_req.confirmed~") COLUMN(NAME=~"sales_quot_req.confirm_date~") COLUMN(NAME=~"sales_quot_req.emp_code_conf~") COLUMN(NAME=~"sales_quot_req.status~") COLUMN(NAME=~"sales_quot_req.status_date~") COLUMN(NAME=~"sales_quot_req.wf_status~") COLUMN(NAME=~"sales_quot_req.remarks~") COLUMN(NAME=~"sales_quot_req.tran_id__ref~") COLUMN(NAME=~"sales_quot_req.add_date~") COLUMN(NAME=~"sales_quot_req.add_user~") COLUMN(NAME=~"sales_quot_req.add_term~") COLUMN(NAME=~"sales_quot_req.chg_date~") COLUMN(NAME=~"sales_quot_req.chg_user~") COLUMN(NAME=~"sales_quot_req.chg_term~") COLUMN(NAME=~"sales_quot_req.cust_name~") COLUMN(NAME=~"sales_quot_req.addr1~") COLUMN(NAME=~"sales_quot_req.addr2~") COLUMN(NAME=~"sales_quot_req.addr3~") COLUMN(NAME=~"sales_quot_req.site_code~") COLUMN(NAME=~"sales_quot_req.mgmnt_apprv~")WHERE( EXP1 =~"sales_quot_req.tran_id~" OP =~"=~" EXP2 =~":tran_id~" ) ) ARG(NAME = ~"tran_id~" TYPE = number) " update="sales_quot_req" updatewhere=1 updatekeyinplace=no arguments=(("tran_id", number)) )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"sales_quot_req~" ) COLUMN(NAME=~"sales_quot_req.tran_id~") COLUMN(NAME=~"sales_quot_req.tran_date~") COLUMN(NAME=~"sales_quot_req.quot_type~") COLUMN(NAME=~"sales_quot_req.cust_code~") COLUMN(NAME=~"sales_quot_req.contact_pers~") COLUMN(NAME=~"sales_quot_req.item_ser~") COLUMN(NAME=~"sales_quot_req.req_date~") COLUMN(NAME=~"sales_quot_req.valid_upto~") COLUMN(NAME=~"sales_quot_req.sales_pers~") COLUMN(NAME=~"sales_quot_req.confirmed~") COLUMN(NAME=~"sales_quot_req.confirm_date~") COLUMN(NAME=~"sales_quot_req.emp_code_conf~") COLUMN(NAME=~"sales_quot_req.status~") COLUMN(NAME=~"sales_quot_req.status_date~") COLUMN(NAME=~"sales_quot_req.wf_status~") COLUMN(NAME=~"sales_quot_req.remarks~") COLUMN(NAME=~"sales_quot_req.tran_id__ref~") COLUMN(NAME=~"sales_quot_req.add_date~") COLUMN(NAME=~"sales_quot_req.add_user~") COLUMN(NAME=~"sales_quot_req.add_term~") COLUMN(NAME=~"sales_quot_req.chg_date~") COLUMN(NAME=~"sales_quot_req.chg_user~") COLUMN(NAME=~"sales_quot_req.chg_term~") COLUMN(NAME=~"sales_quot_req.cust_name~") COLUMN(NAME=~"sales_quot_req.addr1~") COLUMN(NAME=~"sales_quot_req.addr2~") COLUMN(NAME=~"sales_quot_req.addr3~") COLUMN(NAME=~"sales_quot_req.site_code~") COLUMN(NAME=~"sales_quot_req.mgmnt_apprv~")) " update="sales_quot_req" updatewhere=1 updatekeyinplace=no )
text(band=header alignment="2" text="Tran Id" border="2" color="33554432" x="2" y="2" height="16" width="66" html.valueishtml="0" name=tran_id_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Tran Date" border="2" color="33554432" x="70" y="2" height="16" width="132" html.valueishtml="0" name=tran_date_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Quot Type" border="2" color="33554432" x="204" y="2" height="16" width="60" html.valueishtml="0" name=quot_type_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
......
......@@ -43,7 +43,7 @@ column(band=detail id=12 alignment="0" tabsequence=100 border="2" color="3355443
text(band=detail alignment="1" text="Transaction Id:" border="2" color="0" x="484" y="103" height="16" width="105" html.valueishtml="0" name=tran_id_t visible="0" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="2" color="33554432" x="593" y="103" height="19" width="66" format="[general]" html.valueishtml="0" name=tran_id visible="0" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Item Code:" border="2" color="0" x="202" y="222" height="16" width="105" html.valueishtml="0" name=item_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=3 alignment="0" tabsequence=10 border="2" color="33554432" x="313" y="222" height="19" width="66" format="[general]" html.valueishtml="0" name=item_code visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=3 alignment="0" tabsequence=10 border="2" color="33554432" x="313" y="222" height="19" width="66" format="[general]" html.valueishtml="0" name=item_code visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.required=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Near Expiry:" border="2" color="0" x="493" y="222" height="16" width="105" html.valueishtml="0" name=near_expiry_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=8 alignment="0" tabsequence=60 border="2" color="33554432" x="602" y="222" height="19" width="99" format="[general]" html.valueishtml="0" name=near_expiry visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Quoted Quantity:" border="2" color="0" x="192" y="350" height="16" width="105" html.valueishtml="0" name=qty_quot_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
......@@ -51,7 +51,7 @@ column(band=detail id=4 alignment="1" tabsequence=20 border="2" color="33554432"
text(band=detail alignment="1" text="Pack Code:" border="2" color="0" x="480" y="350" height="16" width="105" html.valueishtml="0" name=pack_code_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=6 alignment="0" tabsequence=40 border="2" color="33554432" x="589" y="350" height="19" width="66" format="[general]" html.valueishtml="0" name=pack_code visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Special Rate:" border="2" color="0" x="194" y="380" height="16" width="105" html.valueishtml="0" name=rate_quot_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=7 alignment="1" tabsequence=50 border="2" color="33554432" x="303" y="380" height="19" width="72" format="[general]" html.valueishtml="0" name=rate_quot visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=7 alignment="1" tabsequence=50 border="2" color="33554432" x="303" y="380" height="19" width="72" format="[general]" html.valueishtml="0" name=rate_quot visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.required=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Unit:" border="2" color="0" x="481" y="380" height="16" width="105" html.valueishtml="0" name=unit_t visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=5 alignment="0" tabsequence=30 border="2" color="33554432" x="590" y="380" height="19" width="66" format="[general]" html.valueishtml="0" name=unit visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=14 alignment="0" tabsequence=120 border="2" color="33554432" x="386" y="382" height="16" width="54" format="[Yes/No]" html.valueishtml="0" name=ptr_flag visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
......
-- Register follow-up action "Confirm" for Sales Quotation to trigger Sales Contract creation
Insert into obj_followup_act (OBJ_NAME,LINE_NO,ACTION_ID,ACTION_TYPE,ACTION_INFO,CONDITIONAL_EXPRESSION,CONDITIONAL_INPUT,CHG_DATE,CHG_USER,CHG_TERM,MAX_RETRY_COUNT)
values ('salesquot',1,'Confirm','T','sales_contract',null,null,null,null,null,5);
-- Define system event that links the sales quotation "sales_contract" event to service "sales_cont"
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME,FORM_NO)
values ('salesquot','sales_contract','1','sales_cont',null,'0',to_date('09-MAR-26','DD-MON-RR'),'MD ','MD','2','JB','ibase.webitm.ejb.dis.SalesContractFromSalesQuot',null,null,null);
-- Register the service definition "sales_cont" that calls confirmCreateSalesContract web service
Insert into SYSTEM_EVENT_SERVICES (SERVICE_CODE,SERVICE_DESCR,SERVICE_URI,SERVICE_PROVIDER,METHOD_NAME,RETURN_VALUE,RETURN_TYPE,RETURN_DESCR,RETURN_XFRM,CHG_DATE,CHG_USER,CHG_TERM,SERVICE_NAMESPACE,RES_ELEM,SOAP_ACTION,SERVICE_TYPE,SERVICE_HANDLER,DESCR)
values ('sales_cont','confirm','http://localhost:9090/axis/services/ActionHandlerService',null,'confirmCreateSalesContract','String','S',null,null,to_date('09-MAR-26','DD-MON-RR'),'MD ','MD',null,null,null,null,null,null);
-- Insert input argument COMPONENT_TYPE specifying component category (JB)
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
values ('sales_cont',1,'COMPONENT_TYPE','I',null,'S',null,to_date('09-MAR-26','DD-MON-RR'),'MD ','MD','JB');
-- Insert input argument COMPONENT_NAME specifying the Java component handling the service
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
values ('sales_cont',2,'COMPONENT_NAME','I',null,'S',null,to_date('09-MAR-26','DD-MON-RR'),'MD ','MD','ibase.webitm.ejb.dis.SalesContractFromSalesQuot');
-- Insert input argument <tran_id> to pass the transaction ID from Sales Quotation
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
values ('sales_cont',3,'<tran_id>','I',null,'B.String',null,to_date('09-MAR-26','DD-MON-RR'),'MD ','MD',null);
-- Insert input argument XTRA_PARAMS for optional extra parameters
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
values ('sales_cont',4,'XTRA_PARAMS','I',null,'S',null,to_date('09-MAR-26','DD-MON-RR'),'MD ','MD',null);
-- Insert input argument DB_CONN to pass database connection to the service
Insert into SYSTEM_SERVICE_ARGS (SERVICE_CODE,LINE_NO,ARG_NAME,ARG_MODE,DESCR,ARG_TYPE,ARG_XFRM,CHG_DATE,CHG_USER,CHG_TERM,ARG_VALUE)
values ('sales_cont',5,'DB_CONN','I',null,'S.Connection',null,to_date('09-MAR-26','DD-MON-RR'),'MD ','MD',null);
package ibase.webitm.ejb.dis;
import java.sql.Connection;
import ibase.utility.BaseLogger;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.utility.ITMException;
/*
* Author : Mohammed D
* Date : 09-03-2026
* Purpose : Follow Up Action on Sales Quote
*/
public class SalesContractFromSalesQuot extends ActionHandlerEJB
{
public String confirmCreateSalesContract(String tranID, String xtraParam, Connection conn) throws ITMException
{
String result = "";
E12GenericUtility genericUtility = new E12GenericUtility();
String objName = genericUtility.getValueFromXTRA_PARAMS(xtraParam, "objName");
BaseLogger.log("3", null, null, "SalesContractFromSalesQuot class called");
BaseLogger.log("3", null, null, "Method confirmCreateSalesContract executed");
BaseLogger.log("3", null, null, "TranID: " + tranID);
BaseLogger.log("3", null, null, "Object Name: " + objName);
return result;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment