比如“工程”表中某月的数据为空时,此时该前缀的数据字典也是空值(即字典中不存在次前缀的序号),此时为该月的第一个编号,应该是“前缀-0001”。代码是哪处体现第一个编码的设置的?
1、服务端项目的HttpRequest事件代码:
Static bhs As new Dictionary(of String,Integer) '这个字典用于记录每个前缀的下一序号
If e.Path = "bianhao.htm"
If e.PostValues.ContainsKey("制单日期") AndAlso e.PostValues.ContainsKey("工程代码") Then
Dim max As Integer
Dim bh As String
Dim prefix As String = e.PostValues("工程代码") & "-" & Format(CDate(e.PostValues("制单日期")), "yyyyMM")
If bhs.ContainsKey(prefix) = False Then '如果字典中不存在次前缀的序号,
……