chr
2025-03-04 3f62d18e4361cd1d7a49c126765d95b2ad9c8246
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<UserControl x:Class="PdmSwPlugin.PropertySetting.Panel.JgjPartPanel"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d" 
             x:Name="self"
             d:DesignHeight="900" d:DesignWidth="800">
 
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/PdmSwPlugin.Common;component/Style/ToolBar.xaml"/>
                <ResourceDictionary Source="/PdmSwPlugin.Common;component/Style/ComboxStyle.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
 
    <StackPanel>
        <StackPanel x:Name="materialCodePanel">
            <Label Content="物料编码"/>
            <TextBox x:Name="materialCodeText" IsReadOnly="True" Text="{Binding materialCode,UpdateSourceTrigger=PropertyChanged}"/>
        </StackPanel>
 
        <StackPanel x:Name="weightPanel">
            <Label Content="重量(kg)"/>
            <TextBox IsReadOnly="True" x:Name="weightText" Text="{Binding weight}"/>
        </StackPanel>
 
        <StackPanel x:Name="materialNamePanel">
            <Label Content="物料名称"/>
            <TextBox x:Name="materialNameText" Text="{Binding materialName,UpdateSourceTrigger=PropertyChanged}"/>
        </StackPanel>
 
        <StackPanel x:Name="jgjTypePanel">
            <Label Content="加工件类型"/>
            <ComboBox x:Name="jgjTypeInput" Style="{StaticResource ShowTextCombox}"
                      Text="{Binding jgjType,Mode=TwoWay}" 
                      ItemsSource="{Binding jgjTypeItems}" />
        </StackPanel>
 
        <StackPanel x:Name="stuffPanel">
            <Label Content="材质"/>
            <ComboBox x:Name="stuffInput" Style="{StaticResource ShowTextCombox}" 
                      Text="{Binding stuff,Mode=TwoWay}"
                      ItemsSource="{Binding stuffItems}" 
                      DropDownOpened="stuffInput_DropDownOpened"/>
        </StackPanel>
 
        <StackPanel x:Name="surfacePanel">
            <Label Content="表面处理"/>
            <ComboBox x:Name="surfaceInput" Style="{StaticResource ShowTextCombox}" 
                        Text="{Binding surface,Mode=TwoWay}" 
                        ItemsSource="{Binding surfaceItems}" DropDownOpened="stuffInput_DropDownOpened"/>
        </StackPanel>
 
        <StackPanel x:Name="heatPanel">
            <Label Content="热处理"/>
            <ComboBox x:Name="heatInput" Style="{StaticResource ShowTextCombox}"
                        Text="{Binding heat,Mode=TwoWay}" 
                        ItemsSource="{Binding heatItems}" DropDownOpened="stuffInput_DropDownOpened"/>
        </StackPanel>
 
        <StackPanel x:Name="materialTypePanel">
            <Label Content="物料类型"/>
            <ComboBox ItemsSource="{Binding materialTypeItems}" SelectedItem="{Binding materialType,Mode=TwoWay}"/>
        </StackPanel>
 
        <StackPanel x:Name="createUserPanel">
            <Label Content="设计人员"/>
            <TextBox x:Name="createUserText" Text="{Binding designer,UpdateSourceTrigger=PropertyChanged}"/>
        </StackPanel>
 
        <StackPanel x:Name="remarkPanel">
            <Label Content="备注"/>
            <TextBox x:Name="remarkText" Text="{Binding remark,UpdateSourceTrigger=PropertyChanged}" />
        </StackPanel>
 
        <StackPanel x:Name="formatPanel">
            <Label Content="文件格式"/>
            <ComboBox ItemsSource="{Binding docTypeItems}" IsEnabled="{Binding DocTypeEnabled}"
SelectedItem="{Binding docType,Mode=TwoWay}"/>
        </StackPanel>
 
        <StackPanel x:Name="versionChangePanel">
            <CheckBox Content="版本变更" IsChecked="{Binding versionChangeBind}"/>
        </StackPanel>
    </StackPanel>
</UserControl>