Generic.xaml 148 KB

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