You are on page 1of 3

Workflow Name: RA_CheckContractParty

Input Argument:

In_FMCType
In_Config

Output Argument:

Out_dtContactDetails
Out_isMoveToStep22
Out_ErrorMessage

Pseudo Code:

If(in_FMCType.ToUpper ="FMC")
{
Attach Browser
{
Do
{
Invoke HelperMoveNextTab.xaml
Invoke HelperWaitLoadinginProgress.xaml
New Dictionary:
dictBLParty = new Dictionary(of String, String)
Get:
Shipper Code
Shipper Name
Add to Dictionary
Get:
Forwarder Code
Forwarder Name
Add to Dictionary
Get:
Consignee Code
Consignee Name
Add to Dictionary
Get:
Notify Party Code
Notify Party
Add to Dictionary
Get:
SC Contact
Multiple Assign:
dtActualContactName = New DataTable()
dtContactName = New DataTable()
if (strSCContact<>"")
{
Click Spyglass
Get Row Count
If (strRowExists<>"[0 / 0]")
{
Invoke HelperSelectCompleteTable.xaml
}
Get Row Count Actual
If(strActualRowCount<>"[0 / 0]")
{
Invoke HelperSelectCompleteTable.xaml
}
Click Close Button
Merge Data Table
}
Else
{
Almost same process with IF
}

Build Data Table = dtMatchBLParty

For Each item in dictBLParty.Keys


{
If (dtContactName IsNot Nothing andalso
dtContactName.Select("[Column1]='"& item.ToString.Replace("'","''") &"' And [Column1]<>''
").Count()>0)
{
dtMatchBLParty = dtContactName.Select("[Column1]='"&
item.ToString &"' ").CopyToDataTable
}
If (dtMatchBLParty.Rows.Count>0)
{
Break
}
}
If (dtMatchBLParty.Rows.Count>0)
{
out_isMoveToStep22 = False
}
Else
{
out_ErrorMessage = "B Error: BL Parties not found under contract
party or affiliates"
out_isMoveToStep22 = True
}
}

You might also like