Please enable JavaScript.
Coggle requires JavaScript to display documents.
SG15702 (Init (Set parameter (Parameter:pageIndex = 0, Parameter:searchDiv…
SG15702
Init
Init HTML, Spread config
Init Component
Init store, service
Save uniqueNoList from transitData.uniqueNoList
Set header name/ icon to TableGroup tblBasic (ref tab TableGroup)
Set parameter
Parameter:pageIndex = 0
Parameter:searchDiv = "1":次方向
Parameter:isDelete = false
Parameter:isCallAPI = true
Set
variable
isUpdate=false
go to
handle pageDisplay :star:
:
Implement some necessary validator functions: KoufuNo, KoufuDate, SeiriNo, SelectRoute
umpanRoute changed
Save values
beforeGsyohaCdShuun ← component:driver:GyoshaCd
beforeDriverText ← component:driver.textValue
beforeDriverSelectedValue ← component:driver.selectedValue
beforeCarText ← component:car.textValue
beforeCarSelectedValue ← component:car.selectedValue
is selected
true
shuunGyoshaNm = selected umpanRoute (UmpanRouteDto.GyoshaNmShuun)
shuunGyoshaAddress=selected umpanRoute (UmpanRouteDto.AddressShuun)
shuunGyoshaTel=selected umpanRoute (UmpanRouteDto.TelShuun)
driver
Blank input text
itemSource=SearchResponse.DriverList[i].GyoshaCd == selected umpanRoute.GyoshaCdShuun
car
Blank input text
itemSource=SearchResponse.CarList[i].GyoshaCd == selected umpanRoute.GyoshaCdShuun
umpanToJigyojoNm=selected umpanRoute (UmpanRouteDto.JigyojoNmUmpan)
shobunJigyojoNm=selected umpanRoute (UmpanRouteDto.JigyojoNmShobun)
shobunJigyojoAddress=selected umpanRoute (UmpanRouteDto.AddressShobun)
shobunJigyojoTel=selected umpanRoute (UmpanRouteDto.TelShobun)
false
Clear value
shuunGyoshaNm,shuunGyoshaAddress,shuunGyoshaTel,driver (selectedValue), car(selectedValue), umpanToJigyojoNm, shobunJigyojoNm, shobunJigyojoAddress, shobunJigyojoTel
Clear itemsSource of
driver
var
after reinit value, if selected umpanRoute UmpanRouteDto.GyoshaCdShuun==beforeGsyohaCdShuun
true
driver
selectedValue =beforeDriverSelectedValue
textValue=beforeDriverTextValue
car
selectedValue=beforeCarSelectedValue
textValue=beforeCarTextValue
set
Variable
:changeUmpanRoute = true;
haikibutsuList changed
mark row have changed, koushinKubun=2,
except it has koushinKubun=1
Change background color on row changed
if change on column 排出廃棄物(haikibutsu)
Should ref tab: SG15702_Search :star:
selection column Amnt option: with AmntUnitCd=haikibutsu.AmntUnitCdDefault
selection column Packing option: PackingCd=haikibutsu.PackingCdDefault
btnUpdate clicked
single item check
correlation check
there's change of content
refer to tab JudgeChange :star:
Show dialog 1244
Click Yes
Call api Update
ref tab:
SG15702_Update
:star:
on error
show messagebar error
on success
set
Parameter:pageIndex = component:paginationHeader.currentPage - 1
Parameter:searchDiv = "2":両方向
Parameter:isDelete = false
Parameter:isCallAPI = true
Variable:isUpdate ← true
go to
handle pageDisplay :star:
:
Click no
Show dialog 1363
end process
btnUmpanRoute clicked
Variable:changeUmpanRoute = false
true
params={uniqueNoList: Variable:SearchResponse.ManiData.UniqueNo,
masterInfoList: [{jigyojoCdHaishutsu: NaviKeys.JigyojoCd, umpanRouteNo: component:umpanRoute.selectValue}]}
false
params={
masterInfoList: [{jigyojoCdHaishutsu: NaviKeys.JigyojoCd, umpanRouteNo: component:umpanRoute.selectValue}]}
Open modal CM15800 with above params
btnAddHaikibutsu clicked
Add a row as initial state :star:
with KoudhinKobun="1"
Mark that row is un committed
btnReset clicked
set Parameter:isCallAPI = false
go to
handle pageDisplay :star:
:
handle pageDisplay :star:
Parameter:isCallAPI=true
call requestAPI: SG15702/Manifest/Search
return success
SearchResponse.ManiData.UniqueNo == null
true
Parameter:isDelete == false
true
Display notification dialog: 898
false
ScreenTransitionMemory.set("SG14110", {isBack: true, isReload:
Variable
:isUpdate})
navigate to SG14110
false
Variable
:uniqueNoList ← SearchResponse.UniqueNoList
Variable
:SearchResponse ← SearchResponse
paginationHeader, paginationFooter
currentPage =
Variable
:uniqueNoList.IndexOf(SearchResponse.ManiData.UniqueNo) + 1
maxPage = SearchResponse.UniqueNoList.Length
return error
Show messageBar error
Parameter:isCallAPI=false
Bind
Variable
:SearchResponse to the components similar with when calling SearchAPI
Variable
:changeUmpanRoute ← false
Variable:
InitManiData ← Generate UpdateRequest from current input content、 UpdateRequest.ManiData of generation result
btnDeleteHaikibutsu clicked
There's Registered row > 0
true
display confirm message=1432
click yes, go to
handle remove haikibutsu
false
There's Registered row
not have data (as initial state :star:)
true
display confirm message=1704
click yes, go to
handle remove haikibutsu
false
handle remove haikibutsu
:star:
Row with KoushinKubun ="1"
remove
Row with KoushinKubun!="1"
set KoushinKubun="3"
Hide that row from spread
paginationHeader, paginationFooter changed
there's change of content
refer to tab JudgeChange :star:
Show dialog 1244
Click yes
click btnNext
"Parameter:pageIndex =Calling source component.currentPage - 1
Parameter:searchDiv = "1":次方向
Parameter:isDelete = false
Parameter:isCallAPI = true"
click btnPrev
"Parameter:pageIndex =Calling source component.currentPage - 1
Parameter:searchDiv = "0":前方向
Parameter:isDelete = false
Parameter:isCallAPI = true"
go to
handle pageDisplay :star:
btnBack clicked
there's change of content
refer to tab JudgeChange :star:
Show dialog 1244
Click Yes
ScreenTransitionMemory.set("SG14110", {isBack: true, isReload:
Variable
:isUpdate})
navigate to SG14110
Click no
End process
btnDelete clicked
display dialog 1166
Click no
End process
Click yes
Call api delete
ref tab:
SG15702_Delete
:star:
on Error
Show message bar error
on Success
display notification dialog 1198
set
Parameter:pageIndex = component:paginationHeader.currentPage - 1
Parameter:searchDiv = "2":両方向
Parameter:isDelete = true
Parameter:isCallAPI = true
Variable:isUpdate ← true
go to
handle pageDisplay :star: