----主窗口··现实错误地方···
e.form.controls("label74").text = format(Date.now, "yyyy年MM月dd日 dddd")
e.form.controls("label39").text = user.name
e.form.controls("label40").text = User.Group
e.form.controls("label41").text = Tables("公告").rows(0)("公告")
---右侧导航显示错误地方··
Dim Page As WinForm.TopicPage
Dim cnt1 As Integer = DataTables("采购订单表").Compute("Count(采购_名称)","采购_下单日期 = #" & Date.Today & "#")
Dim cnt2 As Integer = DataTables("生产通知单").Compute("Count(产品名称)","下单日期 = #" & Date.Today & "#")
Dim cnt3 As Integer = DataTables("退货单").Compute("Count(退货_部件名称)","退货_日期 = #" & Date.Today & "#")
Dim cnt4 As Integer = DataTables("不合格评审").Compute("Count(产品名称)","检验日期 = #" & Date.Today & "#")
Dim cnt5 As Integer = DataTables("派工工单").Compute("Count(工序)","派工日期 = #" & Date.Today & "#")
Dim cnt6 As Integer = DataTables("订单流转").Compute("Count(产品名称)","日期 = #" & Date.Today & "#")
Dim cnt8 As Integer = DataTables("报检记录").Compute("Count(名称)","报检日期 = #" & Date.Today & "#")
Dim cnt9 As Integer = DataTables("订单发货统计").Compute("Count(产品名称)","发货日期 = #" & Date.Today & "#")
Page = e.Form.Controls("TopicBar1").Pages.Add(" 统计汇总"," 统计汇总","标志63.png")
Page.Links.Add("今日新增采购部件","今日新增采购部件 (" & cnt1 & ")","水果7.png" )
Page.Links.Add("今日新增销售工单","今日新增销售工单 (" & cnt2 & ")","水果2.png" )
Page.Links.Add("今日新增退货产品","今日新增退货产品 (" & cnt3 & ")","水果6.png" )
Page.Links.Add("今日新增不合格评审","今日新增不合格评审 (" & cnt4 & ")","水果12.png" )
Page.Links.Add("今日新增派工工单","今日新增派工工单 (" & cnt5 & ")","水果5.png" )
Page.Links.Add("今日新增流转订单","今日新增流转订单 (" & cnt6 & ")","水果4.png" )
Page.Links.Add("今日新增报检记录","今日新增报检记录 (" & cnt8 & ")","水果9.png" )
Page.Links.Add("今日新增订单发货","今日新增订单发货 (" & cnt9 & ")","水果8.png" )
Dim cnt7 As Integer = DataTables("采购订单表").Compute("Count(到货状态)", "( 到货状态 Is null Or 到货状态 <> \'正常\') ")
Page = e.Form.Controls("TopicBar2").Pages.Add(" 未完结采购订单"," 未完结采购订单","标志43.png")
Page.Links.Add("未完结采购订单汇总","未完结采购订单汇总(" & cnt7 & ")","惊讶6.png" )
Dim cnt10 As Integer = DataTables("生产通知单").Compute("Count(订单状态)", "( 订单状态 Is null Or 订单状态 <> \'完结\') ")
Page = e.Form.Controls("TopicBar3").Pages.Add(" 未完结订单"," 未完结订单","标志61.png")
Page.Links.Add("未完结销售订单汇总","未完结销售订单汇总(" & cnt10 & ")","惊讶4.png" )
---------