Documente Academic
Documente Profesional
Documente Cultură
App_Watcher
CurrWnd Long
Length Long
TaskName String
Parent Long
Running_YN int
Running_LP int
Location Picker
Trigger_Count int
Used in Process Trigger_Point int
Last_Read_Date string
MySize As Long
sFileText String
iFileNo int
For Log comp String
loc int
dt_val String
t String
Trigger_Timer_Timer()
Load Plan
coil As String
loc_id As String
For Trigeer Timer sql_insert_count As Integer
ora_update_count As Integer
Update_YN As Integer
Insert_YN As Integer
Fin As Integer
Trigger_Count = 0
Starting Handshaking
Fetch newly arrived
Sheets
from MYSQL& Update Loading Plan Entry
Date and Time
the
same in Oracle
IF recordcount>0
Fresh Loading Plan
For Insert
Fresh Loading Plan
Inserted
to MYSQL --" &
sql_insert_count
If Insert_YN > 0
Yard Management System
coil String
loc_id String
ora_upcount Integer
Update_YN Integer
UID Long
Check LocationID
MaterialID
UID
IF Update_YN=0
update fg_location set
location = @sql_id,
loc_entry_date = @dt_val
where comp_code ="comp" and loc_code ="loc" and coil_pkt_no = "sql_coil"
from
Do__Head h, loading_plan l , Party_mast_detail p,
party_mast_head pp
)
Select l.COMP_CODE,l.LOC_CODE ,l.FIN_YEAR ,l.DO_SERIES , l.DO_NO ,
l.DO_SL_NO,to_char(h.DO_DATE,'DD/MM/YYYY') do_date,
l.Plan_no,h.pARTY_CODE ,h.PARTY_LOC_CODE,pp.PARTY_NAME,p.CITY ,
l.STATUS , l.product_code, l.COIL_PKT_NO ,l.GAUGE ,l.WIDTH ,l.LENGTH ,
l.WEIGHT ,l.GROSS_WEIGHT , l.user_ID ,
to_char(sysdate,'DD/MM/YYYY HH24:MI:SS') UPLOADED_DATE_TIME,
l.IS_ACTIVE, l.token_no ,l.vehicle_no, l.vehicle_capacity, l.update_user_id
, to_char(l.update_date,'DD/MM/YYYY HH24:MI:SS')
update dbisclnew.tbldispatch
set do_series = "do_series" , do_no = "do_no"
, do_sl_no = "do_sl_no", do_date ="do_date" party_code = "party_code"
, party_loc_code = "party_loc_code", party_name = "party_name"
, city ="city" , product_code = "NULL", gauge = "gauge", width = "width"
, weight = "weight") , gross_weight = "gross_weight" ,
material_type = "NULL" , vehicle_no = "Vehicle_no" , status = 1
, is_active ="is_active", updated_by = "update_user_id", updated_date_time =
"update_date_time , token_no = "Token_NO" , total_capacity =
"vehicle_capacity"
where comp_code ="comp_code") and loc_code ="loc_code")
and fin_year ="fin_year") and plan_no = "plan_no")
and coil_pkt_no = "coil_pkt_no"
update loading_plan
set trf_yms = 'Y'
where comp_code = "comp_code"
and loc_code = "loc_code"
and fin_year = "fin_year"
and plan_no = "plan_no"
and coil_pkt_no ="coil_pkt_no"