Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Component Sharing
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gagandeep Singh Bhatia
Component Sharing
Commits
17993343
Commit
17993343
authored
Aug 25, 2026
by
Mohammed Dohadwala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding freight charges components
parent
41a76e2a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2926 additions
and
0 deletions
+2926
-0
Mohammed/Freight Charges/FreightChargeIC.java
Mohammed/Freight Charges/FreightChargeIC.java
+794
-0
Mohammed/Freight Charges/Insert for Freigth charges
Mohammed/Freight Charges/Insert for Freigth charges
+2
-0
Mohammed/Freight Charges/frt_chgs_table11.xml
Mohammed/Freight Charges/frt_chgs_table11.xml
+1022
-0
Mohammed/Freight Charges/frt_chgs_table21.xml
Mohammed/Freight Charges/frt_chgs_table21.xml
+1003
-0
Mohammed/Freight Charges/srd_d_frt_chgs_table_brow.srd
Mohammed/Freight Charges/srd_d_frt_chgs_table_brow.srd
+53
-0
Mohammed/Freight Charges/srd_d_frt_chgs_table_edit.srd
Mohammed/Freight Charges/srd_d_frt_chgs_table_edit.srd
+52
-0
No files found.
Mohammed/Freight Charges/FreightChargeIC.java
0 → 100644
View file @
17993343
/********************************************************
Title : FreightChargeIC(DI3LSUN002)
Date : 10/03/14
Developer: Mahendra Jadhav
********************************************************/
package
ibase
.
webitm
.
ejb
.
dis
;
import
java.rmi.RemoteException
;
import
java.sql.Connection
;
import
java.sql.PreparedStatement
;
import
java.sql.ResultSet
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
javax.ejb.Stateless
;
import
org.w3c.dom.Document
;
import
org.w3c.dom.Node
;
import
org.w3c.dom.NodeList
;
import
ibase.system.config.ConnDriver
;
import
ibase.utility.BaseLogger
;
import
ibase.utility.E12GenericUtility
;
import
ibase.webitm.ejb.ValidatorEJB
;
//import ibase.webitm.utility.GenericUtility;
import
ibase.webitm.utility.ITMException
;
@Stateless
public
class
FreightChargeIC
extends
ValidatorEJB
implements
FreightChargeICLocal
,
FreightChargeICRemote
{
//GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility
genericUtility
=
new
E12GenericUtility
();
//method for validation
public
String
wfValData
(
String
xmlString
,
String
xmlString1
,
String
xmlString2
,
String
objContext
,
String
editFlag
,
String
xtraParams
)
throws
RemoteException
,
ITMException
{
String
errString
=
""
;
Document
dom
=
null
;
Document
dom1
=
null
;
Document
dom2
=
null
;
try
{
if
(
xmlString
!=
null
&&
xmlString
.
trim
().
length
()
>
0
)
{
dom
=
parseString
(
xmlString
);
}
if
(
xmlString1
!=
null
&&
xmlString1
.
trim
().
length
()
>
0
)
{
dom1
=
parseString
(
xmlString1
);
}
if
(
xmlString2
!=
null
&&
xmlString2
.
trim
().
length
()
>
0
)
{
dom2
=
parseString
(
xmlString2
);
}
errString
=
wfValData
(
dom
,
dom1
,
dom2
,
objContext
,
editFlag
,
xtraParams
);
}
catch
(
Exception
e
)
{
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"Exception : [FlatBookingIC][wfValData( String, String )] :==>\n"
+
e
.
getMessage
());
throw
new
ITMException
(
e
);
}
return
(
errString
);
}
public
String
wfValData
(
Document
dom
,
Document
dom1
,
Document
dom2
,
String
objContext
,
String
editFlag
,
String
xtraParams
)
throws
RemoteException
,
ITMException
{
String
frtChgstable
=
""
,
loadType
=
""
,
chargeCode
=
""
,
chargeMode
=
""
,
addCharges
=
""
;
double
amount
=
0.0
;
int
sequence
=
0
;
int
sequence_o
=
0
;
int
currentFormNo
=
0
;
int
childNodeListLength
;
int
ctr
=
0
;
int
cnt
=
0
;
String
childNodeName
=
null
;
String
errString
=
""
;
String
errCode
=
""
;
String
userId
=
""
;
String
sql
=
""
,
sql1
=
""
;
String
errorType
=
""
;
NodeList
parentNodeList
=
null
;
NodeList
childNodeList
=
null
;
Node
parentNode
=
null
;
Node
childNode
=
null
;
ArrayList
<
String
>
errList
=
new
ArrayList
<
String
>();
ArrayList
<
String
>
errFields
=
new
ArrayList
<
String
>();
Connection
conn
=
null
;
PreparedStatement
pstmt
=
null
;
ResultSet
rs
=
null
;
ConnDriver
connDriver
=
new
ConnDriver
();
DistCommon
distCommon
=
new
DistCommon
();
StringBuffer
errStringXml
=
new
StringBuffer
(
"<?xml version = \"1.0\"?> \r\n <Root> <Errors>"
);
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"Enter wfValData method !!"
);
try
{
//Changes and Commented By Bhushan on 09-06-2016 :START
//conn = connDriver.getConnectDB("DriverITM");
conn
=
getConnection
();
//Changes and Commented By Bhushan on 09-06-2016 :END
if
(
objContext
!=
null
&&
objContext
.
trim
().
length
()
>
0
)
{
currentFormNo
=
Integer
.
parseInt
(
objContext
);
}
switch
(
currentFormNo
)
{
case
1
:
parentNodeList
=
dom
.
getElementsByTagName
(
"Detail1"
);
parentNode
=
parentNodeList
.
item
(
0
);
childNodeList
=
parentNode
.
getChildNodes
();
childNodeListLength
=
childNodeList
.
getLength
();
for
(
ctr
=
0
;
ctr
<
childNodeListLength
;
ctr
++)
{
childNode
=
childNodeList
.
item
(
ctr
);
childNodeName
=
childNode
.
getNodeName
();
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"childNodeName : "
+
childNodeName
);
if
(
childNodeName
.
equalsIgnoreCase
(
"frt_chgs_table"
))
{
frtChgstable
=
checkNull
(
genericUtility
.
getColumnValue
(
"frt_chgs_table"
,
dom
));
frtChgstable
=
frtChgstable
==
null
?
null
:
frtChgstable
.
trim
();
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"frtChgstable :"
+
frtChgstable
);
if
(
frtChgstable
==
null
||
frtChgstable
.
trim
().
length
()
==
0
)
{
errCode
=
"VMFCTEMT"
;
//freight charges table can not be blank
errList
.
add
(
errCode
);
errFields
.
add
(
childNodeName
.
toLowerCase
());
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"freight charges table can not be blank!!!"
);
}
}
else
if
(
childNodeName
.
equalsIgnoreCase
(
"load_type"
))
{
loadType
=
checkNull
(
genericUtility
.
getColumnValue
(
"load_type"
,
dom
));
loadType
=
loadType
==
null
?
null
:
loadType
.
trim
();
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"loadType :"
+
loadType
);
if
(
loadType
==
null
||
loadType
.
trim
().
length
()
==
0
)
{
errCode
=
"VMLTEMT"
;
//load type can not be blank
errList
.
add
(
errCode
);
errFields
.
add
(
childNodeName
.
toLowerCase
());
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"load type can not be blank!!!"
);
//break;
}
}
else
if
(
childNodeName
.
equalsIgnoreCase
(
"charge_code"
))
{
chargeCode
=
checkNull
(
genericUtility
.
getColumnValue
(
"charge_code"
,
dom
));
chargeCode
=
chargeCode
==
null
?
null
:
chargeCode
.
trim
();
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"chargeCode :"
+
chargeCode
);
if
(
chargeCode
==
null
||
chargeCode
.
trim
().
length
()
==
0
)
{
errCode
=
"VMCHCOEMT"
;
//Charge code can not be blank
errList
.
add
(
errCode
);
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"
))
{
sql
=
"select count(1) from freight_charges_table "
+
" where frt_chgs_table =? and load_type = ? and charge_code =?"
;
pstmt
=
conn
.
prepareStatement
(
sql
);
pstmt
.
setString
(
1
,
frtChgstable
);
pstmt
.
setString
(
2
,
loadType
);
pstmt
.
setString
(
3
,
chargeCode
);
rs
=
pstmt
.
executeQuery
();
if
(
rs
.
next
())
{
cnt
=
rs
.
getInt
(
1
);
}
pstmt
.
close
();
rs
.
close
();
pstmt
=
null
;
rs
=
null
;
if
(
cnt
>
0
)
{
errCode
=
"VMFCTEX"
;
//Freight charges table,load type,charge code already exist!!!
errList
.
add
(
errCode
);
errFields
.
add
(
childNodeName
.
toLowerCase
());
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"Freight charges table,load type,charge code already exist!!!"
);
//break;
}
}
}
else
if
(
childNodeName
.
equalsIgnoreCase
(
"charges_mode"
))
{
chargeMode
=
checkNull
(
genericUtility
.
getColumnValue
(
"charges_mode"
,
dom
));
chargeMode
=
chargeMode
==
null
?
null
:
chargeMode
.
trim
();
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"chargeMode :"
+
chargeMode
);
if
(
chargeMode
==
null
||
chargeMode
.
trim
().
length
()
==
0
)
{
errCode
=
"VMCHMDEMT"
;
//charge Mode can not be blank
errList
.
add
(
errCode
);
errFields
.
add
(
childNodeName
.
toLowerCase
());
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"charge Mode can not be blank!!"
);
//break;
}
}
else
if
(
childNodeName
.
equalsIgnoreCase
(
"amount"
))
{
amount
=
Double
.
parseDouble
(
genericUtility
.
getColumnValue
(
"amount"
,
dom
));
if
(
amount
<=
0
)
{
errCode
=
"VMAMTEMT"
;
//amount can not be zero value.
errList
.
add
(
errCode
);
errFields
.
add
(
childNodeName
.
toLowerCase
());
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"amount can not be zero value.!!"
);
//break;
}
}
else
if
(
childNodeName
.
equalsIgnoreCase
(
"CHARGE_CODE__ADD"
))
{
addCharges
=
genericUtility
.
getColumnValue
(
"charge_code__add"
,
dom
);
if
(
addCharges
==
null
||
addCharges
.
trim
().
length
()
==
0
)
{
errCode
=
"VMADCHEMT"
;
//add charges can not be blank.
errList
.
add
(
errCode
);
errFields
.
add
(
childNodeName
.
toLowerCase
());
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"add charges can not be blank"
);
//break;
}
}
else
if
(
childNodeName
.
equalsIgnoreCase
(
"sequence"
))
{
sequence
=
Integer
.
parseInt
(
genericUtility
.
getColumnValue
(
"sequence"
,
dom
));
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"sequence :"
+
sequence
);
if
(
sequence
==
0.0
||
sequence
==
0
)
{
errCode
=
"VMSEQEMT"
;
//sequence can not be zero value.
errList
.
add
(
errCode
);
errFields
.
add
(
childNodeName
.
toLowerCase
());
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"sequence can not be zero value.!!"
);
//break;
}
else
{
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"mahendra testing : frtChgstable "
+
frtChgstable
);
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 "
+
" where frt_chgs_table =? and load_type = ? and charge_code = ?"
;
pstmt
=
conn
.
prepareStatement
(
sql
);
pstmt
.
setString
(
1
,
frtChgstable
);
pstmt
.
setString
(
2
,
loadType
);
pstmt
.
setString
(
3
,
chargeCode
);
rs
=
pstmt
.
executeQuery
();
if
(
rs
.
next
())
{
sequence_o
=
rs
.
getInt
(
1
);
}
pstmt
.
close
();
rs
.
close
();
pstmt
=
null
;
rs
=
null
;
if
(
sequence_o
==
0
)
{
sequence_o
=
sequence
;
}
else
if
(
sequence_o
!=
sequence
)
{
sql
=
"select count(1) from freight_charges_table "
+
" where frt_chgs_table =? and load_type = ? and sequence =?"
;
pstmt
=
conn
.
prepareStatement
(
sql
);
pstmt
.
setString
(
1
,
frtChgstable
);
pstmt
.
setString
(
2
,
loadType
);
pstmt
.
setInt
(
3
,
sequence
);
// pstmt.setInt(4, sequence);
rs
=
pstmt
.
executeQuery
();
if
(
rs
.
next
())
{
cnt
=
rs
.
getInt
(
1
);
}
pstmt
.
close
();
rs
.
close
();
pstmt
=
null
;
rs
=
null
;
if
(
cnt
>
0
)
{
errCode
=
"VMSEQ1"
;
//sequence count greater than zero!
errList
.
add
(
errCode
);
errFields
.
add
(
childNodeName
.
toLowerCase
());
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"sequence count greater than zero!!"
);
}
}
}
}
}
//end of for loop
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"DEBUG PK VALUES: frtChgstable=["
+
frtChgstable
+
"] chargeCode=["
+
chargeCode
+
"] loadType=["
+
loadType
+
"] editFlag=["
+
editFlag
+
"]"
);
break
;
case
2
:
break
;
}
//end of switch
int
errListSize
=
errList
.
size
();
int
count
=
0
;
String
errFldName
=
null
;
if
(
errList
!=
null
&&
errListSize
>
0
)
{
for
(
count
=
0
;
count
<
errListSize
;
count
++)
{
errCode
=
errList
.
get
(
count
);
errFldName
=
errFields
.
get
(
count
);
errString
=
getErrorString
(
errFldName
,
errCode
,
userId
);
errorType
=
errorType
(
conn
,
errCode
);
if
(
errString
.
length
()
>
0
)
{
String
bifurErrString
=
errString
.
substring
(
errString
.
indexOf
(
"<Errors>"
)
+
8
,
errString
.
indexOf
(
"<trace>"
));
bifurErrString
=
bifurErrString
+
errString
.
substring
(
errString
.
indexOf
(
"</trace>"
)
+
8
,
errString
.
indexOf
(
"</Errors>"
));
errStringXml
.
append
(
bifurErrString
);
errString
=
""
;
}
if
(
errorType
.
equalsIgnoreCase
(
"E"
))
{
break
;
}
}
errList
.
clear
();
errList
=
null
;
errFields
.
clear
();
errFields
=
null
;
errStringXml
.
append
(
"</Errors> </Root> \r\n"
);
}
else
{
errStringXml
=
new
StringBuffer
(
""
);
}
}
//end of try
catch
(
Exception
e
)
{
e
.
printStackTrace
();
errString
=
e
.
getMessage
();
throw
new
ITMException
(
e
);
}
finally
{
try
{
if
(
conn
!=
null
)
{
if
(
rs
!=
null
)
{
rs
.
close
();
rs
=
null
;
}
if
(
pstmt
!=
null
)
{
pstmt
.
close
();
pstmt
=
null
;
}
conn
.
close
();
}
conn
=
null
;
}
catch
(
Exception
d
)
{
d
.
printStackTrace
();
throw
new
ITMException
(
d
);
}
}
errString
=
errStringXml
.
toString
();
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"mahendra testing : final errString : "
+
errString
);
return
errString
;
}
//end of validation method
// method for item change
public
String
itemChanged
(
String
xmlString
,
String
xmlString1
,
String
xmlString2
,
String
objContext
,
String
currentColumn
,
String
editFlag
,
String
xtraParams
)
throws
RemoteException
,
ITMException
{
Document
dom
=
null
;
Document
dom1
=
null
;
Document
dom2
=
null
;
String
valueXmlString
=
""
;
try
{
if
(
xmlString
!=
null
&&
xmlString
.
trim
().
length
()
>
0
)
{
dom
=
parseString
(
xmlString
);
}
if
(
xmlString1
!=
null
&&
xmlString1
.
trim
().
length
()
>
0
)
{
dom1
=
parseString
(
xmlString1
);
}
if
(
xmlString2
!=
null
&&
xmlString2
.
trim
().
length
()
>
0
)
{
dom2
=
parseString
(
xmlString2
);
}
valueXmlString
=
itemChanged
(
dom
,
dom1
,
dom2
,
objContext
,
currentColumn
,
editFlag
,
xtraParams
);
}
catch
(
Exception
e
)
{
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"Exception : [FlatBookingIC][itemChanged( String, String )] :==>\n"
+
e
.
getMessage
());
throw
new
ITMException
(
e
);
}
return
valueXmlString
;
}
public
String
itemChanged
(
Document
dom
,
Document
dom1
,
Document
dom2
,
String
objContext
,
String
currentColumn
,
String
editFlag
,
String
xtraParams
)
throws
RemoteException
,
ITMException
{
Connection
conn
=
null
;
String
sql
=
""
;
PreparedStatement
pstmt
=
null
,
pstmt1
=
null
;
ResultSet
rs
=
null
,
rs1
=
null
;
String
chargeCode
=
""
,
loadType
=
""
,
chargeCodeadd
=
""
;
String
loadDescr
=
""
,
chargeDescr
=
""
,
addDescr
=
""
;
String
freigthchgs
=
""
;
int
currentFormNo
=
0
;
int
childNodeListLength
=
0
;
ArrayList
convAr
=
null
;
NodeList
parentNodeList
=
null
;
NodeList
childNodeList
=
null
;
Node
parentNode
=
null
;
Node
childNode
=
null
;
String
childNodeName
=
null
;
StringBuffer
valueXmlString
=
new
StringBuffer
();
List
amtList
=
new
ArrayList
();
ConnDriver
connDriver
=
new
ConnDriver
();
Date
currentDate
=
new
Date
();
try
{
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"Enter itemChanged method "
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
genericUtility
.
getApplDateFormat
());
//Changes and Commented By Bhushan on 09-06-2016 :START
//conn = connDriver.getConnectDB("DriverITM");
conn
=
getConnection
();
//Changes and Commented By Bhushan on 09-06-2016 :END
conn
.
setAutoCommit
(
false
);
connDriver
=
null
;
if
(
objContext
!=
null
&&
objContext
.
trim
().
length
()
>
0
)
{
currentFormNo
=
Integer
.
parseInt
(
objContext
);
}
valueXmlString
=
new
StringBuffer
(
"<?xml version = \"1.0\"?> <Root> "
);
switch
(
currentFormNo
)
{
case
1
:
parentNodeList
=
dom
.
getElementsByTagName
(
"Detail1"
);
parentNode
=
parentNodeList
.
item
(
0
);
childNodeList
=
parentNode
.
getChildNodes
();
valueXmlString
.
append
(
"<Detail1>"
);
childNodeListLength
=
childNodeList
.
getLength
();
if
(
currentColumn
.
trim
().
equalsIgnoreCase
(
"load_type"
))
{
loadType
=
checkNull
(
genericUtility
.
getColumnValue
(
"load_type"
,
dom
));
loadType
=
loadType
==
null
?
null
:
loadType
.
trim
();
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"loadType : "
+
loadType
);
if
(
loadType
!=
null
&&
loadType
.
trim
().
length
()
>
0
)
{
sql
=
"select descr from gencodes "
+
"where fld_name='LOAD_TYPE' "
+
"and TRIM(fld_value)=? "
+
"and mod_name='X'"
;
pstmt
=
conn
.
prepareStatement
(
sql
);
pstmt
.
setString
(
1
,
loadType
);
rs
=
pstmt
.
executeQuery
();
if
(
rs
.
next
())
{
loadDescr
=
rs
.
getString
(
1
);
}
loadDescr
=
loadDescr
==
null
?
""
:
loadDescr
.
trim
();
rs
.
close
();
rs
=
null
;
pstmt
.
close
();
pstmt
=
null
;
valueXmlString
.
append
(
"<load_descr>"
)
.
append
(
"<![CDATA["
+
loadDescr
+
"]]>"
)
.
append
(
"</load_descr>"
);
}
}
else
if
(
currentColumn
.
trim
().
equalsIgnoreCase
(
"charge_code"
))
{
chargeCode
=
checkNull
(
genericUtility
.
getColumnValue
(
"charge_code"
,
dom
));
chargeCode
=
chargeCode
==
null
?
null
:
chargeCode
.
trim
();
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"chargeCode : "
+
chargeCode
);
if
(
chargeCode
!=
null
&&
chargeCode
.
trim
().
length
()
>
0
)
{
sql
=
"select descr from gencodes "
+
"where fld_name='CHARGE_CODE' "
+
"and TRIM(fld_value)=? "
+
"and mod_name='X'"
;
pstmt
=
conn
.
prepareStatement
(
sql
);
pstmt
.
setString
(
1
,
chargeCode
);
rs
=
pstmt
.
executeQuery
();
if
(
rs
.
next
())
{
chargeDescr
=
rs
.
getString
(
1
);
}
chargeDescr
=
chargeDescr
==
null
?
""
:
chargeDescr
.
trim
();
rs
.
close
();
rs
=
null
;
pstmt
.
close
();
pstmt
=
null
;
valueXmlString
.
append
(
"<descr>"
)
.
append
(
"<![CDATA["
+
chargeDescr
+
"]]>"
)
.
append
(
"</descr>"
);
}
}
else
if
(
currentColumn
.
trim
().
equalsIgnoreCase
(
"charge_code__add"
))
{
chargeCodeadd
=
checkNull
(
genericUtility
.
getColumnValue
(
"charge_code__add"
,
dom
));
chargeCodeadd
=
chargeCodeadd
==
null
?
null
:
chargeCodeadd
.
trim
();
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"chargeCodeadd : "
+
chargeCodeadd
);
if
(
chargeCodeadd
!=
null
&&
chargeCodeadd
.
trim
().
length
()
>
0
)
{
sql
=
"select descr from gencodes "
+
"where fld_name='CHARGE_CODE' "
+
"and TRIM(fld_value)=? "
+
"and mod_name='X'"
;
pstmt
=
conn
.
prepareStatement
(
sql
);
pstmt
.
setString
(
1
,
chargeCodeadd
);
rs
=
pstmt
.
executeQuery
();
if
(
rs
.
next
())
{
addDescr
=
rs
.
getString
(
1
);
}
addDescr
=
addDescr
==
null
?
""
:
addDescr
.
trim
();
rs
.
close
();
rs
=
null
;
pstmt
.
close
();
pstmt
=
null
;
valueXmlString
.
append
(
"<chg_add_descr>"
)
.
append
(
"<![CDATA["
+
addDescr
+
"]]>"
)
.
append
(
"</chg_add_descr>"
);
}
}
valueXmlString
.
append
(
"</Detail1>"
);
// close tag
break
;
case
2
:
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"mahendra itemchanged case 2 05.03.14 12:16"
);
break
;
}
valueXmlString
.
append
(
"</Root>"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
ITMException
(
e
);
}
finally
{
try
{
if
(
conn
!=
null
)
{
if
(
rs
!=
null
)
{
rs
.
close
();
rs
=
null
;
}
if
(
pstmt
!=
null
)
{
pstmt
.
close
();
pstmt
=
null
;
}
conn
.
close
();
}
conn
=
null
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
ITMException
(
e
);
}
}
return
valueXmlString
.
toString
();
}
private
String
checkNullTrim
(
String
input
)
{
if
(
input
==
null
)
{
input
=
""
;
}
else
{
input
=
input
.
trim
();
}
return
input
;
}
/** End of New function added by Swati on 06 sep 2013 **/
private
String
checkNull
(
String
input
)
{
if
(
input
==
null
)
{
input
=
""
;
}
return
input
;
}
private
double
round
(
double
round
,
int
scale
)
throws
ITMException
{
return
Math
.
round
(
round
*
Math
.
pow
(
10
,
scale
))
/
Math
.
pow
(
10
,
scale
);
}
private
boolean
isExist
(
Connection
conn
,
String
tableName
,
String
columnName
,
String
value
)
throws
ITMException
,
RemoteException
{
PreparedStatement
pstmt
=
null
;
ResultSet
rs
=
null
;
String
sql
=
""
;
boolean
status
=
false
;
try
{
sql
=
"SELECT count(*) from "
+
tableName
+
" where "
+
columnName
+
" = ? "
;
pstmt
=
conn
.
prepareStatement
(
sql
);
pstmt
.
setString
(
1
,
value
);
rs
=
pstmt
.
executeQuery
();
if
(
rs
.
next
())
{
if
(
rs
.
getBoolean
(
1
))
{
status
=
true
;
}
}
rs
.
close
();
rs
=
null
;
pstmt
.
close
();
pstmt
=
null
;
}
catch
(
Exception
e
)
{
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"Exception in isExist "
);
e
.
printStackTrace
();
throw
new
ITMException
(
e
);
}
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"returning String from isExist "
);
return
status
;
}
private
String
findValue
(
Connection
conn
,
String
columnName
,
String
tableName
,
String
columnName2
,
String
value
)
throws
ITMException
,
RemoteException
{
PreparedStatement
pstmt
=
null
;
ResultSet
rs
=
null
;
String
sql
=
""
;
String
findValue
=
""
;
try
{
sql
=
"SELECT "
+
columnName
+
" from "
+
tableName
+
" where "
+
columnName2
+
" = ?"
;
pstmt
=
conn
.
prepareStatement
(
sql
);
pstmt
.
setString
(
1
,
value
);
rs
=
pstmt
.
executeQuery
();
if
(
rs
.
next
())
{
findValue
=
rs
.
getString
(
columnName
);
}
rs
.
close
();
rs
=
null
;
pstmt
.
close
();
pstmt
=
null
;
}
catch
(
Exception
e
)
{
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"Exception in findValue "
);
e
.
printStackTrace
();
throw
new
ITMException
(
e
);
}
BaseLogger
.
log
(
"3"
,
getUserInfo
(),
null
,
"returning String from findValue "
);
return
findValue
;
}
private
String
errorType
(
Connection
conn
,
String
errorCode
)
throws
ITMException
{
String
msgType
=
""
;
PreparedStatement
pstmt
=
null
;
ResultSet
rs
=
null
;
try
{
String
sql
=
"SELECT MSG_TYPE FROM MESSAGES WHERE MSG_NO = ?"
;
pstmt
=
conn
.
prepareStatement
(
sql
);
pstmt
.
setString
(
1
,
errorCode
);
rs
=
pstmt
.
executeQuery
();
if
(
rs
.
next
())
{
msgType
=
rs
.
getString
(
"MSG_TYPE"
);
}
rs
.
close
();
rs
=
null
;
pstmt
.
close
();
pstmt
=
null
;
}
catch
(
Exception
ex
)
{
ex
.
printStackTrace
();
throw
new
ITMException
(
ex
);
}
finally
{
try
{
if
(
rs
!=
null
)
{
rs
.
close
();
rs
=
null
;
}
if
(
pstmt
!=
null
)
{
pstmt
.
close
();
pstmt
=
null
;
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
ITMException
(
e
);
}
}
return
msgType
;
}
}
Mohammed/Freight Charges/Insert for Freigth charges
0 → 100644
View file @
17993343
-- Adding charge_code__add in obj_itemhange to view its descr
Insert into obj_itemchange (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('frt_chgs_table','1 ','charge_code__add',null,null,null);
Mohammed/Freight Charges/frt_chgs_table11.xml
0 → 100644
View file @
17993343
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>
9
</Release>
<BaseDefinition>
<units>
1
</units>
<timer_interval>
0
</timer_interval>
<color>
67108864
</color>
<processing>
1
</processing>
<HTMLDW>
no
</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>
0
</orientation>
<margin>
<left>
24
</left>
<right>
24
</right>
<top>
24
</top>
<bottom>
24
</bottom>
</margin>
<paper>
<source>
0
</source>
<size>
0
</size>
</paper>
<prompt>
no
</prompt>
<canusedefaultprinter>
yes
</canusedefaultprinter>
<buttons>
no
</buttons>
<preview.buttons>
no
</preview.buttons>
<cliptext>
no
</cliptext>
<overrideprintjob>
no
</overrideprintjob>
</print>
<grid.lines>
0
</grid.lines>
</BaseDefinition>
<Header>
<height>
48
</height>
<color>
536870912
</color>
</Header>
<Summary>
<height>
0
</height>
<color>
536870912
</color>
</Summary>
<Footer>
<height>
0
</height>
<color>
536870912
</color>
</Footer>
<Detail>
<height>
19
</height>
<color>
536870912
</color>
</Detail>
<TableDefinition>
<table_column>
<type
size=
"10"
>
char
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<key>
yes
</key>
<name>
frt_chgs_table
</name>
<dbname>
freight_charges_table.frt_chgs_table
</dbname>
</table_column>
<table_column>
<type
size=
"10"
>
char
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<key>
yes
</key>
<name>
charge_code
</name>
<dbname>
freight_charges_table.charge_code
</dbname>
</table_column>
<table_column>
<type
size=
"1"
>
char
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<key>
yes
</key>
<name>
load_type
</name>
<dbname>
freight_charges_table.load_type
</dbname>
</table_column>
<table_column>
<type
precision=
"3"
>
decimal
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<name>
amount
</name>
<dbname>
freight_charges_table.amount
</dbname>
</table_column>
<table_column>
<type
size=
"1"
>
char
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<name>
charges_mode
</name>
<dbname>
freight_charges_table.charges_mode
</dbname>
</table_column>
<table_column>
<type>
datetime
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<name>
chg_date
</name>
<dbname>
freight_charges_table.chg_date
</dbname>
</table_column>
<table_column>
<type
size=
"10"
>
char
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<name>
chg_user
</name>
<dbname>
freight_charges_table.chg_user
</dbname>
</table_column>
<table_column>
<type
size=
"15"
>
char
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<name>
chg_term
</name>
<dbname>
freight_charges_table.chg_term
</dbname>
</table_column>
<table_column>
<type
precision=
"0"
>
decimal
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<name>
sequence
</name>
<dbname>
freight_charges_table.sequence
</dbname>
</table_column>
<table_column>
<type
size=
"250"
>
char
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<name>
charge_code__add
</name>
<dbname>
freight_charges_table.charge_code__add
</dbname>
</table_column>
<table_column>
<type
size=
"120"
>
char
</type>
<updatewhereclause>
yes
</updatewhereclause>
<name>
load_descr
</name>
<dbname>
load_descr
</dbname>
</table_column>
<table_column>
<type
size=
"120"
>
char
</type>
<updatewhereclause>
yes
</updatewhereclause>
<name>
descr
</name>
<dbname>
descr
</dbname>
</table_column>
<table_column>
<type
size=
"120"
>
char
</type>
<updatewhereclause>
yes
</updatewhereclause>
<name>
chg_add_descr
</name>
<dbname>
chg_add_descr
</dbname>
</table_column>
<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)
</retrieve>
<update>
freight_charges_table
</update>
<updatewhere>
1
</updatewhere>
<updatekeyinplace>
no
</updatekeyinplace>
<argument>
<name>
FrDt
</name>
<type>
datetime
</type>
</argument>
<argument>
<name>
ToDt
</name>
<type>
datetime
</type>
</argument>
</TableDefinition>
<TextObject>
<band>
Header
</band>
<alignment>
2
</alignment>
<text>
Frt Chgs Table
</text>
<border>
2
</border>
<color>
0
</color>
<x>
2
</x>
<y>
2
</y>
<height>
16
</height>
<width>
85
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
frt_chgs_table_t
</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>
</TextObject>
<TextObject>
<band>
Header
</band>
<alignment>
2
</alignment>
<text>
Charge Code
</text>
<border>
2
</border>
<color>
0
</color>
<x>
89
</x>
<y>
2
</y>
<height>
16
</height>
<width>
75
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
charge_code_t
</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>
</TextObject>
<TextObject>
<band>
Header
</band>
<alignment>
2
</alignment>
<text>
Load Type
</text>
<border>
2
</border>
<color>
0
</color>
<x>
166
</x>
<y>
2
</y>
<height>
16
</height>
<width>
60
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
load_type_t
</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>
</TextObject>
<TextObject>
<band>
Header
</band>
<alignment>
2
</alignment>
<text>
Amount
</text>
<border>
2
</border>
<color>
0
</color>
<x>
228
</x>
<y>
2
</y>
<height>
16
</height>
<width>
72
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
amount_t
</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>
</TextObject>
<TextObject>
<band>
Header
</band>
<alignment>
2
</alignment>
<text>
Charges Mode
</text>
<border>
2
</border>
<color>
0
</color>
<x>
302
</x>
<y>
2
</y>
<height>
16
</height>
<width>
84
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
charges_mode_t
</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>
</TextObject>
<TextObject>
<band>
Header
</band>
<alignment>
2
</alignment>
<text>
Chg Date
</text>
<border>
2
</border>
<color>
0
</color>
<x>
388
</x>
<y>
2
</y>
<height>
16
</height>
<width>
132
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
chg_date_t
</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>
</TextObject>
<TextObject>
<band>
Header
</band>
<alignment>
2
</alignment>
<text>
Chg User
</text>
<border>
2
</border>
<color>
0
</color>
<x>
522
</x>
<y>
2
</y>
<height>
16
</height>
<width>
66
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
chg_user_t
</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>
</TextObject>
<TextObject>
<band>
Header
</band>
<alignment>
2
</alignment>
<text>
Chg Term
</text>
<border>
2
</border>
<color>
0
</color>
<x>
590
</x>
<y>
2
</y>
<height>
16
</height>
<width>
96
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
chg_term_t
</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>
</TextObject>
<TextObject>
<band>
Header
</band>
<alignment>
0
</alignment>
<text>
Sequence
</text>
<border>
0
</border>
<color>
33554432
</color>
<x>
688
</x>
<y>
1
</y>
<height>
19
</height>
<width>
256
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
sequence_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>
<TextObject>
<band>
Header
</band>
<alignment>
0
</alignment>
<text>
Additional Charges Code
</text>
<border>
0
</border>
<color>
33554432
</color>
<x>
946
</x>
<y>
1
</y>
<height>
19
</height>
<width>
291
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
charge_code__add_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>
<TextObject>
<band>
Header
</band>
<alignment>
0
</alignment>
<text>
Load Descr
</text>
<border>
0
</border>
<color>
33554432
</color>
<x>
1239
</x>
<y>
1
</y>
<height>
19
</height>
<width>
159
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
load_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>
<TextObject>
<band>
Header
</band>
<alignment>
0
</alignment>
<text>
Descr
</text>
<border>
0
</border>
<color>
33554432
</color>
<x>
1400
</x>
<y>
1
</y>
<height>
19
</height>
<width>
140
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
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>
<band>
Detail
</band>
<id>
1
</id>
<alignment>
0
</alignment>
<tabsequence>
10
</tabsequence>
<border>
2
</border>
<color>
33554432
</color>
<x>
2
</x>
<y>
2
</y>
<height>
19
</height>
<width>
85
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
frt_chgs_table
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
10
</limit>
<case>
any
</case>
<focusrectangle>
no
</focusrectangle>
<autoselect>
yes
</autoselect>
<autohscroll>
yes
</autohscroll>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
2
</id>
<alignment>
0
</alignment>
<tabsequence>
20
</tabsequence>
<border>
2
</border>
<color>
33554432
</color>
<x>
89
</x>
<y>
2
</y>
<height>
19
</height>
<width>
75
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
charge_code
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
10
</limit>
<case>
any
</case>
<focusrectangle>
no
</focusrectangle>
<autoselect>
yes
</autoselect>
<autohscroll>
yes
</autohscroll>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
3
</id>
<alignment>
0
</alignment>
<tabsequence>
30
</tabsequence>
<border>
2
</border>
<color>
33554432
</color>
<x>
166
</x>
<y>
2
</y>
<height>
19
</height>
<width>
60
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
load_type
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
1
</limit>
<case>
any
</case>
<focusrectangle>
no
</focusrectangle>
<autoselect>
yes
</autoselect>
<autohscroll>
yes
</autohscroll>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
4
</id>
<alignment>
1
</alignment>
<tabsequence>
40
</tabsequence>
<border>
2
</border>
<color>
33554432
</color>
<x>
228
</x>
<y>
2
</y>
<height>
19
</height>
<width>
72
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
amount
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
0
</limit>
<case>
any
</case>
<focusrectangle>
no
</focusrectangle>
<autoselect>
yes
</autoselect>
<autohscroll>
yes
</autohscroll>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
5
</id>
<alignment>
0
</alignment>
<tabsequence>
50
</tabsequence>
<border>
2
</border>
<color>
33554432
</color>
<x>
302
</x>
<y>
2
</y>
<height>
19
</height>
<width>
84
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
charges_mode
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
1
</limit>
<case>
any
</case>
<focusrectangle>
no
</focusrectangle>
<autoselect>
yes
</autoselect>
<autohscroll>
yes
</autohscroll>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
6
</id>
<alignment>
0
</alignment>
<tabsequence>
60
</tabsequence>
<border>
2
</border>
<color>
33554432
</color>
<x>
388
</x>
<y>
2
</y>
<height>
19
</height>
<width>
132
</width>
<format>
[shortdate] [time]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
chg_date
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
0
</limit>
<case>
any
</case>
<focusrectangle>
no
</focusrectangle>
<autoselect>
yes
</autoselect>
<autohscroll>
yes
</autohscroll>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
7
</id>
<alignment>
0
</alignment>
<tabsequence>
32766
</tabsequence>
<border>
2
</border>
<color>
33554432
</color>
<x>
522
</x>
<y>
2
</y>
<height>
19
</height>
<width>
66
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
chg_user
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
10
</limit>
<case>
any
</case>
<focusrectangle>
no
</focusrectangle>
<autoselect>
yes
</autoselect>
<autohscroll>
yes
</autohscroll>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
8
</id>
<alignment>
0
</alignment>
<tabsequence>
32766
</tabsequence>
<border>
2
</border>
<color>
33554432
</color>
<x>
590
</x>
<y>
2
</y>
<height>
19
</height>
<width>
96
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
chg_term
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
15
</limit>
<case>
any
</case>
<focusrectangle>
no
</focusrectangle>
<autoselect>
yes
</autoselect>
<autohscroll>
yes
</autohscroll>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
9
</id>
<alignment>
0
</alignment>
<tabsequence>
32766
</tabsequence>
<border>
0
</border>
<color>
33554432
</color>
<x>
688
</x>
<y>
1
</y>
<height>
16
</height>
<width>
256
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
sequence
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
0
</limit>
<case>
any
</case>
<autoselect>
yes
</autoselect>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
10
</id>
<alignment>
0
</alignment>
<tabsequence>
70
</tabsequence>
<border>
0
</border>
<color>
33554432
</color>
<x>
946
</x>
<y>
1
</y>
<height>
16
</height>
<width>
291
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
charge_code__add
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
0
</limit>
<case>
any
</case>
<autoselect>
yes
</autoselect>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
11
</id>
<alignment>
0
</alignment>
<tabsequence>
32766
</tabsequence>
<border>
0
</border>
<color>
33554432
</color>
<x>
1239
</x>
<y>
1
</y>
<height>
16
</height>
<width>
159
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
load_descr
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
0
</limit>
<case>
any
</case>
<autoselect>
yes
</autoselect>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
12
</id>
<alignment>
0
</alignment>
<tabsequence>
32766
</tabsequence>
<border>
0
</border>
<color>
33554432
</color>
<x>
1400
</x>
<y>
1
</y>
<height>
16
</height>
<width>
140
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
descr
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
0
</limit>
<case>
any
</case>
<autoselect>
yes
</autoselect>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
13
</id>
<alignment>
0
</alignment>
<tabsequence>
32766
</tabsequence>
<border>
0
</border>
<color>
33554432
</color>
<x>
1543
</x>
<y>
1
</y>
<height>
16
</height>
<width>
215
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
chg_add_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>
<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>
<border>
1
</border>
</HtmlTable>
<HtmlGen>
<clientevents>
1
</clientevents>
<clientvalidation>
1
</clientvalidation>
<clientcomputedfields>
1
</clientcomputedfields>
<clientformatting>
0
</clientformatting>
<clientscriptable>
0
</clientscriptable>
<generatejavascript>
1
</generatejavascript>
<encodeselflinkargs>
1
</encodeselflinkargs>
<netscapelayers>
0
</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>
1
</headgroups>
<includewhitespace>
0
</includewhitespace>
<metadatatype>
0
</metadatatype>
<savemetadata>
0
</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>
0
</method>
<distill.custompostscript>
0
</distill.custompostscript>
<xslfop.print>
0
</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
Mohammed/Freight Charges/frt_chgs_table21.xml
0 → 100644
View file @
17993343
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>
9
</Release>
<BaseDefinition>
<units>
1
</units>
<timer_interval>
0
</timer_interval>
<color>
1073741824
</color>
<processing>
0
</processing>
<HTMLDW>
no
</HTMLDW>
<print>
<documentname></documentname>
<printername></printername>
<orientation>
0
</orientation>
<margin>
<left>
24
</left>
<right>
24
</right>
<top>
24
</top>
<bottom>
24
</bottom>
</margin>
<paper>
<source>
0
</source>
<size>
0
</size>
</paper>
<prompt>
no
</prompt>
<canusedefaultprinter>
yes
</canusedefaultprinter>
<buttons>
no
</buttons>
<preview.buttons>
no
</preview.buttons>
<cliptext>
no
</cliptext>
<overrideprintjob>
no
</overrideprintjob>
</print>
</BaseDefinition>
<Header>
<height>
6
</height>
<color>
536870912
</color>
</Header>
<Summary>
<height>
0
</height>
<color>
536870912
</color>
</Summary>
<Footer>
<height>
0
</height>
<color>
536870912
</color>
</Footer>
<Detail>
<height>
468
</height>
<color>
536870912
</color>
</Detail>
<TableDefinition>
<table_column>
<type
size=
"10"
>
char
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<key>
yes
</key>
<name>
frt_chgs_table
</name>
<dbname>
freight_charges_table.frt_chgs_table
</dbname>
</table_column>
<table_column>
<type
size=
"10"
>
char
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<key>
yes
</key>
<name>
charge_code
</name>
<dbname>
freight_charges_table.charge_code
</dbname>
</table_column>
<table_column>
<type
size=
"1"
>
char
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<name>
charges_mode
</name>
<dbname>
freight_charges_table.charges_mode
</dbname>
<values>
<item
display=
"Weight"
data=
"W"
/>
<item
display=
"% of Basic Freight"
data=
"P"
/>
<item
display=
"Volume"
data=
"V"
/>
<item
display=
"Fixed Price"
data=
"F"
/>
<item
display=
"Delivery"
data=
"D"
/>
<item
display=
"Lr Numbers"
data=
"L"
/>
</values>
</table_column>
<table_column>
<type>
datetime
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<name>
chg_date
</name>
<dbname>
freight_charges_table.chg_date
</dbname>
</table_column>
<table_column>
<type
precision=
"3"
>
decimal
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<name>
amount
</name>
<dbname>
freight_charges_table.amount
</dbname>
</table_column>
<table_column>
<type
size=
"10"
>
char
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<name>
chg_user
</name>
<dbname>
freight_charges_table.chg_user
</dbname>
</table_column>
<table_column>
<type
size=
"15"
>
char
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<name>
chg_term
</name>
<dbname>
freight_charges_table.chg_term
</dbname>
</table_column>
<table_column>
<type
precision=
"0"
>
decimal
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<name>
sequence
</name>
<dbname>
freight_charges_table.sequence
</dbname>
</table_column>
<table_column>
<type
size=
"250"
>
char
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<name>
charge_code__add
</name>
<dbname>
freight_charges_table.charge_code__add
</dbname>
</table_column>
<table_column>
<type
size=
"1"
>
char
</type>
<update>
yes
</update>
<updatewhereclause>
yes
</updatewhereclause>
<key>
yes
</key>
<name>
load_type
</name>
<dbname>
freight_charges_table.load_type
</dbname>
</table_column>
<table_column>
<type
size=
"120"
>
char
</type>
<updatewhereclause>
yes
</updatewhereclause>
<name>
load_descr
</name>
<dbname>
load_descr
</dbname>
</table_column>
<table_column>
<type
size=
"120"
>
char
</type>
<updatewhereclause>
yes
</updatewhereclause>
<name>
descr
</name>
<dbname>
descr
</dbname>
</table_column>
<table_column>
<type
size=
"120"
>
char
</type>
<updatewhereclause>
yes
</updatewhereclause>
<name>
chg_add_descr
</name>
<dbname>
chg_add_descr
</dbname>
</table_column>
<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)
</retrieve>
<update>
freight_charges_table
</update>
<updatewhere>
1
</updatewhere>
<updatekeyinplace>
no
</updatekeyinplace>
<argument>
<name>
frt_chgs_table
</name>
<type>
string
</type>
</argument>
<argument>
<name>
charge_code
</name>
<type>
string
</type>
</argument>
<argument>
<name>
load_type
</name>
<type>
string
</type>
</argument>
</TableDefinition>
<GroupBox>
<band>
Detail
</band>
<text>
Basic
</text>
<border>
2
</border>
<color>
0
</color>
<x>
190
</x>
<y>
8
</y>
<height>
296
</height>
<width>
310
</width>
<name>
gb_1
</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>
2
</mode>
<color>
1073741824
</color>
</background>
</GroupBox>
<ColumnObject>
<band>
Detail
</band>
<id>
1
</id>
<alignment>
0
</alignment>
<tabsequence>
10
</tabsequence>
<border>
2
</border>
<color>
0
</color>
<x>
364
</x>
<y>
27
</y>
<height>
16
</height>
<width>
89
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
frt_chgs_table
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
10
</limit>
<case>
any
</case>
<focusrectangle>
no
</focusrectangle>
<autoselect>
yes
</autoselect>
<autohscroll>
yes
</autohscroll>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
2
</id>
<alignment>
0
</alignment>
<tabsequence>
20
</tabsequence>
<border>
2
</border>
<color>
0
</color>
<x>
364
</x>
<y>
62
</y>
<height>
16
</height>
<width>
89
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
charge_code
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
10
</limit>
<case>
any
</case>
<focusrectangle>
no
</focusrectangle>
<autoselect>
yes
</autoselect>
<autohscroll>
yes
</autohscroll>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
10
</id>
<alignment>
0
</alignment>
<tabsequence>
30
</tabsequence>
<border>
2
</border>
<color>
0
</color>
<x>
364
</x>
<y>
117
</y>
<height>
16
</height>
<width>
89
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
load_type
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
1
</limit>
<case>
any
</case>
<focusrectangle>
no
</focusrectangle>
<autoselect>
yes
</autoselect>
<autohscroll>
yes
</autohscroll>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
5
</id>
<alignment>
1
</alignment>
<tabsequence>
50
</tabsequence>
<border>
2
</border>
<color>
0
</color>
<x>
364
</x>
<y>
195
</y>
<height>
16
</height>
<width>
89
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
amount
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
0
</limit>
<case>
any
</case>
<focusrectangle>
no
</focusrectangle>
<autoselect>
yes
</autoselect>
<autohscroll>
yes
</autohscroll>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
8
</id>
<alignment>
0
</alignment>
<tabsequence>
60
</tabsequence>
<border>
2
</border>
<color>
0
</color>
<x>
364
</x>
<y>
222
</y>
<height>
16
</height>
<width>
89
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
sequence
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
0
</limit>
<case>
any
</case>
<autoselect>
yes
</autoselect>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
9
</id>
<alignment>
0
</alignment>
<tabsequence>
70
</tabsequence>
<border>
2
</border>
<color>
0
</color>
<x>
364
</x>
<y>
246
</y>
<height>
16
</height>
<width>
89
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
charge_code__add
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
0
</limit>
<case>
any
</case>
<autoselect>
yes
</autoselect>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
3
</id>
<alignment>
0
</alignment>
<tabsequence>
40
</tabsequence>
<border>
2
</border>
<color>
0
</color>
<x>
364
</x>
<y>
170
</y>
<height>
16
</height>
<width>
89
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
charges_mode
</name>
<visible>
1
</visible>
<EditStyle
style=
"ddlb"
>
<limit>
0
</limit>
<allowedit>
no
</allowedit>
<case>
any
</case>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
11
</id>
<alignment>
0
</alignment>
<tabsequence>
32766
</tabsequence>
<border>
2
</border>
<color>
0
</color>
<x>
364
</x>
<y>
143
</y>
<height>
16
</height>
<width>
89
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
load_descr
</name>
<visible>
1
</visible>
<hidesnaked>
1
</hidesnaked>
<EditStyle
style=
"edit"
>
<limit>
0
</limit>
<case>
any
</case>
<autoselect>
yes
</autoselect>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
12
</id>
<alignment>
0
</alignment>
<tabsequence>
32766
</tabsequence>
<border>
2
</border>
<color>
0
</color>
<x>
364
</x>
<y>
88
</y>
<height>
16
</height>
<width>
89
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
descr
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
0
</limit>
<case>
any
</case>
<autoselect>
yes
</autoselect>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
13
</id>
<alignment>
0
</alignment>
<tabsequence>
32766
</tabsequence>
<border>
2
</border>
<color>
0
</color>
<x>
364
</x>
<y>
271
</y>
<height>
16
</height>
<width>
89
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
chg_add_descr
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
0
</limit>
<case>
any
</case>
<autoselect>
yes
</autoselect>
<imemode>
0
</imemode>
</EditStyle>
<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>
<TextObject>
<band>
Detail
</band>
<alignment>
1
</alignment>
<text>
Freight Charges Table:
</text>
<border>
2
</border>
<color>
0
</color>
<x>
226
</x>
<y>
27
</y>
<height>
16
</height>
<width>
131
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
frt_chgs_table_t
</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>
</TextObject>
<TextObject>
<band>
Detail
</band>
<alignment>
1
</alignment>
<text>
Charge Code:
</text>
<border>
2
</border>
<color>
0
</color>
<x>
226
</x>
<y>
62
</y>
<height>
16
</height>
<width>
131
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
charge_code_t
</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>
</TextObject>
<TextObject>
<band>
Detail
</band>
<alignment>
1
</alignment>
<text>
Load Type:
</text>
<border>
2
</border>
<color>
0
</color>
<x>
226
</x>
<y>
117
</y>
<height>
16
</height>
<width>
131
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
load_type_t
</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>
</TextObject>
<TextObject>
<band>
Detail
</band>
<alignment>
1
</alignment>
<text>
Amount:
</text>
<border>
2
</border>
<color>
0
</color>
<x>
226
</x>
<y>
195
</y>
<height>
16
</height>
<width>
131
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
amount_t
</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>
</TextObject>
<TextObject>
<band>
Detail
</band>
<alignment>
1
</alignment>
<text>
Sequence:
</text>
<border>
2
</border>
<color>
0
</color>
<x>
226
</x>
<y>
222
</y>
<height>
16
</height>
<width>
131
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
sequence_t
</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>
</TextObject>
<TextObject>
<band>
Detail
</band>
<alignment>
1
</alignment>
<text>
Additional Charges Code:
</text>
<border>
2
</border>
<color>
0
</color>
<x>
226
</x>
<y>
247
</y>
<height>
16
</height>
<width>
131
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
charge_code__add_t
</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>
</TextObject>
<TextObject>
<band>
Detail
</band>
<alignment>
1
</alignment>
<text>
Charge Mode:
</text>
<border>
2
</border>
<color>
0
</color>
<x>
226
</x>
<y>
170
</y>
<height>
16
</height>
<width>
131
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
charges_mode_t
</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>
</TextObject>
<GroupBox>
<band>
Detail
</band>
<text>
Others
</text>
<border>
2
</border>
<color>
0
</color>
<x>
186
</x>
<y>
322
</y>
<height>
114
</height>
<width>
307
</width>
<name>
gb_2
</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>
2
</mode>
<color>
1073741824
</color>
</background>
</GroupBox>
<TextObject>
<band>
Detail
</band>
<alignment>
1
</alignment>
<text>
Chg Date:
</text>
<border>
2
</border>
<color>
0
</color>
<x>
268
</x>
<y>
342
</y>
<height>
16
</height>
<width>
89
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
chg_date_t
</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>
</TextObject>
<TextObject>
<band>
Detail
</band>
<alignment>
1
</alignment>
<text>
Chg User:
</text>
<border>
2
</border>
<color>
0
</color>
<x>
268
</x>
<y>
370
</y>
<height>
16
</height>
<width>
89
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
chg_user_t
</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>
</TextObject>
<TextObject>
<band>
Detail
</band>
<alignment>
1
</alignment>
<text>
Chg Term:
</text>
<border>
2
</border>
<color>
0
</color>
<x>
268
</x>
<y>
395
</y>
<height>
16
</height>
<width>
89
</width>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
chg_term_t
</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>
</TextObject>
<ColumnObject>
<band>
Detail
</band>
<id>
4
</id>
<alignment>
0
</alignment>
<tabsequence>
32766
</tabsequence>
<border>
2
</border>
<color>
0
</color>
<x>
364
</x>
<y>
342
</y>
<height>
16
</height>
<width>
89
</width>
<format>
[shortdate] [time]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
chg_date
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
0
</limit>
<case>
any
</case>
<focusrectangle>
no
</focusrectangle>
<autoselect>
yes
</autoselect>
<autohscroll>
yes
</autohscroll>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
6
</id>
<alignment>
0
</alignment>
<tabsequence>
32766
</tabsequence>
<border>
2
</border>
<color>
0
</color>
<x>
364
</x>
<y>
370
</y>
<height>
16
</height>
<width>
89
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
chg_user
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
10
</limit>
<case>
any
</case>
<focusrectangle>
no
</focusrectangle>
<autoselect>
yes
</autoselect>
<autohscroll>
yes
</autohscroll>
<imemode>
0
</imemode>
</EditStyle>
<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>
<ColumnObject>
<band>
Detail
</band>
<id>
7
</id>
<alignment>
0
</alignment>
<tabsequence>
32766
</tabsequence>
<border>
2
</border>
<color>
0
</color>
<x>
364
</x>
<y>
395
</y>
<height>
16
</height>
<width>
89
</width>
<format>
[general]
</format>
<html>
<valueishtml>
0
</valueishtml>
</html>
<name>
chg_term
</name>
<visible>
1
</visible>
<EditStyle
style=
"edit"
>
<limit>
15
</limit>
<case>
any
</case>
<focusrectangle>
no
</focusrectangle>
<autoselect>
yes
</autoselect>
<autohscroll>
yes
</autohscroll>
<imemode>
0
</imemode>
</EditStyle>
<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>
<HtmlGen>
<clientevents>
1
</clientevents>
<clientvalidation>
1
</clientvalidation>
<clientcomputedfields>
1
</clientcomputedfields>
<clientformatting>
0
</clientformatting>
<clientscriptable>
0
</clientscriptable>
<generatejavascript>
1
</generatejavascript>
<encodeselflinkargs>
1
</encodeselflinkargs>
<netscapelayers>
0
</netscapelayers>
</HtmlGen>
<Export.XML>
<headgroups>
1
</headgroups>
<includewhitespace>
0
</includewhitespace>
<metadatatype>
0
</metadatatype>
<savemetadata>
0
</savemetadata>
</Export.XML>
<Import.XML>
</Import.XML>
<Export.PDF>
<method>
0
</method>
<distill.custompostscript>
0
</distill.custompostscript>
<xslfop.print>
0
</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
Mohammed/Freight Charges/srd_d_frt_chgs_table_brow.srd
0 → 100644
View file @
17993343
$PBExportHeader$d_freight_charges_table_brow.srd
release 9;
datawindow(units=1 timer_interval=0 color=67108864 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 )
header(height=48 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=19 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=frt_chgs_table dbname="freight_charges_table.frt_chgs_table" )
column=(type=char(10) update=yes updatewhereclause=yes key=yes name=charge_code dbname="freight_charges_table.charge_code" )
column=(type=char(1) update=yes updatewhereclause=yes key=yes name=load_type dbname="freight_charges_table.load_type" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=amount dbname="freight_charges_table.amount" )
column=(type=char(1) update=yes updatewhereclause=yes name=charges_mode dbname="freight_charges_table.charges_mode" )
column=(type=datetime update=yes updatewhereclause=yes name=chg_date dbname="freight_charges_table.chg_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=chg_user dbname="freight_charges_table.chg_user" )
column=(type=char(15) update=yes updatewhereclause=yes name=chg_term dbname="freight_charges_table.chg_term" )
column=(type=decimal(0) update=yes updatewhereclause=yes name=sequence dbname="freight_charges_table.sequence" )
column=(type=char(250) update=yes updatewhereclause=yes name=charge_code__add dbname="freight_charges_table.charge_code__add" )
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=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)) )
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="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="Amount" border="2" color="0" x="228" y="2" height="16" width="72" html.valueishtml="0" name=amount_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="Charges Mode" border="2" color="0" x="302" y="2" height="16" width="84" html.valueishtml="0" name=charges_mode_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="Chg Date" border="2" color="0" x="388" y="2" height="16" width="132" html.valueishtml="0" name=chg_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="Chg User" border="2" color="0" x="522" y="2" height="16" width="66" html.valueishtml="0" name=chg_user_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="Chg Term" border="2" color="0" x="590" y="2" height="16" width="96" html.valueishtml="0" name=chg_term_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="0" text="Sequence" border="0" color="33554432" x="688" y="1" height="19" width="256" html.valueishtml="0" name=sequence_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="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" )
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=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=4 alignment="1" tabsequence=40 border="2" color="33554432" x="228" y="2" height="19" width="72" format="[general]" html.valueishtml="0" name=amount visible="1" edit.limit=0 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=5 alignment="0" tabsequence=50 border="2" color="33554432" x="302" y="2" height="19" width="84" format="[general]" html.valueishtml="0" name=charges_mode 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=6 alignment="0" tabsequence=60 border="2" color="33554432" x="388" y="2" height="19" width="132" format="[shortdate] [time]" html.valueishtml="0" name=chg_date visible="1" edit.limit=0 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=7 alignment="0" tabsequence=32766 border="2" color="33554432" x="522" y="2" height="19" width="66" format="[general]" html.valueishtml="0" name=chg_user 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=8 alignment="0" tabsequence=32766 border="2" color="33554432" x="590" y="2" height="19" width="96" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=15 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=9 alignment="0" tabsequence=32766 border="0" color="33554432" x="688" y="1" height="16" width="256" format="[general]" html.valueishtml="0" name=sequence 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=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" )
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" )
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 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
Mohammed/Freight Charges/srd_d_frt_chgs_table_edit.srd
0 → 100644
View file @
17993343
$PBExportHeader$d_freight_charges_table_edit.srd
release 9;
datawindow(units=1 timer_interval=0 color=1073741824 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
header(height=6 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=468 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=frt_chgs_table dbname="freight_charges_table.frt_chgs_table" )
column=(type=char(10) update=yes updatewhereclause=yes key=yes name=charge_code dbname="freight_charges_table.charge_code" )
column=(type=char(1) update=yes updatewhereclause=yes name=charges_mode dbname="freight_charges_table.charges_mode" values="Weight W/% of Basic Freight P/Volume V/Fixed Price F/Delivery D/Lr Numbers L/" )
column=(type=datetime update=yes updatewhereclause=yes name=chg_date dbname="freight_charges_table.chg_date" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=amount dbname="freight_charges_table.amount" )
column=(type=char(10) update=yes updatewhereclause=yes name=chg_user dbname="freight_charges_table.chg_user" )
column=(type=char(15) update=yes updatewhereclause=yes name=chg_term dbname="freight_charges_table.chg_term" )
column=(type=decimal(0) update=yes updatewhereclause=yes name=sequence dbname="freight_charges_table.sequence" )
column=(type=char(250) update=yes updatewhereclause=yes name=charge_code__add dbname="freight_charges_table.charge_code__add" )
column=(type=char(1) update=yes updatewhereclause=yes key=yes name=load_type dbname="freight_charges_table.load_type" )
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=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)) )
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=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=10 alignment="0" tabsequence=30 border="2" color="0" x="364" y="117" height="16" width="89" 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=5 alignment="1" tabsequence=50 border="2" color="0" x="364" y="195" height="16" width="89" format="[general]" html.valueishtml="0" name=amount visible="1" edit.limit=0 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=8 alignment="0" tabsequence=60 border="2" color="0" x="364" y="222" height="16" width="89" format="[general]" html.valueishtml="0" name=sequence 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=9 alignment="0" tabsequence=70 border="2" color="0" x="364" y="246" height="16" width="89" 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=3 alignment="0" tabsequence=40 border="2" color="0" x="364" y="170" height="16" width="89" format="[general]" html.valueishtml="0" name=charges_mode 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" )
column(band=detail id=11 alignment="0" tabsequence=32766 border="2" color="0" x="364" y="143" height="16" width="89" format="[general]" html.valueishtml="0" name=load_descr visible="1" hidesnaked=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="2" color="0" x="364" y="88" height="16" width="89" 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="2" color="0" x="364" y="271" height="16" width="89" 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=detail alignment="1" text="Freight Charges Table:" border="2" color="0" x="226" y="27" height="16" width="131" 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=detail alignment="1" text="Charge Code:" border="2" color="0" x="226" y="62" height="16" width="131" 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=detail alignment="1" text="Load Type:" border="2" color="0" x="226" y="117" height="16" width="131" 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=detail alignment="1" text="Amount:" border="2" color="0" x="226" y="195" height="16" width="131" html.valueishtml="0" name=amount_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=detail alignment="1" text="Sequence:" border="2" color="0" x="226" y="222" height="16" width="131" html.valueishtml="0" name=sequence_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=detail alignment="1" text="Additional Charges Code:" border="2" color="0" x="226" y="247" height="16" width="131" html.valueishtml="0" name=charge_code__add_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=detail alignment="1" text="Charge Mode:" border="2" color="0" x="226" y="170" height="16" width="131" html.valueishtml="0" name=charges_mode_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" )
groupbox(band=detail text="Others"border="2" color="0" x="186" y="322" height="114" width="307" name=gb_2 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" )
text(band=detail alignment="1" text="Chg Date:" border="2" color="0" x="268" y="342" height="16" width="89" html.valueishtml="0" name=chg_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=detail alignment="1" text="Chg User:" border="2" color="0" x="268" y="370" height="16" width="89" html.valueishtml="0" name=chg_user_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=detail alignment="1" text="Chg Term:" border="2" color="0" x="268" y="395" height="16" width="89" html.valueishtml="0" name=chg_term_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=4 alignment="0" tabsequence=32766 border="2" color="0" x="364" y="342" height="16" width="89" format="[shortdate] [time]" html.valueishtml="0" name=chg_date visible="1" edit.limit=0 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=6 alignment="0" tabsequence=32766 border="2" color="0" x="364" y="370" height="16" width="89" format="[general]" html.valueishtml="0" name=chg_user 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=7 alignment="0" tabsequence=32766 border="2" color="0" x="364" y="395" height="16" width="89" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=15 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" )
htmltable(border="1" )
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 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment