Commit 42585d81 authored by Mohammed Dohadwala's avatar Mohammed Dohadwala

Made changes in IC to give correct validations.

Made changes in xml to give desr from gencodes using changes_code_add for changes_code_add
parent 00e52bed
...@@ -68,20 +68,22 @@ public class FreightChargeIC extends ValidatorEJB implements FreightChargeICLoca ...@@ -68,20 +68,22 @@ public class FreightChargeIC extends ValidatorEJB implements FreightChargeICLoca
public String wfValData(Document dom, Document dom1, Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException, ITMException public String wfValData(Document dom, Document dom1, Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException, ITMException
{ {
String frtChgstable = "";
String frtChgstable = "",loadType="",chargeCode="",chargeMode="",addCharges="" ; String loadType = "";
double amount=0.0; String chargeCode = "";
int sequence= 0; String chargeMode = "";
int sequence_o=0; String addCharges = "";
double amount = 0.0;
int sequence = 0;
int sequence_o = 0;
int currentFormNo = 0; int currentFormNo = 0;
int childNodeListLength;
int ctr = 0; int ctr = 0;
int cnt=0; int cnt = 0;
String childNodeName = null; String childNodeName = null;
String errString = ""; String errString = "";
String errCode = ""; String errCode = "";
String userId = ""; String userId = "";
String sql = "" ,sql1=""; String sql = "";
String errorType = ""; String errorType = "";
NodeList parentNodeList = null; NodeList parentNodeList = null;
NodeList childNodeList = null; NodeList childNodeList = null;
...@@ -89,30 +91,21 @@ public class FreightChargeIC extends ValidatorEJB implements FreightChargeICLoca ...@@ -89,30 +91,21 @@ public class FreightChargeIC extends ValidatorEJB implements FreightChargeICLoca
Node childNode = null; Node childNode = null;
ArrayList<String> errList = new ArrayList<String>(); ArrayList<String> errList = new ArrayList<String>();
ArrayList<String> errFields = new ArrayList<String>(); ArrayList<String> errFields = new ArrayList<String>();
Connection conn = null; Connection conn = null;
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
ResultSet rs = null; ResultSet rs = null;
ConnDriver connDriver = new ConnDriver();
DistCommon distCommon = new DistCommon();
StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>"); StringBuffer errStringXml = new StringBuffer("<?xml version = \"1.0\"?> \r\n <Root> <Errors>");
BaseLogger.log("3", getUserInfo(), null, "Enter wfValData method !!"); BaseLogger.log("3", getUserInfo(), null, "Enter wfValData method !!");
try try
{ {
//Changes and Commented By Bhushan on 09-06-2016 :START
//conn = connDriver.getConnectDB("DriverITM");
conn = getConnection(); conn = getConnection();
//Changes and Commented By Bhushan on 09-06-2016 :END
if (objContext != null && objContext.trim().length() > 0) if (objContext != null && objContext.trim().length() > 0)
{ {
currentFormNo = Integer.parseInt(objContext); currentFormNo = Integer.parseInt(objContext);
} }
switch (currentFormNo) switch (currentFormNo)
{ {
case 1: case 1:
...@@ -120,257 +113,345 @@ public class FreightChargeIC extends ValidatorEJB implements FreightChargeICLoca ...@@ -120,257 +113,345 @@ public class FreightChargeIC extends ValidatorEJB implements FreightChargeICLoca
parentNodeList = dom.getElementsByTagName("Detail1"); parentNodeList = dom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0); parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes(); childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength(); int childNodeListLength = childNodeList.getLength();
for (ctr = 0; ctr < childNodeListLength; ctr++) ctr = 0;
for (; ctr < childNodeListLength; ++ctr)
{ {
childNode = childNodeList.item(ctr); childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName(); childNodeName = childNode.getNodeName();
BaseLogger.log("3", getUserInfo(), null, "childNodeName : "+childNodeName);
if(childNodeName.equalsIgnoreCase("frt_chgs_table")) BaseLogger.log("3", getUserInfo(), null,
"childNodeName : " + childNodeName);
if (childNodeName.equalsIgnoreCase("frt_chgs_table"))
{ {
frtChgstable = checkNull(genericUtility.getColumnValue("frt_chgs_table",dom)); frtChgstable = checkNull(
frtChgstable = frtChgstable==null?null:frtChgstable.trim(); genericUtility.getColumnValue("frt_chgs_table", dom)
BaseLogger.log("3", getUserInfo(), null, "frtChgstable :"+frtChgstable); );
frtChgstable = frtChgstable == null ? null : frtChgstable.trim();
BaseLogger.log("3", getUserInfo(), null,
"frtChgstable!!!0000000055 :" + frtChgstable);
if (frtChgstable == null || frtChgstable.trim().length() == 0) if (frtChgstable == null || frtChgstable.trim().length() == 0)
{ {
errCode = "VMFCTEMT";//freight charges table can not be blank errCode = "VMFCTEMT";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
BaseLogger.log("3", getUserInfo(), null, "freight charges table can not be blank!!!");
BaseLogger.log("3", getUserInfo(), null,
"freight charges table can not be blank!!!");
} }
} }
else if(childNodeName.equalsIgnoreCase("load_type")) else if (childNodeName.equalsIgnoreCase("load_type"))
{ {
loadType = checkNull(genericUtility.getColumnValue("load_type",dom)); loadType = checkNull(
loadType = loadType==null?null:loadType.trim(); genericUtility.getColumnValue("load_type", dom)
BaseLogger.log("3", getUserInfo(), null, "loadType :"+loadType); );
loadType = loadType == null ? null : loadType.trim();
BaseLogger.log("3", getUserInfo(), null,
"loadType :::::::149:" + loadType);
if (loadType == null || loadType.trim().length() == 0) if (loadType == null || loadType.trim().length() == 0)
{ {
errCode = "VMLTEMT";//load type can not be blank errCode = "VMLTEMT";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
BaseLogger.log("3", getUserInfo(), null, "load type can not be blank!!!");
//break;
}
BaseLogger.log("3", getUserInfo(), null,
"load type can not be blank!!!");
}
} }
else if(childNodeName.equalsIgnoreCase("charge_code")) else if (childNodeName.equalsIgnoreCase("charge_code"))
{ {
chargeCode = checkNull(genericUtility.getColumnValue("charge_code",dom)); chargeCode = checkNull(
chargeCode = chargeCode==null?null:chargeCode.trim(); genericUtility.getColumnValue("charge_code", dom)
BaseLogger.log("3", getUserInfo(), null, "chargeCode :"+chargeCode); );
if (chargeCode == null || chargeCode.trim().length() == 0) chargeCode = chargeCode == null ? null : chargeCode.trim();
{
errCode = "VMCHCOEMT";//Charge code can not be blank BaseLogger.log("3", getUserInfo(), null,
errList.add(errCode); "chargeCode :" + chargeCode);
errFields.add(childNodeName.toLowerCase());
BaseLogger.log("3", getUserInfo(), null, "Charge code can not be blank!");
//break;
}
BaseLogger.log("3", getUserInfo(), null, "editFlag !! "+editFlag);
if(editFlag.equalsIgnoreCase("A")) if (chargeCode != null && chargeCode.trim().length() != 0)
{
if ("A".equalsIgnoreCase(editFlag))
{ {
sql = "select count(1) from freight_charges_table " sql = "select count(1) from freight_charges_table "
+" where frt_chgs_table =? and load_type = ? and charge_code =?"; + "where frt_chgs_table =? and load_type = ? and charge_code =?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, frtChgstable); pstmt.setString(1, frtChgstable);
pstmt.setString(2, loadType); pstmt.setString(2, loadType);
pstmt.setString(3, chargeCode); pstmt.setString(3, chargeCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) if (rs.next())
{ {
cnt = rs.getInt(1); cnt = rs.getInt(1);
} }
pstmt.close(); pstmt.close();
rs.close(); rs.close();
pstmt = null; pstmt = null;
rs = null; rs = null;
if(cnt > 0) if (cnt > 0)
{ {
errCode = "VMFCTEX";//Freight charges table,load type,charge code already exist!!! errCode = "VMFCTEX";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
BaseLogger.log("3", getUserInfo(), null, "Freight charges table,load type,charge code already exist!!!");
//break;
}
BaseLogger.log("3", getUserInfo(), null,
"Freight charges table, load type, charge code already exist!!!");
}
} }
}
else
{
errCode = "VMCHCOEMT";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
BaseLogger.log("3", getUserInfo(), null,
"Charge code cannot be blank!");
}
} }
else if(childNodeName.equalsIgnoreCase("charges_mode")) else if (childNodeName.equalsIgnoreCase("charges_mode"))
{ {
chargeMode = checkNull(genericUtility.getColumnValue("charges_mode",dom)); chargeMode = checkNull(
chargeMode = chargeMode==null?null:chargeMode.trim(); genericUtility.getColumnValue("charges_mode", dom)
BaseLogger.log("3", getUserInfo(), null, "chargeMode :"+chargeMode); );
chargeMode = chargeMode == null ? null : chargeMode.trim();
BaseLogger.log("3", getUserInfo(), null,
"chargeMode :" + chargeMode);
if (chargeMode == null || chargeMode.trim().length() == 0) if (chargeMode == null || chargeMode.trim().length() == 0)
{ {
errCode = "VMCHMDEMT";//charge Mode can not be blank errCode = "VMCHMDEMT";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
BaseLogger.log("3", getUserInfo(), null, "charge Mode can not be blank!!");
//break;
}
BaseLogger.log("3", getUserInfo(), null,
"charge Mode can not be blank!!");
}
} }
else if(childNodeName.equalsIgnoreCase("amount")) else if (childNodeName.equalsIgnoreCase("amount"))
{ {
amount = Double.parseDouble(genericUtility.getColumnValue("amount",dom)); String amountStr = checkNull(
genericUtility.getColumnValue("amount", dom)
);
if (amountStr != null && amountStr.trim().length() != 0)
{
amount = Double.parseDouble(amountStr.trim());
if (amount <= 0) if (amount <= 0)
{ {
errCode = "VMAMTEMT";//amount can not be zero value. errCode = "VMAMTEMT";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
BaseLogger.log("3", getUserInfo(), null, "amount can not be zero value.!!");
//break; BaseLogger.log("3", getUserInfo(), null,
"Amount cannot be zero value!!");
}
} }
else
{
errCode = "VMAMTEMT";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
BaseLogger.log("3", getUserInfo(), null,
"Amount cannot be blank!!");
}
} }
else if(childNodeName.equalsIgnoreCase("CHARGE_CODE__ADD")) else if (childNodeName.equalsIgnoreCase("CHARGE_CODE__ADD"))
{ {
addCharges = genericUtility.getColumnValue("charge_code__add",dom); addCharges = genericUtility.getColumnValue(
"charge_code__add", dom
);
if (addCharges == null || addCharges.trim().length() == 0) if (addCharges == null || addCharges.trim().length() == 0)
{ {
errCode = "VMADCHEMT";//add charges can not be blank. errCode = "VMADCHEMT";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
BaseLogger.log("3", getUserInfo(), null, "add charges can not be blank");
//break;
}
BaseLogger.log("3", getUserInfo(), null,
"add charges can not be blank");
} }
else if(childNodeName.equalsIgnoreCase("sequence")) }
else if (childNodeName.equalsIgnoreCase("sequence"))
{ {
sequence = Integer.parseInt(genericUtility.getColumnValue("sequence",dom)); String sequenceStr = checkNull(
BaseLogger.log("3", getUserInfo(), null, "sequence :"+sequence); genericUtility.getColumnValue("sequence", dom)
if (sequence == 0.0 || sequence == 0) );
if (sequenceStr != null && sequenceStr.trim().length() != 0)
{ {
errCode = "VMSEQEMT";//sequence can not be zero value. sequence = Integer.parseInt(sequenceStr.trim());
errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); BaseLogger.log("3", getUserInfo(), null,
BaseLogger.log("3", getUserInfo(), null, "sequence can not be zero value.!!"); "sequence :" + sequence);
//break;
} if (sequence != 0)
else
{ {
BaseLogger.log("3", getUserInfo(), null, "mahendra testing : frtChgstable "+frtChgstable); BaseLogger.log("3", getUserInfo(), null,
BaseLogger.log("3", getUserInfo(), null, "mahendra testing : loadType "+loadType); "mahendra testing : frtChgstable " + frtChgstable);
BaseLogger.log("3", getUserInfo(), null, "mahendra testing : chargeCode "+chargeCode);
BaseLogger.log("3", getUserInfo(), null,
"mahendra testing : loadType " + loadType);
BaseLogger.log("3", getUserInfo(), null,
"mahendra testing : chargeCode " + chargeCode);
sql = "select sequence from freight_charges_table " sql = "select sequence from freight_charges_table "
+" where frt_chgs_table =? and load_type = ? and charge_code = ?"; + "where frt_chgs_table =? and load_type = ? and charge_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, frtChgstable); pstmt.setString(1, frtChgstable);
pstmt.setString(2, loadType); pstmt.setString(2, loadType);
pstmt.setString(3, chargeCode); pstmt.setString(3, chargeCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) if (rs.next())
{ {
sequence_o = rs.getInt(1); sequence_o = rs.getInt(1);
} }
pstmt.close(); pstmt.close();
rs.close(); rs.close();
pstmt = null; pstmt = null;
rs = null; rs = null;
if (sequence_o == 0)
if(sequence_o == 0)
{ {
sequence_o=sequence; sequence_o = sequence;
} }
else if(sequence_o != sequence) else if (sequence_o != sequence)
{ {
sql = "select count(1) from freight_charges_table " sql = "select count(1) from freight_charges_table "
+" where frt_chgs_table =? and load_type = ? and sequence =?"; + "where frt_chgs_table =? and load_type = ? and sequence =?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, frtChgstable); pstmt.setString(1, frtChgstable);
pstmt.setString(2, loadType); pstmt.setString(2, loadType);
pstmt.setInt(3, sequence); pstmt.setInt(3, sequence);
// pstmt.setInt(4, sequence);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) {
if (rs.next())
{
cnt = rs.getInt(1); cnt = rs.getInt(1);
} }
pstmt.close(); pstmt.close();
rs.close(); rs.close();
pstmt = null; pstmt = null;
rs = null; rs = null;
if(cnt > 0) if (cnt > 0)
{ {
errCode = "VMSEQ1";//sequence count greater than zero! errCode = "VMSEQ1";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
BaseLogger.log("3", getUserInfo(), null, "sequence count greater than zero!!");
BaseLogger.log("3", getUserInfo(), null,
"sequence count greater than zero!!");
} }
} }
}
else
{
errCode = "VMSEQEMT";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
BaseLogger.log("3", getUserInfo(), null,
"sequence can not be zero value.!!");
} }
}
else
{
errCode = "VMSEQEMT";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
BaseLogger.log("3", getUserInfo(), null,
"sequence cannot be blank!!");
}
}
} }
}//end of for loop
BaseLogger.log("3", getUserInfo(), null, "DEBUG PK VALUES: frtChgstable=[" + frtChgstable + "] chargeCode=[" + chargeCode + "] loadType=[" + loadType + "] editFlag=[" + editFlag + "]");
break; break;
case 2: case 2:
break; break;
}//end of switch }
int errListSize = errList.size(); int errListSize = errList.size();
int count = 0; int count = 0;
String errFldName = null; String errFldName = null;
if (errList != null && errListSize > 0) if (errList != null && errListSize > 0)
{ {
for (count = 0; count < errListSize; count++) for (count = 0; count < errListSize; count++)
{ {
errCode = errList.get(count); errCode = errList.get(count);
errFldName = errFields.get(count); errFldName = errFields.get(count);
errString = getErrorString(errFldName, errCode, userId); errString = getErrorString(errFldName, errCode, userId);
errorType = errorType(conn, errCode); errorType = errorType(conn, errCode);
if (errString.length() > 0) if (errString.length() > 0)
{ {
String bifurErrString = errString.substring(errString.indexOf("<Errors>") + 8, errString.indexOf("<trace>")); String bifurErrString = errString.substring(
bifurErrString = bifurErrString + errString.substring(errString.indexOf("</trace>") + 8, errString.indexOf("</Errors>")); errString.indexOf("<Errors>") + 8,
errString.indexOf("<trace>")
);
bifurErrString = bifurErrString
+ errString.substring(
errString.indexOf("</trace>") + 8,
errString.indexOf("</Errors>")
);
errStringXml.append(bifurErrString); errStringXml.append(bifurErrString);
errString = ""; errString = "";
} }
if (errorType.equalsIgnoreCase("E")) if (errorType.equalsIgnoreCase("E"))
{ {
break; break;
} }
} }
errList.clear(); errList.clear();
errList = null; errList = null;
errFields.clear(); errFields.clear();
errFields = null; errFields = null;
errStringXml.append("</Errors> </Root> \r\n"); errStringXml.append("</Errors> </Root> \r\n");
} else }
else
{ {
errStringXml = new StringBuffer(""); errStringXml = new StringBuffer("");
} }
}
}//end of try
catch (Exception e) catch (Exception e)
{ {
e.printStackTrace(); e.printStackTrace();
errString = e.getMessage(); errString = e.getMessage();
throw new ITMException(e); throw new ITMException(e);
} finally }
finally
{ {
try try
{ {
...@@ -381,24 +462,34 @@ public class FreightChargeIC extends ValidatorEJB implements FreightChargeICLoca ...@@ -381,24 +462,34 @@ public class FreightChargeIC extends ValidatorEJB implements FreightChargeICLoca
rs.close(); rs.close();
rs = null; rs = null;
} }
if (pstmt != null) if (pstmt != null)
{ {
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }
conn.close(); conn.close();
}
conn = null; conn = null;
} catch (Exception d) }
}
catch (Exception d)
{ {
d.printStackTrace(); d.printStackTrace();
throw new ITMException(d); throw new ITMException(d);
} }
} }
errString = errStringXml.toString(); errString = errStringXml.toString();
BaseLogger.log("3", getUserInfo(), null, "mahendra testing : final errString : "+errString);
return errString;
BaseLogger.log(
"3",
getUserInfo(),
null,
"mahendra testing : final errString : " + errString
);
return errString;
}//end of validation method }//end of validation method
...@@ -569,7 +660,7 @@ public class FreightChargeIC extends ValidatorEJB implements FreightChargeICLoca ...@@ -569,7 +660,7 @@ public class FreightChargeIC extends ValidatorEJB implements FreightChargeICLoca
if (chargeCodeadd != null && chargeCodeadd.trim().length() > 0) if (chargeCodeadd != null && chargeCodeadd.trim().length() > 0)
{ {
sql = "select descr from gencodes " sql = "select descr from gencodes "
+ "where fld_name='CHARGE_CODE' " + "where fld_name='CHARGE_CODE__ADD' "
+ "and TRIM(fld_value)=? " + "and TRIM(fld_value)=? "
+ "and mod_name='X'"; + "and mod_name='X'";
......
-- Changes CHARGE_CODE from CHAR(10) to VARCHAR2(10).
ALTER TABLE freight_charges_table
MODIFY (charge_code VARCHAR2(10));
-- Adds Freight Amount as a valid CHARGE_CODE__ADD value.
Insert into gencodes (FLD_NAME,MOD_NAME,FLD_VALUE,DESCR,SH_DESCR,CHG_DATE,CHG_USER,CHG_TERM,ACTIVE,UDF_STR1,UDF_STR2,UDF_STR3) values ('CHARGE_CODE__ADD','X','F','Freight Amount','Freight Amount',to_date('09-APR-24','DD-MON-RR'),'BASE ','BASE ','Y',null,null,null);
-- Adds Loading Delay as a valid CHARGE_CODE__ADD value.
Insert into gencodes (FLD_NAME,MOD_NAME,FLD_VALUE,DESCR,SH_DESCR,CHG_DATE,CHG_USER,CHG_TERM,ACTIVE,UDF_STR1,UDF_STR2,UDF_STR3) values ('CHARGE_CODE__ADD','X','L','Loading Delay','Loading Delay',to_date('09-APR-24','DD-MON-RR'),'BASE ','BASE ','Y',null,null,null);
-- Adds Unload Delay as a valid CHARGE_CODE__ADD value.
Insert into gencodes (FLD_NAME,MOD_NAME,FLD_VALUE,DESCR,SH_DESCR,CHG_DATE,CHG_USER,CHG_TERM,ACTIVE,UDF_STR1,UDF_STR2,UDF_STR3) values ('CHARGE_CODE__ADD','X','U','Unload Delay','Unload Delay',to_date('09-APR-24','DD-MON-RR'),'BASE ','BASE ','Y',null,null,null);
-- Adds Transit Delay Penalty as a valid CHARGE_CODE__ADD value.
Insert into gencodes (FLD_NAME,MOD_NAME,FLD_VALUE,DESCR,SH_DESCR,CHG_DATE,CHG_USER,CHG_TERM,ACTIVE,UDF_STR1,UDF_STR2,UDF_STR3) values ('CHARGE_CODE__ADD','X','T','Transit Delay Penalty','Transit Delay Penalty',to_date('09-APR-24','DD-MON-RR'),'BASE ','BASE ','Y',null,null,null);
-- Adds Response Delay Penalty as a valid CHARGE_CODE__ADD value.
Insert into gencodes (FLD_NAME,MOD_NAME,FLD_VALUE,DESCR,SH_DESCR,CHG_DATE,CHG_USER,CHG_TERM,ACTIVE,UDF_STR1,UDF_STR2,UDF_STR3) values ('CHARGE_CODE__ADD','X','R','Response Delay Penalty','Response Delay Penalty',to_date('09-APR-24','DD-MON-RR'),'BASE ','BASE ','Y',null,null,null);
...@@ -18,7 +18,7 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=frt_ch ...@@ -18,7 +18,7 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=frt_ch
column=(type=char(120) updatewhereclause=yes name=load_descr dbname="load_descr" ) column=(type=char(120) updatewhereclause=yes name=load_descr dbname="load_descr" )
column=(type=char(120) updatewhereclause=yes name=descr dbname="descr" ) column=(type=char(120) updatewhereclause=yes name=descr dbname="descr" )
column=(type=char(120) updatewhereclause=yes name=chg_add_descr dbname="chg_add_descr" ) column=(type=char(120) updatewhereclause=yes name=chg_add_descr dbname="chg_add_descr" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"freight_charges_table~" ) COLUMN(NAME=~"freight_charges_table.frt_chgs_table~") COLUMN(NAME=~"freight_charges_table.charge_code~") COLUMN(NAME=~"freight_charges_table.load_type~") COLUMN(NAME=~"freight_charges_table.amount~") COLUMN(NAME=~"freight_charges_table.charges_mode~") COLUMN(NAME=~"freight_charges_table.chg_date~") COLUMN(NAME=~"freight_charges_table.chg_user~") COLUMN(NAME=~"freight_charges_table.chg_term~") COLUMN(NAME=~"freight_charges_table.sequence~") COLUMN(NAME=~"freight_charges_table.charge_code__add~") COMPUTE(NAME=~"(select descr from gencodes where fld_name = 'LOAD_TYPE' and mod_name = 'X' and fld_value = freight_charges_table.load_type) as load_descr~") COMPUTE(NAME=~"(select descr from gencodes where fld_name = 'CHARGE_CODE' and mod_name = 'X' and fld_value = freight_charges_table.charge_code) as descr~") COMPUTE(NAME=~"(select descr from gencodes where fld_name = 'CHARGE_CODE' and mod_name = 'X' and fld_value = freight_charges_table.charge_code__add) as chg_add_descr~")WHERE( EXP1 =~"TRUNC(freight_charges_table.chg_date)~" OP =~">=~" EXP2 =~":FrDt~" LOGIC =~"And~" ) WHERE( EXP1 =~"TRUNC(freight_charges_table.chg_date)~" OP =~"<=~" EXP2 =~":ToDt~" ) ) ARG(NAME = ~"FrDt~" TYPE = datetime) ARG(NAME = ~"ToDt~" TYPE = datetime) " update="freight_charges_table" updatewhere=1 updatekeyinplace=no arguments=(("FrDt", datetime),("ToDt", datetime)) ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"freight_charges_table~" ) COLUMN(NAME=~"freight_charges_table.frt_chgs_table~") COLUMN(NAME=~"freight_charges_table.charge_code~") COLUMN(NAME=~"freight_charges_table.load_type~") COLUMN(NAME=~"freight_charges_table.amount~") COLUMN(NAME=~"freight_charges_table.charges_mode~") COLUMN(NAME=~"freight_charges_table.chg_date~") COLUMN(NAME=~"freight_charges_table.chg_user~") COLUMN(NAME=~"freight_charges_table.chg_term~") COLUMN(NAME=~"freight_charges_table.sequence~") COLUMN(NAME=~"freight_charges_table.charge_code__add~") COMPUTE(NAME=~"(select descr from gencodes where fld_name = 'LOAD_TYPE' and mod_name = 'X' and fld_value = freight_charges_table.load_type) as load_descr~") COMPUTE(NAME=~"(select descr from gencodes where fld_name = 'CHARGE_CODE' and mod_name = 'X' and fld_value = freight_charges_table.charge_code) as descr~") COMPUTE(NAME=~"(select descr from gencodes where fld_name = 'CHARGE_CODE__ADD' and mod_name = 'X' and fld_value = freight_charges_table.charge_code__add) as chg_add_descr~")WHERE( EXP1 =~"TRUNC(freight_charges_table.chg_date)~" OP =~">=~" EXP2 =~":FrDt~" LOGIC =~"And~" ) WHERE( EXP1 =~"TRUNC(freight_charges_table.chg_date)~" OP =~"<=~" EXP2 =~":ToDt~" ) ) ARG(NAME = ~"FrDt~" TYPE = datetime) ARG(NAME = ~"ToDt~" TYPE = datetime) " update="freight_charges_table" updatewhere=1 updatekeyinplace=no arguments=(("FrDt", datetime),("ToDt", datetime)) )
text(band=header alignment="2" text="Frt Chgs Table" border="2" color="0" x="2" y="2" height="16" width="85" html.valueishtml="0" name=frt_chgs_table_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="Frt Chgs Table" border="2" color="0" x="2" y="2" height="16" width="85" html.valueishtml="0" name=frt_chgs_table_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="Charge Code" border="2" color="0" x="89" y="2" height="16" width="75" html.valueishtml="0" name=charge_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" ) text(band=header alignment="2" text="Charge Code" border="2" color="0" x="89" y="2" height="16" width="75" html.valueishtml="0" name=charge_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" )
text(band=header alignment="2" text="Load Type" border="2" color="0" x="166" y="2" height="16" width="60" html.valueishtml="0" name=load_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" ) text(band=header alignment="2" text="Load Type" border="2" color="0" x="166" y="2" height="16" width="60" html.valueishtml="0" name=load_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" )
...@@ -31,6 +31,7 @@ text(band=header alignment="0" text="Sequence" border="0" color="33554432" x="68 ...@@ -31,6 +31,7 @@ text(band=header alignment="0" text="Sequence" border="0" color="33554432" x="68
text(band=header alignment="0" text="Additional Charges Code" border="0" color="33554432" x="946" y="1" height="19" width="291" html.valueishtml="0" name=charge_code__add_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" ) text(band=header alignment="0" text="Additional Charges Code" border="0" color="33554432" x="946" y="1" height="19" width="291" html.valueishtml="0" name=charge_code__add_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Load Descr" border="0" color="33554432" x="1239" y="1" height="19" width="159" html.valueishtml="0" name=load_descr_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" ) text(band=header alignment="0" text="Load Descr" border="0" color="33554432" x="1239" y="1" height="19" width="159" html.valueishtml="0" name=load_descr_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Descr" border="0" color="33554432" x="1400" y="1" height="19" width="140" html.valueishtml="0" name=descr_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" ) text(band=header alignment="0" text="Descr" border="0" color="33554432" x="1400" y="1" height="19" width="140" html.valueishtml="0" name=descr_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
text(band=header alignment="0" text="Charge Code Add Description" border="0" color="33554432" x="1542" y="1" height="19" width="215" html.valueishtml="0" name=chg_add_descr_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
column(band=detail id=1 alignment="0" tabsequence=10 border="2" color="33554432" x="2" y="2" height="19" width="85" format="[general]" html.valueishtml="0" name=frt_chgs_table 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=1 alignment="0" tabsequence=10 border="2" color="33554432" x="2" y="2" height="19" width="85" format="[general]" html.valueishtml="0" name=frt_chgs_table 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=2 alignment="0" tabsequence=20 border="2" color="33554432" x="89" y="2" height="19" width="75" format="[general]" html.valueishtml="0" name=charge_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=2 alignment="0" tabsequence=20 border="2" color="33554432" x="89" y="2" height="19" width="75" format="[general]" html.valueishtml="0" name=charge_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=30 border="2" color="33554432" x="166" y="2" height="19" width="60" format="[general]" html.valueishtml="0" name=load_type visible="1" edit.limit=1 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=30 border="2" color="33554432" x="166" y="2" height="19" width="60" format="[general]" html.valueishtml="0" name=load_type visible="1" edit.limit=1 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" )
...@@ -43,8 +44,7 @@ column(band=detail id=9 alignment="0" tabsequence=32766 border="0" color="335544 ...@@ -43,8 +44,7 @@ column(band=detail id=9 alignment="0" tabsequence=32766 border="0" color="335544
column(band=detail id=10 alignment="0" tabsequence=70 border="0" color="33554432" x="946" y="1" height="16" width="291" format="[general]" html.valueishtml="0" name=charge_code__add visible="1" edit.limit=0 edit.case=any edit.autoselect=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=10 alignment="0" tabsequence=70 border="0" color="33554432" x="946" y="1" height="16" width="291" format="[general]" html.valueishtml="0" name=charge_code__add visible="1" edit.limit=0 edit.case=any edit.autoselect=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=11 alignment="0" tabsequence=32766 border="0" color="33554432" x="1239" y="1" height="16" width="159" format="[general]" html.valueishtml="0" name=load_descr visible="1" edit.limit=0 edit.case=any edit.autoselect=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=11 alignment="0" tabsequence=32766 border="0" color="33554432" x="1239" y="1" height="16" width="159" format="[general]" html.valueishtml="0" name=load_descr visible="1" edit.limit=0 edit.case=any edit.autoselect=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=12 alignment="0" tabsequence=32766 border="0" color="33554432" x="1400" y="1" height="16" width="140" format="[general]" html.valueishtml="0" name=descr visible="1" edit.limit=0 edit.case=any edit.autoselect=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=12 alignment="0" tabsequence=32766 border="0" color="33554432" x="1400" y="1" height="16" width="140" format="[general]" html.valueishtml="0" name=descr visible="1" edit.limit=0 edit.case=any edit.autoselect=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=13 alignment="0" tabsequence=32766 border="0" color="33554432" x="1543" y="1" height="16" width="215" html.valueishtml="0" name=chg_add_descr 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=13 alignment="0" tabsequence=32766 border="0" color="33554432" x="1542" y="1" height="16" width="215" format="[general]" html.valueishtml="0" name=chg_add_descr visible="1" edit.limit=0 edit.case=any edit.autoselect=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=header alignment="0" text="Charge Code Add Description" border="0" color="33554432" x="1542" y="1" height="19" width="216" html.valueishtml="0" name=chg_add_descr_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
htmltable(border="1" ) htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" ) htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 ) export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
......
...@@ -18,7 +18,7 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=frt_ch ...@@ -18,7 +18,7 @@ table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=frt_ch
column=(type=char(120) updatewhereclause=yes name=load_descr dbname="load_descr" ) column=(type=char(120) updatewhereclause=yes name=load_descr dbname="load_descr" )
column=(type=char(120) updatewhereclause=yes name=descr dbname="descr" ) column=(type=char(120) updatewhereclause=yes name=descr dbname="descr" )
column=(type=char(120) updatewhereclause=yes name=chg_add_descr dbname="chg_add_descr" ) column=(type=char(120) updatewhereclause=yes name=chg_add_descr dbname="chg_add_descr" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"freight_charges_table~" ) COLUMN(NAME=~"freight_charges_table.frt_chgs_table~") COLUMN(NAME=~"freight_charges_table.charge_code~") COLUMN(NAME=~"freight_charges_table.charges_mode~") COLUMN(NAME=~"freight_charges_table.chg_date~") COLUMN(NAME=~"freight_charges_table.amount~") COLUMN(NAME=~"freight_charges_table.chg_user~") COLUMN(NAME=~"freight_charges_table.chg_term~") COLUMN(NAME=~"freight_charges_table.sequence~") COLUMN(NAME=~"freight_charges_table.charge_code__add~") COLUMN(NAME=~"freight_charges_table.load_type~") COMPUTE(NAME=~"(select descr from gencodes where fld_name = 'LOAD_TYPE' and mod_name = 'X' and fld_value = freight_charges_table.load_type) as load_descr~") COMPUTE(NAME=~"(select descr from gencodes where fld_name = 'CHARGE_CODE' and mod_name = 'X' and fld_value = freight_charges_table.charge_code) as descr~") COMPUTE(NAME=~"(select descr from gencodes where fld_name = 'CHARGE_CODE' and mod_name = 'X' and fld_value = freight_charges_table.charge_code__add) as chg_add_descr~")WHERE( EXP1 =~"freight_charges_table.frt_chgs_table~" OP =~"=~" EXP2 =~":frt_chgs_table~" LOGIC =~"And~" ) WHERE( EXP1 =~"freight_charges_table.charge_code~" OP =~"=~" EXP2 =~":charge_code~" LOGIC =~"And~" ) WHERE( EXP1 =~"freight_charges_table.load_type~" OP =~"=~" EXP2 =~":load_type~" ) ) ARG(NAME = ~"frt_chgs_table~" TYPE = string) ARG(NAME = ~"charge_code~" TYPE = string) ARG(NAME = ~"load_type~" TYPE = string) " update="freight_charges_table" updatewhere=1 updatekeyinplace=no arguments=(("frt_chgs_table", string),("charge_code", string),("load_type", string)) ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"freight_charges_table~" ) COLUMN(NAME=~"freight_charges_table.frt_chgs_table~") COLUMN(NAME=~"freight_charges_table.charge_code~") COLUMN(NAME=~"freight_charges_table.charges_mode~") COLUMN(NAME=~"freight_charges_table.chg_date~") COLUMN(NAME=~"freight_charges_table.amount~") COLUMN(NAME=~"freight_charges_table.chg_user~") COLUMN(NAME=~"freight_charges_table.chg_term~") COLUMN(NAME=~"freight_charges_table.sequence~") COLUMN(NAME=~"freight_charges_table.charge_code__add~") COLUMN(NAME=~"freight_charges_table.load_type~") COMPUTE(NAME=~"(select descr from gencodes where fld_name = 'LOAD_TYPE' and mod_name = 'X' and fld_value = freight_charges_table.load_type) as load_descr~") COMPUTE(NAME=~"(select descr from gencodes where fld_name = 'CHARGE_CODE' and mod_name = 'X' and fld_value = freight_charges_table.charge_code) as descr~") COMPUTE(NAME=~"(select descr from gencodes where fld_name = 'CHARGE_CODE__ADD' and mod_name = 'X' and fld_value = freight_charges_table.charge_code__add) as chg_add_descr~")WHERE( EXP1 =~"freight_charges_table.frt_chgs_table~" OP =~"=~" EXP2 =~":frt_chgs_table~" LOGIC =~"And~" ) WHERE( EXP1 =~"freight_charges_table.charge_code~" OP =~"=~" EXP2 =~":charge_code~" LOGIC =~"And~" ) WHERE( EXP1 =~"freight_charges_table.load_type~" OP =~"=~" EXP2 =~":load_type~" ) ) ARG(NAME = ~"frt_chgs_table~" TYPE = string) ARG(NAME = ~"charge_code~" TYPE = string) ARG(NAME = ~"load_type~" TYPE = string) " update="freight_charges_table" updatewhere=1 updatekeyinplace=no arguments=(("frt_chgs_table", string),("charge_code", string),("load_type", string)) )
groupbox(band=detail text="Basic"border="2" color="0" x="190" y="8" height="296" width="310" name=gb_1 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" ) groupbox(band=detail text="Basic"border="2" color="0" x="190" y="8" height="296" width="310" name=gb_1 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
column(band=detail id=1 alignment="0" tabsequence=10 border="2" color="0" x="364" y="27" height="16" width="89" format="[general]" html.valueishtml="0" name=frt_chgs_table 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=1 alignment="0" tabsequence=10 border="2" color="0" x="364" y="27" height="16" width="89" format="[general]" html.valueishtml="0" name=frt_chgs_table 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=2 alignment="0" tabsequence=20 border="2" color="0" x="364" y="62" height="16" width="89" format="[general]" html.valueishtml="0" name=charge_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=2 alignment="0" tabsequence=20 border="2" color="0" x="364" y="62" height="16" width="89" format="[general]" html.valueishtml="0" name=charge_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" )
......
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
<name>chg_add_descr</name> <name>chg_add_descr</name>
<dbname>chg_add_descr</dbname> <dbname>chg_add_descr</dbname>
</table_column> </table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;freight_charges_table&quot; ) COLUMN(NAME=&quot;freight_charges_table.frt_chgs_table&quot;) COLUMN(NAME=&quot;freight_charges_table.charge_code&quot;) COLUMN(NAME=&quot;freight_charges_table.load_type&quot;) COLUMN(NAME=&quot;freight_charges_table.amount&quot;) COLUMN(NAME=&quot;freight_charges_table.charges_mode&quot;) COLUMN(NAME=&quot;freight_charges_table.chg_date&quot;) COLUMN(NAME=&quot;freight_charges_table.chg_user&quot;) COLUMN(NAME=&quot;freight_charges_table.chg_term&quot;) COLUMN(NAME=&quot;freight_charges_table.sequence&quot;) COLUMN(NAME=&quot;freight_charges_table.charge_code__add&quot;) COMPUTE(NAME=&quot;(select descr from gencodes where fld_name = &apos;LOAD_TYPE&apos; and mod_name = &apos;X&apos; and fld_value = freight_charges_table.load_type) as load_descr&quot;) COMPUTE(NAME=&quot;(select descr from gencodes where fld_name = &apos;CHARGE_CODE&apos; and mod_name = &apos;X&apos; and fld_value = freight_charges_table.charge_code) as descr&quot;) COMPUTE(NAME=&quot;(select descr from gencodes where fld_name = &apos;CHARGE_CODE&apos; and mod_name = &apos;X&apos; and fld_value = freight_charges_table.charge_code__add) as chg_add_descr&quot;)WHERE( EXP1 =&quot;TRUNC(freight_charges_table.chg_date)&quot; OP =&quot;&gt;=&quot; EXP2 =&quot;:FrDt&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;TRUNC(freight_charges_table.chg_date)&quot; OP =&quot;&lt;=&quot; EXP2 =&quot;:ToDt&quot; ) ) ARG(NAME = &quot;FrDt&quot; TYPE = datetime) ARG(NAME = &quot;ToDt&quot; TYPE = datetime) </retrieve> <retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;freight_charges_table&quot; ) COLUMN(NAME=&quot;freight_charges_table.frt_chgs_table&quot;) COLUMN(NAME=&quot;freight_charges_table.charge_code&quot;) COLUMN(NAME=&quot;freight_charges_table.load_type&quot;) COLUMN(NAME=&quot;freight_charges_table.amount&quot;) COLUMN(NAME=&quot;freight_charges_table.charges_mode&quot;) COLUMN(NAME=&quot;freight_charges_table.chg_date&quot;) COLUMN(NAME=&quot;freight_charges_table.chg_user&quot;) COLUMN(NAME=&quot;freight_charges_table.chg_term&quot;) COLUMN(NAME=&quot;freight_charges_table.sequence&quot;) COLUMN(NAME=&quot;freight_charges_table.charge_code__add&quot;) COMPUTE(NAME=&quot;(select descr from gencodes where fld_name = &apos;LOAD_TYPE&apos; and mod_name = &apos;X&apos; and fld_value = freight_charges_table.load_type) as load_descr&quot;) COMPUTE(NAME=&quot;(select descr from gencodes where fld_name = &apos;CHARGE_CODE&apos; and mod_name = &apos;X&apos; and fld_value = freight_charges_table.charge_code) as descr&quot;) COMPUTE(NAME=&quot;(select descr from gencodes where fld_name = &apos;CHARGE_CODE__ADD&apos; and mod_name = &apos;X&apos; and fld_value = freight_charges_table.charge_code__add) as chg_add_descr&quot;)WHERE( EXP1 =&quot;TRUNC(freight_charges_table.chg_date)&quot; OP =&quot;&gt;=&quot; EXP2 =&quot;:FrDt&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;TRUNC(freight_charges_table.chg_date)&quot; OP =&quot;&lt;=&quot; EXP2 =&quot;:ToDt&quot; ) ) ARG(NAME = &quot;FrDt&quot; TYPE = datetime) ARG(NAME = &quot;ToDt&quot; TYPE = datetime) </retrieve>
<update>freight_charges_table</update> <update>freight_charges_table</update>
<updatewhere>1</updatewhere> <updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace> <updatekeyinplace>no</updatekeyinplace>
...@@ -488,6 +488,34 @@ ...@@ -488,6 +488,34 @@
<color>1073741824</color> <color>1073741824</color>
</background> </background>
</TextObject> </TextObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Charge Code Add Description</text>
<border>0</border>
<color>33554432</color>
<x>1542</x>
<y>1</y>
<height>19</height>
<width>215</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_add_descr_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<ColumnObject> <ColumnObject>
<band>Detail</band> <band>Detail</band>
<id>1</id> <id>1</id>
...@@ -943,15 +971,22 @@ ...@@ -943,15 +971,22 @@
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>1543</x> <x>1542</x>
<y>1</y> <y>1</y>
<height>16</height> <height>16</height>
<width>215</width> <width>215</width>
<format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>chg_add_descr</name> <name>chg_add_descr</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font> <font>
<face>Arial</face> <face>Arial</face>
<height>-10</height> <height>-10</height>
...@@ -965,34 +1000,6 @@ ...@@ -965,34 +1000,6 @@
<color>536870912</color> <color>536870912</color>
</background> </background>
</ColumnObject> </ColumnObject>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<text>Charge Code Add Description</text>
<border>0</border>
<color>33554432</color>
<x>1542</x>
<y>1</y>
<height>19</height>
<width>216</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_add_descr_t</name>
<visible>1</visible>
<font>
<face>Arial</face>
<height>-12</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
</background>
</TextObject>
<HtmlTable> <HtmlTable>
<border>1</border> <border>1</border>
</HtmlTable> </HtmlTable>
......
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
<name>chg_add_descr</name> <name>chg_add_descr</name>
<dbname>chg_add_descr</dbname> <dbname>chg_add_descr</dbname>
</table_column> </table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;freight_charges_table&quot; ) COLUMN(NAME=&quot;freight_charges_table.frt_chgs_table&quot;) COLUMN(NAME=&quot;freight_charges_table.charge_code&quot;) COLUMN(NAME=&quot;freight_charges_table.charges_mode&quot;) COLUMN(NAME=&quot;freight_charges_table.chg_date&quot;) COLUMN(NAME=&quot;freight_charges_table.amount&quot;) COLUMN(NAME=&quot;freight_charges_table.chg_user&quot;) COLUMN(NAME=&quot;freight_charges_table.chg_term&quot;) COLUMN(NAME=&quot;freight_charges_table.sequence&quot;) COLUMN(NAME=&quot;freight_charges_table.charge_code__add&quot;) COLUMN(NAME=&quot;freight_charges_table.load_type&quot;) COMPUTE(NAME=&quot;(select descr from gencodes where fld_name = &apos;LOAD_TYPE&apos; and mod_name = &apos;X&apos; and fld_value = freight_charges_table.load_type) as load_descr&quot;) COMPUTE(NAME=&quot;(select descr from gencodes where fld_name = &apos;CHARGE_CODE&apos; and mod_name = &apos;X&apos; and fld_value = freight_charges_table.charge_code) as descr&quot;) COMPUTE(NAME=&quot;(select descr from gencodes where fld_name = &apos;CHARGE_CODE&apos; and mod_name = &apos;X&apos; and fld_value = freight_charges_table.charge_code__add) as chg_add_descr&quot;)WHERE( EXP1 =&quot;freight_charges_table.frt_chgs_table&quot; OP =&quot;=&quot; EXP2 =&quot;:frt_chgs_table&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;freight_charges_table.charge_code&quot; OP =&quot;=&quot; EXP2 =&quot;:charge_code&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;freight_charges_table.load_type&quot; OP =&quot;=&quot; EXP2 =&quot;:load_type&quot; ) ) ARG(NAME = &quot;frt_chgs_table&quot; TYPE = string) ARG(NAME = &quot;charge_code&quot; TYPE = string) ARG(NAME = &quot;load_type&quot; TYPE = string) </retrieve> <retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;freight_charges_table&quot; ) COLUMN(NAME=&quot;freight_charges_table.frt_chgs_table&quot;) COLUMN(NAME=&quot;freight_charges_table.charge_code&quot;) COLUMN(NAME=&quot;freight_charges_table.charges_mode&quot;) COLUMN(NAME=&quot;freight_charges_table.chg_date&quot;) COLUMN(NAME=&quot;freight_charges_table.amount&quot;) COLUMN(NAME=&quot;freight_charges_table.chg_user&quot;) COLUMN(NAME=&quot;freight_charges_table.chg_term&quot;) COLUMN(NAME=&quot;freight_charges_table.sequence&quot;) COLUMN(NAME=&quot;freight_charges_table.charge_code__add&quot;) COLUMN(NAME=&quot;freight_charges_table.load_type&quot;) COMPUTE(NAME=&quot;(select descr from gencodes where fld_name = &apos;LOAD_TYPE&apos; and mod_name = &apos;X&apos; and fld_value = freight_charges_table.load_type) as load_descr&quot;) COMPUTE(NAME=&quot;(select descr from gencodes where fld_name = &apos;CHARGE_CODE&apos; and mod_name = &apos;X&apos; and fld_value = freight_charges_table.charge_code) as descr&quot;) COMPUTE(NAME=&quot;(select descr from gencodes where fld_name = &apos;CHARGE_CODE__ADD&apos; and mod_name = &apos;X&apos; and fld_value = freight_charges_table.charge_code__add) as chg_add_descr&quot;)WHERE( EXP1 =&quot;freight_charges_table.frt_chgs_table&quot; OP =&quot;=&quot; EXP2 =&quot;:frt_chgs_table&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;freight_charges_table.charge_code&quot; OP =&quot;=&quot; EXP2 =&quot;:charge_code&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;freight_charges_table.load_type&quot; OP =&quot;=&quot; EXP2 =&quot;:load_type&quot; ) ) ARG(NAME = &quot;frt_chgs_table&quot; TYPE = string) ARG(NAME = &quot;charge_code&quot; TYPE = string) ARG(NAME = &quot;load_type&quot; TYPE = string) </retrieve>
<update>freight_charges_table</update> <update>freight_charges_table</update>
<updatewhere>1</updatewhere> <updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace> <updatekeyinplace>no</updatekeyinplace>
......
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