Generic.xaml 147 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:s="clr-namespace:System;assembly=mscorlib"
  4. xmlns:c="clr-namespace:System.Collections;assembly=mscorlib"
  5. xmlns:ctrlCommon="clr-namespace:Aitex.Sorter.UI.Controls.Common;assembly=Aitex.Sorter.UI"
  6. xmlns:Common="clr-namespace:MECF.Framework.Common.Equipment;assembly=MECF.Framework.Common"
  7. xmlns:converter="clr-namespace:Aitex.Sorter.UI.Converter;assembly=Aitex.Sorter.UI"
  8. xmlns:cv="clr-namespace:Aitex.Sorter.UI.Converter"
  9. xmlns:equipment="clr-namespace:MECF.Framework.Common.Equipment;assembly=MECF.Framework.Common"
  10. xmlns:common="clr-namespace:Aitex.Sorter.Common;assembly=Aitex.Sorter.Common"
  11. xmlns:common1="clr-namespace:Aitex.Sorter.Common;assembly=MECF.Framework.Common">
  12. <s:Boolean x:Key="True">True</s:Boolean>
  13. <s:Boolean x:Key="False">False</s:Boolean>
  14. <converter:FormatAndUnitConverter x:Key="formatAndUnitConverter"/>
  15. <converter:DiffPressureValueConverter x:Key="diffPressureValueConverter"/>
  16. <converter:ValueMatchConverter x:Key="valueMatchConverter" />
  17. <converter:BoolNegateConverter x:Key="boolNegateConverter"/>
  18. <converter:LoadportCassetteStateConverter x:Key="loadportCassetteStateConverter"/>
  19. <converter:BoolVisibilityConverter x:Key="boolVisibilityConverter" />
  20. <converter:WaferDropConverter x:Key="waferdropConverter" />
  21. <converter:WaferDropConverter2 x:Key="waferdropConverter2" />
  22. <converter:VisibilityConverter x:Key="visibilityConverter" />
  23. <converter:WaferConverter x:Key="waferConverter" />
  24. <converter:HideNullConverter x:Key="hideNullConverter" />
  25. <converter:SizeOffsetConvert x:Key="sizeOffsetConvert" />
  26. <converter:ValueNotMatchConverter x:Key="valueNotMatchConverter" />
  27. <converter:SlotToIndexConverter x:Key="slotToIndexConverter" />
  28. <converter:WaferIDConverter x:Key="waferIDConverter" />
  29. <converter:WaferStatusConverter x:Key="waferStatusConverter" />
  30. <converter:WaferLabelColorConverter x:Key="waferLabelColorConverter" />
  31. <converter:DiIndexDisplayConvert x:Key="DiIndexDisplayConvert" />
  32. <converter:DiValueBackgroundConvert x:Key="DiValueBackgroundConvert" />
  33. <converter:DoIndexDisplayConvert x:Key="DoIndexDisplayConvert" />
  34. <converter:AiIndexDisplayConvert x:Key="AiIndexDisplayConvert" />
  35. <converter:AoIndexDisplayConvert x:Key="AoIndexDisplayConvert" />
  36. <converter:LedConverter x:Key="ledConverter" />
  37. <converter:IndicatorStateToBoolConverter x:Key="IndicatorStateToBoolConverter" />
  38. <converter:E84AccessModeToBoolConverter x:Key="E84AccessModeToBoolConverter" />
  39. <converter:DeviceStateColorConverter x:Key="deviceStateColorConverter" />
  40. <converter:ValueWatchConverter x:Key="ValueWatchConverter" />
  41. <converter:WaferVisibilityConverter x:Key="waferVisibilityConverter" />
  42. <converter:E84StateColorConverter x:Key="e84StateColorConverter" />
  43. <converter:TicksToDateTimeConverter x:Key="ticksToDateTimeConverter" />
  44. <Style TargetType="Label" x:Key="MiddleCenterLabel" BasedOn="{StaticResource MiddleLabel}">
  45. <Setter Property="HorizontalContentAlignment" Value="Center" />
  46. <Setter Property="VerticalContentAlignment" Value="Center" />
  47. </Style>
  48. <Style TargetType="Control">
  49. <Setter Property="FontSize" Value="11" />
  50. </Style>
  51. <SolidColorBrush x:Key="CellTitle" Color="LightBlue" />
  52. <SolidColorBrush x:Key="idleWafer1" Color="LightBlue" />
  53. <SolidColorBrush x:Key="busyWafer1" Color="Cyan" />
  54. <SolidColorBrush x:Key="waitWafer1" Color="Blue" />
  55. <SolidColorBrush x:Key="completeWafer1" Color="Green" />
  56. <SolidColorBrush x:Key="errorWafer1" Color="Red" />
  57. <LinearGradientBrush x:Key="idleWafer" StartPoint="0,0" EndPoint="1,0.5">
  58. <LinearGradientBrush.GradientStops>
  59. <GradientStop Color="LightBlue" Offset="0"/>
  60. <GradientStop Color="#ff2989d8" Offset="0.5"/>
  61. <GradientStop Color="LightBlue" Offset="1"/>
  62. </LinearGradientBrush.GradientStops>
  63. </LinearGradientBrush>
  64. <LinearGradientBrush x:Key="waitWafer" StartPoint="0,0" EndPoint="1,0.5">
  65. <LinearGradientBrush.GradientStops>
  66. <GradientStop Color="#FF0EBD01" Offset="0"/>
  67. <GradientStop Color="#FF8EFF85" Offset="0.549053"/>
  68. <GradientStop Color="#FF0EBD01" Offset="1"/>
  69. </LinearGradientBrush.GradientStops>
  70. </LinearGradientBrush>
  71. <LinearGradientBrush x:Key="busyWafer" StartPoint="0,0" EndPoint="1,0.5">
  72. <LinearGradientBrush.GradientStops>
  73. <GradientStop Color="Blue" Offset="0"/>
  74. <GradientStop Color="#FFA9A9F5" Offset="0.5"/>
  75. <GradientStop Color="Blue" Offset="1"/>
  76. </LinearGradientBrush.GradientStops>
  77. </LinearGradientBrush>
  78. <LinearGradientBrush x:Key="completeWafer" StartPoint="0,0" EndPoint="1,0.5">
  79. <LinearGradientBrush.GradientStops>
  80. <GradientStop Color="Green" Offset="0"/>
  81. <GradientStop Color="#FF2CCD2C" Offset="0.5"/>
  82. <GradientStop Color="Green" Offset="1"/>
  83. </LinearGradientBrush.GradientStops>
  84. </LinearGradientBrush>
  85. <LinearGradientBrush x:Key="errorWafer" StartPoint="0,0" EndPoint="1,0.5">
  86. <LinearGradientBrush.GradientStops>
  87. <GradientStop Color="Red" Offset="0"/>
  88. <GradientStop Color="#FFF9B7B7" Offset="0.5"/>
  89. <GradientStop Color="Red" Offset="1"/>
  90. </LinearGradientBrush.GradientStops>
  91. </LinearGradientBrush>
  92. <converter:WaferColorConverter x:Key="waferColorConverter"
  93. IdleWafer="{StaticResource idleWafer}"
  94. BusyWafer="{StaticResource busyWafer}"
  95. WaitWafer="{StaticResource waitWafer}"
  96. CompleteWafer="{StaticResource completeWafer}"
  97. ErrorWafer="{StaticResource errorWafer}"
  98. />
  99. <SolidColorBrush x:Key="blueSlot" Color="#FF0C71A7" />
  100. <LinearGradientBrush x:Key="greenSlot" StartPoint="-0.00694444,0.5" EndPoint="1.00694,0.5">
  101. <LinearGradientBrush.GradientStops>
  102. <GradientStop Color="#FF19FD1A" Offset="0"/>
  103. <GradientStop Color="#FF97FFAA" Offset="0.536178"/>
  104. <GradientStop Color="#FF19FD1A" Offset="1"/>
  105. </LinearGradientBrush.GradientStops>
  106. </LinearGradientBrush>
  107. <LinearGradientBrush x:Key="lightBlueSlot" StartPoint="-0.00694444,0.5" EndPoint="1.00694,0.5">
  108. <LinearGradientBrush.GradientStops>
  109. <GradientStop Color="#FF00ECFF" Offset="0"/>
  110. <GradientStop Color="#FF068F8F" Offset="0.549053"/>
  111. <GradientStop Color="#FF00ECFF" Offset="1"/>
  112. </LinearGradientBrush.GradientStops>
  113. </LinearGradientBrush>
  114. <Style x:Key="BlockGroup" TargetType="{x:Type GroupBox}">
  115. <Setter Property="Background" Value="#FF4C5FDC" />
  116. <Setter Property="BorderBrush" Value="Black" />
  117. <Setter Property="Foreground" Value="White" />
  118. </Style>
  119. <LinearGradientBrush x:Key="contentBg" StartPoint="0.5,0" EndPoint="0.5,1">
  120. <GradientStop Color="#d6f1ff" Offset="0" />
  121. <GradientStop Color="#7fc7ed" Offset="1" />
  122. </LinearGradientBrush>
  123. <Style TargetType="Label" x:Key="label">
  124. <Setter Property="Background" Value="{StaticResource labelNormal}"/>
  125. <Setter Property="Foreground" Value="{StaticResource labelNormal_FC}"/>
  126. <Setter Property="VerticalAlignment" Value="Center"/>
  127. <Setter Property="HorizontalAlignment" Value="Center"/>
  128. <Setter Property="HorizontalContentAlignment" Value="Center" />
  129. <Setter Property="VerticalContentAlignment" Value="Center" />
  130. <Setter Property="Height" Value="40" />
  131. </Style>
  132. <Style TargetType="Label" x:Key="labelContent">
  133. <Setter Property="Background" Value="{StaticResource contentBg}" />
  134. <Setter Property="VerticalAlignment" Value="Center"/>
  135. <Setter Property="HorizontalContentAlignment" Value="Center" />
  136. <Setter Property="VerticalContentAlignment" Value="Center" />
  137. <Setter Property="HorizontalAlignment" Value="Center"/>
  138. <Setter Property="Height" Value="40" />
  139. <Setter Property="Width" Value="280" />
  140. </Style>
  141. <Style x:Key="ListViewItemStyle" TargetType="{x:Type ListViewItem}">
  142. <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
  143. </Style>
  144. <c:ArrayList x:Key="RecipeSourceTarget" />
  145. <c:ArrayList x:Key="RecipeDestinationTarget" />
  146. <c:ArrayList x:Key="RecipeAllTarget" />
  147. <c:ArrayList x:Key="WaferIDReaderList">
  148. <s:Int32>1</s:Int32>
  149. <s:Int32>2</s:Int32>
  150. </c:ArrayList>
  151. <c:ArrayList x:Key="WaferIDReaderListOnlyOne">
  152. <s:Int32>1</s:Int32>
  153. </c:ArrayList>
  154. <Grid x:Key="RecipeTemplate" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  155. <Grid.Resources>
  156. <Style TargetType="Label">
  157. <Setter Property="HorizontalAlignment" Value="Center" />
  158. <Setter Property="VerticalAlignment" Value="Center" />
  159. </Style>
  160. </Grid.Resources>
  161. <Grid.RowDefinitions>
  162. <RowDefinition Height="0" />
  163. <RowDefinition Height="40" />
  164. <RowDefinition Height="40" />
  165. <RowDefinition Height="40" />
  166. <RowDefinition Height="40" />
  167. <RowDefinition Height="40" />
  168. <RowDefinition Height="60" />
  169. <RowDefinition Height="40" />
  170. <RowDefinition Height="*" />
  171. </Grid.RowDefinitions>
  172. <Grid.ColumnDefinitions>
  173. <ColumnDefinition Width="160" />
  174. <ColumnDefinition Width="*" />
  175. </Grid.ColumnDefinitions>
  176. <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
  177. <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  178. <RadioButton Content="Both" IsChecked="{Binding CurrentRecipe.Source, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:ModuleName.System}}"/>
  179. <RadioButton Content="LP1" Margin="18,0" IsChecked="{Binding CurrentRecipe.Source, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:ModuleName.LP1}}" />
  180. <RadioButton Content="LP2" Margin="18,0" IsChecked="{Binding CurrentRecipe.Source, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:ModuleName.LP2}}" />
  181. </StackPanel>
  182. <Label Grid.Row="2" Grid.Column="0" Content="Destination:" />
  183. <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" >
  184. <RadioButton Content="Both" IsChecked="{Binding CurrentRecipe.Destination, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:ModuleName.System}}" />
  185. <RadioButton Content="LP1" Margin="18,0" IsChecked="{Binding CurrentRecipe.Destination, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:ModuleName.LP1}}" />
  186. <RadioButton Content="LP2" Margin="18,0" IsChecked="{Binding CurrentRecipe.Destination, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:ModuleName.LP2}}" />
  187. </StackPanel>
  188. <Label Grid.Row="3" Grid.Column="0" Content="Place Mode:" />
  189. <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  190. SelectedValuePath="Key"
  191. DisplayMemberPath ="Value"
  192. SelectedValue="{Binding CurrentRecipe.PlaceModeTransfer1To1}"
  193. ItemsSource="{Binding PlaceMode1To1}"
  194. />
  195. <Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
  196. <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
  197. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  198. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  199. </StackPanel>
  200. <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
  201. <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
  202. <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
  203. <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  204. <Label Grid.Row="7" Grid.Column="0" Content="Transfer Table:" />
  205. <ListView ItemContainerStyle="{StaticResource ResourceKey=ListViewItemStyle}" Grid.Row="8" Grid.Column="0" Grid.ColumnSpan="2" Margin="4,4" ItemsSource="{Binding CurrentRecipe.TransferItems}">
  206. <ListView.View>
  207. <GridView>
  208. <GridViewColumn Header="Source" Width="100" DisplayMemberBinding="{Binding SourceStation}" />
  209. <GridViewColumn Header="Slot" Width="60" DisplayMemberBinding="{Binding SourceSlot,Converter={StaticResource slotToIndexConverter}}" />
  210. <GridViewColumn Header="Destination" Width="100" DisplayMemberBinding="{Binding DestinationStation}" />
  211. <GridViewColumn Header="Slot" Width="60" DisplayMemberBinding="{Binding DestinationSlot,Converter={StaticResource slotToIndexConverter}}" />
  212. <GridViewColumn Header="Read Laser Mark" Width="160" >
  213. <GridViewColumn.CellTemplate>
  214. <DataTemplate>
  215. <CheckBox IsChecked="{Binding IsReadLaserMarker}" HorizontalAlignment="Center" />
  216. </DataTemplate>
  217. </GridViewColumn.CellTemplate>
  218. </GridViewColumn>
  219. <GridViewColumn Header="Read T7 Code" Width="160" >
  220. <GridViewColumn.CellTemplate>
  221. <DataTemplate>
  222. <CheckBox IsChecked="{Binding IsReadT7Code}" HorizontalAlignment="Center" />
  223. </DataTemplate>
  224. </GridViewColumn.CellTemplate>
  225. </GridViewColumn>
  226. <GridViewColumn Header="Align" Width="60" >
  227. <GridViewColumn.CellTemplate>
  228. <DataTemplate>
  229. <CheckBox IsChecked="{Binding IsAlign}" HorizontalAlignment="Center" />
  230. </DataTemplate>
  231. </GridViewColumn.CellTemplate>
  232. </GridViewColumn>
  233. <GridViewColumn Header="Angle" Width="80" >
  234. <GridViewColumn.CellTemplate>
  235. <DataTemplate>
  236. <TextBox Text="{Binding AlignAngle}" Width="50" Height="20" />
  237. </DataTemplate>
  238. </GridViewColumn.CellTemplate>
  239. </GridViewColumn>
  240. <GridViewColumn Header="Action" Width="85" >
  241. <GridViewColumn.CellTemplate>
  242. <DataTemplate>
  243. <Button Content="Remove" Height="28" ToolTip="Remove" Width="60" Command="{Binding DataContext.RemoveResultCommand, ElementName=root}" CommandParameter="{Binding}" />
  244. </DataTemplate>
  245. </GridViewColumn.CellTemplate>
  246. </GridViewColumn>
  247. </GridView>
  248. </ListView.View>
  249. </ListView>
  250. </Grid>
  251. <Grid x:Key="RecipeTemplate1To1" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  252. <Grid.Resources>
  253. <Style TargetType="Label">
  254. <Setter Property="HorizontalAlignment" Value="Center" />
  255. <Setter Property="VerticalAlignment" Value="Center" />
  256. </Style>
  257. </Grid.Resources>
  258. <Grid.RowDefinitions>
  259. <RowDefinition Height="0" />
  260. <RowDefinition Height="40" />
  261. <RowDefinition Height="40" />
  262. <RowDefinition Height="40" />
  263. <RowDefinition Height="40" />
  264. <RowDefinition Height="40" />
  265. <RowDefinition Height="60" />
  266. <RowDefinition Height="40" />
  267. <RowDefinition Height="*" />
  268. </Grid.RowDefinitions>
  269. <Grid.ColumnDefinitions>
  270. <ColumnDefinition Width="160" />
  271. <ColumnDefinition Width="*" />
  272. </Grid.ColumnDefinitions>
  273. <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
  274. <WrapPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  275. <ItemsControl ItemsSource="{Binding Sources}">
  276. <ItemsControl.ItemsPanel>
  277. <ItemsPanelTemplate>
  278. <WrapPanel Orientation="Horizontal" />
  279. </ItemsPanelTemplate>
  280. </ItemsControl.ItemsPanel>
  281. <ItemsControl.ItemTemplate>
  282. <DataTemplate>
  283. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  284. </DataTemplate>
  285. </ItemsControl.ItemTemplate>
  286. </ItemsControl>
  287. </WrapPanel>
  288. <Label Grid.Row="2" Grid.Column="0" Content="Destination:" />
  289. <WrapPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" >
  290. <ItemsControl ItemsSource="{Binding Destinations}">
  291. <ItemsControl.ItemsPanel>
  292. <ItemsPanelTemplate>
  293. <WrapPanel Orientation="Horizontal" />
  294. </ItemsPanelTemplate>
  295. </ItemsControl.ItemsPanel>
  296. <ItemsControl.ItemTemplate>
  297. <DataTemplate>
  298. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  299. </DataTemplate>
  300. </ItemsControl.ItemTemplate>
  301. </ItemsControl>
  302. </WrapPanel>
  303. <Label Grid.Row="3" Grid.Column="0" Content="Place Mode:" />
  304. <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  305. SelectedValuePath="Key"
  306. DisplayMemberPath ="Value"
  307. SelectedValue="{Binding CurrentRecipe.PlaceModeTransfer1To1}"
  308. ItemsSource="{Binding PlaceMode1To1}"
  309. />
  310. <Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
  311. <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
  312. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  313. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  314. </StackPanel>
  315. <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
  316. <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
  317. <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
  318. <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  319. <Label Grid.Row="7" Grid.Column="0" Content="Wafer ID Reader:" />
  320. <ComboBox Grid.Row="7" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderList}" />
  321. </Grid>
  322. <Grid x:Key="RecipeTemplate1To1OnlyOneWaferIDReader" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  323. <Grid.Resources>
  324. <Style TargetType="Label">
  325. <Setter Property="HorizontalAlignment" Value="Center" />
  326. <Setter Property="VerticalAlignment" Value="Center" />
  327. </Style>
  328. </Grid.Resources>
  329. <Grid.RowDefinitions>
  330. <RowDefinition Height="0" />
  331. <RowDefinition Height="40" />
  332. <RowDefinition Height="40" />
  333. <RowDefinition Height="40" />
  334. <RowDefinition Height="40" />
  335. <RowDefinition Height="40" />
  336. <RowDefinition Height="60" />
  337. <RowDefinition Height="40" />
  338. <RowDefinition Height="*" />
  339. </Grid.RowDefinitions>
  340. <Grid.ColumnDefinitions>
  341. <ColumnDefinition Width="160" />
  342. <ColumnDefinition Width="*" />
  343. </Grid.ColumnDefinitions>
  344. <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
  345. <WrapPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  346. <ItemsControl ItemsSource="{Binding Sources}">
  347. <ItemsControl.ItemsPanel>
  348. <ItemsPanelTemplate>
  349. <WrapPanel Orientation="Horizontal" />
  350. </ItemsPanelTemplate>
  351. </ItemsControl.ItemsPanel>
  352. <ItemsControl.ItemTemplate>
  353. <DataTemplate>
  354. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Command="{Binding SelectCommand}" CommandParameter="{Binding Index}" Margin="4,0,4,0" />
  355. </DataTemplate>
  356. </ItemsControl.ItemTemplate>
  357. </ItemsControl>
  358. </WrapPanel>
  359. <Label Grid.Row="2" Grid.Column="0" Content="Destination:" />
  360. <WrapPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" >
  361. <ItemsControl ItemsSource="{Binding Destinations}">
  362. <ItemsControl.ItemsPanel>
  363. <ItemsPanelTemplate>
  364. <WrapPanel Orientation="Horizontal" />
  365. </ItemsPanelTemplate>
  366. </ItemsControl.ItemsPanel>
  367. <ItemsControl.ItemTemplate>
  368. <DataTemplate>
  369. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Command="{Binding SelectCommand}" CommandParameter="{Binding Index}" Margin="4,0,4,0" />
  370. </DataTemplate>
  371. </ItemsControl.ItemTemplate>
  372. </ItemsControl>
  373. </WrapPanel>
  374. <Label Grid.Row="3" Grid.Column="0" Content="Place Mode:" />
  375. <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  376. SelectedValuePath="Key"
  377. DisplayMemberPath ="Value"
  378. SelectedValue="{Binding CurrentRecipe.PlaceModeTransfer1To1}"
  379. ItemsSource="{Binding PlaceMode1To1}"
  380. />
  381. <Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
  382. <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
  383. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  384. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  385. </StackPanel>
  386. <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
  387. <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
  388. <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
  389. <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  390. <Label Grid.Row="7" Grid.Column="0" Content="Wafer ID Reader:" />
  391. <ComboBox Grid.Row="7" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderListOnlyOne}" />
  392. </Grid>
  393. <Grid x:Key="RecipeTemplate1To1New" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  394. <Grid.Resources>
  395. <Style TargetType="Label">
  396. <Setter Property="HorizontalAlignment" Value="Center" />
  397. <Setter Property="VerticalAlignment" Value="Center" />
  398. </Style>
  399. </Grid.Resources>
  400. <Grid.RowDefinitions>
  401. <RowDefinition Height="0" />
  402. <RowDefinition Height="40" />
  403. <RowDefinition Height="40" />
  404. <RowDefinition Height="40" />
  405. <RowDefinition Height="40" />
  406. <RowDefinition Height="*" />
  407. <RowDefinition Height="40" />
  408. <RowDefinition Height="40" />
  409. <!--<RowDefinition Height="*" />
  410. <RowDefinition Height="*" />-->
  411. <RowDefinition Height="40" />
  412. <RowDefinition Height="40" />
  413. </Grid.RowDefinitions>
  414. <Grid.ColumnDefinitions>
  415. <ColumnDefinition Width="160" />
  416. <ColumnDefinition Width="*" />
  417. <ColumnDefinition Width="120" />
  418. </Grid.ColumnDefinitions>
  419. <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
  420. <WrapPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  421. <ItemsControl ItemsSource="{Binding Sources}">
  422. <ItemsControl.ItemsPanel>
  423. <ItemsPanelTemplate>
  424. <WrapPanel Orientation="Horizontal" />
  425. </ItemsPanelTemplate>
  426. </ItemsControl.ItemsPanel>
  427. <ItemsControl.ItemTemplate>
  428. <DataTemplate>
  429. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Command="{Binding SelectCommand}" CommandParameter="{Binding Index}" Margin="4,0,4,0" />
  430. </DataTemplate>
  431. </ItemsControl.ItemTemplate>
  432. </ItemsControl>
  433. </WrapPanel>
  434. <Label Grid.Row="2" Grid.Column="0" Content="Destination:" />
  435. <WrapPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" >
  436. <ItemsControl ItemsSource="{Binding Destinations}">
  437. <ItemsControl.ItemsPanel>
  438. <ItemsPanelTemplate>
  439. <WrapPanel Orientation="Horizontal" />
  440. </ItemsPanelTemplate>
  441. </ItemsControl.ItemsPanel>
  442. <ItemsControl.ItemTemplate>
  443. <DataTemplate>
  444. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Command="{Binding SelectCommand}" CommandParameter="{Binding Index}" Margin="4,0,4,0" />
  445. </DataTemplate>
  446. </ItemsControl.ItemTemplate>
  447. </ItemsControl>
  448. </WrapPanel>
  449. <Label Grid.Row="3" Grid.Column="0" Content="Pick Mode:" />
  450. <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  451. SelectedValuePath="Key"
  452. DisplayMemberPath ="Value"
  453. SelectedValue="{Binding CurrentRecipe.PickMode}"
  454. ItemsSource="{Binding PickMode}"
  455. />
  456. <Label Grid.Row="4" Grid.Column="0" Content="Place Mode:" />
  457. <ComboBox Grid.Row="4" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  458. SelectedValuePath="Key"
  459. DisplayMemberPath ="Value"
  460. SelectedValue="{Binding CurrentRecipe.PlaceModeTransfer1To1}"
  461. ItemsSource="{Binding PlaceMode1To1}"
  462. />
  463. <Label Grid.Row="5" Grid.Column="0" Content="Recipe:" />
  464. <ListBox Grid.Row="5" Grid.Column="1" ItemsSource="{Binding HostRecipeList}" SelectedValue="{Binding CurrentRecipe.ReadIDRecipe, Mode=TwoWay}"/>
  465. <Label Grid.Row="6" Grid.Column="1" Content="{Binding CurrentRecipe.ReadIDRecipe}"/>
  466. <!--<ComboBox Grid.Row="5" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  467. SelectedValuePath="Key"
  468. DisplayMemberPath ="Value"
  469. SelectedValue="{Binding CurrentRecipe.SelectedRecipe}"
  470. ItemsSource="{Binding RecipeList}"
  471. />-->
  472. <!--<Label Grid.Row="5" Grid.Column="0" Content="Pre Align:" />
  473. <StackPanel Orientation="Horizontal" Grid.Row="5" Grid.Column="1">
  474. <CheckBox Content="Pre Align" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}"/>
  475. <TextBox HorizontalAlignment="Left" Width="200" Height="30" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
  476. </StackPanel>
  477. <Label Grid.Row="6" Grid.Column="0" Content="Read Laser Mark:" />
  478. <StackPanel Orientation="Horizontal" Grid.Row="6" Grid.Column="1">
  479. <CheckBox Content="Laser Mark1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  480. <CheckBox Content="Laser Mark2" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  481. </StackPanel>
  482. <Label Grid.Row="7" Grid.Column="0" Content="Wafer ID Reader:" />
  483. <ComboBox Grid.Row="7" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderListOnlyOne}" />
  484. <Label Grid.Row="8" Grid.Column="0" Content="Job For LM1:"/>
  485. <ListView Grid.Row="8" Grid.Column="1" Margin="4" ItemsSource="{Binding LaserFiles}">
  486. <ListView.View>
  487. <GridView>
  488. <GridViewColumn Header="Name" Width="200" >
  489. <GridViewColumn.CellTemplate>
  490. <DataTemplate>
  491. <Label>
  492. <Run Text="{Binding Key,Mode=OneTime}" />
  493. <Label.ToolTip>
  494. <Run Text="{Binding Value,Mode=OneTime}" />
  495. </Label.ToolTip>
  496. </Label>
  497. </DataTemplate>
  498. </GridViewColumn.CellTemplate>
  499. </GridViewColumn>
  500. <GridViewColumn Width="120">
  501. <GridViewColumn.CellTemplate>
  502. <DataTemplate>
  503. <Button Content="Remove" Width="90" Height="30" ToolTip="Remove" Command="{Binding FileCommand}" ctrlCommon:CommandHelper.CommandName="Remove" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
  504. </DataTemplate>
  505. </GridViewColumn.CellTemplate>
  506. </GridViewColumn>
  507. <GridViewColumn Width="120">
  508. <GridViewColumn.CellTemplate>
  509. <DataTemplate>
  510. <Button Content="Move Up" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Up" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
  511. </DataTemplate>
  512. </GridViewColumn.CellTemplate>
  513. </GridViewColumn>
  514. <GridViewColumn Width="120">
  515. <GridViewColumn.CellTemplate>
  516. <DataTemplate>
  517. <Button Content="Move Down" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Down" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
  518. </DataTemplate>
  519. </GridViewColumn.CellTemplate>
  520. </GridViewColumn>
  521. <GridViewColumn Width="120">
  522. <GridViewColumn.CellTemplate>
  523. <DataTemplate>
  524. <Button Content="Read" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
  525. </DataTemplate>
  526. </GridViewColumn.CellTemplate>
  527. </GridViewColumn>
  528. </GridView>
  529. </ListView.View>
  530. </ListView>
  531. <Button Content="Add" Grid.Row="8" Grid.Column="2" VerticalAlignment="Center"
  532. Command="{Binding FileCommand}" ctrlCommon:CommandHelper.CommandName="Add"
  533. ctrlCommon:CommandHelper.Target="WIDReader1" ctrlCommon:CommandHelper.Parameter1="{Binding}"
  534. ctrlCommon:CommandHelper.Parameter2="Laser"/>
  535. <Label Grid.Row="9" Grid.Column="0" Content="Job For LM2:"/>
  536. <ListView Grid.Row="9" Grid.Column="1" Margin="4" ItemsSource="{Binding T7Files}">
  537. <ListView.View>
  538. <GridView>
  539. <GridViewColumn Header="Name" Width="200" >
  540. <GridViewColumn.CellTemplate>
  541. <DataTemplate>
  542. <Label>
  543. <Run Text="{Binding Key,Mode=OneTime}" />
  544. <Label.ToolTip>
  545. <Run Text="{Binding Value,Mode=OneTime}" />
  546. </Label.ToolTip>
  547. </Label>
  548. </DataTemplate>
  549. </GridViewColumn.CellTemplate>
  550. </GridViewColumn>
  551. <GridViewColumn Width="120">
  552. <GridViewColumn.CellTemplate>
  553. <DataTemplate>
  554. <Button Content="Remove" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Remove" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
  555. </DataTemplate>
  556. </GridViewColumn.CellTemplate>
  557. </GridViewColumn>
  558. <GridViewColumn Width="120">
  559. <GridViewColumn.CellTemplate>
  560. <DataTemplate>
  561. <Button Content="Move Up" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Up" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
  562. </DataTemplate>
  563. </GridViewColumn.CellTemplate>
  564. </GridViewColumn>
  565. <GridViewColumn Width="120">
  566. <GridViewColumn.CellTemplate>
  567. <DataTemplate>
  568. <Button Content="Move Down" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Down" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
  569. </DataTemplate>
  570. </GridViewColumn.CellTemplate>
  571. </GridViewColumn>
  572. <GridViewColumn Width="120">
  573. <GridViewColumn.CellTemplate>
  574. <DataTemplate>
  575. <Button Content="Read" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
  576. </DataTemplate>
  577. </GridViewColumn.CellTemplate>
  578. </GridViewColumn>
  579. </GridView>
  580. </ListView.View>
  581. </ListView>
  582. <Button Content="Add" Grid.Row="9" Grid.Column="2" VerticalAlignment="Center"
  583. Command="{Binding FileCommand}" ctrlCommon:CommandHelper.CommandName="Add"
  584. ctrlCommon:CommandHelper.Target="WIDReader1" ctrlCommon:CommandHelper.Parameter1="{Binding}"
  585. ctrlCommon:CommandHelper.Parameter2="T7"/>
  586. <Label Grid.Row="10" Grid.Column="0" Content="Post Align:" />
  587. <StackPanel Orientation="Horizontal" Grid.Row="10" Grid.Column="1">
  588. <CheckBox Content="Post Align" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsPostAlign}"/>
  589. <TextBox HorizontalAlignment="Left" Width="200" Height="30" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.PostAlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
  590. </StackPanel>
  591. <Label Grid.Row="11" Grid.Column="0" Content="TurnOver:" />
  592. <StackPanel Orientation="Horizontal" Grid.Row="11" Grid.Column="1">
  593. <CheckBox Content="TurnOver" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsTurnOver}"/>
  594. </StackPanel>-->
  595. </Grid>
  596. <Grid x:Key="RecipeTemplateNTo1New" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  597. <Grid.Resources>
  598. <Style TargetType="Label">
  599. <Setter Property="HorizontalAlignment" Value="Center" />
  600. <Setter Property="VerticalAlignment" Value="Center" />
  601. </Style>
  602. </Grid.Resources>
  603. <Grid.RowDefinitions>
  604. <RowDefinition Height="0" />
  605. <RowDefinition Height="40" />
  606. <RowDefinition Height="40" />
  607. <RowDefinition Height="40" />
  608. <RowDefinition Height="40" />
  609. <RowDefinition Height="*" />
  610. <RowDefinition Height="40" />
  611. <RowDefinition Height="40" />
  612. <!--<RowDefinition Height="*" />
  613. <RowDefinition Height="*" />-->
  614. <RowDefinition Height="40" />
  615. <RowDefinition Height="40" />
  616. </Grid.RowDefinitions>
  617. <Grid.ColumnDefinitions>
  618. <ColumnDefinition Width="160" />
  619. <ColumnDefinition Width="*" />
  620. <ColumnDefinition Width="120" />
  621. </Grid.ColumnDefinitions>
  622. <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
  623. <WrapPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  624. <ItemsControl ItemsSource="{Binding Sources}">
  625. <ItemsControl.ItemsPanel>
  626. <ItemsPanelTemplate>
  627. <WrapPanel Orientation="Horizontal" />
  628. </ItemsPanelTemplate>
  629. </ItemsControl.ItemsPanel>
  630. <ItemsControl.ItemTemplate>
  631. <DataTemplate>
  632. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Command="{Binding SelectCommand}" CommandParameter="{Binding Index}" Margin="4,0,4,0" />
  633. </DataTemplate>
  634. </ItemsControl.ItemTemplate>
  635. </ItemsControl>
  636. </WrapPanel>
  637. <Label Grid.Row="2" Grid.Column="0" Content="Destination:" />
  638. <WrapPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" >
  639. <ItemsControl ItemsSource="{Binding Destinations}">
  640. <ItemsControl.ItemsPanel>
  641. <ItemsPanelTemplate>
  642. <WrapPanel Orientation="Horizontal" />
  643. </ItemsPanelTemplate>
  644. </ItemsControl.ItemsPanel>
  645. <ItemsControl.ItemTemplate>
  646. <DataTemplate>
  647. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Command="{Binding SelectCommand}" CommandParameter="{Binding Index}" Margin="4,0,4,0" />
  648. </DataTemplate>
  649. </ItemsControl.ItemTemplate>
  650. </ItemsControl>
  651. </WrapPanel>
  652. <Label Grid.Row="3" Grid.Column="0" Content="Pick Mode:" />
  653. <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  654. SelectedValuePath="Key"
  655. DisplayMemberPath ="Value"
  656. SelectedValue="{Binding CurrentRecipe.PickMode}"
  657. ItemsSource="{Binding PickMode}"
  658. />
  659. <Label Grid.Row="4" Grid.Column="0" Content="Place Mode:" />
  660. <ComboBox Grid.Row="4" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  661. SelectedValuePath="Key"
  662. DisplayMemberPath ="Value"
  663. SelectedValue="{Binding CurrentRecipe.PlaceModeTransfer1To1}"
  664. ItemsSource="{Binding PlaceMode1To1}"
  665. />
  666. <Label Grid.Row="5" Grid.Column="0" Content="Recipe:" />
  667. <ListBox Grid.Row="5" Grid.Column="1" ItemsSource="{Binding HostRecipeList}" SelectedValue="{Binding CurrentRecipe.ReadIDRecipe,Mode=TwoWay}"/>
  668. <Label Grid.Row="6" Grid.Column="1" Content="{Binding CurrentRecipe.ReadIDRecipe}"/>
  669. <!--<ComboBox Grid.Row="5" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  670. SelectedValuePath="Key"
  671. DisplayMemberPath ="Value"
  672. SelectedValue="{Binding CurrentRecipe.SelectedRecipe}"
  673. ItemsSource="{Binding RecipeList}"
  674. />-->
  675. <!--<Label Grid.Row="5" Grid.Column="0" Content="Pre Align:" />
  676. <StackPanel Orientation="Horizontal" Grid.Row="5" Grid.Column="1">
  677. <CheckBox Content="Pre Align" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}"/>
  678. <TextBox HorizontalAlignment="Left" Width="200" Height="30" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
  679. </StackPanel>
  680. <Label Grid.Row="6" Grid.Column="0" Content="Read Laser Mark:" />
  681. <StackPanel Orientation="Horizontal" Grid.Row="6" Grid.Column="1">
  682. <CheckBox Content="Laser Mark1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  683. <CheckBox Content="Laser Mark2" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  684. </StackPanel>
  685. <Label Grid.Row="7" Grid.Column="0" Content="Wafer ID Reader:" />
  686. <ComboBox Grid.Row="7" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderListOnlyOne}" />
  687. <Label Grid.Row="8" Grid.Column="0" Content="Job For LM1:"/>
  688. <ListView Grid.Row="8" Grid.Column="1" Margin="4" ItemsSource="{Binding LaserFiles}">
  689. <ListView.View>
  690. <GridView>
  691. <GridViewColumn Header="Name" Width="200" >
  692. <GridViewColumn.CellTemplate>
  693. <DataTemplate>
  694. <Label>
  695. <Run Text="{Binding Key,Mode=OneTime}" />
  696. <Label.ToolTip>
  697. <Run Text="{Binding Value,Mode=OneTime}" />
  698. </Label.ToolTip>
  699. </Label>
  700. </DataTemplate>
  701. </GridViewColumn.CellTemplate>
  702. </GridViewColumn>
  703. <GridViewColumn Width="120">
  704. <GridViewColumn.CellTemplate>
  705. <DataTemplate>
  706. <Button Content="Remove" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Remove" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
  707. </DataTemplate>
  708. </GridViewColumn.CellTemplate>
  709. </GridViewColumn>
  710. <GridViewColumn Width="120">
  711. <GridViewColumn.CellTemplate>
  712. <DataTemplate>
  713. <Button Content="Move Up" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Up" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
  714. </DataTemplate>
  715. </GridViewColumn.CellTemplate>
  716. </GridViewColumn>
  717. <GridViewColumn Width="120">
  718. <GridViewColumn.CellTemplate>
  719. <DataTemplate>
  720. <Button Content="Move Down" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Down" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
  721. </DataTemplate>
  722. </GridViewColumn.CellTemplate>
  723. </GridViewColumn>
  724. <GridViewColumn Width="120">
  725. <GridViewColumn.CellTemplate>
  726. <DataTemplate>
  727. <Button Content="Read" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
  728. </DataTemplate>
  729. </GridViewColumn.CellTemplate>
  730. </GridViewColumn>
  731. </GridView>
  732. </ListView.View>
  733. </ListView>
  734. <Button Content="Add" Grid.Row="8" Grid.Column="2" VerticalAlignment="Center"
  735. Command="{Binding FileCommand}" ctrlCommon:CommandHelper.CommandName="Add"
  736. ctrlCommon:CommandHelper.Target="WIDReader1" ctrlCommon:CommandHelper.Parameter1="{Binding}"
  737. ctrlCommon:CommandHelper.Parameter2="Laser"/>
  738. <Label Grid.Row="9" Grid.Column="0" Content="Job For LM2:"/>
  739. <ListView Grid.Row="9" Grid.Column="1" Margin="4" ItemsSource="{Binding T7Files}">
  740. <ListView.View>
  741. <GridView>
  742. <GridViewColumn Header="Name" Width="200" >
  743. <GridViewColumn.CellTemplate>
  744. <DataTemplate>
  745. <Label>
  746. <Run Text="{Binding Key,Mode=OneTime}" />
  747. <Label.ToolTip>
  748. <Run Text="{Binding Value,Mode=OneTime}" />
  749. </Label.ToolTip>
  750. </Label>
  751. </DataTemplate>
  752. </GridViewColumn.CellTemplate>
  753. </GridViewColumn>
  754. <GridViewColumn Width="120">
  755. <GridViewColumn.CellTemplate>
  756. <DataTemplate>
  757. <Button Content="Remove" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Remove" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
  758. </DataTemplate>
  759. </GridViewColumn.CellTemplate>
  760. </GridViewColumn>
  761. <GridViewColumn Width="120">
  762. <GridViewColumn.CellTemplate>
  763. <DataTemplate>
  764. <Button Content="Move Up" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Up" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
  765. </DataTemplate>
  766. </GridViewColumn.CellTemplate>
  767. </GridViewColumn>
  768. <GridViewColumn Width="120">
  769. <GridViewColumn.CellTemplate>
  770. <DataTemplate>
  771. <Button Content="Move Down" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Down" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
  772. </DataTemplate>
  773. </GridViewColumn.CellTemplate>
  774. </GridViewColumn>
  775. <GridViewColumn Width="120">
  776. <GridViewColumn.CellTemplate>
  777. <DataTemplate>
  778. <Button Content="Read" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
  779. </DataTemplate>
  780. </GridViewColumn.CellTemplate>
  781. </GridViewColumn>
  782. </GridView>
  783. </ListView.View>
  784. </ListView>
  785. <Button Content="Add" Grid.Row="9" Grid.Column="2" VerticalAlignment="Center"
  786. Command="{Binding FileCommand}" ctrlCommon:CommandHelper.CommandName="Add"
  787. ctrlCommon:CommandHelper.Target="WIDReader1" ctrlCommon:CommandHelper.Parameter1="{Binding}"
  788. ctrlCommon:CommandHelper.Parameter2="T7"/>
  789. <Label Grid.Row="10" Grid.Column="0" Content="Post Align:" />
  790. <StackPanel Orientation="Horizontal" Grid.Row="10" Grid.Column="1">
  791. <CheckBox Content="Post Align" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsPostAlign}"/>
  792. <TextBox HorizontalAlignment="Left" Width="200" Height="30" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.PostAlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
  793. </StackPanel>
  794. <Label Grid.Row="11" Grid.Column="0" Content="TurnOver:" />
  795. <StackPanel Orientation="Horizontal" Grid.Row="11" Grid.Column="1">
  796. <CheckBox Content="TurnOver" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsTurnOver}"/>
  797. </StackPanel>-->
  798. </Grid>
  799. <Grid x:Key="RecipeTemplateNTo1NoReader" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  800. <Grid.Resources>
  801. <Style TargetType="Label">
  802. <Setter Property="HorizontalAlignment" Value="Center" />
  803. <Setter Property="VerticalAlignment" Value="Center" />
  804. </Style>
  805. </Grid.Resources>
  806. <Grid.RowDefinitions>
  807. <RowDefinition Height="0" />
  808. <RowDefinition Height="40" />
  809. <RowDefinition Height="40" />
  810. <RowDefinition Height="40" />
  811. <RowDefinition Height="40" />
  812. <RowDefinition Height="*" />
  813. <RowDefinition Height="40" />
  814. <RowDefinition Height="40" />
  815. <!--<RowDefinition Height="*" />
  816. <RowDefinition Height="*" />-->
  817. <RowDefinition Height="40" />
  818. <RowDefinition Height="40" />
  819. </Grid.RowDefinitions>
  820. <Grid.ColumnDefinitions>
  821. <ColumnDefinition Width="160" />
  822. <ColumnDefinition Width="*" />
  823. <ColumnDefinition Width="120" />
  824. </Grid.ColumnDefinitions>
  825. <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
  826. <WrapPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  827. <ItemsControl ItemsSource="{Binding Sources}">
  828. <ItemsControl.ItemsPanel>
  829. <ItemsPanelTemplate>
  830. <WrapPanel Orientation="Horizontal" />
  831. </ItemsPanelTemplate>
  832. </ItemsControl.ItemsPanel>
  833. <ItemsControl.ItemTemplate>
  834. <DataTemplate>
  835. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Command="{Binding SelectCommand}" CommandParameter="{Binding Index}" Margin="4,0,4,0" />
  836. </DataTemplate>
  837. </ItemsControl.ItemTemplate>
  838. </ItemsControl>
  839. </WrapPanel>
  840. <Label Grid.Row="2" Grid.Column="0" Content="Destination:" />
  841. <WrapPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" >
  842. <ItemsControl ItemsSource="{Binding Destinations}">
  843. <ItemsControl.ItemsPanel>
  844. <ItemsPanelTemplate>
  845. <WrapPanel Orientation="Horizontal" />
  846. </ItemsPanelTemplate>
  847. </ItemsControl.ItemsPanel>
  848. <ItemsControl.ItemTemplate>
  849. <DataTemplate>
  850. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Command="{Binding SelectCommand}" CommandParameter="{Binding Index}" Margin="4,0,4,0" />
  851. </DataTemplate>
  852. </ItemsControl.ItemTemplate>
  853. </ItemsControl>
  854. </WrapPanel>
  855. <Label Grid.Row="3" Grid.Column="0" Content="Pick Mode:" />
  856. <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  857. SelectedValuePath="Key"
  858. DisplayMemberPath ="Value"
  859. SelectedValue="{Binding CurrentRecipe.PickMode}"
  860. ItemsSource="{Binding PickMode}"
  861. />
  862. <Label Grid.Row="4" Grid.Column="0" Content="Place Mode:" />
  863. <ComboBox Grid.Row="4" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  864. SelectedValuePath="Key"
  865. DisplayMemberPath ="Value"
  866. SelectedValue="{Binding CurrentRecipe.PlaceModeTransfer1To1}"
  867. ItemsSource="{Binding PlaceMode1To1}"
  868. />
  869. <!--<Label Grid.Row="5" Grid.Column="0" Content="Recipe:" />
  870. <ListBox Grid.Row="5" Grid.Column="1" ItemsSource="{Binding HostRecipeList}" SelectedValue="{Binding CurrentRecipe.ReadIDRecipe,Mode=TwoWay}"/>
  871. <Label Grid.Row="6" Grid.Column="1" Content="{Binding CurrentRecipe.ReadIDRecipe}"/>
  872. <ComboBox Grid.Row="5" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  873. SelectedValuePath="Key"
  874. DisplayMemberPath ="Value"
  875. SelectedValue="{Binding CurrentRecipe.SelectedRecipe}"
  876. ItemsSource="{Binding RecipeList}"
  877. />-->
  878. <!--<Label Grid.Row="5" Grid.Column="0" Content="Pre Align:" />
  879. <StackPanel Orientation="Horizontal" Grid.Row="5" Grid.Column="1">
  880. <CheckBox Content="Pre Align" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}"/>
  881. <TextBox HorizontalAlignment="Left" Width="200" Height="30" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
  882. </StackPanel>
  883. <Label Grid.Row="6" Grid.Column="0" Content="Read Laser Mark:" />
  884. <StackPanel Orientation="Horizontal" Grid.Row="6" Grid.Column="1">
  885. <CheckBox Content="Laser Mark1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  886. <CheckBox Content="Laser Mark2" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  887. </StackPanel>
  888. <Label Grid.Row="7" Grid.Column="0" Content="Wafer ID Reader:" />
  889. <ComboBox Grid.Row="7" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderListOnlyOne}" />
  890. <Label Grid.Row="8" Grid.Column="0" Content="Job For LM1:"/>
  891. <ListView Grid.Row="8" Grid.Column="1" Margin="4" ItemsSource="{Binding LaserFiles}">
  892. <ListView.View>
  893. <GridView>
  894. <GridViewColumn Header="Name" Width="200" >
  895. <GridViewColumn.CellTemplate>
  896. <DataTemplate>
  897. <Label>
  898. <Run Text="{Binding Key,Mode=OneTime}" />
  899. <Label.ToolTip>
  900. <Run Text="{Binding Value,Mode=OneTime}" />
  901. </Label.ToolTip>
  902. </Label>
  903. </DataTemplate>
  904. </GridViewColumn.CellTemplate>
  905. </GridViewColumn>
  906. <GridViewColumn Width="120">
  907. <GridViewColumn.CellTemplate>
  908. <DataTemplate>
  909. <Button Content="Remove" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Remove" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
  910. </DataTemplate>
  911. </GridViewColumn.CellTemplate>
  912. </GridViewColumn>
  913. <GridViewColumn Width="120">
  914. <GridViewColumn.CellTemplate>
  915. <DataTemplate>
  916. <Button Content="Move Up" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Up" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
  917. </DataTemplate>
  918. </GridViewColumn.CellTemplate>
  919. </GridViewColumn>
  920. <GridViewColumn Width="120">
  921. <GridViewColumn.CellTemplate>
  922. <DataTemplate>
  923. <Button Content="Move Down" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Down" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
  924. </DataTemplate>
  925. </GridViewColumn.CellTemplate>
  926. </GridViewColumn>
  927. <GridViewColumn Width="120">
  928. <GridViewColumn.CellTemplate>
  929. <DataTemplate>
  930. <Button Content="Read" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
  931. </DataTemplate>
  932. </GridViewColumn.CellTemplate>
  933. </GridViewColumn>
  934. </GridView>
  935. </ListView.View>
  936. </ListView>
  937. <Button Content="Add" Grid.Row="8" Grid.Column="2" VerticalAlignment="Center"
  938. Command="{Binding FileCommand}" ctrlCommon:CommandHelper.CommandName="Add"
  939. ctrlCommon:CommandHelper.Target="WIDReader1" ctrlCommon:CommandHelper.Parameter1="{Binding}"
  940. ctrlCommon:CommandHelper.Parameter2="Laser"/>
  941. <Label Grid.Row="9" Grid.Column="0" Content="Job For LM2:"/>
  942. <ListView Grid.Row="9" Grid.Column="1" Margin="4" ItemsSource="{Binding T7Files}">
  943. <ListView.View>
  944. <GridView>
  945. <GridViewColumn Header="Name" Width="200" >
  946. <GridViewColumn.CellTemplate>
  947. <DataTemplate>
  948. <Label>
  949. <Run Text="{Binding Key,Mode=OneTime}" />
  950. <Label.ToolTip>
  951. <Run Text="{Binding Value,Mode=OneTime}" />
  952. </Label.ToolTip>
  953. </Label>
  954. </DataTemplate>
  955. </GridViewColumn.CellTemplate>
  956. </GridViewColumn>
  957. <GridViewColumn Width="120">
  958. <GridViewColumn.CellTemplate>
  959. <DataTemplate>
  960. <Button Content="Remove" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Remove" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
  961. </DataTemplate>
  962. </GridViewColumn.CellTemplate>
  963. </GridViewColumn>
  964. <GridViewColumn Width="120">
  965. <GridViewColumn.CellTemplate>
  966. <DataTemplate>
  967. <Button Content="Move Up" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Up" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
  968. </DataTemplate>
  969. </GridViewColumn.CellTemplate>
  970. </GridViewColumn>
  971. <GridViewColumn Width="120">
  972. <GridViewColumn.CellTemplate>
  973. <DataTemplate>
  974. <Button Content="Move Down" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Down" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
  975. </DataTemplate>
  976. </GridViewColumn.CellTemplate>
  977. </GridViewColumn>
  978. <GridViewColumn Width="120">
  979. <GridViewColumn.CellTemplate>
  980. <DataTemplate>
  981. <Button Content="Read" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
  982. </DataTemplate>
  983. </GridViewColumn.CellTemplate>
  984. </GridViewColumn>
  985. </GridView>
  986. </ListView.View>
  987. </ListView>
  988. <Button Content="Add" Grid.Row="9" Grid.Column="2" VerticalAlignment="Center"
  989. Command="{Binding FileCommand}" ctrlCommon:CommandHelper.CommandName="Add"
  990. ctrlCommon:CommandHelper.Target="WIDReader1" ctrlCommon:CommandHelper.Parameter1="{Binding}"
  991. ctrlCommon:CommandHelper.Parameter2="T7"/>
  992. <Label Grid.Row="10" Grid.Column="0" Content="Post Align:" />
  993. <StackPanel Orientation="Horizontal" Grid.Row="10" Grid.Column="1">
  994. <CheckBox Content="Post Align" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsPostAlign}"/>
  995. <TextBox HorizontalAlignment="Left" Width="200" Height="30" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.PostAlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
  996. </StackPanel>
  997. <Label Grid.Row="11" Grid.Column="0" Content="TurnOver:" />
  998. <StackPanel Orientation="Horizontal" Grid.Row="11" Grid.Column="1">
  999. <CheckBox Content="TurnOver" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsTurnOver}"/>
  1000. </StackPanel>-->
  1001. </Grid>
  1002. <Grid x:Key="RecipeTemplate1To1TurnOver" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  1003. <Grid.Resources>
  1004. <Style TargetType="Label">
  1005. <Setter Property="HorizontalAlignment" Value="Center" />
  1006. <Setter Property="VerticalAlignment" Value="Center" />
  1007. </Style>
  1008. </Grid.Resources>
  1009. <Grid.RowDefinitions>
  1010. <RowDefinition Height="0" />
  1011. <RowDefinition Height="40" />
  1012. <RowDefinition Height="40" />
  1013. <RowDefinition Height="40" />
  1014. <RowDefinition Height="40" />
  1015. <RowDefinition Height="40" />
  1016. <RowDefinition Height="40" />
  1017. <RowDefinition Height="60" />
  1018. <RowDefinition Height="40" />
  1019. <RowDefinition Height="*" />
  1020. </Grid.RowDefinitions>
  1021. <Grid.ColumnDefinitions>
  1022. <ColumnDefinition Width="160" />
  1023. <ColumnDefinition Width="*" />
  1024. </Grid.ColumnDefinitions>
  1025. <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
  1026. <WrapPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  1027. <ItemsControl ItemsSource="{Binding Sources}">
  1028. <ItemsControl.ItemsPanel>
  1029. <ItemsPanelTemplate>
  1030. <WrapPanel Orientation="Horizontal" />
  1031. </ItemsPanelTemplate>
  1032. </ItemsControl.ItemsPanel>
  1033. <ItemsControl.ItemTemplate>
  1034. <DataTemplate>
  1035. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  1036. </DataTemplate>
  1037. </ItemsControl.ItemTemplate>
  1038. </ItemsControl>
  1039. </WrapPanel>
  1040. <Label Grid.Row="2" Grid.Column="0" Content="Destination:" />
  1041. <WrapPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" >
  1042. <ItemsControl ItemsSource="{Binding Destinations}">
  1043. <ItemsControl.ItemsPanel>
  1044. <ItemsPanelTemplate>
  1045. <WrapPanel Orientation="Horizontal" />
  1046. </ItemsPanelTemplate>
  1047. </ItemsControl.ItemsPanel>
  1048. <ItemsControl.ItemTemplate>
  1049. <DataTemplate>
  1050. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  1051. </DataTemplate>
  1052. </ItemsControl.ItemTemplate>
  1053. </ItemsControl>
  1054. </WrapPanel>
  1055. <Label Grid.Row="3" Grid.Column="0" Content="Place Mode:" />
  1056. <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  1057. SelectedValuePath="Key"
  1058. DisplayMemberPath ="Value"
  1059. SelectedValue="{Binding CurrentRecipe.PlaceModeTransfer1To1}"
  1060. ItemsSource="{Binding PlaceMode1To1}"
  1061. />
  1062. <Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
  1063. <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
  1064. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  1065. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  1066. </StackPanel>
  1067. <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
  1068. <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
  1069. <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
  1070. <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  1071. <Label Grid.Row="7" Grid.Column="0" Content="Wafer ID Reader:" />
  1072. <ComboBox Grid.Row="7" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderList}" />
  1073. <Label Grid.Row="8" Grid.Column="0" Content="TurnOver:" />
  1074. <CheckBox Grid.Row="8" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsTurnOver}" />
  1075. </Grid>
  1076. <Grid x:Key="RecipeTemplateNToN" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  1077. <Grid.Resources>
  1078. <Style TargetType="Label">
  1079. <Setter Property="HorizontalAlignment" Value="Center" />
  1080. <Setter Property="VerticalAlignment" Value="Center" />
  1081. </Style>
  1082. </Grid.Resources>
  1083. <Grid.RowDefinitions>
  1084. <RowDefinition Height="0" />
  1085. <RowDefinition Height="0" />
  1086. <RowDefinition Height="0" />
  1087. <RowDefinition Height="0" />
  1088. <RowDefinition Height="40" />
  1089. <RowDefinition Height="40" />
  1090. <RowDefinition Height="60" />
  1091. <RowDefinition Height="40" />
  1092. <RowDefinition Height="40" />
  1093. <RowDefinition Height="*" />
  1094. </Grid.RowDefinitions>
  1095. <Grid.ColumnDefinitions>
  1096. <ColumnDefinition Width="160" />
  1097. <ColumnDefinition Width="*" />
  1098. </Grid.ColumnDefinitions>
  1099. <Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
  1100. <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
  1101. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  1102. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  1103. </StackPanel>
  1104. <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
  1105. <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
  1106. <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
  1107. <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  1108. <Label Grid.Row="7" Grid.Column="0" Content="Wafer ID Reader:" />
  1109. <ComboBox Grid.Row="7" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderList}" />
  1110. <Label Grid.Row="8" Grid.Column="0" Content="Transfer Table:" />
  1111. <ListView ItemContainerStyle="{StaticResource ResourceKey=ListViewItemStyle}" Grid.Row="9" Grid.Column="0" Grid.ColumnSpan="2" Margin="4,4" ItemsSource="{Binding CurrentRecipe.TransferItems}">
  1112. <ListView.View>
  1113. <GridView>
  1114. <GridViewColumn Header="Source" Width="100" DisplayMemberBinding="{Binding SourceStation}" />
  1115. <GridViewColumn Header="Slot" Width="60" DisplayMemberBinding="{Binding SourceSlot,Converter={StaticResource slotToIndexConverter}}" />
  1116. <GridViewColumn Header="Destination" Width="100" DisplayMemberBinding="{Binding DestinationStation}" />
  1117. <GridViewColumn Header="Slot" Width="60" DisplayMemberBinding="{Binding DestinationSlot,Converter={StaticResource slotToIndexConverter}}" />
  1118. <GridViewColumn Header="Read Laser Mark" Width="160" >
  1119. <GridViewColumn.CellTemplate>
  1120. <DataTemplate>
  1121. <CheckBox IsChecked="{Binding IsReadLaserMarker}" HorizontalAlignment="Center" />
  1122. </DataTemplate>
  1123. </GridViewColumn.CellTemplate>
  1124. </GridViewColumn>
  1125. <GridViewColumn Header="Read T7 Code" Width="160" >
  1126. <GridViewColumn.CellTemplate>
  1127. <DataTemplate>
  1128. <CheckBox IsChecked="{Binding IsReadT7Code}" HorizontalAlignment="Center" />
  1129. </DataTemplate>
  1130. </GridViewColumn.CellTemplate>
  1131. </GridViewColumn>
  1132. <GridViewColumn Header="Align" Width="60" >
  1133. <GridViewColumn.CellTemplate>
  1134. <DataTemplate>
  1135. <CheckBox IsChecked="{Binding IsAlign}" HorizontalAlignment="Center" />
  1136. </DataTemplate>
  1137. </GridViewColumn.CellTemplate>
  1138. </GridViewColumn>
  1139. <GridViewColumn Header="Angle" Width="80" >
  1140. <GridViewColumn.CellTemplate>
  1141. <DataTemplate>
  1142. <TextBox Text="{Binding AlignAngle}" Width="50" Height="20" />
  1143. </DataTemplate>
  1144. </GridViewColumn.CellTemplate>
  1145. </GridViewColumn>
  1146. <GridViewColumn Header="Action" Width="85" >
  1147. <GridViewColumn.CellTemplate>
  1148. <DataTemplate>
  1149. <Button Content="Remove" Height="28" ToolTip="Remove" Width="60" Command="{Binding DataContext.RemoveResultCommand, ElementName=root}" CommandParameter="{Binding}" />
  1150. </DataTemplate>
  1151. </GridViewColumn.CellTemplate>
  1152. </GridViewColumn>
  1153. </GridView>
  1154. </ListView.View>
  1155. </ListView>
  1156. </Grid>
  1157. <Grid x:Key="RecipeTemplateNToNOnlyOneWaferIDReader" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  1158. <Grid.Resources>
  1159. <Style TargetType="Label">
  1160. <Setter Property="HorizontalAlignment" Value="Center" />
  1161. <Setter Property="VerticalAlignment" Value="Center" />
  1162. </Style>
  1163. </Grid.Resources>
  1164. <Grid.RowDefinitions>
  1165. <RowDefinition Height="0" />
  1166. <RowDefinition Height="0" />
  1167. <RowDefinition Height="0" />
  1168. <RowDefinition Height="0" />
  1169. <RowDefinition Height="40" />
  1170. <RowDefinition Height="40" />
  1171. <RowDefinition Height="60" />
  1172. <RowDefinition Height="40" />
  1173. <RowDefinition Height="40" />
  1174. <RowDefinition Height="*" />
  1175. </Grid.RowDefinitions>
  1176. <Grid.ColumnDefinitions>
  1177. <ColumnDefinition Width="160" />
  1178. <ColumnDefinition Width="*" />
  1179. </Grid.ColumnDefinitions>
  1180. <Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
  1181. <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
  1182. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  1183. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  1184. </StackPanel>
  1185. <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
  1186. <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
  1187. <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
  1188. <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  1189. <Label Grid.Row="7" Grid.Column="0" Content="Wafer ID Reader:" />
  1190. <ComboBox Grid.Row="7" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderListOnlyOne}" />
  1191. <Label Grid.Row="8" Grid.Column="0" Content="Transfer Table:" />
  1192. <ListView ItemContainerStyle="{StaticResource ResourceKey=ListViewItemStyle}" Grid.Row="9" Grid.Column="0" Grid.ColumnSpan="2" Margin="4,4" ItemsSource="{Binding CurrentRecipe.TransferItems}">
  1193. <ListView.View>
  1194. <GridView>
  1195. <GridViewColumn Header="Source" Width="100" DisplayMemberBinding="{Binding SourceStation}" />
  1196. <GridViewColumn Header="Slot" Width="60" DisplayMemberBinding="{Binding SourceSlot,Converter={StaticResource slotToIndexConverter}}" />
  1197. <GridViewColumn Header="Destination" Width="100" DisplayMemberBinding="{Binding DestinationStation}" />
  1198. <GridViewColumn Header="Slot" Width="60" DisplayMemberBinding="{Binding DestinationSlot,Converter={StaticResource slotToIndexConverter}}" />
  1199. <GridViewColumn Header="Read Laser Mark" Width="160" >
  1200. <GridViewColumn.CellTemplate>
  1201. <DataTemplate>
  1202. <CheckBox IsChecked="{Binding IsReadLaserMarker}" HorizontalAlignment="Center" />
  1203. </DataTemplate>
  1204. </GridViewColumn.CellTemplate>
  1205. </GridViewColumn>
  1206. <GridViewColumn Header="Read T7 Code" Width="160" >
  1207. <GridViewColumn.CellTemplate>
  1208. <DataTemplate>
  1209. <CheckBox IsChecked="{Binding IsReadT7Code}" HorizontalAlignment="Center" />
  1210. </DataTemplate>
  1211. </GridViewColumn.CellTemplate>
  1212. </GridViewColumn>
  1213. <GridViewColumn Header="Align" Width="60" >
  1214. <GridViewColumn.CellTemplate>
  1215. <DataTemplate>
  1216. <CheckBox IsChecked="{Binding IsAlign}" HorizontalAlignment="Center" />
  1217. </DataTemplate>
  1218. </GridViewColumn.CellTemplate>
  1219. </GridViewColumn>
  1220. <GridViewColumn Header="Angle" Width="80" >
  1221. <GridViewColumn.CellTemplate>
  1222. <DataTemplate>
  1223. <TextBox Text="{Binding AlignAngle}" Width="50" Height="20" />
  1224. </DataTemplate>
  1225. </GridViewColumn.CellTemplate>
  1226. </GridViewColumn>
  1227. <GridViewColumn Header="Action" Width="85" >
  1228. <GridViewColumn.CellTemplate>
  1229. <DataTemplate>
  1230. <Button Content="Remove" Height="28" ToolTip="Remove" Width="60" Command="{Binding DataContext.RemoveResultCommand, ElementName=root}" CommandParameter="{Binding}" />
  1231. </DataTemplate>
  1232. </GridViewColumn.CellTemplate>
  1233. </GridViewColumn>
  1234. </GridView>
  1235. </ListView.View>
  1236. </ListView>
  1237. </Grid>
  1238. <Grid x:Key="RecipeTemplateNToNNew" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  1239. <Grid.Resources>
  1240. <Style TargetType="Label">
  1241. <Setter Property="HorizontalAlignment" Value="Center" />
  1242. <Setter Property="VerticalAlignment" Value="Center" />
  1243. </Style>
  1244. </Grid.Resources>
  1245. <Grid.RowDefinitions>
  1246. <RowDefinition Height="0" />
  1247. <RowDefinition Height="0" />
  1248. <RowDefinition Height="0" />
  1249. <RowDefinition Height="0" />
  1250. <RowDefinition Height="0" />
  1251. <RowDefinition Height="0" />
  1252. <RowDefinition Height="0" />
  1253. <RowDefinition Height="0.8*" />
  1254. <RowDefinition Height="40" />
  1255. <RowDefinition Height="40" />
  1256. <RowDefinition Height="*" />
  1257. <!--<RowDefinition Height="*" />
  1258. <RowDefinition Height="40" />
  1259. <RowDefinition Height="40" />-->
  1260. </Grid.RowDefinitions>
  1261. <Grid.ColumnDefinitions>
  1262. <ColumnDefinition Width="160" />
  1263. <ColumnDefinition Width="*" />
  1264. <ColumnDefinition Width="120" />
  1265. </Grid.ColumnDefinitions>
  1266. <!--<Label Grid.Row="4" Grid.Column="0" Content="Pre Align:" />
  1267. <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
  1268. <CheckBox Content="Pre Align" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}"/>
  1269. <TextBox HorizontalAlignment="Left" Width="200" Height="30" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
  1270. </StackPanel>-->
  1271. <!--<Label Grid.Row="5" Grid.Column="0" Content="Read Laser Mark:" />
  1272. <StackPanel Orientation="Horizontal" Grid.Row="5" Grid.Column="1">
  1273. <CheckBox Content="Laser Mark1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  1274. <CheckBox Content="Laser Mark2" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  1275. </StackPanel>
  1276. <Label Grid.Row="6" Grid.Column="0" Content="Wafer ID Reader:" />
  1277. <ComboBox Grid.Row="6" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderListOnlyOne}" />-->
  1278. <Label Grid.Row="7" Grid.Column="0" Content="Recipe:" />
  1279. <ListBox Grid.Row="7" Grid.Column="1" ItemsSource="{Binding HostRecipeList}" SelectedValue="{Binding CurrentRecipe.ReadIDRecipe,Mode=TwoWay}"/>
  1280. <Label Grid.Row="8" Grid.Column="1" Content="{Binding CurrentRecipe.ReadIDRecipe}"/>
  1281. <Label Grid.Row="9" Grid.Column="0" Content="Transfer Table:" />
  1282. <ListView ItemContainerStyle="{StaticResource ResourceKey=ListViewItemStyle}" Grid.Row="10" Grid.Column="0" Grid.ColumnSpan="3" Margin="4,4" ItemsSource="{Binding CurrentRecipe.TransferItems}">
  1283. <ListView.View>
  1284. <GridView>
  1285. <GridViewColumn Header="Source" Width="100" DisplayMemberBinding="{Binding SourceStation}" />
  1286. <GridViewColumn Header="Slot" Width="60" DisplayMemberBinding="{Binding SourceSlot,Converter={StaticResource slotToIndexConverter}}" />
  1287. <GridViewColumn Header="Destination" Width="100" DisplayMemberBinding="{Binding DestinationStation}" />
  1288. <GridViewColumn Header="Slot" Width="60" DisplayMemberBinding="{Binding DestinationSlot,Converter={StaticResource slotToIndexConverter}}" />
  1289. <GridViewColumn Header="Read Laser Mark" Width="160" >
  1290. <GridViewColumn.CellTemplate>
  1291. <DataTemplate>
  1292. <CheckBox IsChecked="{Binding IsReadLaserMarker}" HorizontalAlignment="Center" />
  1293. </DataTemplate>
  1294. </GridViewColumn.CellTemplate>
  1295. </GridViewColumn>
  1296. <GridViewColumn Header="Read T7 Code" Width="160" >
  1297. <GridViewColumn.CellTemplate>
  1298. <DataTemplate>
  1299. <CheckBox IsChecked="{Binding IsReadT7Code}" HorizontalAlignment="Center" />
  1300. </DataTemplate>
  1301. </GridViewColumn.CellTemplate>
  1302. </GridViewColumn>
  1303. <GridViewColumn Header="Align" Width="60" >
  1304. <GridViewColumn.CellTemplate>
  1305. <DataTemplate>
  1306. <CheckBox IsChecked="{Binding IsAlign}" HorizontalAlignment="Center" />
  1307. </DataTemplate>
  1308. </GridViewColumn.CellTemplate>
  1309. </GridViewColumn>
  1310. <GridViewColumn Header="Angle" Width="80" >
  1311. <GridViewColumn.CellTemplate>
  1312. <DataTemplate>
  1313. <TextBox Text="{Binding AlignAngle}" Width="50" Height="20" />
  1314. </DataTemplate>
  1315. </GridViewColumn.CellTemplate>
  1316. </GridViewColumn>
  1317. <GridViewColumn Header="Action" Width="85" >
  1318. <GridViewColumn.CellTemplate>
  1319. <DataTemplate>
  1320. <Button Content="Remove" Height="28" ToolTip="Remove" Width="60" Command="{Binding DataContext.RemoveResultCommand, ElementName=root}" CommandParameter="{Binding}" />
  1321. </DataTemplate>
  1322. </GridViewColumn.CellTemplate>
  1323. </GridViewColumn>
  1324. </GridView>
  1325. </ListView.View>
  1326. </ListView>
  1327. <!--<Label Grid.Row="9" Grid.Column="0" Content="Job For LM1:"/>
  1328. <ListView Grid.Row="9" Grid.Column="1" Margin="4" ItemsSource="{Binding LaserFiles}">
  1329. <ListView.View>
  1330. <GridView>
  1331. <GridViewColumn Header="Name" Width="200" >
  1332. <GridViewColumn.CellTemplate>
  1333. <DataTemplate>
  1334. <Label>
  1335. <Run Text="{Binding Key,Mode=OneTime}" />
  1336. <Label.ToolTip>
  1337. <Run Text="{Binding Value,Mode=OneTime}" />
  1338. </Label.ToolTip>
  1339. </Label>
  1340. </DataTemplate>
  1341. </GridViewColumn.CellTemplate>
  1342. </GridViewColumn>
  1343. <GridViewColumn Width="120">
  1344. <GridViewColumn.CellTemplate>
  1345. <DataTemplate>
  1346. <Button Content="Remove" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Remove" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
  1347. </DataTemplate>
  1348. </GridViewColumn.CellTemplate>
  1349. </GridViewColumn>
  1350. <GridViewColumn Width="120">
  1351. <GridViewColumn.CellTemplate>
  1352. <DataTemplate>
  1353. <Button Content="Move Up" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Up" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
  1354. </DataTemplate>
  1355. </GridViewColumn.CellTemplate>
  1356. </GridViewColumn>
  1357. <GridViewColumn Width="120">
  1358. <GridViewColumn.CellTemplate>
  1359. <DataTemplate>
  1360. <Button Content="Move Down" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Down" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
  1361. </DataTemplate>
  1362. </GridViewColumn.CellTemplate>
  1363. </GridViewColumn>
  1364. <GridViewColumn Width="120">
  1365. <GridViewColumn.CellTemplate>
  1366. <DataTemplate>
  1367. <Button Content="Read" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="Laser"/>
  1368. </DataTemplate>
  1369. </GridViewColumn.CellTemplate>
  1370. </GridViewColumn>
  1371. </GridView>
  1372. </ListView.View>
  1373. </ListView>
  1374. <Button Content="Add" Grid.Row="9" Grid.Column="2" VerticalAlignment="Center"
  1375. Command="{Binding FileCommand}" ctrlCommon:CommandHelper.CommandName="Add"
  1376. ctrlCommon:CommandHelper.Target="WIDReader1" ctrlCommon:CommandHelper.Parameter1="{Binding}"
  1377. ctrlCommon:CommandHelper.Parameter2="Laser"/>
  1378. <Label Grid.Row="10" Grid.Column="0" Content="Job For LM2:"/>
  1379. <ListView Grid.Row="10" Grid.Column="1" Margin="4" ItemsSource="{Binding CurrentRecipe.T7Files}">
  1380. <ListView.View>
  1381. <GridView>
  1382. <GridViewColumn Header="Name" Width="200" >
  1383. <GridViewColumn.CellTemplate>
  1384. <DataTemplate>
  1385. <Label>
  1386. <Run Text="{Binding Key,Mode=OneTime}" />
  1387. <Label.ToolTip>
  1388. <Run Text="{Binding Value,Mode=OneTime}" />
  1389. </Label.ToolTip>
  1390. </Label>
  1391. </DataTemplate>
  1392. </GridViewColumn.CellTemplate>
  1393. </GridViewColumn>
  1394. <GridViewColumn Width="120">
  1395. <GridViewColumn.CellTemplate>
  1396. <DataTemplate>
  1397. <Button Content="Remove" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Remove" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
  1398. </DataTemplate>
  1399. </GridViewColumn.CellTemplate>
  1400. </GridViewColumn>
  1401. <GridViewColumn Width="120">
  1402. <GridViewColumn.CellTemplate>
  1403. <DataTemplate>
  1404. <Button Content="Move Up" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Up" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
  1405. </DataTemplate>
  1406. </GridViewColumn.CellTemplate>
  1407. </GridViewColumn>
  1408. <GridViewColumn Width="120">
  1409. <GridViewColumn.CellTemplate>
  1410. <DataTemplate>
  1411. <Button Content="Move Down" Width="90" Height="30" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.CommandName="Down" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
  1412. </DataTemplate>
  1413. </GridViewColumn.CellTemplate>
  1414. </GridViewColumn>
  1415. <GridViewColumn Width="120">
  1416. <GridViewColumn.CellTemplate>
  1417. <DataTemplate>
  1418. <Button Content="Read" Command="{Binding DataContext.FileCommand, ElementName=root}" ctrlCommon:CommandHelper.Target="{Binding DataContext.Module, ElementName=item}" ctrlCommon:CommandHelper.Parameter1="{Binding}" ctrlCommon:CommandHelper.Parameter2="T7"/>
  1419. </DataTemplate>
  1420. </GridViewColumn.CellTemplate>
  1421. </GridViewColumn>
  1422. </GridView>
  1423. </ListView.View>
  1424. </ListView>
  1425. <Button Content="Add" Grid.Row="10" Grid.Column="2" VerticalAlignment="Center"
  1426. Command="{Binding FileCommand}" ctrlCommon:CommandHelper.CommandName="Add"
  1427. ctrlCommon:CommandHelper.Target="WIDReader1" ctrlCommon:CommandHelper.Parameter1="{Binding}"
  1428. ctrlCommon:CommandHelper.Parameter2="T7"/>
  1429. <Label Grid.Row="11" Grid.Column="0" Content="Post Align:" />
  1430. <StackPanel Orientation="Horizontal" Grid.Row="11" Grid.Column="1">
  1431. <CheckBox Content="Post Align" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsPostAlign}"/>
  1432. <TextBox HorizontalAlignment="Left" Width="200" Height="30" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.PostAlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/>
  1433. </StackPanel>
  1434. <Label Grid.Row="12" Grid.Column="0" Content="TurnOver:" />
  1435. <StackPanel Orientation="Horizontal" Grid.Row="12" Grid.Column="1">
  1436. <CheckBox Content="TurnOver" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsTurnOver}"/>
  1437. </StackPanel>-->
  1438. </Grid>
  1439. <Grid x:Key="RecipeTemplateNToNTurnOver" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  1440. <Grid.Resources>
  1441. <Style TargetType="Label">
  1442. <Setter Property="HorizontalAlignment" Value="Center" />
  1443. <Setter Property="VerticalAlignment" Value="Center" />
  1444. </Style>
  1445. </Grid.Resources>
  1446. <Grid.RowDefinitions>
  1447. <RowDefinition Height="0" />
  1448. <RowDefinition Height="0" />
  1449. <RowDefinition Height="0" />
  1450. <RowDefinition Height="0" />
  1451. <RowDefinition Height="40" />
  1452. <RowDefinition Height="40" />
  1453. <RowDefinition Height="60" />
  1454. <RowDefinition Height="40" />
  1455. <RowDefinition Height="40" />
  1456. <RowDefinition Height="40" />
  1457. <RowDefinition Height="*" />
  1458. </Grid.RowDefinitions>
  1459. <Grid.ColumnDefinitions>
  1460. <ColumnDefinition Width="160" />
  1461. <ColumnDefinition Width="*" />
  1462. </Grid.ColumnDefinitions>
  1463. <Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
  1464. <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
  1465. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  1466. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  1467. </StackPanel>
  1468. <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
  1469. <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
  1470. <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
  1471. <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  1472. <Label Grid.Row="7" Grid.Column="0" Content="Wafer ID Reader:" />
  1473. <ComboBox Grid.Row="7" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderList}" />
  1474. <Label Grid.Row="8" Grid.Column="0" Content="Turn Over:" />
  1475. <CheckBox Grid.Row="8" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsTurnOver}" />
  1476. <Label Grid.Row="9" Grid.Column="0" Content="Transfer Table:" />
  1477. <ListView ItemContainerStyle="{StaticResource ResourceKey=ListViewItemStyle}" Grid.Row="10" Grid.Column="0" Grid.ColumnSpan="2" Margin="4,4" ItemsSource="{Binding CurrentRecipe.TransferItems}">
  1478. <ListView.View>
  1479. <GridView>
  1480. <GridViewColumn Header="Source" Width="100" DisplayMemberBinding="{Binding SourceStation}" />
  1481. <GridViewColumn Header="Slot" Width="60" DisplayMemberBinding="{Binding SourceSlot,Converter={StaticResource slotToIndexConverter}}" />
  1482. <GridViewColumn Header="Destination" Width="100" DisplayMemberBinding="{Binding DestinationStation}" />
  1483. <GridViewColumn Header="Slot" Width="60" DisplayMemberBinding="{Binding DestinationSlot,Converter={StaticResource slotToIndexConverter}}" />
  1484. <GridViewColumn Header="Read Laser Mark" Width="160" >
  1485. <GridViewColumn.CellTemplate>
  1486. <DataTemplate>
  1487. <CheckBox IsChecked="{Binding IsReadLaserMarker}" HorizontalAlignment="Center" />
  1488. </DataTemplate>
  1489. </GridViewColumn.CellTemplate>
  1490. </GridViewColumn>
  1491. <GridViewColumn Header="Read T7 Code" Width="160" >
  1492. <GridViewColumn.CellTemplate>
  1493. <DataTemplate>
  1494. <CheckBox IsChecked="{Binding IsReadT7Code}" HorizontalAlignment="Center" />
  1495. </DataTemplate>
  1496. </GridViewColumn.CellTemplate>
  1497. </GridViewColumn>
  1498. <GridViewColumn Header="Align" Width="60" >
  1499. <GridViewColumn.CellTemplate>
  1500. <DataTemplate>
  1501. <CheckBox IsChecked="{Binding IsAlign}" HorizontalAlignment="Center" />
  1502. </DataTemplate>
  1503. </GridViewColumn.CellTemplate>
  1504. </GridViewColumn>
  1505. <GridViewColumn Header="TurnOver" Width="60" >
  1506. <GridViewColumn.CellTemplate>
  1507. <DataTemplate>
  1508. <CheckBox IsChecked="{Binding IsTurnOver}" HorizontalAlignment="Center" />
  1509. </DataTemplate>
  1510. </GridViewColumn.CellTemplate>
  1511. </GridViewColumn>
  1512. <GridViewColumn Header="Angle" Width="80" >
  1513. <GridViewColumn.CellTemplate>
  1514. <DataTemplate>
  1515. <TextBox Text="{Binding AlignAngle}" Width="50" Height="20" />
  1516. </DataTemplate>
  1517. </GridViewColumn.CellTemplate>
  1518. </GridViewColumn>
  1519. <GridViewColumn Header="Action" Width="85" >
  1520. <GridViewColumn.CellTemplate>
  1521. <DataTemplate>
  1522. <Button Content="Remove" Height="28" ToolTip="Remove" Width="60" Command="{Binding DataContext.RemoveResultCommand, ElementName=root}" CommandParameter="{Binding}" />
  1523. </DataTemplate>
  1524. </GridViewColumn.CellTemplate>
  1525. </GridViewColumn>
  1526. </GridView>
  1527. </ListView.View>
  1528. </ListView>
  1529. </Grid>
  1530. <Grid x:Key="RecipeTemplatePack" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  1531. <Grid.Resources>
  1532. <Style TargetType="Label">
  1533. <Setter Property="HorizontalAlignment" Value="Center" />
  1534. <Setter Property="VerticalAlignment" Value="Center" />
  1535. </Style>
  1536. </Grid.Resources>
  1537. <Grid.RowDefinitions>
  1538. <RowDefinition Height="0" />
  1539. <RowDefinition Height="40" />
  1540. <RowDefinition Height="0" />
  1541. <RowDefinition Height="40" />
  1542. <RowDefinition Height="40" />
  1543. <RowDefinition Height="40" />
  1544. <RowDefinition Height="60" />
  1545. <RowDefinition Height="40" />
  1546. <RowDefinition Height="*" />
  1547. </Grid.RowDefinitions>
  1548. <Grid.ColumnDefinitions>
  1549. <ColumnDefinition Width="160" />
  1550. <ColumnDefinition Width="*" />
  1551. </Grid.ColumnDefinitions>
  1552. <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
  1553. <WrapPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  1554. <ItemsControl ItemsSource="{Binding Sources}">
  1555. <ItemsControl.ItemsPanel>
  1556. <ItemsPanelTemplate>
  1557. <WrapPanel Orientation="Horizontal" />
  1558. </ItemsPanelTemplate>
  1559. </ItemsControl.ItemsPanel>
  1560. <ItemsControl.ItemTemplate>
  1561. <DataTemplate>
  1562. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  1563. </DataTemplate>
  1564. </ItemsControl.ItemTemplate>
  1565. </ItemsControl>
  1566. </WrapPanel>
  1567. <Label Grid.Row="3" Grid.Column="0" Content="Place Mode:" />
  1568. <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  1569. SelectedValuePath="Key"
  1570. DisplayMemberPath ="Value"
  1571. SelectedValue="{Binding CurrentRecipe.PlaceModePack}"
  1572. ItemsSource="{Binding PlaceModePack}"
  1573. />
  1574. <Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
  1575. <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
  1576. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  1577. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  1578. </StackPanel>
  1579. <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
  1580. <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
  1581. <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
  1582. <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  1583. <Label Grid.Row="7" Grid.Column="0" Content="Wafer ID Reader:" />
  1584. <ComboBox Grid.Row="7" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderList}" />
  1585. </Grid>
  1586. <Grid x:Key="RecipeTemplatePackOnlyOneWaferIDReader" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  1587. <Grid.Resources>
  1588. <Style TargetType="Label">
  1589. <Setter Property="HorizontalAlignment" Value="Center" />
  1590. <Setter Property="VerticalAlignment" Value="Center" />
  1591. </Style>
  1592. </Grid.Resources>
  1593. <Grid.RowDefinitions>
  1594. <RowDefinition Height="0" />
  1595. <RowDefinition Height="40" />
  1596. <RowDefinition Height="0" />
  1597. <RowDefinition Height="40" />
  1598. <RowDefinition Height="40" />
  1599. <RowDefinition Height="40" />
  1600. <RowDefinition Height="60" />
  1601. <RowDefinition Height="40" />
  1602. <RowDefinition Height="*" />
  1603. </Grid.RowDefinitions>
  1604. <Grid.ColumnDefinitions>
  1605. <ColumnDefinition Width="160" />
  1606. <ColumnDefinition Width="*" />
  1607. </Grid.ColumnDefinitions>
  1608. <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
  1609. <WrapPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  1610. <ItemsControl ItemsSource="{Binding Sources}">
  1611. <ItemsControl.ItemsPanel>
  1612. <ItemsPanelTemplate>
  1613. <WrapPanel Orientation="Horizontal" />
  1614. </ItemsPanelTemplate>
  1615. </ItemsControl.ItemsPanel>
  1616. <ItemsControl.ItemTemplate>
  1617. <DataTemplate>
  1618. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  1619. </DataTemplate>
  1620. </ItemsControl.ItemTemplate>
  1621. </ItemsControl>
  1622. </WrapPanel>
  1623. <Label Grid.Row="3" Grid.Column="0" Content="Place Mode:" />
  1624. <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  1625. SelectedValuePath="Key"
  1626. DisplayMemberPath ="Value"
  1627. SelectedValue="{Binding CurrentRecipe.PlaceModePack}"
  1628. ItemsSource="{Binding PlaceModePack}"
  1629. />
  1630. <Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
  1631. <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
  1632. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  1633. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  1634. </StackPanel>
  1635. <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
  1636. <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
  1637. <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
  1638. <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  1639. <Label Grid.Row="7" Grid.Column="0" Content="Wafer ID Reader:" />
  1640. <ComboBox Grid.Row="7" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderListOnlyOne}" />
  1641. </Grid>
  1642. <Grid x:Key="RecipeTemplatePackOnlyOneWaferIDReaderNew" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  1643. <Grid.Resources>
  1644. <Style TargetType="Label">
  1645. <Setter Property="HorizontalAlignment" Value="Center" />
  1646. <Setter Property="VerticalAlignment" Value="Center" />
  1647. </Style>
  1648. </Grid.Resources>
  1649. <Grid.RowDefinitions>
  1650. <RowDefinition Height="0" />
  1651. <RowDefinition Height="40" />
  1652. <RowDefinition Height="0" />
  1653. <RowDefinition Height="40" />
  1654. <RowDefinition Height="*" />
  1655. <RowDefinition Height="40" />
  1656. <RowDefinition Height="60" />
  1657. <RowDefinition Height="40" />
  1658. <!--<RowDefinition Height="*" />-->
  1659. </Grid.RowDefinitions>
  1660. <Grid.ColumnDefinitions>
  1661. <ColumnDefinition Width="160" />
  1662. <ColumnDefinition Width="*" />
  1663. </Grid.ColumnDefinitions>
  1664. <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
  1665. <WrapPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  1666. <ItemsControl ItemsSource="{Binding Sources}">
  1667. <ItemsControl.ItemsPanel>
  1668. <ItemsPanelTemplate>
  1669. <WrapPanel Orientation="Horizontal" />
  1670. </ItemsPanelTemplate>
  1671. </ItemsControl.ItemsPanel>
  1672. <ItemsControl.ItemTemplate>
  1673. <DataTemplate>
  1674. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  1675. </DataTemplate>
  1676. </ItemsControl.ItemTemplate>
  1677. </ItemsControl>
  1678. </WrapPanel>
  1679. <Label Grid.Row="3" Grid.Column="0" Content="Place Mode:" />
  1680. <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  1681. SelectedValuePath="Key"
  1682. DisplayMemberPath ="Value"
  1683. SelectedValue="{Binding CurrentRecipe.PlaceModePack}"
  1684. ItemsSource="{Binding PlaceModePack}"
  1685. />
  1686. <Label Grid.Row="4" Grid.Column="0" Content="Recipe:" />
  1687. <ListBox Grid.Row="4" Grid.Column="1" ItemsSource="{Binding HostRecipeList}" SelectedValue="{Binding CurrentRecipe.ReadIDRecipe,Mode=TwoWay}"/>
  1688. <Label Grid.Row="5" Grid.Column="1" Content="{Binding CurrentRecipe.ReadIDRecipe}"/>
  1689. <!--<Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
  1690. <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
  1691. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  1692. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  1693. </StackPanel>
  1694. <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
  1695. <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
  1696. <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
  1697. <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  1698. <Label Grid.Row="7" Grid.Column="0" Content="Wafer ID Reader:" />
  1699. <ComboBox Grid.Row="7" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderListOnlyOne}" />-->
  1700. </Grid>
  1701. <Grid x:Key="RecipeTemplatePackTurnOver" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  1702. <Grid.Resources>
  1703. <Style TargetType="Label">
  1704. <Setter Property="HorizontalAlignment" Value="Center" />
  1705. <Setter Property="VerticalAlignment" Value="Center" />
  1706. </Style>
  1707. </Grid.Resources>
  1708. <Grid.RowDefinitions>
  1709. <RowDefinition Height="0" />
  1710. <RowDefinition Height="40" />
  1711. <RowDefinition Height="0" />
  1712. <RowDefinition Height="40" />
  1713. <RowDefinition Height="40" />
  1714. <RowDefinition Height="40" />
  1715. <RowDefinition Height="60" />
  1716. <RowDefinition Height="40" />
  1717. <RowDefinition Height="40" />
  1718. <RowDefinition Height="*" />
  1719. </Grid.RowDefinitions>
  1720. <Grid.ColumnDefinitions>
  1721. <ColumnDefinition Width="160" />
  1722. <ColumnDefinition Width="*" />
  1723. </Grid.ColumnDefinitions>
  1724. <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
  1725. <WrapPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  1726. <ItemsControl ItemsSource="{Binding Sources}">
  1727. <ItemsControl.ItemsPanel>
  1728. <ItemsPanelTemplate>
  1729. <WrapPanel Orientation="Horizontal" />
  1730. </ItemsPanelTemplate>
  1731. </ItemsControl.ItemsPanel>
  1732. <ItemsControl.ItemTemplate>
  1733. <DataTemplate>
  1734. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  1735. </DataTemplate>
  1736. </ItemsControl.ItemTemplate>
  1737. </ItemsControl>
  1738. </WrapPanel>
  1739. <Label Grid.Row="3" Grid.Column="0" Content="Place Mode:" />
  1740. <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  1741. SelectedValuePath="Key"
  1742. DisplayMemberPath ="Value"
  1743. SelectedValue="{Binding CurrentRecipe.PlaceModePack}"
  1744. ItemsSource="{Binding PlaceModePack}"
  1745. />
  1746. <Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
  1747. <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
  1748. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  1749. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  1750. </StackPanel>
  1751. <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
  1752. <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
  1753. <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
  1754. <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  1755. <Label Grid.Row="7" Grid.Column="0" Content="Wafer ID Reader:" />
  1756. <ComboBox Grid.Row="7" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderList}" />
  1757. <Label Grid.Row="8" Grid.Column="0" Content="Turn Over:" />
  1758. <CheckBox Grid.Row="8" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsTurnOver}" />
  1759. </Grid>
  1760. <Grid x:Key="RecipeTemplateOrder" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  1761. <Grid.Resources>
  1762. <Style TargetType="Label">
  1763. <Setter Property="HorizontalAlignment" Value="Center" />
  1764. <Setter Property="VerticalAlignment" Value="Center" />
  1765. </Style>
  1766. </Grid.Resources>
  1767. <Grid.RowDefinitions>
  1768. <RowDefinition Height="40" />
  1769. <RowDefinition Height="40" />
  1770. <RowDefinition Height="0" />
  1771. <RowDefinition Height="40" />
  1772. <RowDefinition Height="40" />
  1773. <RowDefinition Height="40" />
  1774. <RowDefinition Height="60" />
  1775. <RowDefinition Height="40" />
  1776. <RowDefinition Height="*" />
  1777. </Grid.RowDefinitions>
  1778. <Grid.ColumnDefinitions>
  1779. <ColumnDefinition Width="160" />
  1780. <ColumnDefinition Width="*" />
  1781. </Grid.ColumnDefinitions>
  1782. <Label Grid.Row="0" Grid.Column="0" Content="Order By:" />
  1783. <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  1784. <RadioButton GroupName="order" Margin="18,0" Content="Laser Mark" IsChecked="{Binding CurrentRecipe.OrderBy, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static common1:OrderByMode.LaserMarker}}" />
  1785. <RadioButton GroupName="order" Margin="18,0" Content="T7 Code" IsChecked="{Binding CurrentRecipe.OrderBy, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static common1:OrderByMode.T7Code}}"/>
  1786. </StackPanel>
  1787. <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
  1788. <WrapPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  1789. <ItemsControl ItemsSource="{Binding Sources}">
  1790. <ItemsControl.ItemsPanel>
  1791. <ItemsPanelTemplate>
  1792. <WrapPanel Orientation="Horizontal" />
  1793. </ItemsPanelTemplate>
  1794. </ItemsControl.ItemsPanel>
  1795. <ItemsControl.ItemTemplate>
  1796. <DataTemplate>
  1797. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  1798. </DataTemplate>
  1799. </ItemsControl.ItemTemplate>
  1800. </ItemsControl>
  1801. </WrapPanel>
  1802. <Label Grid.Row="3" Grid.Column="0" Content="Place Mode:" />
  1803. <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  1804. SelectedValuePath="Key"
  1805. DisplayMemberPath ="Value"
  1806. SelectedValue="{Binding CurrentRecipe.PlaceModeOrder}"
  1807. ItemsSource="{Binding PlaceModeOrder}"
  1808. />
  1809. <Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
  1810. <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
  1811. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  1812. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  1813. </StackPanel>
  1814. <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
  1815. <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
  1816. <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
  1817. <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  1818. <Label Grid.Row="7" Grid.Column="0" Content="Wafer ID Reader:" />
  1819. <ComboBox Grid.Row="7" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderList}" />
  1820. </Grid>
  1821. <Grid x:Key="RecipeTemplateOrderTurnOver" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  1822. <Grid.Resources>
  1823. <Style TargetType="Label">
  1824. <Setter Property="HorizontalAlignment" Value="Center" />
  1825. <Setter Property="VerticalAlignment" Value="Center" />
  1826. </Style>
  1827. </Grid.Resources>
  1828. <Grid.RowDefinitions>
  1829. <RowDefinition Height="40" />
  1830. <RowDefinition Height="40" />
  1831. <RowDefinition Height="0" />
  1832. <RowDefinition Height="40" />
  1833. <RowDefinition Height="40" />
  1834. <RowDefinition Height="40" />
  1835. <RowDefinition Height="60" />
  1836. <RowDefinition Height="40" />
  1837. <RowDefinition Height="*" />
  1838. </Grid.RowDefinitions>
  1839. <Grid.ColumnDefinitions>
  1840. <ColumnDefinition Width="160" />
  1841. <ColumnDefinition Width="*" />
  1842. </Grid.ColumnDefinitions>
  1843. <Label Grid.Row="0" Grid.Column="0" Content="Order By:" />
  1844. <StackPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  1845. <RadioButton GroupName="order" Margin="18,0" Content="Laser Mark" IsChecked="{Binding CurrentRecipe.OrderBy, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static common1:OrderByMode.LaserMarker}}" />
  1846. <RadioButton GroupName="order" Margin="18,0" Content="T7 Code" IsChecked="{Binding CurrentRecipe.OrderBy, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static common1:OrderByMode.T7Code}}"/>
  1847. </StackPanel>
  1848. <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
  1849. <WrapPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  1850. <ItemsControl ItemsSource="{Binding Sources}">
  1851. <ItemsControl.ItemsPanel>
  1852. <ItemsPanelTemplate>
  1853. <WrapPanel Orientation="Horizontal" />
  1854. </ItemsPanelTemplate>
  1855. </ItemsControl.ItemsPanel>
  1856. <ItemsControl.ItemTemplate>
  1857. <DataTemplate>
  1858. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  1859. </DataTemplate>
  1860. </ItemsControl.ItemTemplate>
  1861. </ItemsControl>
  1862. </WrapPanel>
  1863. <Label Grid.Row="3" Grid.Column="0" Content="Place Mode:" />
  1864. <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  1865. SelectedValuePath="Key"
  1866. DisplayMemberPath ="Value"
  1867. SelectedValue="{Binding CurrentRecipe.PlaceModeOrder}"
  1868. ItemsSource="{Binding PlaceModeOrder}"
  1869. />
  1870. <Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
  1871. <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
  1872. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  1873. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  1874. </StackPanel>
  1875. <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
  1876. <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
  1877. <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
  1878. <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  1879. <Label Grid.Row="7" Grid.Column="0" Content="Wafer ID Reader:" />
  1880. <ComboBox Grid.Row="7" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderList}" />
  1881. <Label Grid.Row="8" Grid.Column="0" Content="Turn Over:" />
  1882. <CheckBox Grid.Row="8" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsTurnOver}" />
  1883. </Grid>
  1884. <Grid x:Key="RecipeTemplateHost" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  1885. <Grid.Resources>
  1886. <Style TargetType="Label">
  1887. <Setter Property="HorizontalAlignment" Value="Center" />
  1888. <Setter Property="VerticalAlignment" Value="Center" />
  1889. </Style>
  1890. </Grid.Resources>
  1891. <Grid.RowDefinitions>
  1892. <RowDefinition Height="0" />
  1893. <RowDefinition Height="0" />
  1894. <RowDefinition Height="0" />
  1895. <RowDefinition Height="0" />
  1896. <RowDefinition Height="40" />
  1897. <RowDefinition Height="40" />
  1898. <RowDefinition Height="40" />
  1899. <RowDefinition Height="40" />
  1900. <RowDefinition Height="40" />
  1901. </Grid.RowDefinitions>
  1902. <Grid.ColumnDefinitions>
  1903. <ColumnDefinition Width="160" />
  1904. <ColumnDefinition Width="*" />
  1905. </Grid.ColumnDefinitions>
  1906. <Label Grid.Row="5" Grid.Column="0" Content="Verify:" />
  1907. <StackPanel Orientation="Horizontal" Grid.Row="5" Grid.Column="1">
  1908. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" />
  1909. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" />
  1910. <CheckBox Content="Any" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" />
  1911. </StackPanel>
  1912. <Label Grid.Row="4" Grid.Column="0" Content="Read:" />
  1913. <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
  1914. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" />
  1915. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" />
  1916. </StackPanel>
  1917. <Label Grid.Row="6" Grid.Column="0" Content="Align:" />
  1918. <CheckBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" />
  1919. <Label Grid.Row="7" Grid.Column="0" Content="Align Angle:" />
  1920. <TextBox Grid.Row="7" Grid.Column="1" HorizontalAlignment="Left" Width="200" Height="30" Margin="18,4" VerticalAlignment="Center" />
  1921. <Label Grid.Row="8" Grid.Column="0" Content="Wafer ID Reader:" />
  1922. <ComboBox Grid.Row="8" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderList}" />
  1923. </Grid>
  1924. <Grid x:Key="RecipeTemplateReaderWaferID" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  1925. <Grid.Resources>
  1926. <Style TargetType="Label">
  1927. <Setter Property="HorizontalAlignment" Value="Center" />
  1928. <Setter Property="VerticalAlignment" Value="Center" />
  1929. </Style>
  1930. </Grid.Resources>
  1931. <Grid.RowDefinitions>
  1932. <RowDefinition Height="40" />
  1933. <RowDefinition Height="40" />
  1934. <RowDefinition Height="40" />
  1935. <RowDefinition Height="40" />
  1936. <RowDefinition Height="40" />
  1937. <RowDefinition Height="0" />
  1938. <RowDefinition Height="0" />
  1939. <RowDefinition Height="0" />
  1940. <RowDefinition Height="*" />
  1941. </Grid.RowDefinitions>
  1942. <Grid.ColumnDefinitions>
  1943. <ColumnDefinition Width="160" />
  1944. <ColumnDefinition Width="*" />
  1945. </Grid.ColumnDefinitions>
  1946. <Label Grid.Row="0" Grid.Column="0" Content="Source:" />
  1947. <WrapPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  1948. <ItemsControl ItemsSource="{Binding Sources}">
  1949. <ItemsControl.ItemsPanel>
  1950. <ItemsPanelTemplate>
  1951. <WrapPanel Orientation="Horizontal" />
  1952. </ItemsPanelTemplate>
  1953. </ItemsControl.ItemsPanel>
  1954. <ItemsControl.ItemTemplate>
  1955. <DataTemplate>
  1956. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  1957. </DataTemplate>
  1958. </ItemsControl.ItemTemplate>
  1959. </ItemsControl>
  1960. </WrapPanel>
  1961. <Label Grid.Row="1" Grid.Column="0" Content="Read Laser Mark:" />
  1962. <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="1">
  1963. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  1964. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  1965. </StackPanel>
  1966. <Label Grid.Row="2" Grid.Column="0" Content="Wafer ID Reader:" />
  1967. <ComboBox Grid.Row="2" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderList}" />
  1968. </Grid>
  1969. <Grid x:Key="RecipeTemplateReaderWaferIDTurnOver" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  1970. <Grid.Resources>
  1971. <Style TargetType="Label">
  1972. <Setter Property="HorizontalAlignment" Value="Center" />
  1973. <Setter Property="VerticalAlignment" Value="Center" />
  1974. </Style>
  1975. </Grid.Resources>
  1976. <Grid.RowDefinitions>
  1977. <RowDefinition Height="40" />
  1978. <RowDefinition Height="40" />
  1979. <RowDefinition Height="40" />
  1980. <RowDefinition Height="40" />
  1981. <RowDefinition Height="40" />
  1982. <RowDefinition Height="0" />
  1983. <RowDefinition Height="0" />
  1984. <RowDefinition Height="0" />
  1985. <RowDefinition Height="*" />
  1986. </Grid.RowDefinitions>
  1987. <Grid.ColumnDefinitions>
  1988. <ColumnDefinition Width="160" />
  1989. <ColumnDefinition Width="*" />
  1990. </Grid.ColumnDefinitions>
  1991. <Label Grid.Row="0" Grid.Column="0" Content="Source:" />
  1992. <WrapPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  1993. <ItemsControl ItemsSource="{Binding Sources}">
  1994. <ItemsControl.ItemsPanel>
  1995. <ItemsPanelTemplate>
  1996. <WrapPanel Orientation="Horizontal" />
  1997. </ItemsPanelTemplate>
  1998. </ItemsControl.ItemsPanel>
  1999. <ItemsControl.ItemTemplate>
  2000. <DataTemplate>
  2001. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  2002. </DataTemplate>
  2003. </ItemsControl.ItemTemplate>
  2004. </ItemsControl>
  2005. </WrapPanel>
  2006. <Label Grid.Row="1" Grid.Column="0" Content="Read Laser Mark:" />
  2007. <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="1">
  2008. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  2009. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  2010. </StackPanel>
  2011. <Label Grid.Row="2" Grid.Column="0" Content="Wafer ID Reader:" />
  2012. <ComboBox Grid.Row="2" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderList}" />
  2013. <Label Grid.Row="3" Grid.Column="0" Content="Turn Over:" />
  2014. <CheckBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" IsChecked="{Binding CurrentRecipe.IsTurnOver}" />
  2015. </Grid>
  2016. <Grid x:Key="RecipeTemplateReaderWaferIDOnlyOneWaferIDReader" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  2017. <Grid.Resources>
  2018. <Style TargetType="Label">
  2019. <Setter Property="HorizontalAlignment" Value="Center" />
  2020. <Setter Property="VerticalAlignment" Value="Center" />
  2021. </Style>
  2022. </Grid.Resources>
  2023. <Grid.RowDefinitions>
  2024. <RowDefinition Height="40" />
  2025. <RowDefinition Height="40" />
  2026. <RowDefinition Height="40" />
  2027. <RowDefinition Height="40" />
  2028. <RowDefinition Height="40" />
  2029. <RowDefinition Height="0" />
  2030. <RowDefinition Height="0" />
  2031. <RowDefinition Height="0" />
  2032. <RowDefinition Height="*" />
  2033. </Grid.RowDefinitions>
  2034. <Grid.ColumnDefinitions>
  2035. <ColumnDefinition Width="160" />
  2036. <ColumnDefinition Width="*" />
  2037. </Grid.ColumnDefinitions>
  2038. <Label Grid.Row="0" Grid.Column="0" Content="Source:" />
  2039. <WrapPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  2040. <ItemsControl ItemsSource="{Binding Sources}">
  2041. <ItemsControl.ItemsPanel>
  2042. <ItemsPanelTemplate>
  2043. <WrapPanel Orientation="Horizontal" />
  2044. </ItemsPanelTemplate>
  2045. </ItemsControl.ItemsPanel>
  2046. <ItemsControl.ItemTemplate>
  2047. <DataTemplate>
  2048. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  2049. </DataTemplate>
  2050. </ItemsControl.ItemTemplate>
  2051. </ItemsControl>
  2052. </WrapPanel>
  2053. <Label Grid.Row="1" Grid.Column="0" Content="Read Laser Mark:" />
  2054. <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="1">
  2055. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  2056. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  2057. </StackPanel>
  2058. <Label Grid.Row="2" Grid.Column="0" Content="Wafer ID Reader:" />
  2059. <ComboBox Grid.Row="2" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderListOnlyOne}" />
  2060. </Grid>
  2061. <Grid x:Key="RecipeTemplateReaderWaferIDOnlyOneWaferIDReaderNew" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  2062. <Grid.Resources>
  2063. <Style TargetType="Label">
  2064. <Setter Property="HorizontalAlignment" Value="Center" />
  2065. <Setter Property="VerticalAlignment" Value="Center" />
  2066. </Style>
  2067. </Grid.Resources>
  2068. <Grid.RowDefinitions>
  2069. <RowDefinition Height="40" />
  2070. <RowDefinition Height="*" />
  2071. <RowDefinition Height="40" />
  2072. <RowDefinition Height="40" />
  2073. <RowDefinition Height="40" />
  2074. <RowDefinition Height="0" />
  2075. <RowDefinition Height="0" />
  2076. <RowDefinition Height="0" />
  2077. <RowDefinition Height="*" />
  2078. </Grid.RowDefinitions>
  2079. <Grid.ColumnDefinitions>
  2080. <ColumnDefinition Width="160" />
  2081. <ColumnDefinition Width="*" />
  2082. </Grid.ColumnDefinitions>
  2083. <Label Grid.Row="0" Grid.Column="0" Content="Source:" />
  2084. <WrapPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  2085. <ItemsControl ItemsSource="{Binding Sources}">
  2086. <ItemsControl.ItemsPanel>
  2087. <ItemsPanelTemplate>
  2088. <WrapPanel Orientation="Horizontal" />
  2089. </ItemsPanelTemplate>
  2090. </ItemsControl.ItemsPanel>
  2091. <ItemsControl.ItemTemplate>
  2092. <DataTemplate>
  2093. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  2094. </DataTemplate>
  2095. </ItemsControl.ItemTemplate>
  2096. </ItemsControl>
  2097. </WrapPanel>
  2098. <Label Grid.Row="1" Grid.Column="0" Content="Recipe:" />
  2099. <ListBox Grid.Row="1" Grid.Column="1" ItemsSource="{Binding HostRecipeList}" SelectedValue="{Binding CurrentRecipe.ReadIDRecipe,Mode=TwoWay}"/>
  2100. <Label Grid.Row="2" Grid.Column="1" Content="{Binding CurrentRecipe.ReadIDRecipe}"/>
  2101. <!--<Label Grid.Row="1" Grid.Column="0" Content="Read Laser Mark:" />
  2102. <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="1">
  2103. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  2104. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  2105. </StackPanel>
  2106. <Label Grid.Row="2" Grid.Column="0" Content="Wafer ID Reader:" />
  2107. <ComboBox Grid.Row="2" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0" SelectedValue="{Binding CurrentRecipe.WaferReaderIndex}" ItemsSource="{StaticResource WaferIDReaderListOnlyOne}" />-->
  2108. </Grid>
  2109. <Grid x:Key="RecipeTemplateAlign" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  2110. <Grid.Resources>
  2111. <Style TargetType="Label">
  2112. <Setter Property="HorizontalAlignment" Value="Center" />
  2113. <Setter Property="VerticalAlignment" Value="Center" />
  2114. </Style>
  2115. </Grid.Resources>
  2116. <Grid.RowDefinitions>
  2117. <RowDefinition Height="40" />
  2118. <RowDefinition Height="60" />
  2119. <RowDefinition Height="60" />
  2120. <RowDefinition Height="40" />
  2121. <RowDefinition Height="0" />
  2122. <RowDefinition Height="0" />
  2123. <RowDefinition Height="0" />
  2124. <RowDefinition Height="0" />
  2125. <RowDefinition Height="*" />
  2126. </Grid.RowDefinitions>
  2127. <Grid.ColumnDefinitions>
  2128. <ColumnDefinition Width="160" />
  2129. <ColumnDefinition Width="*" />
  2130. </Grid.ColumnDefinitions>
  2131. <Label Grid.Row="0" Grid.Column="0" Content="Source:" />
  2132. <WrapPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  2133. <ItemsControl ItemsSource="{Binding Sources}">
  2134. <ItemsControl.ItemsPanel>
  2135. <ItemsPanelTemplate>
  2136. <WrapPanel Orientation="Horizontal" />
  2137. </ItemsPanelTemplate>
  2138. </ItemsControl.ItemsPanel>
  2139. <ItemsControl.ItemTemplate>
  2140. <DataTemplate>
  2141. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  2142. </DataTemplate>
  2143. </ItemsControl.ItemTemplate>
  2144. </ItemsControl>
  2145. </WrapPanel>
  2146. <Label Grid.Row="1" Grid.Column="0" Content="Align Angle:" />
  2147. <TextBox Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  2148. </Grid>
  2149. <Grid x:Key="RecipeTemplateAlignNew" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  2150. <Grid.Resources>
  2151. <Style TargetType="Label">
  2152. <Setter Property="HorizontalAlignment" Value="Center" />
  2153. <Setter Property="VerticalAlignment" Value="Center" />
  2154. </Style>
  2155. </Grid.Resources>
  2156. <Grid.RowDefinitions>
  2157. <RowDefinition Height="40" />
  2158. <RowDefinition Height="*" />
  2159. <RowDefinition Height="40" />
  2160. <RowDefinition Height="40" />
  2161. <RowDefinition Height="0" />
  2162. <RowDefinition Height="0" />
  2163. <RowDefinition Height="0" />
  2164. <RowDefinition Height="0" />
  2165. <RowDefinition Height="*" />
  2166. </Grid.RowDefinitions>
  2167. <Grid.ColumnDefinitions>
  2168. <ColumnDefinition Width="160" />
  2169. <ColumnDefinition Width="*" />
  2170. </Grid.ColumnDefinitions>
  2171. <Label Grid.Row="0" Grid.Column="0" Content="Source:" />
  2172. <WrapPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  2173. <ItemsControl ItemsSource="{Binding Sources}">
  2174. <ItemsControl.ItemsPanel>
  2175. <ItemsPanelTemplate>
  2176. <WrapPanel Orientation="Horizontal" />
  2177. </ItemsPanelTemplate>
  2178. </ItemsControl.ItemsPanel>
  2179. <ItemsControl.ItemTemplate>
  2180. <DataTemplate>
  2181. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  2182. </DataTemplate>
  2183. </ItemsControl.ItemTemplate>
  2184. </ItemsControl>
  2185. </WrapPanel>
  2186. <Label Grid.Row="1" Grid.Column="0" Content="Recipe:" />
  2187. <ListBox Grid.Row="1" Grid.Column="1" ItemsSource="{Binding HostRecipeList}" SelectedValue="{Binding CurrentRecipe.ReadIDRecipe,Mode=TwoWay}"/>
  2188. <Label Grid.Row="2" Grid.Column="1" Content="{Binding CurrentRecipe.ReadIDRecipe}"/>
  2189. <!--<Label Grid.Row="1" Grid.Column="0" Content="Align Angle:" />
  2190. <TextBox Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />-->
  2191. </Grid>
  2192. <Grid x:Key="RecipeTemplateAlignTurnOver" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  2193. <Grid.Resources>
  2194. <Style TargetType="Label">
  2195. <Setter Property="HorizontalAlignment" Value="Center" />
  2196. <Setter Property="VerticalAlignment" Value="Center" />
  2197. </Style>
  2198. </Grid.Resources>
  2199. <Grid.RowDefinitions>
  2200. <RowDefinition Height="40" />
  2201. <RowDefinition Height="60" />
  2202. <RowDefinition Height="60" />
  2203. <RowDefinition Height="40" />
  2204. <RowDefinition Height="40" />
  2205. <RowDefinition Height="0" />
  2206. <RowDefinition Height="0" />
  2207. <RowDefinition Height="0" />
  2208. <RowDefinition Height="*" />
  2209. </Grid.RowDefinitions>
  2210. <Grid.ColumnDefinitions>
  2211. <ColumnDefinition Width="160" />
  2212. <ColumnDefinition Width="*" />
  2213. </Grid.ColumnDefinitions>
  2214. <Label Grid.Row="0" Grid.Column="0" Content="Source:" />
  2215. <WrapPanel Grid.Row="0" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  2216. <ItemsControl ItemsSource="{Binding Sources}">
  2217. <ItemsControl.ItemsPanel>
  2218. <ItemsPanelTemplate>
  2219. <WrapPanel Orientation="Horizontal" />
  2220. </ItemsPanelTemplate>
  2221. </ItemsControl.ItemsPanel>
  2222. <ItemsControl.ItemTemplate>
  2223. <DataTemplate>
  2224. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  2225. </DataTemplate>
  2226. </ItemsControl.ItemTemplate>
  2227. </ItemsControl>
  2228. </WrapPanel>
  2229. <Label Grid.Row="1" Grid.Column="0" Content="Align Angle:" />
  2230. <TextBox Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  2231. <Label Grid.Row="2" Grid.Column="0" Content="Turn Over:" />
  2232. <CheckBox Grid.Row="2" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsTurnOver}" />
  2233. </Grid>
  2234. <Grid x:Key="RecipeTemplateDefault" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  2235. <Grid.Resources>
  2236. <Style TargetType="Label">
  2237. <Setter Property="HorizontalAlignment" Value="Center" />
  2238. <Setter Property="VerticalAlignment" Value="Center" />
  2239. </Style>
  2240. </Grid.Resources>
  2241. <Grid.RowDefinitions>
  2242. <RowDefinition Height="0" />
  2243. <RowDefinition Height="40" />
  2244. <RowDefinition Height="0" />
  2245. <RowDefinition Height="0" />
  2246. <RowDefinition Height="40" />
  2247. <RowDefinition Height="40" />
  2248. <RowDefinition Height="60" />
  2249. <RowDefinition Height="40" />
  2250. <RowDefinition Height="*" />
  2251. </Grid.RowDefinitions>
  2252. <Grid.ColumnDefinitions>
  2253. <ColumnDefinition Width="160" />
  2254. <ColumnDefinition Width="*" />
  2255. </Grid.ColumnDefinitions>
  2256. <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
  2257. <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  2258. <RadioButton Content="LP1" Margin="18,0" IsChecked="{Binding CurrentRecipe.Source, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:ModuleName.LP1}}" />
  2259. <RadioButton Content="LP2" Margin="18,0" IsChecked="{Binding CurrentRecipe.Source, Converter={StaticResource valueMatchConverter}, ConverterParameter={x:Static Common:ModuleName.LP2}}" />
  2260. </StackPanel>
  2261. <Label Grid.Row="4" Grid.Column="0" Content="Read Laser Mark:" />
  2262. <StackPanel Orientation="Horizontal" Grid.Row="4" Grid.Column="1">
  2263. <CheckBox Content="Laser Mark" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadLaserMarker}" />
  2264. <CheckBox Content="T7 Code" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsReadT7Code}" />
  2265. </StackPanel>
  2266. <Label Grid.Row="5" Grid.Column="0" Content="Align:" />
  2267. <CheckBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" IsChecked="{Binding CurrentRecipe.IsAlign}" />
  2268. <Label Grid.Row="6" Grid.Column="0" Content="Align Angle:" />
  2269. <TextBox Grid.Row="6" Grid.Column="1" HorizontalAlignment="Left" Width="200" Margin="18,4" VerticalAlignment="Center" Text="{Binding CurrentRecipe.AlignAngle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
  2270. </Grid>
  2271. <Grid x:Key="RecipeTemplate1To1NoReaderNoAligner" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  2272. <Grid.Resources>
  2273. <Style TargetType="Label">
  2274. <Setter Property="HorizontalAlignment" Value="Center" />
  2275. <Setter Property="VerticalAlignment" Value="Center" />
  2276. </Style>
  2277. </Grid.Resources>
  2278. <Grid.RowDefinitions>
  2279. <RowDefinition Height="0" />
  2280. <RowDefinition Height="40" />
  2281. <RowDefinition Height="40" />
  2282. <RowDefinition Height="40" />
  2283. <RowDefinition Height="40" />
  2284. <RowDefinition Height="40" />
  2285. <RowDefinition Height="60" />
  2286. <RowDefinition Height="40" />
  2287. <RowDefinition Height="*" />
  2288. </Grid.RowDefinitions>
  2289. <Grid.ColumnDefinitions>
  2290. <ColumnDefinition Width="160" />
  2291. <ColumnDefinition Width="*" />
  2292. </Grid.ColumnDefinitions>
  2293. <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
  2294. <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  2295. <ItemsControl ItemsSource="{Binding Sources}">
  2296. <ItemsControl.ItemsPanel>
  2297. <ItemsPanelTemplate>
  2298. <StackPanel Orientation="Horizontal" />
  2299. </ItemsPanelTemplate>
  2300. </ItemsControl.ItemsPanel>
  2301. <ItemsControl.ItemTemplate>
  2302. <DataTemplate>
  2303. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  2304. </DataTemplate>
  2305. </ItemsControl.ItemTemplate>
  2306. </ItemsControl>
  2307. </StackPanel>
  2308. <Label Grid.Row="2" Grid.Column="0" Content="Destination:" />
  2309. <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" >
  2310. <ItemsControl ItemsSource="{Binding Destinations}">
  2311. <ItemsControl.ItemsPanel>
  2312. <ItemsPanelTemplate>
  2313. <StackPanel Orientation="Horizontal" />
  2314. </ItemsPanelTemplate>
  2315. </ItemsControl.ItemsPanel>
  2316. <ItemsControl.ItemTemplate>
  2317. <DataTemplate>
  2318. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  2319. </DataTemplate>
  2320. </ItemsControl.ItemTemplate>
  2321. </ItemsControl>
  2322. </StackPanel>
  2323. <Label Grid.Row="3" Grid.Column="0" Content="Place Mode:" />
  2324. <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  2325. SelectedValuePath="Key"
  2326. DisplayMemberPath ="Value"
  2327. SelectedValue="{Binding CurrentRecipe.PlaceModeTransfer1To1}"
  2328. ItemsSource="{Binding PlaceMode1To1}"
  2329. />
  2330. </Grid>
  2331. <Grid x:Key="RecipeTemplateHostNoReaderNoAligner" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  2332. </Grid>
  2333. <Grid x:Key="RecipeTemplateNToNNoReaderNoAligner" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  2334. <Grid.Resources>
  2335. <Style TargetType="Label">
  2336. <Setter Property="HorizontalAlignment" Value="Center" />
  2337. <Setter Property="VerticalAlignment" Value="Center" />
  2338. </Style>
  2339. </Grid.Resources>
  2340. <Grid.RowDefinitions>
  2341. <RowDefinition Height="*" />
  2342. </Grid.RowDefinitions>
  2343. <Grid.ColumnDefinitions>
  2344. <ColumnDefinition Width="*" />
  2345. </Grid.ColumnDefinitions>
  2346. <ListView ItemContainerStyle="{StaticResource ResourceKey=ListViewItemStyle}" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Margin="4,4" ItemsSource="{Binding CurrentRecipe.TransferItems}">
  2347. <ListView.View>
  2348. <GridView>
  2349. <GridViewColumn Header="Source" Width="100" DisplayMemberBinding="{Binding SourceStation}" />
  2350. <GridViewColumn Header="Slot" Width="60" DisplayMemberBinding="{Binding SourceSlot,Converter={StaticResource slotToIndexConverter}}" />
  2351. <GridViewColumn Header="Destination" Width="100" DisplayMemberBinding="{Binding DestinationStation}" />
  2352. <GridViewColumn Header="Slot" Width="60" DisplayMemberBinding="{Binding DestinationSlot,Converter={StaticResource slotToIndexConverter}}" />
  2353. <GridViewColumn Header="Action" Width="85" >
  2354. <GridViewColumn.CellTemplate>
  2355. <DataTemplate>
  2356. <Button Content="Remove" Height="28" ToolTip="Remove" Width="60" Command="{Binding DataContext.RemoveResultCommand, ElementName=root}" CommandParameter="{Binding}" />
  2357. </DataTemplate>
  2358. </GridViewColumn.CellTemplate>
  2359. </GridViewColumn>
  2360. </GridView>
  2361. </ListView.View>
  2362. </ListView>
  2363. </Grid>
  2364. <Grid x:Key="RecipeTemplatePackNoReaderNoAligner" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  2365. <Grid.Resources>
  2366. <Style TargetType="Label">
  2367. <Setter Property="HorizontalAlignment" Value="Center" />
  2368. <Setter Property="VerticalAlignment" Value="Center" />
  2369. </Style>
  2370. </Grid.Resources>
  2371. <Grid.RowDefinitions>
  2372. <RowDefinition Height="0" />
  2373. <RowDefinition Height="40" />
  2374. <RowDefinition Height="0" />
  2375. <RowDefinition Height="40" />
  2376. <RowDefinition Height="*" />
  2377. </Grid.RowDefinitions>
  2378. <Grid.ColumnDefinitions>
  2379. <ColumnDefinition Width="160" />
  2380. <ColumnDefinition Width="*" />
  2381. </Grid.ColumnDefinitions>
  2382. <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
  2383. <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center">
  2384. <ItemsControl ItemsSource="{Binding Sources}">
  2385. <ItemsControl.ItemsPanel>
  2386. <ItemsPanelTemplate>
  2387. <StackPanel Orientation="Horizontal" />
  2388. </ItemsPanelTemplate>
  2389. </ItemsControl.ItemsPanel>
  2390. <ItemsControl.ItemTemplate>
  2391. <DataTemplate>
  2392. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  2393. </DataTemplate>
  2394. </ItemsControl.ItemTemplate>
  2395. </ItemsControl>
  2396. </StackPanel>
  2397. <Label Grid.Row="3" Grid.Column="0" Content="Place Mode:" />
  2398. <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  2399. SelectedValuePath="Key"
  2400. DisplayMemberPath ="Value"
  2401. SelectedValue="{Binding CurrentRecipe.PlaceModePack}"
  2402. ItemsSource="{Binding PlaceModePack}"
  2403. />
  2404. </Grid>
  2405. <Grid x:Key="RecipeTemplatePackNoReaderNoAlignerOnlyLP1" Grid.Column="5" ctrlCommon:GridHelper.Column0="{DynamicResource Table_BG_Title}" ctrlCommon:GridHelper.Column1="Transparent">
  2406. <Grid.Resources>
  2407. <Style TargetType="Label">
  2408. <Setter Property="HorizontalAlignment" Value="Center" />
  2409. <Setter Property="VerticalAlignment" Value="Center" />
  2410. </Style>
  2411. </Grid.Resources>
  2412. <Grid.RowDefinitions>
  2413. <RowDefinition Height="0" />
  2414. <RowDefinition Height="40" />
  2415. <RowDefinition Height="0" />
  2416. <RowDefinition Height="40" />
  2417. <RowDefinition Height="*" />
  2418. </Grid.RowDefinitions>
  2419. <Grid.ColumnDefinitions>
  2420. <ColumnDefinition Width="160" />
  2421. <ColumnDefinition Width="*" />
  2422. </Grid.ColumnDefinitions>
  2423. <Label Grid.Row="1" Grid.Column="0" Content="Source:" />
  2424. <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left" Margin="18,0" VerticalAlignment="Center" Width="60">
  2425. <ItemsControl ItemsSource="{Binding Sources}">
  2426. <ItemsControl.ItemsPanel>
  2427. <ItemsPanelTemplate>
  2428. <StackPanel Orientation="Horizontal" />
  2429. </ItemsPanelTemplate>
  2430. </ItemsControl.ItemsPanel>
  2431. <ItemsControl.ItemTemplate>
  2432. <DataTemplate>
  2433. <CheckBox Content="{Binding Name}" IsChecked="{Binding IsChecked}" Margin="4,0,4,0" />
  2434. </DataTemplate>
  2435. </ItemsControl.ItemTemplate>
  2436. </ItemsControl>
  2437. </StackPanel>
  2438. <Label Grid.Row="3" Grid.Column="0" Content="Place Mode:" />
  2439. <ComboBox Grid.Row="3" Grid.Column="1" Width="300" Height="30" HorizontalAlignment="Left" Margin="18,0"
  2440. SelectedValuePath="Key"
  2441. DisplayMemberPath ="Value"
  2442. SelectedValue="{Binding CurrentRecipe.PlaceModePack}"
  2443. ItemsSource="{Binding PlaceModePack}"
  2444. />
  2445. </Grid>
  2446. </ResourceDictionary>