-- 作者:fyj0326
-- 发布时间:2011/6/29 21:27:00
--
经检查,是这个代码按钮出问题
Dim t As Table = Tables("原材料进销存按日明细帐") Dim g As Subtotalgroup t.SubtotalGroups.Clear() t.GroupAboveData = False t.TreeVisible = False t.SpillNode = True
g = New Subtotalgroup g.Aggregate = AggregateEnum.Sum g.GroupOn = "出入库日期" g.TotalOn = "期初_数量,期初_金额,入库_数量,入库_金额,出库_数量,出库_金额,库存_数量,库存_金额" g.Caption = "{0}月 小计" g.DateGroup = DateGroupEnum.Month t.SubtotalGroups.Add(g)
g = New Subtotalgroup g.Aggregate = AggregateEnum.Sum g.GroupOn = "出入库日期" g.TotalOn = "期初_数量,期初_金额,入库_数量,入库_金额,出库_数量,出库_金额,库存_数量,库存_金额" g.Caption = "{0}月 累计" g.DateGroup = DateGroupEnum.Month g.upto = True t.SubtotalGroups.Add(g)
t.Subtotal()
Dim Sum1 As Double Dim Sum2 As Double For i As Double= 0 To CurrentTable.Rows.Count(True) - 1 Dim r As Row = CurrentTable.Rows(i,True) If r.IsGroup If r("出入库日期").EndsWith("小计") Then sum1 = sum1 +r("期初_数量")+ r("入库_数量")- r("出库_数量") sum2 = sum2 +r("期初_金额")+ r("入库_金额")- r("出库_金额") End If r("库存_数量") = sum1 r("库存_金额") = sum2 End If Next
|
-- 作者:fyj0326
-- 发布时间:2011/6/29 21:29:00
--
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.BadImageFormatException: Bad class token. at Foxtable.WinForm.Form.O1ll1O10lO0l(ControlCollection O11OlO0l, DataRow O0Ol1Ol01, Int32 Ol01) at Foxtable.WinForm.Form.Create() at Foxtable.WinForm.Form.Ol1l(C1MainPage O0l0Ol11, Int32 O, Int32 O) at Foxtable.WinForm.Form.Open(Int32 O, Int32 O) at Foxtable.WinForm.Form.Show(Int32 O, Int32 O) at Foxtable.FormsManager.Ol11Ol10011Oll(Object Ol1l01, EventArgs O) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies ************** mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- Foxtable Assembly Version: 2011.7.5.1 Win32 Version: 2011.07.05.1 CodeBase: file:///F:/foxtable/Trial/foxtable.exe ---------------------------------------- Foxtable.Lib Assembly Version: 2011.7.5.1 Win32 Version: 2011.07.05.1 CodeBase: file:///F:/foxtable/Trial/Foxtable.Lib.DLL ---------------------------------------- System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- Microsoft.VisualBasic Assembly Version: 8.0.0.0 Win32 Version: 8.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll ---------------------------------------- System.Data Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll ---------------------------------------- System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- System.Management Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll ---------------------------------------- C1.Win.C1Ribbon.2 Assembly Version: 2.0.20102.279 Win32 Version: 2.0.20102.279 CodeBase: file:///F:/foxtable/Trial/C1.Win.C1Ribbon.2.DLL ---------------------------------------- C1.Win.C1Command.2 Assembly Version: 2.0.20102.19458 Win32 Version: 2.0.20102.19458 CodeBase: file:///F:/foxtable/Trial/C1.Win.C1Command.2.DLL ---------------------------------------- System.Transactions Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll ---------------------------------------- System.EnterpriseServices Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll ---------------------------------------- System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- Accessibility Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll ---------------------------------------- C1.Win.C1FlexGrid.2 Assembly Version: 2.6.20102.554 Win32 Version: 2.6.20102.554 CodeBase: file:///F:/foxtable/Trial/C1.Win.C1FlexGrid.2.DLL ---------------------------------------- Foxtable.Blank Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0 CodeBase: file:///F:/foxtable/Trial/Catch/Foxtable.Blank.dll ---------------------------------------- eec0b210.DataTable.原材料入库明细表 Assembly Version: 0.0.0.0 Win32 Version: 2011.07.05.1 CodeBase: file:///F:/foxtable/Trial/foxtable.exe ---------------------------------------- eec0b210.DataTable.原材料出库明细表 Assembly Version: 0.0.0.0 Win32 Version: 2011.07.05.1 CodeBase: file:///F:/foxtable/Trial/foxtable.exe ---------------------------------------- eec0b210.DataTable.原材料进销存按日明细帐 Assembly Version: 0.0.0.0 Win32 Version: 2011.07.05.1 CodeBase: file:///F:/foxtable/Trial/foxtable.exe ---------------------------------------- eec0b210.DataTable.新进销存 Assembly Version: 0.0.0.0 Win32 Version: 2011.07.05.1 CodeBase: file:///F:/foxtable/Trial/foxtable.exe ---------------------------------------- Interop.ADOX Assembly Version: 2.8.0.0 Win32 Version: 2.8.0.0 CodeBase: file:///F:/foxtable/Trial/Interop.ADOX.DLL ---------------------------------------- Interop.ADODB Assembly Version: 2.8.0.0 Win32 Version: 2.8.0.0 CodeBase: file:///F:/foxtable/Trial/Interop.ADODB.DLL ---------------------------------------- CustomMarshalers Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/CustomMarshalers/2.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll ---------------------------------------- Interop.MSScriptControl Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///F:/foxtable/Trial/Interop.MSScriptControl.DLL ---------------------------------------- eec0b210.Form Assembly Version: 0.0.0.0 Win32 Version: 2011.07.05.1 CodeBase: file:///F:/foxtable/Trial/foxtable.exe ---------------------------------------- C1.Win.C1Input.2 Assembly Version: 2.0.20102.33248 Win32 Version: 2.0.20102.33248 CodeBase: file:///F:/foxtable/Trial/C1.Win.C1Input.2.DLL ---------------------------------------- System.Design Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll ---------------------------------------- Foxtable.Ribbon Assembly Version: 0.0.0.0 Win32 Version: 2011.07.05.1 CodeBase: file:///F:/foxtable/Trial/foxtable.exe ---------------------------------------- System.Web Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll ---------------------------------------- Neodynamic.WinControls.BarcodeProfessional Assembly Version: 6.0.2000.0 Win32 Version: 6.0.2000.15 CodeBase: file:///F:/foxtable/Trial/Neodynamic.WinControls.BarcodeProfessional.DLL ---------------------------------------- i8fsdfme Assembly Version: 0.0.0.0 Win32 Version: 2.0.50727.42 (RTM.050727-4200) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- eec0b210.Form Assembly Version: 0.0.0.0 Win32 Version: 2011.07.05.1 CodeBase: file:///F:/foxtable/Trial/foxtable.exe ----------------------------------------
************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.
For example:
<configuration> <system.windows.forms jitDebugging="true" /> </configuration>
When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.
|