Commit 72d14314 authored by SABURI PATEKAR's avatar SABURI PATEKAR

updated xml,sql,java file

parent c9196488
CREATE TABLE CUSTOMER_PREF_DIST (
CUST_CODE CHAR(10) NOT NULL,
CUST_CODE__STK CHAR(10) NOT NULL,
CUST_CODE__DIST CHAR(10) NOT NULL,
HOSP_NAME VARCHAR2(100),
CITY VARCHAR2(50),
STOCK_CUST_NAME VARCHAR2(100),
DIST_CUST_NAME VARCHAR2(100),
SITE_CODE__PBUS VARCHAR2(30),
STATUS CHAR(1),
ADD_DATE DATE,
ADD_USER CHAR(10),
ADD_TERM VARCHAR2(15),
CHG_DATE DATE,
CHG_USER CHAR(10),
CHG_TERM VARCHAR2(15),
CONSTRAINT PK_CUSTOMER_PREF_DIST
PRIMARY KEY (CUST_CODE, CUST_CODE__STK)
);
Insert into USER_RIGHTS (PROFILE_ID,APPLICATION,MENU_ROW,MENU_COL,MENU_SUBCOL,LEVEL_4,LEVEL_5,MENU_NAME,RIGHTS,ACC_FILT,DEF_FILT,OBJ_NAME,FAV_OPTION,FAV_ORDER,EXCLUDE_RIGHTS_CHAR,ATTACH_RIGHTS,NO_OFFLINE_ALLWD,MOB_DEPLOY,DEVICE_SECURITY,DEVICE_ACC_CLASS) values ('ADMIN ','SCS',4,1,4,0,0,'Customer Preferred Distributor','*',null,null,'customer_pref_dist',null,null,null,null,null,'B',null,null);
Insert into ITM2MENU (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER,MOB_DEPLOY,DEFAULT_STATE,DEF_ACTION,MOB_DEPLY,ENT_TYPES) values ('SCS',4,1,4,0,0,'w_customer_pref_dist','Customer Preferred Distributor','Map Hospital to Stockist and Distributor','SCS.4.1.4.0.0','assignment.png',null,null,'T',null,null,null,'B',null,null,null,'0 ');
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('customer_pref_dist',1,'ibase/resource/objaction/add.svg','Add New','a','a','A','Add','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'1','0',null,null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('customer_pref_dist',3,'ibase/resource/objaction/edit.svg','Editing Existing Record','a','a','E','Edit','1',null,null,'S',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'2','000',null);
Insert into OBJ_ACTIONS (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ,SEP_DUTY_OPT,RE_AUTH_OPT,SHOW_IN_PANEL,PAGE_CONTEXT,TYPE,ACTION_ARG,SWIPE_POSITION,MULTI_ROW_OPT,ACTION_ID,DEF_NODATA,IN_PROC_INTRUPT,ESTIMATED_TIME,ACTION_GROUP,DISPLAY_OPT,DISPLAY_MODE,SHOW_CONFIRM,REC_SPECIFIC) values ('customer_pref_dist',61,'ibase/resource/objaction/add.svg','Adding New','a','a','A','Add','1',null,null,'S',null,to_date('11-09-23','DD-MM-RR'),null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'1','0',null,null);
Insert into OBJ_FORMS (WIN_NAME,TITLE,OBJ_BROW_NAME,OBJ_EDIT_NAME,CROSS_UPDATE_EXPR,EXPR_FLD_INFO,TARGET_FLD_INFO,EXPR_COMMENT,FORM_NO,SCR_FLAG,AUTO_ACCEPT_SCAN,SCAN_FLAG,SCAN_METADATA,PROPERTY_INFO,SCAN_DELIMITER,COLUMN_ON_SAVE,AFTER_SAVE,EXT_SETUP,EXT_METADATA,EXT_COM,AUTO_ACCEPT_WEIGHDATA,FORM_TYPE,DISP_METADATA,PARENT_KEY_COL,QTY_COL,RATE_COL,ASSISTED_MODE,STORAGE_KEY_METADATA,SELECTION_MODE,DEFAULT_VIEW,AUTO_ADDON_ENTRY,DUPLICATE_ADD,DEFAULT_ROW_CNT,FREEZE_COL_POS,IS_MANDATORY,TRAN_ID_COL,SELECTION_OPT,KEY_INFO,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,FORM_NAME,FORM_ICON,FORM_VIEW_OPTS,X_COLUMN,Y_COLUMN,ACTION_ARG,VALUE_COL,NO_ART_COL,CHG_DATE,CHG_USER,CHG_TERM) values ('w_customer_pref_dist','Customer Mapping',null,null,null,null,null,null,'1','F',null,null,null,null,null,null,null,null,null,null,null,'T','<html>
<div style="width:100%;overflow:hidden;margin-bottom:2px">
<span style="float:left"><b>Customer:</b> {cust_name}({cust_code})</span>
<span style="float:right"><b>Stockist:</b> {cust_name_1}({cust_code__stk})</span>
</div>
<div style="width:100%;overflow:hidden;margin-bottom:2px">
<span style="float:left"><b>Distributor:</b> {cust_name_2}({cust_code__dist})</span>
<span style="float:right"><b>Added On:</b> {add_date}</span>
</div>
</html>',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,'assignment.png',null,null,null,null,null,null,null,null,null);
Insert into TRANSETUP (TRAN_WINDOW,SAVE_FLAG,VAL_FLAG,KEY_FLAG,KEY_STRING,UDF_1,UDF_2,UDF_3,UDF_4,UDF_5,REPEATE_ADD,CHG_DATE,CHG_USER,CHG_TERM,EDI_OPTION,SITE_ACC_COL,CONFIRM_COL,CONFIRM_VAL,REPEAT_ADD_DET,REPEATADDDET,LOAD_MODE,AUTO_CONFIRM,LEDG_POST_CONF,CHG_DATE_ON_CONF,TRAN_ID_COL,MAIL_OPTION,CONFIRM_MODE,GARBAGE_OPT,VAL_FLAG_EDI,VERIFY_PASSWORD,CUST_ACC_COL,SALES_PERS_ACC_COL,SUPP_ACC_COL,ITEM_SER_ACC_CODE,EMP_ACC_COL,ITEM_SER_ACC_COL,WORKFLOW_OPT,TABLE_NAME,APPLICATION,TABLE_DESC,TRAN_DATE_COL,TRAN_ID__FROM,TRAN_ID__TO,TABLE_NAME_DET1,TABLE_NAME_DET2,TABLE_NAME_DET3,MULTITIRE_OPT,REF_SER,VIEW_MODE,TAX_FORMS,SIGN_STATUS,USER_TRAN_WINDOW,OBJ_NAME__PARENT,IGNOREERRLIST_ONLOAD,CHILDDATA_ARGOPT,EDIT_TMPLT,WRKFLW_INIT,EDITTAX,FORMAL_ARGS,AUDIT_TRAIL_OPT,EDIT_OPT,CACHE_OPT,OPTIMIZE_MODE,EDIT_EXPR,RATE_COL,QTY_COL,EDIT_EXPR_INP,RCP_CACHE_STATUS,PRINT_CONTROL,TRANSFER_MODE,PROFILE_ID__RES,TRAN_COMPL_MSG,PERIOD_OPTION,WRKFLW_PRIORITY,EXEC_TYPE,DISP_META_DATA,ALLOW_ATTACH,START_FORM,ISATTACHMENT,HEADER_FORM_NO,CONFIRM_DATE_COL,CONFIRM_BY_COL,MSG_ONSAVE,WF_STATUS,RESTART_FORM,CMS_PATH,BROW_DATA_DEF,DEF_VIEW,VIEW_OPTS,ISGWTINITIATED,DEFAULT_DATA_ROW,IN_WF_VAL,IN_WF_COL,CANCEL_VAL,CANCEL_COL,THUMB_ALT_COL,THUMB_IMAGE_COL,THUMB_OBJ,ATTACH_COUNT_MIN,FUNCTION_TYPE,COMPL_ACTION,DEFAULT_EDITOR,MSG_NO,OBJ_TYPE,STATUS_COL,ENABLE_EDITOR,OFFLINE_OPT,CLOSE_COL,CLOSE_VAL,THREAD_KEY_COL,LOAD_ORDER,SYNC_FROM_APP,TITLE,FORM_NO,OBJ_NAME) values ('w_customer_pref_dist',null,null,'M',null,null,null,null,null,null,null,to_date('27-02-26','DD-MM-RR'),'System ','System',null,null,null,null,null,null,null,null,null,null,'CUST_CODE,CUST_CODE__STK',null,null,null,null,null,null,null,null,null,null,null,null,'CUSTOMER_PREF_DIST',null,null,null,null,null,null,null,null,null,null,'F',null,null,null,null,null,null,null,null,null,null,'2',null,null,null,null,null,null,null,null,'N',null,null,null,'M',null,null,null,null,null,null,null,null,null,null,null,null,null,'Y',null,null,null,null,null,null,null,null,null,null,null,null,null,null,'compact',null,null,null,null,null,null,null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('CUST_CODE','W_CUSTOMER_PREF_DIST','SELECT CUST_CODE,CUST_NAME FROM CUSTOMER WHERE CUST_TYPE = ''R''','customer_pref_dist','Customer',0,0,to_date('31-03-22','DD-MM-RR'),'Saburi ','BASE ','1',null,null,1,'L',null,null,null,null,0,'2',null,'3','Icon','cust_code','cust_name','2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('CUST_CODE__DIST','W_CUSTOMER_PREF_DIST','SELECT CUST_CODE,CUST_NAME FROM CUSTOMER WHERE CUST_TYPE = ''D''','customer_pref_dist','Customer',0,0,to_date('31-03-22','DD-MM-RR'),'Saburi ','BASE ','1',null,null,1,'L',null,null,null,null,0,'2',null,'3','Icon','cust_code','cust_name','2 ',null,null,null,null,null,null,null);
Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME,AUTO_FILL_LEN,THUMB_OBJ,THUMB_IMAGE_COL,THUMB_ALT_COL,AUTO_MIN_LENGTH,OBJ_NAME__DS,DATA_MODEL_NAME,VALIDATE_DATA,ITEM_CHANGE,MSG_NO,FILTER_EXPR,LAYOUT) values ('CUST_CODE__STK','W_CUSTOMER_PREF_DIST','SELECT CUST_CODE,CUST_NAME FROM CUSTOMER WHERE CUST_TYPE = ''S''','customer_pref_dist','Customer',0,0,to_date('31-03-22','DD-MM-RR'),'Saburi ','BASE ','1',null,null,1,'L',null,null,null,null,0,'2',null,'3','Icon','cust_code','cust_name','2 ',null,null,null,null,null,null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VCCUSTCODE','Customer Code with Customer_Type as ''R'' does''t exists','Customer Code with Customer_Type as ''R'' does''t exists','E','Y',null,null,null,to_date('02-03-26','DD-MM-RR'),'System ','System',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VCCUSTSTK','Customer Code with Customer_Type as ''S'' does''t exists','Customer Code with Customer_Type as ''S'' does''t exists','E','Y',null,null,null,to_date('02-03-26','DD-MM-RR'),'System ','System',null,null);
Insert into MESSAGES (MSG_NO,MSG_STR,MSG_DESCR,MSG_TYPE,MSG_OPT,MSG_TIME,ALARM,ERR_SOURCE,CHG_DATE,CHG_USER,CHG_TERM,OVERRIDE_INPUT,MAIL_OPTION) values ('VCUSTDIST','Customer Code with Customer_Type as ''D'' does''t exists','Customer Code with Customer_Type as ''D'' does''t exists','E','Y',null,null,null,to_date('02-03-26','DD-MM-RR'),'System ','System',null,null);
Insert into GENMST (FLD_NAME,MOD_NAME,DESCR,ERROR_CD,BLANK_OPT,FLD_TYPE,FLD_MIN,FLD_MAX,VAL_TYPE,CHG_DATE,CHG_USER,CHG_TERM,VAL_TABLE,SQL_INPUT,FLD_WIDTH,UDF_USAGE_1,UDF_USAGE_2,UDF_USAGE_3,VAL_STAGE,OBJ_NAME,FORM_NO,ACTION,USER_ID,TRAN_ID,UDF_STR1_DESCR,UDF_STR2_DESCR,UDF_STR3_DESCR,EXEC_SEQ) values ('CUST_CODE','W_CUSTOMER_PREF_DIST','Customer Code with Customer_Type as ''R'' ','VCCUSTCODE','N','C','CUSTOMER','1','L',to_date('02-MAR-26','DD-MON-RR'),'System ','System',null,null,100,null,null,null,null,'customer_pref_dist','1','EDIT','System','F0000000000000001409',null,null,null,0);
Insert into GENMST (FLD_NAME,MOD_NAME,DESCR,ERROR_CD,BLANK_OPT,FLD_TYPE,FLD_MIN,FLD_MAX,VAL_TYPE,CHG_DATE,CHG_USER,CHG_TERM,VAL_TABLE,SQL_INPUT,FLD_WIDTH,UDF_USAGE_1,UDF_USAGE_2,UDF_USAGE_3,VAL_STAGE,OBJ_NAME,FORM_NO,ACTION,USER_ID,TRAN_ID,UDF_STR1_DESCR,UDF_STR2_DESCR,UDF_STR3_DESCR,EXEC_SEQ) values ('CUST_CODE__STK','W_CUSTOMER_PREF_DIST','Customer Code with Customer_Type as ''S'' ','VCCUSTSTK','N','C','CUSTOMER','1','L',to_date('02-MAR-26','DD-MON-RR'),'System ','System',null,null,100,null,null,null,null,'customer_pref_dist','1','EDIT','System','00000000000000004166',null,null,null,0);
Insert into GENMST (FLD_NAME,MOD_NAME,DESCR,ERROR_CD,BLANK_OPT,FLD_TYPE,FLD_MIN,FLD_MAX,VAL_TYPE,CHG_DATE,CHG_USER,CHG_TERM,VAL_TABLE,SQL_INPUT,FLD_WIDTH,UDF_USAGE_1,UDF_USAGE_2,UDF_USAGE_3,VAL_STAGE,OBJ_NAME,FORM_NO,ACTION,USER_ID,TRAN_ID,UDF_STR1_DESCR,UDF_STR2_DESCR,UDF_STR3_DESCR,EXEC_SEQ) values ('CUST_CODE__DIST','W_CUSTOMER_PREF_DIST','Customer Code with Customer_Type as ''D'' ','VCUSTDIST','N','C','CUSTOMER','1','L',to_date('02-MAR-26','DD-MON-RR'),'System ','System',null,null,100,null,null,null,null,'customer_pref_dist','1','EDIT','System','00000000000000004167',null,null,null,0);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME,FORM_NO) values ('customer_pref_dist','post_item_change','1','poic_default_ejb',null,'0',to_date('16-03-26','DD-MM-RR'),'base ','BASE','2','JB','ibase.webitm.ejb.dis.CustomerPrefDistIC',null,null,null);
Insert into SYSTEM_EVENTS (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT,FIELD_NAME,FORM_NO) values ('customer_pref_dist','post_validate','1','post_gen_val',null,'0',to_date('02-03-26','DD-MM-RR'),'System ','System','2','JB','ibase.webitm.ejb.sys.GenValidate',null,null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('customer_pref_dist','1 ','cust_code','Y',null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('customer_pref_dist','1 ','cust_code__dist','Y',null,null);
Insert into OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY,EXEC_AT,JS_ARG) values ('customer_pref_dist','1 ','cust_code__stk','Y',null,null);
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import org.w3c.dom.CDATASection;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import ibase.utility.BaseLogger;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.ejb.ValidatorRemote;
import ibase.webitm.ejb.fin.FinCommon;
import ibase.webitm.utility.ITMException;
public class CustomerPrefDistIC extends ValidatorEJB implements ValidatorLocal,ValidatorRemote
{
ITMDBAccessEJB itmDBAccessEJB = new ITMDBAccessEJB();
E12GenericUtility genericUtility = new E12GenericUtility();
DistCommon distCommon = new DistCommon();
FinCommon finCommon = new FinCommon();
public String itemChanged(String xmString, String xmString1, String xmString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException, ITMException
{
Document dom = null;
Document dom1 = null;
Document dom2 = null;
String errString = null;
BaseLogger.log("3", getUserInfo(), null, "currFrmXmlStr 40::"+xmString);
BaseLogger.log("3", getUserInfo(), null, "hdrFrmXmlStr 41::"+xmString1);
BaseLogger.log("3", getUserInfo(), null, "allFrmXmlStr 42::"+xmString2);
try
{
if (xmString != null && xmString.trim().length()!=0)
{
dom = genericUtility.parseString(xmString);
}
if (xmString1 != null && xmString1.trim().length()!=0)
{
dom1 = genericUtility.parseString(xmString1);
}
if (xmString2 != null && xmString2.trim().length()!=0)
{
dom2 = genericUtility.parseString(xmString2);
}
errString = itemChanged( dom, dom1, dom2, objContext, currentColumn, editFlag, xtraParams );
System.out.println ( "ErrString :" + errString);
}
catch (Exception e)
{
System.out.println ( "Exception : ItemChanged(String,String):" + e.getMessage() + ":" );
e.printStackTrace();
throw new ITMException(e);
}
return errString;
}
public String itemChanged( Document dom , Document dom1, Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams ) throws RemoteException,ITMException
{
BaseLogger.log("3", getUserInfo(), null, "itemChanged called::");
NodeList parentNodeList = null;
NodeList childNodeList = null;
Node parentNode = null;
Node childNode = null;
String childNodeName = null;
int ctr = 0;
int childNodeListLength = 0;
StringBuffer valueXmlString = new StringBuffer();
Connection conn = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
int currentFormNo = 0;
Timestamp todaysDate = null;
SimpleDateFormat sdf = null;
String currentDateTime = "", loginSite = "", loginCode = "";
String quotNo = "";
String custCode = "";
String custCodeStk = "";
String custCodeDist = "";
String city = "";
String custName = "";
String stockCustName = "";
String distCustName = "";
String distSiteCode = "";
try
{
conn = getConnection();
loginSite = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode");
loginCode = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
todaysDate = new java.sql.Timestamp(System.currentTimeMillis());
currentDateTime = sdf.format(todaysDate);
if (objContext != null && objContext.trim().length() > 0)
{
currentFormNo = Integer.parseInt(objContext);
}
NodeList custNodeList = dom.getElementsByTagName("cust_code");
if (custNodeList != null && custNodeList.getLength() > 0)
{
Node custNode = custNodeList.item(0);
if (custNode != null && custNode.getFirstChild() != null)
{
custCode = custNode.getFirstChild().getNodeValue();
}
}
BaseLogger.log("3", getUserInfo(), null, "custCode ::: " + custCode);
NodeList stkNodeList = dom.getElementsByTagName("cust_code__stk");
if (stkNodeList != null && stkNodeList.getLength() > 0)
{
Node stkNode = stkNodeList.item(0);
if (stkNode != null && stkNode.getFirstChild() != null)
{
custCodeStk = stkNode.getFirstChild().getNodeValue();
}
}
NodeList distNodeList = dom.getElementsByTagName("cust_code__dist");
if (distNodeList != null && distNodeList.getLength() > 0)
{
Node distNode = distNodeList.item(0);
if (distNode != null && distNode.getFirstChild() != null)
{
custCodeDist = distNode.getFirstChild().getNodeValue();
}
}
BaseLogger.log("3", getUserInfo(), null, "custCodeStk ::: " + custCodeStk);
BaseLogger.log("3", getUserInfo(), null, "custCodeDist ::: " + custCodeDist);
if (custCode != null && custCode.trim().length() > 0)
{
String sql = "SELECT CUST_NAME, CITY FROM CUSTOMER WHERE CUST_CODE = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, custCode);
rs = pstmt.executeQuery();
if (rs.next())
{
custName = rs.getString("CUST_NAME");
city = rs.getString("CITY");
}
}
if (custCodeStk != null && custCodeStk.trim().length() > 0)
{
String sqlStk = "SELECT CUST_NAME FROM CUSTOMER WHERE CUST_CODE = ?";
pstmt = conn.prepareStatement(sqlStk);
pstmt.setString(1, custCodeStk);
rs = pstmt.executeQuery();
if (rs.next())
{
stockCustName = rs.getString("CUST_NAME");
}
}
if (custCodeDist != null && custCodeDist.trim().length() > 0)
{
String sqlDist = "SELECT CUST_NAME, SITE_CODE__PBUS FROM CUSTOMER WHERE CUST_CODE = ?";
pstmt = conn.prepareStatement(sqlDist);
pstmt.setString(1, custCodeDist);
rs = pstmt.executeQuery();
if (rs.next())
{
distCustName = rs.getString("CUST_NAME");
distSiteCode = rs.getString("SITE_CODE__PBUS");
}
}
BaseLogger.log("3", getUserInfo(), null, "stockCustName ::: " + stockCustName);
BaseLogger.log("3", getUserInfo(), null, "distCustName ::: " + distCustName);
BaseLogger.log("3", getUserInfo(), null, " " + custName);
valueXmlString.append("<?xml version=\"1.0\"?>\r\n<Root>\r\n<Header>\r\n<editFlag>");
valueXmlString.append(editFlag).append("</editFlag>\r\n</Header>\r\n");
switch (currentFormNo)
{
case 1:
{
valueXmlString.append("<Detail1>");
parentNodeList = dom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
ctr = 0; // 🔥 IMPORTANT RESET
childNodeListLength = childNodeList.getLength();
do
{
childNode = childNodeList.item(ctr);
childNodeName = childNode.getNodeName();
ctr++;
}
while ((ctr < childNodeListLength) && (!childNodeName.equals(currentColumn)));
BaseLogger.log("3", getUserInfo(), null, "CURRENT COLUMN [" + currentColumn + "]");
if (currentColumn.equalsIgnoreCase("cust_code"))
{
valueXmlString.append("<cust_name>")
.append("<![CDATA[" + custName + "]]>")
.append("</cust_name>");
valueXmlString.append("<city>")
.append("<![CDATA[" + city + "]]>")
.append("</city>");
}
if (currentColumn.equalsIgnoreCase("cust_code__stk"))
{
valueXmlString.append("<cust_name_1>")
.append("<![CDATA[" + stockCustName + "]]>")
.append("</cust_name_1>");
}
if (currentColumn.equalsIgnoreCase("cust_code__dist"))
{
valueXmlString.append("<cust_name_2>")
.append("<![CDATA[" + distCustName + "]]>")
.append("</cust_name_2>");
valueXmlString.append("<site_code__pbus>")
.append("<![CDATA[" + distSiteCode + "]]>")
.append("</site_code__pbus>");
}
valueXmlString.append("</Detail1>");
}
break;
}
valueXmlString.append("</Root>\r\n");
}
catch (Exception e)
{
BaseLogger.log("3", getUserInfo(), null, "Exception from itemchanged method --[" + e.getMessage() + "]");
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if (conn != null)
{
conn.close();
conn = null;
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch (Exception e)
{
BaseLogger.log("3", getUserInfo(), null, "Exception from itemchanged method --[" + e.getMessage() + "]");
e.printStackTrace();
throw new ITMException(e);
}
}
return valueXmlString.toString();
}
public String checkNull(String inputStr) throws ITMException
{
try
{
if(inputStr != null && inputStr.trim().length() > 0)
{
return inputStr.trim();
}
else
{
return "";
}
}
catch(Exception e)
{
BaseLogger.log("3", getUserInfo(), null, "Exception in checknull--["+e.getMessage()+"]");
e.printStackTrace();
throw new ITMException(e);
}
}
private static void setNodeValue(Document dom, String nodeName, String nodeVal) throws Exception {
Node tempNode = dom.getElementsByTagName(nodeName).item(0);
if (tempNode != null) {
if (tempNode.getFirstChild() == null) {
CDATASection cDataSection = dom.createCDATASection(nodeVal);
tempNode.appendChild(cDataSection);
} else {
tempNode.getFirstChild().setNodeValue(nodeVal);
}
}
tempNode = null;
}
private static String getAbsString(String str) {
return (str == null || str.trim().length() == 0 || "null".equalsIgnoreCase(str.trim()) ? "" : str.trim());
}
public double checkNullForDouble(String inputStr) throws ITMException
{
double retVal = 0.0;
try
{
if(inputStr == null || inputStr.trim().length() == 0)
{
retVal = 0.0;
}
else
{
retVal = Double.parseDouble(inputStr);
}
}
catch(Exception e)
{
BaseLogger.log("3", getUserInfo(), null, "Exception in checknull--["+e.getMessage()+"]");
e.printStackTrace();
retVal = 0.0;
throw new ITMException(e);
}
return retVal;
}
private String checkDouble(String input) {
if (input == null || input.trim().length() == 0) {
input = "0";
}
return input;
}
private String errorType(Connection conn , String errorCode)
{
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();
while(rs.next())
{
msgType = rs.getString("MSG_TYPE");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
catch(Exception ex)
{
ex.printStackTrace();
}
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e)
{
e.printStackTrace();
}
}
return msgType;
}
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;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>79741120</color>
<processing>0</processing>
<color>1073741824</color>
<processing>1</processing>
<HTMLDW>no</HTMLDW>
<print>
<documentname></documentname>
......@@ -29,7 +29,12 @@
<cliptext>no</cliptext>
<overrideprintjob>no</overrideprintjob>
</print>
<grid.lines>0</grid.lines>
</BaseDefinition>
<Header>
<height>20</height>
<color>536870912</color>
</Header>
<Summary>
<height>0</height>
<color>536870912</color>
......@@ -39,1065 +44,990 @@
<color>536870912</color>
</Footer>
<Detail>
<height>523</height>
<height>23</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<TableDefinition>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>cust_code</name>
<dbname>customer_pref_dist.cust_code</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
</table_column>
<table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>cust_code__stk</name>
<dbname>customer_pref_dist.cust_code__stk</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
</table_column>
<table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>cust_code__dist</name>
<dbname>customer_pref_dist.cust_code__dist</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
</table_column>
<table_column>
<type size="100">varchar</type>
<name>hosp_name</name>
<dbname>customer_pref_dist.hosp_name</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
</table_column>
<table_column>
<type size="50">varchar</type>
<name>city</name>
<dbname>customer_pref_dist.city</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
</table_column>
<table_column>
<type size="100">varchar</type>
<name>stock_cust_name</name>
<dbname>customer_pref_dist.stock_cust_name</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
</table_column>
<table_column>
<type size="100">varchar</type>
<name>dist_cust_name</name>
<dbname>customer_pref_dist.dist_cust_name</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
</table_column>
<table_column>
<type size="30">varchar</type>
<name>site_code__pbus</name>
<dbname>customer_pref_dist.site_code__pbus</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
</table_column>
<table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>add_date</name>
<dbname>customer_pref_dist.add_date</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<initial>today()</initial>
</table_column>
<table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>add_user</name>
<dbname>customer_pref_dist.add_user</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<initial>logged_in_user()</initial>
</table_column>
<table_column>
<type size="15">varchar</type>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>add_term</name>
<dbname>customer_pref_dist.add_term</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<initial>logged_in_terminal()</initial>
</table_column>
<table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_date</name>
<dbname>customer_pref_dist.chg_date</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
</table_column>
<table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_user</name>
<dbname>customer_pref_dist.chg_user</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
</table_column>
<table_column>
<type size="15">varchar</type>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_term</name>
<dbname>customer_pref_dist.chg_term</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
</table_column>
<retrieve>SELECT CUSTOMER_PREF_DIST.CUST_CODE AS CUST_CODE, CUSTOMER_PREF_DIST.CUST_CODE__STK AS CUST_CODE__STK, CUSTOMER_PREF_DIST.CUST_CODE__DIST AS CUST_CODE__DIST, CUSTOMER_PREF_DIST.HOSP_NAME AS HOSP_NAME, CUSTOMER_PREF_DIST.CITY AS CITY, CUSTOMER_PREF_DIST.STOCK_CUST_NAME AS STOCK_CUST_NAME, CUSTOMER_PREF_DIST.DIST_CUST_NAME AS DIST_CUST_NAME, CUSTOMER_PREF_DIST.SITE_CODE__PBUS AS SITE_CODE__PBUS, CUSTOMER_PREF_DIST.ADD_DATE AS ADD_DATE, CUSTOMER_PREF_DIST.ADD_USER AS ADD_USER, CUSTOMER_PREF_DIST.ADD_TERM AS ADD_TERM, CUSTOMER_PREF_DIST.CHG_DATE AS CHG_DATE, CUSTOMER_PREF_DIST.CHG_USER AS CHG_USER, CUSTOMER_PREF_DIST.CHG_TERM AS CHG_TERM
FROM CUSTOMER_PREF_DIST
LEFT JOIN CUSTOMER ON CUSTOMER_PREF_DIST.CUST_CODE = CUSTOMER.CUST_CODE LEFT JOIN CUSTOMER ON CUSTOMER_PREF_DIST.CUST_CODE__STK = CUSTOMER.CUST_CODE LEFT JOIN CUSTOMER ON CUSTOMER_PREF_DIST.CUST_CODE__DIST = CUSTOMER.CUST_CODE</retrieve>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<table_column>
<type size="50">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>cust_name</name>
<dbname>customer.cust_name</dbname>
</table_column>
<table_column>
<type size="20">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>city</name>
<dbname>customer.city</dbname>
</table_column>
<table_column>
<type size="50">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>cust_name_1</name>
<dbname>customer.cust_name</dbname>
</table_column>
<table_column>
<type size="50">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>cust_name_2</name>
<dbname>customer.cust_name</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>site_code__pbus</name>
<dbname>customer.site_code__pbus</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;customer_pref_dist&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_a&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_b&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_c&quot; ) COLUMN(NAME=&quot;customer_pref_dist.cust_code&quot;) COLUMN(NAME=&quot;customer_pref_dist.cust_code__stk&quot;) COLUMN(NAME=&quot;customer_pref_dist.cust_code__dist&quot;) COLUMN(NAME=&quot;customer_pref_dist.add_date&quot;) COLUMN(NAME=&quot;customer_pref_dist.add_user&quot;) COLUMN(NAME=&quot;customer_pref_dist.add_term&quot;) COLUMN(NAME=&quot;customer_pref_dist.chg_date&quot;) COLUMN(NAME=&quot;customer_pref_dist.chg_user&quot;) COLUMN(NAME=&quot;customer_pref_dist.chg_term&quot;) COLUMN(NAME=&quot;customer_a.cust_name&quot;) COLUMN(NAME=&quot;customer_a.city&quot;) COLUMN(NAME=&quot;customer_c.cust_name&quot;) COLUMN(NAME=&quot;customer_b.cust_name&quot;) COLUMN(NAME=&quot;customer_c.site_code__pbus&quot;) JOIN (LEFT=&quot;customer_pref_dist.cust_code&quot; OP =&quot;=&quot;RIGHT=&quot;customer_a.cust_code&quot; OUTER1 =&quot;customer_pref_dist.cust_code&quot; ) JOIN (LEFT=&quot;customer_pref_dist.cust_code__stk&quot; OP =&quot;=&quot;RIGHT=&quot;customer_b.cust_code&quot; OUTER1 =&quot;customer_pref_dist.cust_code__stk&quot; ) JOIN (LEFT=&quot;customer_pref_dist.cust_code__dist&quot; OP =&quot;=&quot;RIGHT=&quot;customer_c.cust_code&quot; OUTER1 =&quot;customer_pref_dist.cust_code__dist&quot; )) </retrieve>
<update>customer_pref_dist</update>
</TableDefinition><TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Hospital Code</text>
<border>0</border>
<color>0</color>
<x>10</x>
<y>100</y>
<height>15</height>
<width>100</width>
<updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
</TableDefinition>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Customer :</text>
<border>2</border>
<color>33554432</color>
<x>2</x>
<y>2</y>
<height>16</height>
<width>66</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Stockist Code</text>
<border>0</border>
<color>0</color>
<x>20</x>
<y>700</y>
<height>15</height>
<width>100</width>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Stockist :</text>
<border>2</border>
<color>33554432</color>
<x>70</x>
<y>2</y>
<height>16</height>
<width>89</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__stk_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Distributor Code</text>
<border>0</border>
<color>0</color>
<x>30</x>
<y>400</y>
<height>15</height>
<width>100</width>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Distributor :</text>
<border>2</border>
<color>33554432</color>
<x>161</x>
<y>2</y>
<height>16</height>
<width>92</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__dist_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Hospital Name</text>
<border>0</border>
<color>0</color>
<x>40</x>
<y>300</y>
<height>15</height>
<width>500</width>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Add Date</text>
<border>2</border>
<color>33554432</color>
<x>255</x>
<y>2</y>
<height>16</height>
<width>132</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>hosp_name_t</name>
<name>add_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Hospital City</text>
<border>0</border>
<color>0</color>
<x>50</x>
<y>500</y>
<height>15</height>
<width>500</width>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Add User</text>
<border>2</border>
<color>33554432</color>
<x>389</x>
<y>2</y>
<height>16</height>
<width>66</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>city_t</name>
<name>add_user_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Stockist Name</text>
<border>0</border>
<color>0</color>
<x>60</x>
<y>200</y>
<height>15</height>
<width>500</width>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Add Term</text>
<border>2</border>
<color>33554432</color>
<x>457</x>
<y>2</y>
<height>16</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stock_cust_name_t</name>
<name>add_term_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Distributor Name</text>
<border>0</border>
<color>0</color>
<x>70</x>
<y>600</y>
<height>15</height>
<width>500</width>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Chg Date</text>
<border>2</border>
<color>33554432</color>
<x>555</x>
<y>2</y>
<height>16</height>
<width>132</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>dist_cust_name_t</name>
<name>chg_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Distributor Site</text>
<border>0</border>
<color>0</color>
<x>80</x>
<y>800</y>
<height>15</height>
<width>300</width>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Chg User</text>
<border>2</border>
<color>33554432</color>
<x>689</x>
<y>2</y>
<height>16</height>
<width>66</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code__pbus_t</name>
<name>chg_user_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Add Date</text>
<border>0</border>
<color>0</color>
<x>90</x>
<y>900</y>
<height>15</height>
<width>50</width>
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Chg Term</text>
<border>2</border>
<color>33554432</color>
<x>757</x>
<y>2</y>
<height>16</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_date_t</name>
<name>chg_term_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Add User</text>
<border>0</border>
<color>0</color>
<x>100</x>
<y>1000</y>
<height>15</height>
<width>100</width>
<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>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_user_t</name>
<name>cust_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>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Add Terminal</text>
<border>0</border>
<color>0</color>
<x>110</x>
<y>1100</y>
<height>15</height>
<width>150</width>
<id>2</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>2</border>
<color>33554432</color>
<x>70</x>
<y>2</y>
<height>19</height>
<width>89</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_term_t</name>
<name>cust_code__stk</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>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change Date</text>
<border>0</border>
<color>0</color>
<x>120</x>
<y>1200</y>
<height>15</height>
<width>50</width>
<id>3</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>2</border>
<color>33554432</color>
<x>161</x>
<y>2</y>
<height>19</height>
<width>92</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date_t</name>
<name>cust_code__dist</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>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change User</text>
<border>0</border>
<color>0</color>
<x>130</x>
<y>1300</y>
<height>15</height>
<width>100</width>
<id>4</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>2</border>
<color>33554432</color>
<x>255</x>
<y>2</y>
<height>19</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user_t</name>
<name>add_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>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change Terminal</text>
<border>0</border>
<color>0</color>
<x>140</x>
<y>1400</y>
<height>15</height>
<width>150</width>
<id>5</id>
<alignment>0</alignment>
<tabsequence>50</tabsequence>
<border>2</border>
<color>33554432</color>
<x>389</x>
<y>2</y>
<height>19</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term_t</name>
<name>add_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>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>6</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>0</color>
<x>20</x>
<y>100</y>
<height>15</height>
<width>100</width>
<tabsequence>60</tabsequence>
<border>2</border>
<color>33554432</color>
<x>457</x>
<y>2</y>
<height>19</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code</name>
<name>add_term</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
<required>yes</required>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>7</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>0</color>
<x>30</x>
<y>700</y>
<height>15</height>
<width>100</width>
<format>[general]</format>
<tabsequence>70</tabsequence>
<border>2</border>
<color>33554432</color>
<x>555</x>
<y>2</y>
<height>19</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__stk</name>
<name>chg_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
<required>yes</required>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>8</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>0</color>
<x>40</x>
<y>400</y>
<height>15</height>
<width>100</width>
<tabsequence>80</tabsequence>
<border>2</border>
<color>33554432</color>
<x>689</x>
<y>2</y>
<height>19</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__dist</name>
<name>chg_user</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
<required>yes</required>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>50</x>
<y>300</y>
<height>15</height>
<width>500</width>
<tabsequence>90</tabsequence>
<border>2</border>
<color>33554432</color>
<x>757</x>
<y>2</y>
<height>19</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>hosp_name</name>
<name>chg_term</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>100</limit>
<case>upper</case>
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>10</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>60</x>
<y>500</y>
<height>15</height>
<width>500</width>
<format>[general]</format>
<border>0</border>
<color>33554432</color>
<x>856</x>
<y>0</y>
<height>16</height>
<width>293</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>city</name>
<name>cust_name</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>50</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>70</x>
<y>200</y>
<height>15</height>
<width>500</width>
<format>[general]</format>
<text>Customer Name</text>
<border>0</border>
<color>33554432</color>
<x>855</x>
<y>1</y>
<height>19</height>
<width>294</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stock_cust_name</name>
<name>cust_name_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>100</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<face>Arial</face>
<height>-12</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<color>1073741824</color>
</background>
</ColumnObject>
<ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>11</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>80</x>
<y>600</y>
<height>15</height>
<width>500</width>
<format>[general]</format>
<border>0</border>
<color>33554432</color>
<x>1152</x>
<y>0</y>
<height>16</height>
<width>116</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>dist_cust_name</name>
<name>city</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>100</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>90</x>
<y>800</y>
<height>15</height>
<width>300</width>
<format>[general]</format>
<text>City</text>
<border>0</border>
<color>33554432</color>
<x>1151</x>
<y>1</y>
<height>19</height>
<width>117</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code__pbus</name>
<name>city_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>30</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<face>Arial</face>
<height>-12</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<color>1073741824</color>
</background>
</ColumnObject>
<ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>100</x>
<y>900</y>
<height>15</height>
<width>50</width>
<format>dd/mm/yy</format>
<border>0</border>
<color>33554432</color>
<x>1271</x>
<y>0</y>
<height>16</height>
<width>293</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_date</name>
<name>cust_name_1</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<focusrectangle>no</focusrectangle>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>110</x>
<y>1000</y>
<height>15</height>
<width>100</width>
<format>[general]</format>
<text>Stockist Name :</text>
<border>0</border>
<color>33554432</color>
<x>1270</x>
<y>1</y>
<height>19</height>
<width>294</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_user</name>
<name>customer_cust_name_1_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<face>Arial</face>
<height>-12</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<color>1073741824</color>
</background>
</ColumnObject>
<ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>13</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>120</x>
<y>1100</y>
<height>15</height>
<width>150</width>
<format>[general]</format>
<border>0</border>
<color>33554432</color>
<x>1567</x>
<y>0</y>
<height>16</height>
<width>293</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_term</name>
<name>cust_name_2</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>130</x>
<y>1200</y>
<height>15</height>
<width>50</width>
<format>dd/mm/yy</format>
<text>Distributor Name :</text>
<border>0</border>
<color>33554432</color>
<x>1566</x>
<y>1</y>
<height>19</height>
<width>294</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</name>
<name>cust_name_2_t</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<focusrectangle>no</focusrectangle>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<face>Arial</face>
<height>-12</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<color>1073741824</color>
</background>
</ColumnObject>
<ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>14</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>140</x>
<y>1300</y>
<height>15</height>
<width>100</width>
<format>[general]</format>
<border>0</border>
<color>33554432</color>
<x>1863</x>
<y>0</y>
<height>16</height>
<width>224</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<name>site_code__pbus</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<TextObject>
<band>Header</band>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>150</x>
<y>1400</y>
<height>15</height>
<width>150</width>
<format>[general]</format>
<text>Site</text>
<border>0</border>
<color>33554432</color>
<x>1862</x>
<y>1</y>
<height>19</height>
<width>225</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<name>site_code__pbus_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<face>Arial</face>
<height>-12</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<color>1073741824</color>
</background>
</ColumnObject>
<HtmlTable>
</TextObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
......@@ -1123,5 +1053,4 @@
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
</Sybase_eDataWindow>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<!DOCTYPE Sybase_eDataWindow>
<Sybase_eDataWindow>
<Release>9</Release>
<BaseDefinition>
<units>1</units>
<timer_interval>0</timer_interval>
<color>79741120</color>
<color>1073741824</color>
<processing>0</processing>
<HTMLDW>no</HTMLDW>
<print>
......@@ -39,784 +39,667 @@
<color>536870912</color>
</Footer>
<Detail>
<height>523</height>
<height>387</height>
<color>536870912</color>
</Detail>
<TableDefinition>
<table_column>
<TableDefinition>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>cust_code</name>
<dbname>customer_pref_dist.cust_code</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
</table_column>
<table_column>
<type size="100">varchar</type>
<name>stock_cust_name</name>
<dbname>customer_pref_dist.stock_cust_name</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
</table_column>
<table_column>
<type size="100">varchar</type>
<name>hosp_name</name>
<dbname>customer_pref_dist.hosp_name</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
</table_column>
<table_column>
<table_column>
<type size="10">char</type>
<name>cust_code__dist</name>
<dbname>customer_pref_dist.cust_code__dist</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
</table_column>
<table_column>
<type size="50">varchar</type>
<name>city</name>
<dbname>customer_pref_dist.city</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
</table_column>
<table_column>
<type size="100">varchar</type>
<name>dist_cust_name</name>
<dbname>customer_pref_dist.dist_cust_name</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
</table_column>
<table_column>
<type size="10">char</type>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>cust_code__stk</name>
<dbname>customer_pref_dist.cust_code__stk</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
</table_column>
<table_column>
<type size="30">varchar</type>
<name>site_code__pbus</name>
<dbname>customer_pref_dist.site_code__pbus</dbname>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<updatewhereclause>yes</updatewhereclause>
<name>cust_code__dist</name>
<dbname>customer_pref_dist.cust_code__dist</dbname>
</table_column>
<table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>add_date</name>
<dbname>customer_pref_dist.add_date</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<initial>today()</initial>
</table_column>
<table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>add_user</name>
<dbname>customer_pref_dist.add_user</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<initial>logged_in_user()</initial>
</table_column>
<table_column>
<type size="15">varchar</type>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>add_term</name>
<dbname>customer_pref_dist.add_term</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<initial>logged_in_terminal()</initial>
</table_column>
<table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_date</name>
<dbname>customer_pref_dist.chg_date</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
</table_column>
<table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_user</name>
<dbname>customer_pref_dist.chg_user</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
</table_column>
<table_column>
<type size="15">varchar</type>
<table_column>
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_term</name>
<dbname>customer_pref_dist.chg_term</dbname>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
</table_column>
<retrieve>SELECT CUSTOMER_PREF_DIST.CUST_CODE AS CUST_CODE, CUSTOMER_PREF_DIST.STOCK_CUST_NAME AS STOCK_CUST_NAME, CUSTOMER_PREF_DIST.HOSP_NAME AS HOSP_NAME, CUSTOMER_PREF_DIST.CUST_CODE__DIST AS CUST_CODE__DIST, CUSTOMER_PREF_DIST.CITY AS CITY, CUSTOMER_PREF_DIST.DIST_CUST_NAME AS DIST_CUST_NAME, CUSTOMER_PREF_DIST.CUST_CODE__STK AS CUST_CODE__STK, CUSTOMER_PREF_DIST.SITE_CODE__PBUS AS SITE_CODE__PBUS, CUSTOMER_PREF_DIST.ADD_DATE AS ADD_DATE, CUSTOMER_PREF_DIST.ADD_USER AS ADD_USER, CUSTOMER_PREF_DIST.ADD_TERM AS ADD_TERM, CUSTOMER_PREF_DIST.CHG_DATE AS CHG_DATE, CUSTOMER_PREF_DIST.CHG_USER AS CHG_USER, CUSTOMER_PREF_DIST.CHG_TERM AS CHG_TERM
FROM CUSTOMER_PREF_DIST
LEFT JOIN CUSTOMER ON CUSTOMER_PREF_DIST.CUST_CODE = CUSTOMER.CUST_CODE LEFT JOIN CUSTOMER ON CUSTOMER_PREF_DIST.CUST_CODE__STK = CUSTOMER.CUST_CODE LEFT JOIN CUSTOMER ON CUSTOMER_PREF_DIST.CUST_CODE__DIST = CUSTOMER.CUST_CODE WHERE CUSTOMER_PREF_DIST.CUST_CODE = ? AND CUSTOMER_PREF_DIST.CUST_CODE__STK = ? </retrieve>
<updatewhere>0</updatewhere>
<table_column>
<type size="50">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>cust_name</name>
<dbname>customer.cust_name</dbname>
</table_column>
<table_column>
<type size="20">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>city</name>
<dbname>customer.city</dbname>
</table_column>
<table_column>
<type size="50">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>cust_name_1</name>
<dbname>customer.cust_name</dbname>
</table_column>
<table_column>
<type size="50">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>cust_name_2</name>
<dbname>customer.cust_name</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<updatewhereclause>yes</updatewhereclause>
<name>site_code__pbus</name>
<dbname>customer.site_code__pbus</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;customer_pref_dist&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_a&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_b&quot; ) TABLE(NAME=&quot;customer&quot; ALIAS=&quot;customer_c&quot; ) COLUMN(NAME=&quot;customer_pref_dist.cust_code&quot;) COLUMN(NAME=&quot;customer_pref_dist.cust_code__stk&quot;) COLUMN(NAME=&quot;customer_pref_dist.cust_code__dist&quot;) COLUMN(NAME=&quot;customer_pref_dist.add_date&quot;) COLUMN(NAME=&quot;customer_pref_dist.add_user&quot;) COLUMN(NAME=&quot;customer_pref_dist.add_term&quot;) COLUMN(NAME=&quot;customer_pref_dist.chg_date&quot;) COLUMN(NAME=&quot;customer_pref_dist.chg_user&quot;) COLUMN(NAME=&quot;customer_pref_dist.chg_term&quot;) COLUMN(NAME=&quot;customer_a.cust_name&quot;) COLUMN(NAME=&quot;customer_a.city&quot;) COLUMN(NAME=&quot;customer_b.cust_name&quot;) COLUMN(NAME=&quot;customer_c.cust_name&quot;) COLUMN(NAME=&quot;customer_c.site_code__pbus&quot;) JOIN (LEFT=&quot;customer_pref_dist.cust_code&quot; OP =&quot;=&quot;RIGHT=&quot;customer_a.cust_code&quot; OUTER1 =&quot;customer_pref_dist.cust_code&quot; ) JOIN (LEFT=&quot;customer_pref_dist.cust_code__stk&quot; OP =&quot;=&quot;RIGHT=&quot;customer_b.cust_code&quot; OUTER1 =&quot;customer_pref_dist.cust_code__stk&quot; ) JOIN (LEFT=&quot;customer_pref_dist.cust_code__dist&quot; OP =&quot;=&quot;RIGHT=&quot;customer_c.cust_code&quot; OUTER1 =&quot;customer_pref_dist.cust_code__dist&quot; )WHERE( EXP1 =&quot;customer_pref_dist.cust_code&quot; OP =&quot;=&quot; EXP2 =&quot;:cust_code&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;customer_pref_dist.cust_code__stk&quot; OP =&quot;=&quot; EXP2 =&quot;:cust_code__stk&quot; ) ) ARG(NAME = &quot;cust_code&quot; TYPE = string) ARG(NAME = &quot;cust_code__stk&quot; TYPE = string) </retrieve>
<update>customer_pref_dist</update>
<updatewhere>1</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<update>customer_pref_dist</update><argument>
<table_name>customer_pref_dist</table_name>
<argument>
<name>cust_code</name>
<type>string</type>
</argument>
<argument>
<table_name>customer_pref_dist</table_name>
<argument>
<name>cust_code__stk</name>
<type>string</type>
</argument>
</TableDefinition><TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Hospital Code</text>
<border>0</border>
<color>0</color>
<x>10</x>
<y>100</y>
<height>15</height>
<width>100</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Stockist Name</text>
<border>0</border>
<color>0</color>
<x>60</x>
<y>200</y>
<height>15</height>
<width>500</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stock_cust_name_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
</TableDefinition>
<GroupBox>
<band>Detail</band>
<alignment>1</alignment>
<text>Hospital Name</text>
<border>0</border>
<color>0</color>
<x>40</x>
<y>300</y>
<height>15</height>
<width>500</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>hosp_name_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Distributor Code</text>
<border>0</border>
<color>0</color>
<x>30</x>
<y>400</y>
<height>15</height>
<width>100</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__dist_t</name>
<text>Basic</text>
<border>2</border>
<color>33554432</color>
<x>55</x>
<y>9</y>
<height>150</height>
<width>591</width>
<name>gb_1</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<color>1073741824</color>
</background>
</TextObject>
<TextObject>
</GroupBox>
<GroupBox>
<band>Detail</band>
<alignment>1</alignment>
<text>Hospital City</text>
<border>0</border>
<color>0</color>
<x>50</x>
<y>500</y>
<height>15</height>
<width>500</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>city_t</name>
<text>Others</text>
<border>2</border>
<color>33554432</color>
<x>52</x>
<y>166</y>
<height>213</height>
<width>300</width>
<name>gb_2</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<color>1073741824</color>
</background>
</TextObject>
<TextObject>
</GroupBox>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Distributor Name</text>
<border>0</border>
<color>0</color>
<x>70</x>
<y>600</y>
<height>15</height>
<width>500</width>
<text>Add Date:</text>
<border>2</border>
<color>33554432</color>
<x>91</x>
<y>181</y>
<height>16</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>dist_cust_name_t</name>
<name>add_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Stockist Code</text>
<border>0</border>
<color>0</color>
<x>20</x>
<y>700</y>
<height>15</height>
<width>100</width>
<id>4</id>
<alignment>0</alignment>
<tabsequence>40</tabsequence>
<border>2</border>
<color>33554432</color>
<x>191</x>
<y>181</y>
<height>19</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__stk_t</name>
<name>add_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>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Distributor Site</text>
<border>0</border>
<color>0</color>
<x>80</x>
<y>800</y>
<height>15</height>
<width>300</width>
<text>Add User:</text>
<border>2</border>
<color>33554432</color>
<x>91</x>
<y>215</y>
<height>16</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code__pbus_t</name>
<name>add_user_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Add Date</text>
<border>0</border>
<color>0</color>
<x>90</x>
<y>900</y>
<height>15</height>
<width>50</width>
<id>5</id>
<alignment>0</alignment>
<tabsequence>50</tabsequence>
<border>2</border>
<color>33554432</color>
<x>191</x>
<y>215</y>
<height>19</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_date_t</name>
<name>add_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>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Add User</text>
<border>0</border>
<color>0</color>
<x>100</x>
<y>1000</y>
<height>15</height>
<width>100</width>
<text>Add Term:</text>
<border>2</border>
<color>33554432</color>
<x>91</x>
<y>249</y>
<height>16</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_user_t</name>
<name>add_term_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Add Terminal</text>
<border>0</border>
<color>0</color>
<x>110</x>
<y>1100</y>
<height>15</height>
<width>150</width>
<id>6</id>
<alignment>0</alignment>
<tabsequence>60</tabsequence>
<border>2</border>
<color>33554432</color>
<x>191</x>
<y>249</y>
<height>19</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_term_t</name>
<name>add_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>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change Date</text>
<border>0</border>
<color>0</color>
<x>120</x>
<y>1200</y>
<height>15</height>
<width>50</width>
<text>Chg Date:</text>
<border>2</border>
<color>33554432</color>
<x>91</x>
<y>283</y>
<height>16</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change User</text>
<border>0</border>
<color>0</color>
<x>130</x>
<y>1300</y>
<height>15</height>
<width>100</width>
<id>7</id>
<alignment>0</alignment>
<tabsequence>70</tabsequence>
<border>2</border>
<color>33554432</color>
<x>191</x>
<y>283</y>
<height>19</height>
<width>132</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user_t</name>
<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>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change Terminal</text>
<border>0</border>
<color>0</color>
<x>140</x>
<y>1400</y>
<height>15</height>
<width>150</width>
<text>Chg User:</text>
<border>2</border>
<color>33554432</color>
<x>91</x>
<y>317</y>
<height>16</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term_t</name>
<name>chg_user_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>8</id>
<alignment>0</alignment>
<tabsequence>10</tabsequence>
<border>5</border>
<color>0</color>
<x>10</x>
<y>100</y>
<height>15</height>
<width>100</width>
<tabsequence>80</tabsequence>
<border>2</border>
<color>33554432</color>
<x>191</x>
<y>317</y>
<height>19</height>
<width>66</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code</name>
<name>chg_user</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
<required>yes</required>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>60</x>
<y>200</y>
<height>15</height>
<width>500</width>
<format>[general]</format>
<alignment>1</alignment>
<text>Chg Term:</text>
<border>2</border>
<color>33554432</color>
<x>91</x>
<y>351</y>
<height>16</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>stock_cust_name</name>
<name>chg_term_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>100</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>9</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>40</x>
<y>300</y>
<height>15</height>
<width>500</width>
<tabsequence>90</tabsequence>
<border>2</border>
<color>33554432</color>
<x>191</x>
<y>351</y>
<height>19</height>
<width>96</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>hosp_name</name>
<name>chg_term</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>100</limit>
<case>upper</case>
<limit>15</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>0</color>
<x>30</x>
<y>400</y>
<height>15</height>
<width>100</width>
<format>[general]</format>
<alignment>1</alignment>
<text>Distributor :</text>
<border>2</border>
<color>33554432</color>
<x>91</x>
<y>104</y>
<height>16</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>cust_code__dist</name>
<name>cust_code__dist_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<imemode>0</imemode>
<required>yes</required>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>3</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>50</x>
<y>500</y>
<height>15</height>
<width>500</width>
<tabsequence>30</tabsequence>
<border>2</border>
<color>33554432</color>
<x>191</x>
<y>104</y>
<height>16</height>
<width>106</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>city</name>
<name>cust_code__dist</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>50</limit>
<case>upper</case>
<limit>10</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>70</x>
<y>600</y>
<height>15</height>
<width>500</width>
<format>[general]</format>
<alignment>1</alignment>
<text>Stockist :</text>
<border>2</border>
<color>33554432</color>
<x>91</x>
<y>73</y>
<height>16</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>dist_cust_name</name>
<name>cust_code__stk_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>100</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>0</color>
<x>20</x>
<y>700</y>
<height>15</height>
<width>100</width>
<tabsequence>20</tabsequence>
<border>2</border>
<color>33554432</color>
<x>191</x>
<y>73</y>
<height>16</height>
<width>106</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -825,336 +708,237 @@
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
<required>yes</required>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>80</x>
<y>800</y>
<height>15</height>
<width>300</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code__pbus</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>30</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>2</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>90</x>
<y>900</y>
<height>15</height>
<width>50</width>
<format>dd/mm/yy</format>
<alignment>1</alignment>
<text>Customer :</text>
<border>2</border>
<color>33554432</color>
<x>91</x>
<y>36</y>
<height>16</height>
<width>96</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_date</name>
<name>cust_code_t</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<focusrectangle>no</focusrectangle>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>1</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>100</x>
<y>1000</y>
<height>15</height>
<width>100</width>
<tabsequence>10</tabsequence>
<border>2</border>
<color>33554432</color>
<x>191</x>
<y>36</y>
<height>19</height>
<width>106</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_user</name>
<name>cust_code</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<autohscroll>yes</autohscroll>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>110</x>
<y>1100</y>
<height>15</height>
<width>150</width>
<format>[general]</format>
<border>2</border>
<color>33554432</color>
<x>301</x>
<y>73</y>
<height>16</height>
<width>130</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>add_term</name>
<name>cust_name_1</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>13</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>120</x>
<y>1200</y>
<height>15</height>
<width>50</width>
<format>dd/mm/yy</format>
<border>2</border>
<color>33554432</color>
<x>301</x>
<y>104</y>
<height>16</height>
<width>130</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</name>
<name>cust_name_2</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>dd/mm/yy</mask>
<focusrectangle>no</focusrectangle>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>10</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>130</x>
<y>1300</y>
<height>15</height>
<width>100</width>
<format>[general]</format>
<border>2</border>
<color>33554432</color>
<x>301</x>
<y>36</y>
<height>19</height>
<width>130</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<name>cust_name</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>10</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
<ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>2</id>
<id>11</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>140</x>
<y>1400</y>
<height>15</height>
<width>150</width>
<format>[general]</format>
<border>2</border>
<color>33554432</color>
<x>435</x>
<y>36</y>
<height>19</height>
<width>118</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<name>city</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>15</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<face>Arial</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
</background>
</ColumnObject>
<GroupBox>
<band>Detail</band>
<text>Basic</text>
<border>2</border>
<color>33554432</color>
<x>5</x>
<y>100</y>
<height>419</height>
<width>651</width>
<name>gb_1</name>
<visible>1</visible>
<font>
<face>Liberation Sans</face>
<height>-11</height>
<weight>400</weight>
<family>2</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1073741824</color>
<mode>1</mode>
<color>536870912</color>
</background>
</GroupBox>
<GroupBox>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<text>Other Information</text>
<id>14</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>2</border>
<color>33554432</color>
<x>5</x>
<y>900</y>
<height>419</height>
<width>651</width>
<name>gb_1</name>
<x>435</x>
<y>104</y>
<height>16</height>
<width>118</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>site_code__pbus</name>
<visible>1</visible>
<font>
<face>Liberation Sans</face>
<height>-11</height>
<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>
<mode>1</mode>
<color>536870912</color>
</background>
</GroupBox>
<HtmlTable>
</ColumnObject>
<HtmlTable>
<border>1</border>
</HtmlTable>
<HtmlGen>
......@@ -1180,5 +964,4 @@
<distill.custompostscript>0</distill.custompostscript>
<xslfop.print>0</xslfop.print>
</Export.PDF>
</Sybase_eDataWindow>
</Sybase_eDataWindow>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment