<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/tc/onlinemanual/000309" xml:lang="zh-cn">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">定义掩码示例</Title>
		<Keyword ContextSensitive="No"><Level1>掩码</Level1>
			<Level2>示例</Level2>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>序列号</Level1>
			<Level2>示例</Level2>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>序列化物料</Level1>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>序列</Level1>
		</Keyword>
	</Header>
	<GeneralSection><Paragraph class="Default">该示例显示了如何为下列类型的序列号定义掩码：</Paragraph>
		<Paragraph class="Default">DAF NL*D*Manu*RD*00437</Paragraph>
		<Paragraph class="Default">位置：</Paragraph>
		<TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated"><THEAD><TR><TD rowspan="1" colspan="1">掩码段</TD>
					<TD rowspan="1" colspan="1">说明</TD>
				</TR>
			</THEAD>
			<TBODY><TR><TD rowspan="1" colspan="1">DAF NL</TD>
					<TD rowspan="1" colspan="1">固定字母数字字符串</TD>
				</TR>
				<TR><TD rowspan="1" colspan="1">D</TD>
					<TD rowspan="1" colspan="1">年度编号 1994</TD>
				</TR>
				<TR><TD rowspan="1" colspan="1">Manu</TD>
					<TD rowspan="1" colspan="1">人工变速箱，与自动变速箱相反</TD>
				</TR>
				<TR><TD rowspan="1" colspan="1">RD</TD>
					<TD rowspan="1" colspan="1">红色的颜色代码</TD>
				</TR>
				<TR><TD rowspan="1" colspan="1">00437</TD>
					<TD rowspan="1" colspan="1">物料序号</TD>
				</TR>
			</TBODY>
		</TABLE>
		<ProcedureSection><SectionTitle>生成序列号</SectionTitle>
			<Steps><StepsIntro>要生成此类型的序列号，请执行以下步骤：</StepsIntro>
				<Step><StepTitle>定义掩码</StepTitle>
					<Paragraph class="Default">在 <GUIRef href="/baanerp/tc/ibd/tcibd4102m000" role="session">掩码 (tcibd4102m000)</GUIRef> 进程中定义掩码和说明，并输入星号 (*) 作为分隔符。</Paragraph>
				</Step>
				<Step><StepTitle>定义掩码段</StepTitle>
					<Paragraph class="Default">在 <GUIRef href="/baanerp/tc/ibd/tcibd4103s000" role="session">掩码段 (tcibd4103s000)</GUIRef> 进程中，选择掩码并将下列段添加到此掩码中：</Paragraph>
					<TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated"><TBODY><TR><TH rowspan="1" colspan="1">段号</TH>
								<TH rowspan="1" colspan="1">段类型</TH>
								<TH rowspan="1" colspan="1">段值</TH>
								<TH rowspan="1" colspan="1">段长度</TH>
							</TR>
							<TR><TD rowspan="1" colspan="1">10</TD>
								<TD rowspan="1" colspan="1">字母数字</TD>
								<TD rowspan="1" colspan="1">DAF NL</TD>
								<TD rowspan="1" colspan="1">6</TD>
							</TR>
							<TR><TD rowspan="1" colspan="1">20</TD>
								<TD rowspan="1" colspan="1">转换表</TD>
								<TD rowspan="1" colspan="1">年度</TD>
								<TD rowspan="1" colspan="1">1</TD>
							</TR>
							<TR><TD rowspan="1" colspan="1">30</TD>
								<TD rowspan="1" colspan="1">选项</TD>
								<TD rowspan="1" colspan="1">变速箱类型</TD>
								<TD rowspan="1" colspan="1">4</TD>
							</TR>
							<TR><TD rowspan="1" colspan="1">40</TD>
								<TD rowspan="1" colspan="1">转换表</TD>
								<TD rowspan="1" colspan="1">颜色</TD>
								<TD rowspan="1" colspan="1">2</TD>
							</TR>
							<TR><TD rowspan="1" colspan="1">50</TD>
								<TD rowspan="1" colspan="1">顺序</TD>
								<TD rowspan="1" colspan="1">1</TD>
								<TD rowspan="1" colspan="1">5</TD>
							</TR>
						</TBODY>
					</TABLE>
					<Paragraph class="Default"><Emphasis></Emphasis> 注意：如果指定段类型 <GUIRef href="/baanerp/tc/domains/ibd.sety#function" role="option">转换表</GUIRef> ，则必须选择一个现有转换表。先启动 <GUIRef href="/baanerp/tc/ibd/tcibd4104s000" role="session">转换表 (tcibd4104s000)</GUIRef> 进程，按照步骤 3 和步骤 4 中的说明定义转换表，然后继续在 <GUIRef href="/baanerp/tc/ibd/tcibd4103s000" role="session">掩码段 (tcibd4103s000)</GUIRef> 进程中执行操作。</Paragraph>
				</Step>
				<Step><StepTitle>定义转换表</StepTitle>
					<Paragraph class="Default">在 <GUIRef href="/baanerp/tc/ibd/tcibd4104s000" role="session">转换表 (tcibd4104s000)</GUIRef> 进程中，定义下列转换表：</Paragraph>
					<TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated"><TBODY><TR><TH rowspan="1" colspan="1">转换</TH>
								<TH rowspan="1" colspan="1">段</TH>
								<TH rowspan="1" colspan="1">值</TH>
							</TR>
							<TR><TD rowspan="1" colspan="1">表</TD>
								<TD rowspan="1" colspan="1">类型</TD>
								<TD rowspan="1" colspan="1">类型</TD>
							</TR>
							<TR><TD rowspan="1" colspan="1">年</TD>
								<TD rowspan="1" colspan="1">日期</TD>
								<TD rowspan="1" colspan="1">年（四位数）</TD>
							</TR>
							<TR><TD rowspan="1" colspan="1">COLOR</TD>
								<TD rowspan="1" colspan="1">选项</TD>
								<TD rowspan="1" colspan="1">颜色</TD>
							</TR>
						</TBODY>
					</TABLE>
				</Step>
				<Step><StepTitle>定义转换的值</StepTitle>
					<Paragraph class="Default">使用 <GUIRef href="/baanerp/tc/ibd/tcibd4106m000" role="session">维护转换表中的值 (tcibd4106m000)</GUIRef> 进程可定义每个转换表中的转换值，如下所述：</Paragraph>
					<TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated"><CAPTION><GUIRef href="" role="manual">年</GUIRef> 转换表</CAPTION>
						<TBODY><TR><TH rowspan="1" colspan="1">值类型</TH>
								<TH rowspan="1" colspan="1">段值</TH>
								<TH rowspan="1" colspan="1">已转换值</TH>
							</TR>
							<TR><TD rowspan="1" colspan="1">年（四位数）</TD>
								<TD rowspan="1" colspan="1">1990</TD>
								<TD rowspan="1" colspan="1">A</TD>
							</TR>
							<TR><TD rowspan="1" colspan="1">-</TD>
								<TD rowspan="1" colspan="1">1991</TD>
								<TD rowspan="1" colspan="1">B</TD>
							</TR>
							<TR><TD rowspan="1" colspan="1">-</TD>
								<TD rowspan="1" colspan="1">1992</TD>
								<TD rowspan="1" colspan="1">C</TD>
							</TR>
							<TR><TD rowspan="1" colspan="1">-</TD>
								<TD rowspan="1" colspan="1">1993</TD>
								<TD rowspan="1" colspan="1">D</TD>
							</TR>
						</TBODY>
					</TABLE>
					<TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated"><CAPTION><GUIRef href="" role="manual">颜色</GUIRef> 转换表</CAPTION>
						<TBODY><TR><TH rowspan="1" colspan="1">值类型</TH>
								<TH rowspan="1" colspan="1">段值</TH>
								<TH rowspan="1" colspan="1">已转换值</TH>
							</TR>
							<TR><TD rowspan="1" colspan="1">颜色</TD>
								<TD rowspan="1" colspan="1">黑色</TD>
								<TD rowspan="1" colspan="1">BK</TD>
							</TR>
							<TR><TD rowspan="1" colspan="1">-</TD>
								<TD rowspan="1" colspan="1">蓝色</TD>
								<TD rowspan="1" colspan="1">BU</TD>
							</TR>
							<TR><TD rowspan="1" colspan="1">-</TD>
								<TD rowspan="1" colspan="1">红色</TD>
								<TD rowspan="1" colspan="1">RD</TD>
							</TR>
							<TR><TD rowspan="1" colspan="1">-</TD>
								<TD rowspan="1" colspan="1">绿色</TD>
								<TD rowspan="1" colspan="1">GN</TD>
							</TR>
							<TR><TD rowspan="1" colspan="1">-</TD>
								<TD rowspan="1" colspan="1">黄色</TD>
								<TD rowspan="1" colspan="1">YW</TD>
							</TR>
						</TBODY>
					</TABLE>
				</Step>
			</Steps>
		</ProcedureSection>
	</GeneralSection>
</ManualTopic>
