├── AX_U8V1300 ├── 00COMMON │ ├── ADODBV28.dll │ ├── Interop.U8Login.dll │ └── adodb.dll ├── 01UAPvouchercontrol85 │ ├── AxUAPVoucherControl85.cs │ ├── EDITLib.dll │ ├── MSHierarchicalFlexGridLib.dll │ ├── MSXML2.dll │ ├── UAPUfToolKit85.dll │ ├── UAPVoucherControl85.dll │ ├── UFToolBarCtrl.dll │ ├── VBA.dll │ ├── VBRUN.dll │ └── VSFlex8N.dll ├── 02u8vouchlist │ ├── AxU8VouchList.cs │ ├── AxVSFlex8U.cs │ ├── MsSuperGrid.dll │ ├── Scripting.dll │ ├── U8VouchList.dll │ └── VSFlex8U.dll ├── 03U8RefEdit │ ├── AxU8Ref.cs │ └── U8Ref.dll ├── 04UFGeneralFilterOCX │ ├── AxUFGeneralFilterOCX.cs │ ├── UFGeneralFilterOCX.dll │ └── UFGeneralFilterPub.dll ├── 05voucherco_sa │ └── VoucherCO_Sa.dll ├── 06PrintControl │ ├── AxPRINTCONTROLLib.cs │ └── PRINTCONTROLLib.dll ├── 07US_Pz │ ├── ADOX.dll │ ├── DAO.dll │ ├── U8DefPro.dll │ ├── U8RowAuthsvr.dll │ ├── UFPortalProxyInterface.dll │ ├── UfDbKit.dll │ ├── ZzPub.dll │ └── ZzPz.dll ├── 08ReferMakeVouch │ ├── AxMSComctlLib.cs │ ├── AxReferMakeVouch.cs │ ├── MSComctlLib.dll │ └── ReferMakeVouch.dll ├── 09UFToolBarCtrl │ └── AxUFToolBarCtrl.cs ├── Target │ ├── ADODBV28.dll │ ├── ADOX.dll │ ├── AxMSComctlLib.cs │ ├── AxPRINTCONTROLLib.cs │ ├── AxReferMakeVouch.cs │ ├── AxU8Ref.cs │ ├── AxU8VouchList.cs │ ├── AxUAPVoucherControl85.cs │ ├── AxUFGeneralFilterOCX.cs │ ├── AxUFToolBarCtrl.cs │ ├── AxVSFlex8U.cs │ ├── DAO.dll │ ├── EDITLib.dll │ ├── Interop.U8Login.dll │ ├── MSComctlLib.dll │ ├── MSHierarchicalFlexGridLib.dll │ ├── MSXML2.dll │ ├── MsSuperGrid.dll │ ├── PRINTCONTROLLib.dll │ ├── ReferMakeVouch.dll │ ├── Scripting.dll │ ├── U8DefPro.dll │ ├── U8Ref.dll │ ├── U8RowAuthsvr.dll │ ├── U8VouchList.dll │ ├── UAPUfToolKit85.dll │ ├── UAPVoucherControl85.dll │ ├── UFGeneralFilterOCX.dll │ ├── UFGeneralFilterPub.dll │ ├── UFPortalProxyInterface.dll │ ├── UFToolBarCtrl.dll │ ├── UfDbKit.dll │ ├── VBA.dll │ ├── VBRUN.dll │ ├── VSFlex8N.dll │ ├── VSFlex8U.dll │ ├── VoucherCO_Sa.dll │ ├── ZzPub.dll │ ├── ZzPz.dll │ └── adodb.dll ├── aaaa.dll └── aaaa.txt ├── Bin ├── HYCommonLib.dll ├── UAPEventSyncAdapter.dll ├── ZAxImp.exe ├── ZTlbImp.exe ├── ZTlbImp2.exe └── fr.exe ├── ILMergeGUI_Portable.exe ├── License.reg ├── README.md ├── Start.bat └── VB6 OCX许可证算法分析.xlsm /AX_U8V1300/00COMMON/ADODBV28.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/00COMMON/ADODBV28.dll -------------------------------------------------------------------------------- /AX_U8V1300/00COMMON/Interop.U8Login.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/00COMMON/Interop.U8Login.dll -------------------------------------------------------------------------------- /AX_U8V1300/00COMMON/adodb.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/00COMMON/adodb.dll -------------------------------------------------------------------------------- /AX_U8V1300/01UAPvouchercontrol85/EDITLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/01UAPvouchercontrol85/EDITLib.dll -------------------------------------------------------------------------------- /AX_U8V1300/01UAPvouchercontrol85/MSHierarchicalFlexGridLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/01UAPvouchercontrol85/MSHierarchicalFlexGridLib.dll -------------------------------------------------------------------------------- /AX_U8V1300/01UAPvouchercontrol85/MSXML2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/01UAPvouchercontrol85/MSXML2.dll -------------------------------------------------------------------------------- /AX_U8V1300/01UAPvouchercontrol85/UAPUfToolKit85.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/01UAPvouchercontrol85/UAPUfToolKit85.dll -------------------------------------------------------------------------------- /AX_U8V1300/01UAPvouchercontrol85/UAPVoucherControl85.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/01UAPvouchercontrol85/UAPVoucherControl85.dll -------------------------------------------------------------------------------- /AX_U8V1300/01UAPvouchercontrol85/UFToolBarCtrl.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/01UAPvouchercontrol85/UFToolBarCtrl.dll -------------------------------------------------------------------------------- /AX_U8V1300/01UAPvouchercontrol85/VBA.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/01UAPvouchercontrol85/VBA.dll -------------------------------------------------------------------------------- /AX_U8V1300/01UAPvouchercontrol85/VBRUN.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/01UAPvouchercontrol85/VBRUN.dll -------------------------------------------------------------------------------- /AX_U8V1300/01UAPvouchercontrol85/VSFlex8N.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/01UAPvouchercontrol85/VSFlex8N.dll -------------------------------------------------------------------------------- /AX_U8V1300/02u8vouchlist/MsSuperGrid.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/02u8vouchlist/MsSuperGrid.dll -------------------------------------------------------------------------------- /AX_U8V1300/02u8vouchlist/Scripting.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/02u8vouchlist/Scripting.dll -------------------------------------------------------------------------------- /AX_U8V1300/02u8vouchlist/U8VouchList.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/02u8vouchlist/U8VouchList.dll -------------------------------------------------------------------------------- /AX_U8V1300/02u8vouchlist/VSFlex8U.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/02u8vouchlist/VSFlex8U.dll -------------------------------------------------------------------------------- /AX_U8V1300/03U8RefEdit/U8Ref.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/03U8RefEdit/U8Ref.dll -------------------------------------------------------------------------------- /AX_U8V1300/04UFGeneralFilterOCX/UFGeneralFilterOCX.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/04UFGeneralFilterOCX/UFGeneralFilterOCX.dll -------------------------------------------------------------------------------- /AX_U8V1300/04UFGeneralFilterOCX/UFGeneralFilterPub.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/04UFGeneralFilterOCX/UFGeneralFilterPub.dll -------------------------------------------------------------------------------- /AX_U8V1300/05voucherco_sa/VoucherCO_Sa.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/05voucherco_sa/VoucherCO_Sa.dll -------------------------------------------------------------------------------- /AX_U8V1300/06PrintControl/AxPRINTCONTROLLib.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本:4.0.30319.42000 5 | // 6 | // 对此文件的更改可能会导致不正确的行为,并且如果 7 | // 重新生成代码,这些更改将会丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | [assembly: System.Reflection.AssemblyVersion("1.0.0.0")] 12 | [assembly: System.Windows.Forms.AxHost.TypeLibraryTimeStamp("01/17/2018 14:14:20")] 13 | 14 | namespace AxPRINTCONTROLLib { 15 | 16 | 17 | [System.Windows.Forms.AxHost.ClsidAttribute("{6dd3f42c-144c-4f50-9e0a-eb3d396d078a}")] 18 | [System.ComponentModel.DesignTimeVisibleAttribute(true)] 19 | [System.ComponentModel.DefaultEvent("SettingChanged")] 20 | public class AxPrintControl : System.Windows.Forms.AxHost { 21 | 22 | private PRINTCONTROLLib._DPrintControl ocx; 23 | 24 | private AxPrintControlEventMulticaster eventMulticaster; 25 | 26 | private System.Windows.Forms.AxHost.ConnectionPointCookie cookie; 27 | 28 | public AxPrintControl() : 29 | base("6dd3f42c-144c-4f50-9e0a-eb3d396d078a") { 30 | this.SetAboutBoxDelegate(new AboutBoxDelegate(AboutBox)); 31 | } 32 | 33 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 34 | [System.Runtime.InteropServices.DispIdAttribute(1)] 35 | public virtual bool bDesignMode { 36 | get { 37 | if ((this.ocx == null)) { 38 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("bDesignMode", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 39 | } 40 | return this.ocx.bDesignMode; 41 | } 42 | set { 43 | if ((this.ocx == null)) { 44 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("bDesignMode", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 45 | } 46 | this.ocx.bDesignMode = value; 47 | } 48 | } 49 | 50 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 51 | [System.Runtime.InteropServices.DispIdAttribute(2)] 52 | public virtual bool EnableSave { 53 | get { 54 | if ((this.ocx == null)) { 55 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("EnableSave", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 56 | } 57 | return this.ocx.EnableSave; 58 | } 59 | set { 60 | if ((this.ocx == null)) { 61 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("EnableSave", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 62 | } 63 | this.ocx.EnableSave = value; 64 | } 65 | } 66 | 67 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 68 | [System.Runtime.InteropServices.DispIdAttribute(3)] 69 | public virtual bool ShowSegColon { 70 | get { 71 | if ((this.ocx == null)) { 72 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ShowSegColon", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 73 | } 74 | return this.ocx.ShowSegColon; 75 | } 76 | set { 77 | if ((this.ocx == null)) { 78 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ShowSegColon", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 79 | } 80 | this.ocx.ShowSegColon = value; 81 | } 82 | } 83 | 84 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 85 | [System.Runtime.InteropServices.DispIdAttribute(4)] 86 | public virtual bool ReserveSegTitlePos { 87 | get { 88 | if ((this.ocx == null)) { 89 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ReserveSegTitlePos", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 90 | } 91 | return this.ocx.ReserveSegTitlePos; 92 | } 93 | set { 94 | if ((this.ocx == null)) { 95 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ReserveSegTitlePos", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 96 | } 97 | this.ocx.ReserveSegTitlePos = value; 98 | } 99 | } 100 | 101 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 102 | [System.Runtime.InteropServices.DispIdAttribute(5)] 103 | public virtual bool ExportTableOnly { 104 | get { 105 | if ((this.ocx == null)) { 106 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ExportTableOnly", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 107 | } 108 | return this.ocx.ExportTableOnly; 109 | } 110 | set { 111 | if ((this.ocx == null)) { 112 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ExportTableOnly", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 113 | } 114 | this.ocx.ExportTableOnly = value; 115 | } 116 | } 117 | 118 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 119 | [System.Runtime.InteropServices.DispIdAttribute(20)] 120 | public virtual bool EnableExport { 121 | get { 122 | if ((this.ocx == null)) { 123 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("EnableExport", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 124 | } 125 | return this.ocx.EnableExport; 126 | } 127 | set { 128 | if ((this.ocx == null)) { 129 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("EnableExport", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 130 | } 131 | this.ocx.EnableExport = value; 132 | } 133 | } 134 | 135 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 136 | [System.Runtime.InteropServices.DispIdAttribute(21)] 137 | public virtual int PartialPrint { 138 | get { 139 | if ((this.ocx == null)) { 140 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("PartialPrint", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 141 | } 142 | return this.ocx.PartialPrint; 143 | } 144 | set { 145 | if ((this.ocx == null)) { 146 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("PartialPrint", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 147 | } 148 | this.ocx.PartialPrint = value; 149 | } 150 | } 151 | 152 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 153 | [System.Runtime.InteropServices.DispIdAttribute(24)] 154 | public virtual bool EnablePageHFSetting { 155 | get { 156 | if ((this.ocx == null)) { 157 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("EnablePageHFSetting", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 158 | } 159 | return this.ocx.EnablePageHFSetting; 160 | } 161 | set { 162 | if ((this.ocx == null)) { 163 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("EnablePageHFSetting", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 164 | } 165 | this.ocx.EnablePageHFSetting = value; 166 | } 167 | } 168 | 169 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 170 | [System.Runtime.InteropServices.DispIdAttribute(27)] 171 | public virtual int sFileType { 172 | get { 173 | if ((this.ocx == null)) { 174 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("sFileType", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 175 | } 176 | return this.ocx.sFileType; 177 | } 178 | set { 179 | if ((this.ocx == null)) { 180 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("sFileType", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 181 | } 182 | this.ocx.sFileType = value; 183 | } 184 | } 185 | 186 | public event _DPrintControlEvents_SettingChangedEventHandler SettingChanged; 187 | 188 | public event _DPrintControlEvents_BeginPrintingEventHandler BeginPrinting; 189 | 190 | public event _DPrintControlEvents_PrintingEventHandler Printing; 191 | 192 | public event System.EventHandler EndPrinting; 193 | 194 | public event _DPrintControlEvents_PressOKEventHandler PressOK; 195 | 196 | public virtual int SetDataStyleXML(object varDataXML, bool bDataIsFile, object varStyleXML, bool bStyleIsFile, object varModuleID) { 197 | if ((this.ocx == null)) { 198 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetDataStyleXML", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 199 | } 200 | int returnValue = ((int)(this.ocx.SetDataStyleXML(varDataXML, bDataIsFile, varStyleXML, bStyleIsFile, varModuleID))); 201 | return returnValue; 202 | } 203 | 204 | public virtual int PageSetup() { 205 | if ((this.ocx == null)) { 206 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("PageSetup", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 207 | } 208 | int returnValue = ((int)(this.ocx.PageSetup())); 209 | return returnValue; 210 | } 211 | 212 | public virtual int PrintPreview() { 213 | if ((this.ocx == null)) { 214 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("PrintPreview", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 215 | } 216 | int returnValue = ((int)(this.ocx.PrintPreview())); 217 | return returnValue; 218 | } 219 | 220 | public virtual int DoPrint() { 221 | if ((this.ocx == null)) { 222 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("DoPrint", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 223 | } 224 | int returnValue = ((int)(this.ocx.DoPrint())); 225 | return returnValue; 226 | } 227 | 228 | public virtual int SetOwner(int hwndOwner) { 229 | if ((this.ocx == null)) { 230 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetOwner", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 231 | } 232 | int returnValue = ((int)(this.ocx.SetOwner(hwndOwner))); 233 | return returnValue; 234 | } 235 | 236 | public virtual int ExportToFile(int lJobId, object varColType, object varColSize, object varColName, object varTempDBPath) { 237 | if ((this.ocx == null)) { 238 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ExportToFile", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 239 | } 240 | int returnValue = ((int)(this.ocx.ExportToFile(lJobId, varColType, varColSize, varColName, varTempDBPath))); 241 | return returnValue; 242 | } 243 | 244 | public virtual int PrintEx(bool bShowPrintDlg) { 245 | if ((this.ocx == null)) { 246 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("PrintEx", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 247 | } 248 | int returnValue = ((int)(this.ocx.PrintEx(bShowPrintDlg))); 249 | return returnValue; 250 | } 251 | 252 | public virtual int TriggerEvent(int lEventId) { 253 | if ((this.ocx == null)) { 254 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TriggerEvent", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 255 | } 256 | int returnValue = ((int)(this.ocx.TriggerEvent(lEventId))); 257 | return returnValue; 258 | } 259 | 260 | public virtual void GetErrorMessage(int lErrCode, ref object pvarErrMessage) { 261 | if ((this.ocx == null)) { 262 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("GetErrorMessage", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 263 | } 264 | this.ocx.GetErrorMessage(lErrCode, ref pvarErrMessage); 265 | } 266 | 267 | public virtual void SetOB(object ob) { 268 | if ((this.ocx == null)) { 269 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetOB", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 270 | } 271 | this.ocx.SetOB(ob); 272 | } 273 | 274 | public virtual int ExportToFileEx(int lJobId, object varColType, object varColSize, object varColName, object varTempDBPath) { 275 | if ((this.ocx == null)) { 276 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ExportToFileEx", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 277 | } 278 | int returnValue = ((int)(this.ocx.ExportToFileEx(lJobId, varColType, varColSize, varColName, varTempDBPath))); 279 | return returnValue; 280 | } 281 | 282 | public virtual int ExportToAttached(int lTypeId, int lJobId, object varColType, object varColSize, object varColName, object varTempDBPath, ref object pvarFileName) { 283 | if ((this.ocx == null)) { 284 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ExportToAttached", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 285 | } 286 | int returnValue = ((int)(this.ocx.ExportToAttached(lTypeId, lJobId, varColType, varColSize, varColName, varTempDBPath, ref pvarFileName))); 287 | return returnValue; 288 | } 289 | 290 | public virtual int TriggerPressOKEvent(int lEventId) { 291 | if ((this.ocx == null)) { 292 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TriggerPressOKEvent", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 293 | } 294 | int returnValue = ((int)(this.ocx.TriggerPressOKEvent(lEventId))); 295 | return returnValue; 296 | } 297 | 298 | public virtual void CloseWindows() { 299 | if ((this.ocx == null)) { 300 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("CloseWindows", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 301 | } 302 | this.ocx.CloseWindows(); 303 | } 304 | 305 | public virtual string Convert2UCase(string langid, float currency, short ntype) { 306 | if ((this.ocx == null)) { 307 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Convert2UCase", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 308 | } 309 | string returnValue = ((string)(this.ocx.Convert2UCase(langid, currency, ntype))); 310 | return returnValue; 311 | } 312 | 313 | public virtual void SetExportHandle(object ob) { 314 | if ((this.ocx == null)) { 315 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetExportHandle", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 316 | } 317 | this.ocx.SetExportHandle(ob); 318 | } 319 | 320 | public virtual string Convert2UCaseEX(string langid, string currency, short ntype) { 321 | if ((this.ocx == null)) { 322 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Convert2UCaseEX", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 323 | } 324 | string returnValue = ((string)(this.ocx.Convert2UCaseEX(langid, currency, ntype))); 325 | return returnValue; 326 | } 327 | 328 | public virtual string SetLangID(string langid) { 329 | if ((this.ocx == null)) { 330 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetLangID", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 331 | } 332 | string returnValue = ((string)(this.ocx.SetLangID(langid))); 333 | return returnValue; 334 | } 335 | 336 | public virtual int ExportToFileEx2(int lJobId, object varColType, object varColSize, object varColName, object varTempDBPath, int lCurrentPage, int lTotalPage) { 337 | if ((this.ocx == null)) { 338 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ExportToFileEx2", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 339 | } 340 | int returnValue = ((int)(this.ocx.ExportToFileEx2(lJobId, varColType, varColSize, varColName, varTempDBPath, lCurrentPage, lTotalPage))); 341 | return returnValue; 342 | } 343 | 344 | public virtual int GetTaskPageNum() { 345 | if ((this.ocx == null)) { 346 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("GetTaskPageNum", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 347 | } 348 | int returnValue = ((int)(this.ocx.GetTaskPageNum())); 349 | return returnValue; 350 | } 351 | 352 | public virtual void AboutBox() { 353 | if ((this.ocx == null)) { 354 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("AboutBox", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 355 | } 356 | this.ocx.AboutBox(); 357 | } 358 | 359 | protected override void CreateSink() { 360 | try { 361 | this.eventMulticaster = new AxPrintControlEventMulticaster(this); 362 | this.cookie = new System.Windows.Forms.AxHost.ConnectionPointCookie(this.ocx, this.eventMulticaster, typeof(PRINTCONTROLLib._DPrintControlEvents)); 363 | } 364 | catch (System.Exception ) { 365 | } 366 | } 367 | 368 | protected override void DetachSink() { 369 | try { 370 | this.cookie.Disconnect(); 371 | } 372 | catch (System.Exception ) { 373 | } 374 | } 375 | 376 | protected override void AttachInterfaces() { 377 | try { 378 | this.ocx = ((PRINTCONTROLLib._DPrintControl)(this.GetOcx())); 379 | } 380 | catch (System.Exception ) { 381 | } 382 | } 383 | 384 | internal void RaiseOnSettingChanged(object sender, _DPrintControlEvents_SettingChangedEvent e) { 385 | if ((this.SettingChanged != null)) { 386 | this.SettingChanged(sender, e); 387 | } 388 | } 389 | 390 | internal void RaiseOnBeginPrinting(object sender, _DPrintControlEvents_BeginPrintingEvent e) { 391 | if ((this.BeginPrinting != null)) { 392 | this.BeginPrinting(sender, e); 393 | } 394 | } 395 | 396 | internal void RaiseOnPrinting(object sender, _DPrintControlEvents_PrintingEvent e) { 397 | if ((this.Printing != null)) { 398 | this.Printing(sender, e); 399 | } 400 | } 401 | 402 | internal void RaiseOnEndPrinting(object sender, System.EventArgs e) { 403 | if ((this.EndPrinting != null)) { 404 | this.EndPrinting(sender, e); 405 | } 406 | } 407 | 408 | internal void RaiseOnPressOK(object sender, _DPrintControlEvents_PressOKEvent e) { 409 | if ((this.PressOK != null)) { 410 | this.PressOK(sender, e); 411 | } 412 | } 413 | } 414 | 415 | public delegate void _DPrintControlEvents_SettingChangedEventHandler(object sender, _DPrintControlEvents_SettingChangedEvent e); 416 | 417 | public class _DPrintControlEvents_SettingChangedEvent { 418 | 419 | public object varLocalSettings; 420 | 421 | public object varModuleSettings; 422 | 423 | public _DPrintControlEvents_SettingChangedEvent(object varLocalSettings, object varModuleSettings) { 424 | this.varLocalSettings = varLocalSettings; 425 | this.varModuleSettings = varModuleSettings; 426 | } 427 | } 428 | 429 | public delegate void _DPrintControlEvents_BeginPrintingEventHandler(object sender, _DPrintControlEvents_BeginPrintingEvent e); 430 | 431 | public class _DPrintControlEvents_BeginPrintingEvent { 432 | 433 | public short jobs; 434 | 435 | public short fromPage; 436 | 437 | public short toPage; 438 | 439 | public short copies; 440 | 441 | public bool cancel; 442 | 443 | public _DPrintControlEvents_BeginPrintingEvent(short jobs, short fromPage, short toPage, short copies, bool cancel) { 444 | this.jobs = jobs; 445 | this.fromPage = fromPage; 446 | this.toPage = toPage; 447 | this.copies = copies; 448 | this.cancel = cancel; 449 | } 450 | } 451 | 452 | public delegate void _DPrintControlEvents_PrintingEventHandler(object sender, _DPrintControlEvents_PrintingEvent e); 453 | 454 | public class _DPrintControlEvents_PrintingEvent { 455 | 456 | public short page; 457 | 458 | public bool cancel; 459 | 460 | public _DPrintControlEvents_PrintingEvent(short page, bool cancel) { 461 | this.page = page; 462 | this.cancel = cancel; 463 | } 464 | } 465 | 466 | public delegate void _DPrintControlEvents_PressOKEventHandler(object sender, _DPrintControlEvents_PressOKEvent e); 467 | 468 | public class _DPrintControlEvents_PressOKEvent { 469 | 470 | public object varLocalSettings; 471 | 472 | public object varModuleSettings; 473 | 474 | public _DPrintControlEvents_PressOKEvent(object varLocalSettings, object varModuleSettings) { 475 | this.varLocalSettings = varLocalSettings; 476 | this.varModuleSettings = varModuleSettings; 477 | } 478 | } 479 | 480 | [System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)] 481 | public class AxPrintControlEventMulticaster : PRINTCONTROLLib._DPrintControlEvents { 482 | 483 | private AxPrintControl parent; 484 | 485 | public AxPrintControlEventMulticaster(AxPrintControl parent) { 486 | this.parent = parent; 487 | } 488 | 489 | public virtual void SettingChanged(object varLocalSettings, object varModuleSettings) { 490 | _DPrintControlEvents_SettingChangedEvent settingchangedEvent = new _DPrintControlEvents_SettingChangedEvent(varLocalSettings, varModuleSettings); 491 | this.parent.RaiseOnSettingChanged(this.parent, settingchangedEvent); 492 | } 493 | 494 | public virtual void BeginPrinting(short jobs, short fromPage, short toPage, short copies, ref bool cancel) { 495 | _DPrintControlEvents_BeginPrintingEvent beginprintingEvent = new _DPrintControlEvents_BeginPrintingEvent(jobs, fromPage, toPage, copies, cancel); 496 | this.parent.RaiseOnBeginPrinting(this.parent, beginprintingEvent); 497 | cancel = beginprintingEvent.cancel; 498 | } 499 | 500 | public virtual void Printing(short page, ref bool cancel) { 501 | _DPrintControlEvents_PrintingEvent printingEvent = new _DPrintControlEvents_PrintingEvent(page, cancel); 502 | this.parent.RaiseOnPrinting(this.parent, printingEvent); 503 | cancel = printingEvent.cancel; 504 | } 505 | 506 | public virtual void EndPrinting() { 507 | System.EventArgs endprintingEvent = new System.EventArgs(); 508 | this.parent.RaiseOnEndPrinting(this.parent, endprintingEvent); 509 | } 510 | 511 | public virtual void PressOK(object varLocalSettings, object varModuleSettings) { 512 | _DPrintControlEvents_PressOKEvent pressokEvent = new _DPrintControlEvents_PressOKEvent(varLocalSettings, varModuleSettings); 513 | this.parent.RaiseOnPressOK(this.parent, pressokEvent); 514 | } 515 | } 516 | } 517 | -------------------------------------------------------------------------------- /AX_U8V1300/06PrintControl/PRINTCONTROLLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/06PrintControl/PRINTCONTROLLib.dll -------------------------------------------------------------------------------- /AX_U8V1300/07US_Pz/ADOX.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/07US_Pz/ADOX.dll -------------------------------------------------------------------------------- /AX_U8V1300/07US_Pz/DAO.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/07US_Pz/DAO.dll -------------------------------------------------------------------------------- /AX_U8V1300/07US_Pz/U8DefPro.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/07US_Pz/U8DefPro.dll -------------------------------------------------------------------------------- /AX_U8V1300/07US_Pz/U8RowAuthsvr.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/07US_Pz/U8RowAuthsvr.dll -------------------------------------------------------------------------------- /AX_U8V1300/07US_Pz/UFPortalProxyInterface.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/07US_Pz/UFPortalProxyInterface.dll -------------------------------------------------------------------------------- /AX_U8V1300/07US_Pz/UfDbKit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/07US_Pz/UfDbKit.dll -------------------------------------------------------------------------------- /AX_U8V1300/07US_Pz/ZzPub.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/07US_Pz/ZzPub.dll -------------------------------------------------------------------------------- /AX_U8V1300/07US_Pz/ZzPz.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/07US_Pz/ZzPz.dll -------------------------------------------------------------------------------- /AX_U8V1300/08ReferMakeVouch/MSComctlLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/08ReferMakeVouch/MSComctlLib.dll -------------------------------------------------------------------------------- /AX_U8V1300/08ReferMakeVouch/ReferMakeVouch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/08ReferMakeVouch/ReferMakeVouch.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/ADODBV28.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/ADODBV28.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/ADOX.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/ADOX.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/AxPRINTCONTROLLib.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本:4.0.30319.42000 5 | // 6 | // 对此文件的更改可能会导致不正确的行为,并且如果 7 | // 重新生成代码,这些更改将会丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | [assembly: System.Reflection.AssemblyVersion("1.0.0.0")] 12 | [assembly: System.Windows.Forms.AxHost.TypeLibraryTimeStamp("01/17/2018 14:14:20")] 13 | 14 | namespace AxPRINTCONTROLLib { 15 | 16 | 17 | [System.Windows.Forms.AxHost.ClsidAttribute("{6dd3f42c-144c-4f50-9e0a-eb3d396d078a}")] 18 | [System.ComponentModel.DesignTimeVisibleAttribute(true)] 19 | [System.ComponentModel.DefaultEvent("SettingChanged")] 20 | public class AxPrintControl : System.Windows.Forms.AxHost { 21 | 22 | private PRINTCONTROLLib._DPrintControl ocx; 23 | 24 | private AxPrintControlEventMulticaster eventMulticaster; 25 | 26 | private System.Windows.Forms.AxHost.ConnectionPointCookie cookie; 27 | 28 | public AxPrintControl() : 29 | base("6dd3f42c-144c-4f50-9e0a-eb3d396d078a") { 30 | this.SetAboutBoxDelegate(new AboutBoxDelegate(AboutBox)); 31 | } 32 | 33 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 34 | [System.Runtime.InteropServices.DispIdAttribute(1)] 35 | public virtual bool bDesignMode { 36 | get { 37 | if ((this.ocx == null)) { 38 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("bDesignMode", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 39 | } 40 | return this.ocx.bDesignMode; 41 | } 42 | set { 43 | if ((this.ocx == null)) { 44 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("bDesignMode", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 45 | } 46 | this.ocx.bDesignMode = value; 47 | } 48 | } 49 | 50 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 51 | [System.Runtime.InteropServices.DispIdAttribute(2)] 52 | public virtual bool EnableSave { 53 | get { 54 | if ((this.ocx == null)) { 55 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("EnableSave", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 56 | } 57 | return this.ocx.EnableSave; 58 | } 59 | set { 60 | if ((this.ocx == null)) { 61 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("EnableSave", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 62 | } 63 | this.ocx.EnableSave = value; 64 | } 65 | } 66 | 67 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 68 | [System.Runtime.InteropServices.DispIdAttribute(3)] 69 | public virtual bool ShowSegColon { 70 | get { 71 | if ((this.ocx == null)) { 72 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ShowSegColon", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 73 | } 74 | return this.ocx.ShowSegColon; 75 | } 76 | set { 77 | if ((this.ocx == null)) { 78 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ShowSegColon", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 79 | } 80 | this.ocx.ShowSegColon = value; 81 | } 82 | } 83 | 84 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 85 | [System.Runtime.InteropServices.DispIdAttribute(4)] 86 | public virtual bool ReserveSegTitlePos { 87 | get { 88 | if ((this.ocx == null)) { 89 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ReserveSegTitlePos", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 90 | } 91 | return this.ocx.ReserveSegTitlePos; 92 | } 93 | set { 94 | if ((this.ocx == null)) { 95 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ReserveSegTitlePos", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 96 | } 97 | this.ocx.ReserveSegTitlePos = value; 98 | } 99 | } 100 | 101 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 102 | [System.Runtime.InteropServices.DispIdAttribute(5)] 103 | public virtual bool ExportTableOnly { 104 | get { 105 | if ((this.ocx == null)) { 106 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ExportTableOnly", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 107 | } 108 | return this.ocx.ExportTableOnly; 109 | } 110 | set { 111 | if ((this.ocx == null)) { 112 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ExportTableOnly", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 113 | } 114 | this.ocx.ExportTableOnly = value; 115 | } 116 | } 117 | 118 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 119 | [System.Runtime.InteropServices.DispIdAttribute(20)] 120 | public virtual bool EnableExport { 121 | get { 122 | if ((this.ocx == null)) { 123 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("EnableExport", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 124 | } 125 | return this.ocx.EnableExport; 126 | } 127 | set { 128 | if ((this.ocx == null)) { 129 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("EnableExport", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 130 | } 131 | this.ocx.EnableExport = value; 132 | } 133 | } 134 | 135 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 136 | [System.Runtime.InteropServices.DispIdAttribute(21)] 137 | public virtual int PartialPrint { 138 | get { 139 | if ((this.ocx == null)) { 140 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("PartialPrint", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 141 | } 142 | return this.ocx.PartialPrint; 143 | } 144 | set { 145 | if ((this.ocx == null)) { 146 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("PartialPrint", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 147 | } 148 | this.ocx.PartialPrint = value; 149 | } 150 | } 151 | 152 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 153 | [System.Runtime.InteropServices.DispIdAttribute(24)] 154 | public virtual bool EnablePageHFSetting { 155 | get { 156 | if ((this.ocx == null)) { 157 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("EnablePageHFSetting", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 158 | } 159 | return this.ocx.EnablePageHFSetting; 160 | } 161 | set { 162 | if ((this.ocx == null)) { 163 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("EnablePageHFSetting", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 164 | } 165 | this.ocx.EnablePageHFSetting = value; 166 | } 167 | } 168 | 169 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 170 | [System.Runtime.InteropServices.DispIdAttribute(27)] 171 | public virtual int sFileType { 172 | get { 173 | if ((this.ocx == null)) { 174 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("sFileType", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 175 | } 176 | return this.ocx.sFileType; 177 | } 178 | set { 179 | if ((this.ocx == null)) { 180 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("sFileType", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 181 | } 182 | this.ocx.sFileType = value; 183 | } 184 | } 185 | 186 | public event _DPrintControlEvents_SettingChangedEventHandler SettingChanged; 187 | 188 | public event _DPrintControlEvents_BeginPrintingEventHandler BeginPrinting; 189 | 190 | public event _DPrintControlEvents_PrintingEventHandler Printing; 191 | 192 | public event System.EventHandler EndPrinting; 193 | 194 | public event _DPrintControlEvents_PressOKEventHandler PressOK; 195 | 196 | public virtual int SetDataStyleXML(object varDataXML, bool bDataIsFile, object varStyleXML, bool bStyleIsFile, object varModuleID) { 197 | if ((this.ocx == null)) { 198 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetDataStyleXML", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 199 | } 200 | int returnValue = ((int)(this.ocx.SetDataStyleXML(varDataXML, bDataIsFile, varStyleXML, bStyleIsFile, varModuleID))); 201 | return returnValue; 202 | } 203 | 204 | public virtual int PageSetup() { 205 | if ((this.ocx == null)) { 206 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("PageSetup", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 207 | } 208 | int returnValue = ((int)(this.ocx.PageSetup())); 209 | return returnValue; 210 | } 211 | 212 | public virtual int PrintPreview() { 213 | if ((this.ocx == null)) { 214 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("PrintPreview", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 215 | } 216 | int returnValue = ((int)(this.ocx.PrintPreview())); 217 | return returnValue; 218 | } 219 | 220 | public virtual int DoPrint() { 221 | if ((this.ocx == null)) { 222 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("DoPrint", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 223 | } 224 | int returnValue = ((int)(this.ocx.DoPrint())); 225 | return returnValue; 226 | } 227 | 228 | public virtual int SetOwner(int hwndOwner) { 229 | if ((this.ocx == null)) { 230 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetOwner", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 231 | } 232 | int returnValue = ((int)(this.ocx.SetOwner(hwndOwner))); 233 | return returnValue; 234 | } 235 | 236 | public virtual int ExportToFile(int lJobId, object varColType, object varColSize, object varColName, object varTempDBPath) { 237 | if ((this.ocx == null)) { 238 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ExportToFile", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 239 | } 240 | int returnValue = ((int)(this.ocx.ExportToFile(lJobId, varColType, varColSize, varColName, varTempDBPath))); 241 | return returnValue; 242 | } 243 | 244 | public virtual int PrintEx(bool bShowPrintDlg) { 245 | if ((this.ocx == null)) { 246 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("PrintEx", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 247 | } 248 | int returnValue = ((int)(this.ocx.PrintEx(bShowPrintDlg))); 249 | return returnValue; 250 | } 251 | 252 | public virtual int TriggerEvent(int lEventId) { 253 | if ((this.ocx == null)) { 254 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TriggerEvent", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 255 | } 256 | int returnValue = ((int)(this.ocx.TriggerEvent(lEventId))); 257 | return returnValue; 258 | } 259 | 260 | public virtual void GetErrorMessage(int lErrCode, ref object pvarErrMessage) { 261 | if ((this.ocx == null)) { 262 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("GetErrorMessage", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 263 | } 264 | this.ocx.GetErrorMessage(lErrCode, ref pvarErrMessage); 265 | } 266 | 267 | public virtual void SetOB(object ob) { 268 | if ((this.ocx == null)) { 269 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetOB", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 270 | } 271 | this.ocx.SetOB(ob); 272 | } 273 | 274 | public virtual int ExportToFileEx(int lJobId, object varColType, object varColSize, object varColName, object varTempDBPath) { 275 | if ((this.ocx == null)) { 276 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ExportToFileEx", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 277 | } 278 | int returnValue = ((int)(this.ocx.ExportToFileEx(lJobId, varColType, varColSize, varColName, varTempDBPath))); 279 | return returnValue; 280 | } 281 | 282 | public virtual int ExportToAttached(int lTypeId, int lJobId, object varColType, object varColSize, object varColName, object varTempDBPath, ref object pvarFileName) { 283 | if ((this.ocx == null)) { 284 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ExportToAttached", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 285 | } 286 | int returnValue = ((int)(this.ocx.ExportToAttached(lTypeId, lJobId, varColType, varColSize, varColName, varTempDBPath, ref pvarFileName))); 287 | return returnValue; 288 | } 289 | 290 | public virtual int TriggerPressOKEvent(int lEventId) { 291 | if ((this.ocx == null)) { 292 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("TriggerPressOKEvent", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 293 | } 294 | int returnValue = ((int)(this.ocx.TriggerPressOKEvent(lEventId))); 295 | return returnValue; 296 | } 297 | 298 | public virtual void CloseWindows() { 299 | if ((this.ocx == null)) { 300 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("CloseWindows", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 301 | } 302 | this.ocx.CloseWindows(); 303 | } 304 | 305 | public virtual string Convert2UCase(string langid, float currency, short ntype) { 306 | if ((this.ocx == null)) { 307 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Convert2UCase", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 308 | } 309 | string returnValue = ((string)(this.ocx.Convert2UCase(langid, currency, ntype))); 310 | return returnValue; 311 | } 312 | 313 | public virtual void SetExportHandle(object ob) { 314 | if ((this.ocx == null)) { 315 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetExportHandle", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 316 | } 317 | this.ocx.SetExportHandle(ob); 318 | } 319 | 320 | public virtual string Convert2UCaseEX(string langid, string currency, short ntype) { 321 | if ((this.ocx == null)) { 322 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Convert2UCaseEX", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 323 | } 324 | string returnValue = ((string)(this.ocx.Convert2UCaseEX(langid, currency, ntype))); 325 | return returnValue; 326 | } 327 | 328 | public virtual string SetLangID(string langid) { 329 | if ((this.ocx == null)) { 330 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetLangID", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 331 | } 332 | string returnValue = ((string)(this.ocx.SetLangID(langid))); 333 | return returnValue; 334 | } 335 | 336 | public virtual int ExportToFileEx2(int lJobId, object varColType, object varColSize, object varColName, object varTempDBPath, int lCurrentPage, int lTotalPage) { 337 | if ((this.ocx == null)) { 338 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ExportToFileEx2", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 339 | } 340 | int returnValue = ((int)(this.ocx.ExportToFileEx2(lJobId, varColType, varColSize, varColName, varTempDBPath, lCurrentPage, lTotalPage))); 341 | return returnValue; 342 | } 343 | 344 | public virtual int GetTaskPageNum() { 345 | if ((this.ocx == null)) { 346 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("GetTaskPageNum", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 347 | } 348 | int returnValue = ((int)(this.ocx.GetTaskPageNum())); 349 | return returnValue; 350 | } 351 | 352 | public virtual void AboutBox() { 353 | if ((this.ocx == null)) { 354 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("AboutBox", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 355 | } 356 | this.ocx.AboutBox(); 357 | } 358 | 359 | protected override void CreateSink() { 360 | try { 361 | this.eventMulticaster = new AxPrintControlEventMulticaster(this); 362 | this.cookie = new System.Windows.Forms.AxHost.ConnectionPointCookie(this.ocx, this.eventMulticaster, typeof(PRINTCONTROLLib._DPrintControlEvents)); 363 | } 364 | catch (System.Exception ) { 365 | } 366 | } 367 | 368 | protected override void DetachSink() { 369 | try { 370 | this.cookie.Disconnect(); 371 | } 372 | catch (System.Exception ) { 373 | } 374 | } 375 | 376 | protected override void AttachInterfaces() { 377 | try { 378 | this.ocx = ((PRINTCONTROLLib._DPrintControl)(this.GetOcx())); 379 | } 380 | catch (System.Exception ) { 381 | } 382 | } 383 | 384 | internal void RaiseOnSettingChanged(object sender, _DPrintControlEvents_SettingChangedEvent e) { 385 | if ((this.SettingChanged != null)) { 386 | this.SettingChanged(sender, e); 387 | } 388 | } 389 | 390 | internal void RaiseOnBeginPrinting(object sender, _DPrintControlEvents_BeginPrintingEvent e) { 391 | if ((this.BeginPrinting != null)) { 392 | this.BeginPrinting(sender, e); 393 | } 394 | } 395 | 396 | internal void RaiseOnPrinting(object sender, _DPrintControlEvents_PrintingEvent e) { 397 | if ((this.Printing != null)) { 398 | this.Printing(sender, e); 399 | } 400 | } 401 | 402 | internal void RaiseOnEndPrinting(object sender, System.EventArgs e) { 403 | if ((this.EndPrinting != null)) { 404 | this.EndPrinting(sender, e); 405 | } 406 | } 407 | 408 | internal void RaiseOnPressOK(object sender, _DPrintControlEvents_PressOKEvent e) { 409 | if ((this.PressOK != null)) { 410 | this.PressOK(sender, e); 411 | } 412 | } 413 | } 414 | 415 | public delegate void _DPrintControlEvents_SettingChangedEventHandler(object sender, _DPrintControlEvents_SettingChangedEvent e); 416 | 417 | public class _DPrintControlEvents_SettingChangedEvent { 418 | 419 | public object varLocalSettings; 420 | 421 | public object varModuleSettings; 422 | 423 | public _DPrintControlEvents_SettingChangedEvent(object varLocalSettings, object varModuleSettings) { 424 | this.varLocalSettings = varLocalSettings; 425 | this.varModuleSettings = varModuleSettings; 426 | } 427 | } 428 | 429 | public delegate void _DPrintControlEvents_BeginPrintingEventHandler(object sender, _DPrintControlEvents_BeginPrintingEvent e); 430 | 431 | public class _DPrintControlEvents_BeginPrintingEvent { 432 | 433 | public short jobs; 434 | 435 | public short fromPage; 436 | 437 | public short toPage; 438 | 439 | public short copies; 440 | 441 | public bool cancel; 442 | 443 | public _DPrintControlEvents_BeginPrintingEvent(short jobs, short fromPage, short toPage, short copies, bool cancel) { 444 | this.jobs = jobs; 445 | this.fromPage = fromPage; 446 | this.toPage = toPage; 447 | this.copies = copies; 448 | this.cancel = cancel; 449 | } 450 | } 451 | 452 | public delegate void _DPrintControlEvents_PrintingEventHandler(object sender, _DPrintControlEvents_PrintingEvent e); 453 | 454 | public class _DPrintControlEvents_PrintingEvent { 455 | 456 | public short page; 457 | 458 | public bool cancel; 459 | 460 | public _DPrintControlEvents_PrintingEvent(short page, bool cancel) { 461 | this.page = page; 462 | this.cancel = cancel; 463 | } 464 | } 465 | 466 | public delegate void _DPrintControlEvents_PressOKEventHandler(object sender, _DPrintControlEvents_PressOKEvent e); 467 | 468 | public class _DPrintControlEvents_PressOKEvent { 469 | 470 | public object varLocalSettings; 471 | 472 | public object varModuleSettings; 473 | 474 | public _DPrintControlEvents_PressOKEvent(object varLocalSettings, object varModuleSettings) { 475 | this.varLocalSettings = varLocalSettings; 476 | this.varModuleSettings = varModuleSettings; 477 | } 478 | } 479 | 480 | [System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)] 481 | public class AxPrintControlEventMulticaster : PRINTCONTROLLib._DPrintControlEvents { 482 | 483 | private AxPrintControl parent; 484 | 485 | public AxPrintControlEventMulticaster(AxPrintControl parent) { 486 | this.parent = parent; 487 | } 488 | 489 | public virtual void SettingChanged(object varLocalSettings, object varModuleSettings) { 490 | _DPrintControlEvents_SettingChangedEvent settingchangedEvent = new _DPrintControlEvents_SettingChangedEvent(varLocalSettings, varModuleSettings); 491 | this.parent.RaiseOnSettingChanged(this.parent, settingchangedEvent); 492 | } 493 | 494 | public virtual void BeginPrinting(short jobs, short fromPage, short toPage, short copies, ref bool cancel) { 495 | _DPrintControlEvents_BeginPrintingEvent beginprintingEvent = new _DPrintControlEvents_BeginPrintingEvent(jobs, fromPage, toPage, copies, cancel); 496 | this.parent.RaiseOnBeginPrinting(this.parent, beginprintingEvent); 497 | cancel = beginprintingEvent.cancel; 498 | } 499 | 500 | public virtual void Printing(short page, ref bool cancel) { 501 | _DPrintControlEvents_PrintingEvent printingEvent = new _DPrintControlEvents_PrintingEvent(page, cancel); 502 | this.parent.RaiseOnPrinting(this.parent, printingEvent); 503 | cancel = printingEvent.cancel; 504 | } 505 | 506 | public virtual void EndPrinting() { 507 | System.EventArgs endprintingEvent = new System.EventArgs(); 508 | this.parent.RaiseOnEndPrinting(this.parent, endprintingEvent); 509 | } 510 | 511 | public virtual void PressOK(object varLocalSettings, object varModuleSettings) { 512 | _DPrintControlEvents_PressOKEvent pressokEvent = new _DPrintControlEvents_PressOKEvent(varLocalSettings, varModuleSettings); 513 | this.parent.RaiseOnPressOK(this.parent, pressokEvent); 514 | } 515 | } 516 | } 517 | -------------------------------------------------------------------------------- /AX_U8V1300/Target/AxUFGeneralFilterOCX.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本:4.0.30319.42000 5 | // 6 | // 对此文件的更改可能会导致不正确的行为,并且如果 7 | // 重新生成代码,这些更改将会丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | [assembly: System.Reflection.AssemblyVersion("1.16.0.0")] 12 | [assembly: System.Windows.Forms.AxHost.TypeLibraryTimeStamp("05/15/2017 17:12:26")] 13 | 14 | namespace AxUFGeneralFilterOCX { 15 | 16 | 17 | [System.Windows.Forms.AxHost.ClsidAttribute("{f240f1f0-a307-4813-99f3-e93285961ca6}")] 18 | [System.ComponentModel.DesignTimeVisibleAttribute(true)] 19 | [System.ComponentModel.DefaultEvent("FilterClick")] 20 | public class AxFilterControlOCX : System.Windows.Forms.AxHost { 21 | 22 | private UFGeneralFilterOCX._FilterControlOCX ocx; 23 | 24 | private AxFilterControlOCXEventMulticaster eventMulticaster; 25 | 26 | private System.Windows.Forms.AxHost.ConnectionPointCookie cookie; 27 | 28 | public AxFilterControlOCX() : 29 | base("f240f1f0-a307-4813-99f3-e93285961ca6") { 30 | } 31 | 32 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 33 | [System.Runtime.InteropServices.DispIdAttribute(1745027079)] 34 | public virtual bool ConditionVisiable { 35 | get { 36 | if ((this.ocx == null)) { 37 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ConditionVisiable", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 38 | } 39 | return this.ocx.ConditionVisiable; 40 | } 41 | set { 42 | if ((this.ocx == null)) { 43 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ConditionVisiable", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 44 | } 45 | this.ocx.ConditionVisiable = value; 46 | } 47 | } 48 | 49 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 50 | [System.Runtime.InteropServices.DispIdAttribute(1745027078)] 51 | public virtual bool SolutionVisiable { 52 | get { 53 | if ((this.ocx == null)) { 54 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SolutionVisiable", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 55 | } 56 | return this.ocx.SolutionVisiable; 57 | } 58 | set { 59 | if ((this.ocx == null)) { 60 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SolutionVisiable", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 61 | } 62 | this.ocx.SolutionVisiable = value; 63 | } 64 | } 65 | 66 | [System.ComponentModel.Browsable(false)] 67 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 68 | [System.Runtime.InteropServices.DispIdAttribute(1745027080)] 69 | public virtual UFGeneralFilterOCX.UseMode Mode { 70 | set { 71 | if ((this.ocx == null)) { 72 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Mode", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 73 | } 74 | this.ocx.Mode = value; 75 | } 76 | } 77 | 78 | public event @__FilterControlOCX_FilterClickEventHandler FilterClick; 79 | 80 | public event System.EventHandler QuickItemCountChange; 81 | 82 | public virtual object Init(ref object fld) { 83 | if ((this.ocx == null)) { 84 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Init", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 85 | } 86 | object returnValue = ((object)(this.ocx.Init(ref fld))); 87 | return returnValue; 88 | } 89 | 90 | public virtual object SimpleFilter() { 91 | if ((this.ocx == null)) { 92 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SimpleFilter", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 93 | } 94 | object returnValue = ((object)(this.ocx.SimpleFilter(((bool)(true))))); 95 | return returnValue; 96 | } 97 | 98 | public virtual object SimpleFilter(bool isInterrelateUI) { 99 | if ((this.ocx == null)) { 100 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SimpleFilter", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 101 | } 102 | object returnValue = ((object)(this.ocx.SimpleFilter(isInterrelateUI))); 103 | return returnValue; 104 | } 105 | 106 | public virtual object Layout() { 107 | if ((this.ocx == null)) { 108 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Layout", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 109 | } 110 | object returnValue = ((object)(this.ocx.Layout())); 111 | return returnValue; 112 | } 113 | 114 | public virtual bool MoreFilter() { 115 | if ((this.ocx == null)) { 116 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("MoreFilter", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 117 | } 118 | bool returnValue = ((bool)(this.ocx.MoreFilter())); 119 | return returnValue; 120 | } 121 | 122 | public virtual bool SetReportView(string viewName, ref string errStr) { 123 | if ((this.ocx == null)) { 124 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetReportView", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 125 | } 126 | bool returnValue = ((bool)(this.ocx.SetReportView(viewName, ref errStr))); 127 | return returnValue; 128 | } 129 | 130 | public virtual bool SetReportGroup(string groupName, ref string errStr) { 131 | if ((this.ocx == null)) { 132 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetReportGroup", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 133 | } 134 | bool returnValue = ((bool)(this.ocx.SetReportGroup(groupName, ref errStr))); 135 | return returnValue; 136 | } 137 | 138 | public virtual bool AddReportView(string viewName, ref string errStr) { 139 | if ((this.ocx == null)) { 140 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("AddReportView", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 141 | } 142 | bool returnValue = ((bool)(this.ocx.AddReportView(viewName, ref errStr))); 143 | return returnValue; 144 | } 145 | 146 | protected override void CreateSink() { 147 | try { 148 | this.eventMulticaster = new AxFilterControlOCXEventMulticaster(this); 149 | this.cookie = new System.Windows.Forms.AxHost.ConnectionPointCookie(this.ocx, this.eventMulticaster, typeof(UFGeneralFilterOCX.@__FilterControlOCX)); 150 | } 151 | catch (System.Exception ) { 152 | } 153 | } 154 | 155 | protected override void DetachSink() { 156 | try { 157 | this.cookie.Disconnect(); 158 | } 159 | catch (System.Exception ) { 160 | } 161 | } 162 | 163 | protected override void AttachInterfaces() { 164 | try { 165 | this.ocx = ((UFGeneralFilterOCX._FilterControlOCX)(this.GetOcx())); 166 | } 167 | catch (System.Exception ) { 168 | } 169 | } 170 | 171 | internal void RaiseOnFilterClick(object sender, @__FilterControlOCX_FilterClickEvent e) { 172 | if ((this.FilterClick != null)) { 173 | this.FilterClick(sender, e); 174 | } 175 | } 176 | 177 | internal void RaiseOnQuickItemCountChange(object sender, System.EventArgs e) { 178 | if ((this.QuickItemCountChange != null)) { 179 | this.QuickItemCountChange(sender, e); 180 | } 181 | } 182 | } 183 | 184 | public delegate void @__FilterControlOCX_FilterClickEventHandler(object sender, @__FilterControlOCX_FilterClickEvent e); 185 | 186 | public class @__FilterControlOCX_FilterClickEvent { 187 | 188 | public object fldsrv; 189 | 190 | public bool isInterrelateUI; 191 | 192 | public @__FilterControlOCX_FilterClickEvent(object fldsrv, bool isInterrelateUI) { 193 | this.fldsrv = fldsrv; 194 | this.isInterrelateUI = isInterrelateUI; 195 | } 196 | } 197 | 198 | [System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)] 199 | public class AxFilterControlOCXEventMulticaster : UFGeneralFilterOCX.@__FilterControlOCX { 200 | 201 | private AxFilterControlOCX parent; 202 | 203 | public AxFilterControlOCXEventMulticaster(AxFilterControlOCX parent) { 204 | this.parent = parent; 205 | } 206 | 207 | public virtual void FilterClick(ref object fldsrv, bool isInterrelateUI) { 208 | @__FilterControlOCX_FilterClickEvent filterclickEvent = new @__FilterControlOCX_FilterClickEvent(fldsrv, isInterrelateUI); 209 | this.parent.RaiseOnFilterClick(this.parent, filterclickEvent); 210 | fldsrv = filterclickEvent.fldsrv; 211 | } 212 | 213 | public virtual void QuickItemCountChange() { 214 | System.EventArgs quickitemcountchangeEvent = new System.EventArgs(); 215 | this.parent.RaiseOnQuickItemCountChange(this.parent, quickitemcountchangeEvent); 216 | } 217 | } 218 | 219 | [System.Windows.Forms.AxHost.ClsidAttribute("{92380fbe-9b55-4a83-be7c-dab3c4108536}")] 220 | [System.ComponentModel.DesignTimeVisibleAttribute(true)] 221 | [System.ComponentModel.DefaultEvent("SimpleFilterEvent")] 222 | public class AxFilterCondition : System.Windows.Forms.AxHost { 223 | 224 | private UFGeneralFilterOCX._FilterCondition ocx; 225 | 226 | private AxFilterConditionEventMulticaster eventMulticaster; 227 | 228 | private System.Windows.Forms.AxHost.ConnectionPointCookie cookie; 229 | 230 | public AxFilterCondition() : 231 | base("92380fbe-9b55-4a83-be7c-dab3c4108536") { 232 | } 233 | 234 | [System.ComponentModel.Browsable(false)] 235 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 236 | [System.Runtime.InteropServices.DispIdAttribute(1073938433)] 237 | public virtual UFGeneralFilterPub.Edits editControls { 238 | get { 239 | if ((this.ocx == null)) { 240 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("editControls", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 241 | } 242 | return this.ocx.editControls; 243 | } 244 | set { 245 | if ((this.ocx == null)) { 246 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("editControls", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 247 | } 248 | this.ocx.editControls = value; 249 | } 250 | } 251 | 252 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 253 | [System.Runtime.InteropServices.DispIdAttribute(1073938434)] 254 | public virtual short FilterCols { 255 | get { 256 | if ((this.ocx == null)) { 257 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("FilterCols", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 258 | } 259 | return this.ocx.FilterCols; 260 | } 261 | set { 262 | if ((this.ocx == null)) { 263 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("FilterCols", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 264 | } 265 | this.ocx.FilterCols = value; 266 | } 267 | } 268 | 269 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 270 | [System.Runtime.InteropServices.DispIdAttribute(1073938446)] 271 | public virtual bool RunOnce { 272 | get { 273 | if ((this.ocx == null)) { 274 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("RunOnce", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 275 | } 276 | return this.ocx.RunOnce; 277 | } 278 | set { 279 | if ((this.ocx == null)) { 280 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("RunOnce", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 281 | } 282 | this.ocx.RunOnce = value; 283 | } 284 | } 285 | 286 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 287 | [System.Runtime.InteropServices.DispIdAttribute(1745027079)] 288 | public virtual UFGeneralFilterOCX.UseMode Mode { 289 | get { 290 | if ((this.ocx == null)) { 291 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Mode", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 292 | } 293 | return this.ocx.Mode; 294 | } 295 | set { 296 | if ((this.ocx == null)) { 297 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Mode", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 298 | } 299 | this.ocx.Mode = value; 300 | } 301 | } 302 | 303 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 304 | [System.Runtime.InteropServices.DispIdAttribute(1745027076)] 305 | public virtual short RefEdtCount { 306 | get { 307 | if ((this.ocx == null)) { 308 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("RefEdtCount", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 309 | } 310 | return this.ocx.RefEdtCount; 311 | } 312 | } 313 | 314 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 315 | [System.Runtime.InteropServices.DispIdAttribute(1745027217)] 316 | public virtual object IsExistShowItem { 317 | get { 318 | if ((this.ocx == null)) { 319 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("IsExistShowItem", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 320 | } 321 | return this.ocx.IsExistShowItem; 322 | } 323 | } 324 | 325 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 326 | [System.Runtime.InteropServices.DispIdAttribute(1073938646)] 327 | public virtual string sViewXML { 328 | get { 329 | if ((this.ocx == null)) { 330 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("sViewXML", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 331 | } 332 | return this.ocx.sViewXML; 333 | } 334 | set { 335 | if ((this.ocx == null)) { 336 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("sViewXML", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 337 | } 338 | this.ocx.sViewXML = value; 339 | } 340 | } 341 | 342 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 343 | [System.Runtime.InteropServices.DispIdAttribute(1073938647)] 344 | public virtual string sGroupID { 345 | get { 346 | if ((this.ocx == null)) { 347 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("sGroupID", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 348 | } 349 | return this.ocx.sGroupID; 350 | } 351 | set { 352 | if ((this.ocx == null)) { 353 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("sGroupID", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 354 | } 355 | this.ocx.sGroupID = value; 356 | } 357 | } 358 | 359 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 360 | [System.Runtime.InteropServices.DispIdAttribute(1073938648)] 361 | public virtual bool ShowSumType { 362 | get { 363 | if ((this.ocx == null)) { 364 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ShowSumType", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 365 | } 366 | return this.ocx.ShowSumType; 367 | } 368 | set { 369 | if ((this.ocx == null)) { 370 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ShowSumType", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 371 | } 372 | this.ocx.ShowSumType = value; 373 | } 374 | } 375 | 376 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 377 | [System.Runtime.InteropServices.DispIdAttribute(1073938649)] 378 | public virtual bool isReportFilter { 379 | get { 380 | if ((this.ocx == null)) { 381 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("isReportFilter", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 382 | } 383 | return this.ocx.isReportFilter; 384 | } 385 | set { 386 | if ((this.ocx == null)) { 387 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("isReportFilter", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 388 | } 389 | this.ocx.isReportFilter = value; 390 | } 391 | } 392 | 393 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 394 | [System.Runtime.InteropServices.DispIdAttribute(1073938650)] 395 | public virtual bool DispDetail { 396 | get { 397 | if ((this.ocx == null)) { 398 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("DispDetail", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 399 | } 400 | return this.ocx.DispDetail; 401 | } 402 | set { 403 | if ((this.ocx == null)) { 404 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("DispDetail", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 405 | } 406 | this.ocx.DispDetail = value; 407 | } 408 | } 409 | 410 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 411 | [System.Runtime.InteropServices.DispIdAttribute(1073938651)] 412 | public virtual short ReportPageRows { 413 | get { 414 | if ((this.ocx == null)) { 415 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ReportPageRows", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 416 | } 417 | return this.ocx.ReportPageRows; 418 | } 419 | set { 420 | if ((this.ocx == null)) { 421 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ReportPageRows", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 422 | } 423 | this.ocx.ReportPageRows = value; 424 | } 425 | } 426 | 427 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 428 | [System.Runtime.InteropServices.DispIdAttribute(1073938652)] 429 | public virtual string sViewID { 430 | get { 431 | if ((this.ocx == null)) { 432 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("sViewID", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 433 | } 434 | return this.ocx.sViewID; 435 | } 436 | set { 437 | if ((this.ocx == null)) { 438 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("sViewID", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 439 | } 440 | this.ocx.sViewID = value; 441 | } 442 | } 443 | 444 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 445 | [System.Runtime.InteropServices.DispIdAttribute(1073938653)] 446 | public virtual bool bCanceled { 447 | get { 448 | if ((this.ocx == null)) { 449 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("bCanceled", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 450 | } 451 | return this.ocx.bCanceled; 452 | } 453 | set { 454 | if ((this.ocx == null)) { 455 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("bCanceled", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 456 | } 457 | this.ocx.bCanceled = value; 458 | } 459 | } 460 | 461 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 462 | [System.Runtime.InteropServices.DispIdAttribute(1073938654)] 463 | public virtual bool HasReportFilterCache { 464 | get { 465 | if ((this.ocx == null)) { 466 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("HasReportFilterCache", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 467 | } 468 | return this.ocx.HasReportFilterCache; 469 | } 470 | set { 471 | if ((this.ocx == null)) { 472 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("HasReportFilterCache", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 473 | } 474 | this.ocx.HasReportFilterCache = value; 475 | } 476 | } 477 | 478 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 479 | [System.Runtime.InteropServices.DispIdAttribute(1073938655)] 480 | public virtual short ShowAdvancePage { 481 | get { 482 | if ((this.ocx == null)) { 483 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ShowAdvancePage", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 484 | } 485 | return this.ocx.ShowAdvancePage; 486 | } 487 | set { 488 | if ((this.ocx == null)) { 489 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ShowAdvancePage", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 490 | } 491 | this.ocx.ShowAdvancePage = value; 492 | } 493 | } 494 | 495 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 496 | [System.Runtime.InteropServices.DispIdAttribute(1745027291)] 497 | public virtual short QuickItemCount { 498 | get { 499 | if ((this.ocx == null)) { 500 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("QuickItemCount", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 501 | } 502 | return this.ocx.QuickItemCount; 503 | } 504 | } 505 | 506 | public event System.EventHandler OKFilter; 507 | 508 | public event System.EventHandler CancelFilter; 509 | 510 | public event @__FilterCondition_SimpleFilterEventHandler SimpleFilterEvent; 511 | 512 | public event @__FilterCondition_CheckCommonInputEventEventHandler CheckCommonInputEvent; 513 | 514 | public event @__FilterCondition_EdtTextChangeEventHandler EdtTextChange; 515 | 516 | public event @__FilterCondition_SwitchConditionEventEventHandler SwitchConditionEvent; 517 | 518 | public event System.EventHandler QuickItemCountChange; 519 | 520 | public virtual object GetReportFilterInfoFromUI(ref string viewId, ref string groupId, ref string pageRowCount) { 521 | if ((this.ocx == null)) { 522 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("GetReportFilterInfoFromUI", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 523 | } 524 | object returnValue = ((object)(this.ocx.GetReportFilterInfoFromUI(ref viewId, ref groupId, ref pageRowCount))); 525 | return returnValue; 526 | } 527 | 528 | public virtual bool SetReportView(string viewName, ref string errStr) { 529 | if ((this.ocx == null)) { 530 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetReportView", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 531 | } 532 | bool returnValue = ((bool)(this.ocx.SetReportView(viewName, ref errStr))); 533 | return returnValue; 534 | } 535 | 536 | public virtual bool SetReportGroup(string groupName, ref string errStr) { 537 | if ((this.ocx == null)) { 538 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetReportGroup", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 539 | } 540 | bool returnValue = ((bool)(this.ocx.SetReportGroup(groupName, ref errStr))); 541 | return returnValue; 542 | } 543 | 544 | public virtual bool AddReportView(string viewName, ref string errStr) { 545 | if ((this.ocx == null)) { 546 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("AddReportView", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 547 | } 548 | bool returnValue = ((bool)(this.ocx.AddReportView(viewName, ref errStr))); 549 | return returnValue; 550 | } 551 | 552 | public virtual UFGeneralFilterOCX.ConditionSetType get_condSetType() { 553 | if ((this.ocx == null)) { 554 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("get_condSetType", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 555 | } 556 | UFGeneralFilterOCX.ConditionSetType returnValue = ((UFGeneralFilterOCX.ConditionSetType)(this.ocx.get_condSetType())); 557 | return returnValue; 558 | } 559 | 560 | public virtual void set_condSetType(ref UFGeneralFilterOCX.ConditionSetType param0) { 561 | if ((this.ocx == null)) { 562 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("set_condSetType", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 563 | } 564 | this.ocx.set_condSetType(ref param0); 565 | } 566 | 567 | public virtual object Layout() { 568 | if ((this.ocx == null)) { 569 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Layout", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 570 | } 571 | object returnValue = ((object)(this.ocx.Layout(((bool)(true))))); 572 | return returnValue; 573 | } 574 | 575 | public virtual object Layout(bool isTimer) { 576 | if ((this.ocx == null)) { 577 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Layout", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 578 | } 579 | object returnValue = ((object)(this.ocx.Layout(isTimer))); 580 | return returnValue; 581 | } 582 | 583 | public virtual void set_AdvanceFilter(ref UFGeneralFilterOCX.clsAdvanceFilter param0) { 584 | if ((this.ocx == null)) { 585 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("set_AdvanceFilter", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 586 | } 587 | this.ocx.set_AdvanceFilter(ref param0); 588 | } 589 | 590 | public virtual UFGeneralFilterOCX.clsAdvanceFilter get_AdvanceFilter() { 591 | if ((this.ocx == null)) { 592 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("get_AdvanceFilter", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 593 | } 594 | UFGeneralFilterOCX.clsAdvanceFilter returnValue = ((UFGeneralFilterOCX.clsAdvanceFilter)(this.ocx.get_AdvanceFilter())); 595 | return returnValue; 596 | } 597 | 598 | public virtual object Init(ref object fld) { 599 | if ((this.ocx == null)) { 600 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Init", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 601 | } 602 | object returnValue = ((object)(this.ocx.Init(ref fld))); 603 | return returnValue; 604 | } 605 | 606 | public virtual object SwitchCondition(UFGeneralFilterOCX.ConditionSetType condSetType) { 607 | if ((this.ocx == null)) { 608 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SwitchCondition", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 609 | } 610 | object returnValue = ((object)(this.ocx.SwitchCondition(condSetType))); 611 | return returnValue; 612 | } 613 | 614 | public virtual object SynAdvanceXML(ref object errInfo) { 615 | if ((this.ocx == null)) { 616 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SynAdvanceXML", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 617 | } 618 | object returnValue = ((object)(this.ocx.SynAdvanceXML(ref errInfo))); 619 | return returnValue; 620 | } 621 | 622 | public virtual object SimpleFilter() { 623 | if ((this.ocx == null)) { 624 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SimpleFilter", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 625 | } 626 | object returnValue = ((object)(this.ocx.SimpleFilter(((bool)(true))))); 627 | return returnValue; 628 | } 629 | 630 | public virtual object SimpleFilter(bool isInterrelateUI) { 631 | if ((this.ocx == null)) { 632 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SimpleFilter", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 633 | } 634 | object returnValue = ((object)(this.ocx.SimpleFilter(isInterrelateUI))); 635 | return returnValue; 636 | } 637 | 638 | public virtual object MoreFilter() { 639 | if ((this.ocx == null)) { 640 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("MoreFilter", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 641 | } 642 | object returnValue = ((object)(this.ocx.MoreFilter())); 643 | return returnValue; 644 | } 645 | 646 | public virtual void ActivateControl() { 647 | if ((this.ocx == null)) { 648 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ActivateControl", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 649 | } 650 | this.ocx.ActivateControl(); 651 | } 652 | 653 | public virtual object ReLoadCommonSolution(ref object sSolutionID) { 654 | if ((this.ocx == null)) { 655 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ReLoadCommonSolution", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 656 | } 657 | object returnValue = ((object)(this.ocx.ReLoadCommonSolution(ref sSolutionID))); 658 | return returnValue; 659 | } 660 | 661 | public virtual object ReLoadAdvanceSolution(ref object sSolutionID, bool loadDefault) { 662 | if ((this.ocx == null)) { 663 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ReLoadAdvanceSolution", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 664 | } 665 | object returnValue = ((object)(this.ocx.ReLoadAdvanceSolution(ref sSolutionID, loadDefault))); 666 | return returnValue; 667 | } 668 | 669 | public virtual void UnloadObject(ref short cancel) { 670 | if ((this.ocx == null)) { 671 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("UnloadObject", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 672 | } 673 | this.ocx.UnloadObject(ref cancel); 674 | } 675 | 676 | public virtual void RefreshAdvanceCellText() { 677 | if ((this.ocx == null)) { 678 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("RefreshAdvanceCellText", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 679 | } 680 | this.ocx.RefreshAdvanceCellText(); 681 | } 682 | 683 | public virtual object HiddenGroup(string groupNum, bool bHidden) { 684 | if ((this.ocx == null)) { 685 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("HiddenGroup", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 686 | } 687 | object returnValue = ((object)(this.ocx.HiddenGroup(groupNum, bHidden))); 688 | return returnValue; 689 | } 690 | 691 | public virtual object HiddenGroupRow(string groupNum, bool bHidden) { 692 | if ((this.ocx == null)) { 693 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("HiddenGroupRow", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 694 | } 695 | object returnValue = ((object)(this.ocx.HiddenGroupRow(groupNum, bHidden))); 696 | return returnValue; 697 | } 698 | 699 | public virtual string GetCommonXML() { 700 | if ((this.ocx == null)) { 701 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("GetCommonXML", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 702 | } 703 | string returnValue = ((string)(this.ocx.GetCommonXML())); 704 | return returnValue; 705 | } 706 | 707 | public virtual void DisplayCellEdit(short row, short col) { 708 | if ((this.ocx == null)) { 709 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("DisplayCellEdit", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 710 | } 711 | this.ocx.DisplayCellEdit(row, col); 712 | } 713 | 714 | public virtual string get_EdtValue(short index) { 715 | if ((this.ocx == null)) { 716 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("get_EdtValue", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 717 | } 718 | string returnValue = ((string)(this.ocx.get_EdtValue(index))); 719 | return returnValue; 720 | } 721 | 722 | public virtual void set_EdtValue(short index, ref string param0) { 723 | if ((this.ocx == null)) { 724 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("set_EdtValue", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 725 | } 726 | this.ocx.set_EdtValue(index, ref param0); 727 | } 728 | 729 | public virtual void set_edtVisible(short index, ref bool param0) { 730 | if ((this.ocx == null)) { 731 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("set_edtVisible", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 732 | } 733 | this.ocx.set_edtVisible(index, ref param0); 734 | } 735 | 736 | public virtual void set_EdtEnabled(short index, bool param0) { 737 | if ((this.ocx == null)) { 738 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("set_EdtEnabled", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 739 | } 740 | this.ocx.set_EdtEnabled(index, param0); 741 | } 742 | 743 | public virtual void set_CommonGridText(short row, short col, string param0) { 744 | if ((this.ocx == null)) { 745 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("set_CommonGridText", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 746 | } 747 | this.ocx.set_CommonGridText(row, col, param0); 748 | } 749 | 750 | public virtual string get_CommonGridText(short row, short col) { 751 | if ((this.ocx == null)) { 752 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("get_CommonGridText", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 753 | } 754 | string returnValue = ((string)(this.ocx.get_CommonGridText(row, col))); 755 | return returnValue; 756 | } 757 | 758 | public virtual void set_CommonGridRowHidden(short row, bool param0) { 759 | if ((this.ocx == null)) { 760 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("set_CommonGridRowHidden", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 761 | } 762 | this.ocx.set_CommonGridRowHidden(row, param0); 763 | } 764 | 765 | public virtual object ReserveGridText(short row, short col) { 766 | if ((this.ocx == null)) { 767 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ReserveGridText", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 768 | } 769 | object returnValue = ((object)(this.ocx.ReserveGridText(row, col))); 770 | return returnValue; 771 | } 772 | 773 | public virtual object ReloadGridText(short row, short col) { 774 | if ((this.ocx == null)) { 775 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ReloadGridText", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 776 | } 777 | object returnValue = ((object)(this.ocx.ReloadGridText(row, col))); 778 | return returnValue; 779 | } 780 | 781 | public virtual object ResizeFilterWidthNoBorder() { 782 | if ((this.ocx == null)) { 783 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ResizeFilterWidthNoBorder", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 784 | } 785 | object returnValue = ((object)(this.ocx.ResizeFilterWidthNoBorder())); 786 | return returnValue; 787 | } 788 | 789 | public virtual object SetItemWidth(short captionWidth, ref short inputWidth) { 790 | if ((this.ocx == null)) { 791 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetItemWidth", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 792 | } 793 | object returnValue = ((object)(this.ocx.SetItemWidth(captionWidth, ref inputWidth))); 794 | return returnValue; 795 | } 796 | 797 | public virtual object MoveEdit(ref short keyCode, short shift) { 798 | if ((this.ocx == null)) { 799 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("MoveEdit", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 800 | } 801 | object returnValue = ((object)(this.ocx.MoveEdit(ref keyCode, shift))); 802 | return returnValue; 803 | } 804 | 805 | public virtual object AddCustomForm(object frm) { 806 | if ((this.ocx == null)) { 807 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("AddCustomForm", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 808 | } 809 | object returnValue = ((object)(this.ocx.AddCustomForm(frm))); 810 | return returnValue; 811 | } 812 | 813 | public virtual object AddCustomControl(string controlName, string asName) { 814 | if ((this.ocx == null)) { 815 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("AddCustomControl", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 816 | } 817 | object[] paramArray = new object[] { 818 | controlName, 819 | asName, 820 | System.Reflection.Missing.Value}; 821 | System.Type typeVar = typeof(UFGeneralFilterOCX._FilterCondition); 822 | System.Reflection.MethodInfo methodToInvoke = typeVar.GetMethod("AddCustomControl"); 823 | object returnValue = ((object)(methodToInvoke.Invoke(this.ocx, paramArray))); 824 | return returnValue; 825 | } 826 | 827 | public virtual object AddCustomControl(string controlName, string asName, object visible) { 828 | if ((this.ocx == null)) { 829 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("AddCustomControl", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 830 | } 831 | object returnValue = ((object)(this.ocx.AddCustomControl(controlName, asName, visible))); 832 | return returnValue; 833 | } 834 | 835 | public virtual void ShowChildControl() { 836 | if ((this.ocx == null)) { 837 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ShowChildControl", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 838 | } 839 | this.ocx.ShowChildControl(); 840 | } 841 | 842 | public virtual object GetAdvanceXML() { 843 | if ((this.ocx == null)) { 844 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("GetAdvanceXML", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 845 | } 846 | object returnValue = ((object)(this.ocx.GetAdvanceXML())); 847 | return returnValue; 848 | } 849 | 850 | public virtual bool BuildAdvanceDom(string sXML) { 851 | if ((this.ocx == null)) { 852 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("BuildAdvanceDom", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 853 | } 854 | bool returnValue = ((bool)(this.ocx.BuildAdvanceDom(sXML))); 855 | return returnValue; 856 | } 857 | 858 | public virtual object ClearAdvanceXML() { 859 | if ((this.ocx == null)) { 860 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ClearAdvanceXML", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 861 | } 862 | object returnValue = ((object)(this.ocx.ClearAdvanceXML())); 863 | return returnValue; 864 | } 865 | 866 | public virtual bool SynUIDataToObj() { 867 | if ((this.ocx == null)) { 868 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SynUIDataToObj", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 869 | } 870 | bool returnValue = ((bool)(this.ocx.SynUIDataToObj(((bool)(true))))); 871 | return returnValue; 872 | } 873 | 874 | public virtual bool SynUIDataToObj(bool isShowMsg) { 875 | if ((this.ocx == null)) { 876 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SynUIDataToObj", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 877 | } 878 | bool returnValue = ((bool)(this.ocx.SynUIDataToObj(isShowMsg))); 879 | return returnValue; 880 | } 881 | 882 | public virtual string Execute_Web(string filterID, string sType, string solutionId, ref object errInfo) { 883 | if ((this.ocx == null)) { 884 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Execute_Web", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 885 | } 886 | object[] paramArray = new object[] { 887 | filterID, 888 | sType, 889 | solutionId, 890 | errInfo, 891 | null, 892 | ""}; 893 | System.Type typeVar = typeof(UFGeneralFilterOCX._FilterCondition); 894 | System.Reflection.MethodInfo methodToInvoke = typeVar.GetMethod("Execute_Web"); 895 | string returnValue = ((string)(methodToInvoke.Invoke(this.ocx, paramArray))); 896 | errInfo = ((object)(paramArray[3])); 897 | return returnValue; 898 | } 899 | 900 | public virtual string Execute_Web(string filterID, string sType, string solutionId, ref object errInfo, ref ADODB.Recordset rs, ref string sViewID) { 901 | if ((this.ocx == null)) { 902 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Execute_Web", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 903 | } 904 | string returnValue = ((string)(this.ocx.Execute_Web(filterID, sType, solutionId, ref errInfo, ref rs, ref sViewID))); 905 | return returnValue; 906 | } 907 | 908 | public virtual object SetValue(object key, ref object sValue) { 909 | if ((this.ocx == null)) { 910 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetValue", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 911 | } 912 | object returnValue = ((object)(this.ocx.SetValue(key, ref sValue))); 913 | return returnValue; 914 | } 915 | 916 | public virtual object SetEditFilter(object key, ref object sFilterXML, ref object sSql) { 917 | if ((this.ocx == null)) { 918 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetEditFilter", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 919 | } 920 | object returnValue = ((object)(this.ocx.SetEditFilter(key, ref sFilterXML, ref sSql))); 921 | return returnValue; 922 | } 923 | 924 | public virtual object HiddenCondition(object key, ref bool bHidden) { 925 | if ((this.ocx == null)) { 926 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("HiddenCondition", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 927 | } 928 | object returnValue = ((object)(this.ocx.HiddenCondition(key, ref bHidden))); 929 | return returnValue; 930 | } 931 | 932 | public virtual object DisableCondition(object key, ref bool bDisable) { 933 | if ((this.ocx == null)) { 934 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("DisableCondition", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 935 | } 936 | object returnValue = ((object)(this.ocx.DisableCondition(key, ref bDisable))); 937 | return returnValue; 938 | } 939 | 940 | public virtual object SetItemRefID(object key, ref object sValue, string sReturnField) { 941 | if ((this.ocx == null)) { 942 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetItemRefID", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 943 | } 944 | object returnValue = ((object)(this.ocx.SetItemRefID(key, ref sValue, sReturnField))); 945 | return returnValue; 946 | } 947 | 948 | public virtual object SetItemEnumType(object key, string sEnumType, string sExpresstion) { 949 | if ((this.ocx == null)) { 950 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetItemEnumType", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 951 | } 952 | object returnValue = ((object)(this.ocx.SetItemEnumType(key, sEnumType, sExpresstion))); 953 | return returnValue; 954 | } 955 | 956 | public virtual object SetItemEnumString(object key, string sEnumString) { 957 | if ((this.ocx == null)) { 958 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetItemEnumString", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 959 | } 960 | object returnValue = ((object)(this.ocx.SetItemEnumString(key, sEnumString))); 961 | return returnValue; 962 | } 963 | 964 | public virtual object SetItemCaption(object key, string caption) { 965 | if ((this.ocx == null)) { 966 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetItemCaption", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 967 | } 968 | object returnValue = ((object)(this.ocx.SetItemCaption(key, caption))); 969 | return returnValue; 970 | } 971 | 972 | public virtual object SetItemFieldName(object key, string fieldName) { 973 | if ((this.ocx == null)) { 974 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetItemFieldName", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 975 | } 976 | object returnValue = ((object)(this.ocx.SetItemFieldName(key, fieldName))); 977 | return returnValue; 978 | } 979 | 980 | public virtual object SetItemFilterSQL(object key, string sSql) { 981 | if ((this.ocx == null)) { 982 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetItemFilterSQL", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 983 | } 984 | object[] paramArray = new object[] { 985 | key, 986 | sSql, 987 | "", 988 | null}; 989 | System.Type typeVar = typeof(UFGeneralFilterOCX._FilterCondition); 990 | System.Reflection.MethodInfo methodToInvoke = typeVar.GetMethod("SetItemFilterSQL"); 991 | object returnValue = ((object)(methodToInvoke.Invoke(this.ocx, paramArray))); 992 | return returnValue; 993 | } 994 | 995 | public virtual object SetItemFilterSQL(object key, string sSql, string sFieldSet, MSXML2.IXMLDOMElement nodColumnset) { 996 | if ((this.ocx == null)) { 997 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetItemFilterSQL", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 998 | } 999 | object returnValue = ((object)(this.ocx.SetItemFilterSQL(key, sSql, sFieldSet, nodColumnset))); 1000 | return returnValue; 1001 | } 1002 | 1003 | public virtual object SetItemReadonly(object key, bool isReadonly) { 1004 | if ((this.ocx == null)) { 1005 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SetItemReadonly", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 1006 | } 1007 | object returnValue = ((object)(this.ocx.SetItemReadonly(key, isReadonly))); 1008 | return returnValue; 1009 | } 1010 | 1011 | public virtual object RestoreFilter(ref string reportSetting, ref bool isFirstReportCall, ref bool bShowSumType) { 1012 | if ((this.ocx == null)) { 1013 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("RestoreFilter", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 1014 | } 1015 | object returnValue = ((object)(this.ocx.RestoreFilter(ref reportSetting, ref isFirstReportCall, ref bShowSumType))); 1016 | return returnValue; 1017 | } 1018 | 1019 | public virtual object CacheFilter(string reportSetting, bool showSumType) { 1020 | if ((this.ocx == null)) { 1021 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("CacheFilter", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 1022 | } 1023 | object returnValue = ((object)(this.ocx.CacheFilter(reportSetting, showSumType))); 1024 | return returnValue; 1025 | } 1026 | 1027 | public virtual object ClearCondition() { 1028 | if ((this.ocx == null)) { 1029 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ClearCondition", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 1030 | } 1031 | object returnValue = ((object)(this.ocx.ClearCondition())); 1032 | return returnValue; 1033 | } 1034 | 1035 | public virtual object ReloadSolution(string sSolutionID) { 1036 | if ((this.ocx == null)) { 1037 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ReloadSolution", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 1038 | } 1039 | object returnValue = ((object)(this.ocx.ReloadSolution(sSolutionID))); 1040 | return returnValue; 1041 | } 1042 | 1043 | public virtual void FilterClick(bool cancelEvent) { 1044 | if ((this.ocx == null)) { 1045 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("FilterClick", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 1046 | } 1047 | this.ocx.FilterClick(cancelEvent); 1048 | } 1049 | 1050 | protected override void CreateSink() { 1051 | try { 1052 | this.eventMulticaster = new AxFilterConditionEventMulticaster(this); 1053 | this.cookie = new System.Windows.Forms.AxHost.ConnectionPointCookie(this.ocx, this.eventMulticaster, typeof(UFGeneralFilterOCX.@__FilterCondition)); 1054 | } 1055 | catch (System.Exception ) { 1056 | } 1057 | } 1058 | 1059 | protected override void DetachSink() { 1060 | try { 1061 | this.cookie.Disconnect(); 1062 | } 1063 | catch (System.Exception ) { 1064 | } 1065 | } 1066 | 1067 | protected override void AttachInterfaces() { 1068 | try { 1069 | this.ocx = ((UFGeneralFilterOCX._FilterCondition)(this.GetOcx())); 1070 | } 1071 | catch (System.Exception ) { 1072 | } 1073 | } 1074 | 1075 | internal void RaiseOnOKFilter(object sender, System.EventArgs e) { 1076 | if ((this.OKFilter != null)) { 1077 | this.OKFilter(sender, e); 1078 | } 1079 | } 1080 | 1081 | internal void RaiseOnCancelFilter(object sender, System.EventArgs e) { 1082 | if ((this.CancelFilter != null)) { 1083 | this.CancelFilter(sender, e); 1084 | } 1085 | } 1086 | 1087 | internal void RaiseOnSimpleFilterEvent(object sender, @__FilterCondition_SimpleFilterEvent e) { 1088 | if ((this.SimpleFilterEvent != null)) { 1089 | this.SimpleFilterEvent(sender, e); 1090 | } 1091 | } 1092 | 1093 | internal void RaiseOnCheckCommonInputEvent(object sender, @__FilterCondition_CheckCommonInputEventEvent e) { 1094 | if ((this.CheckCommonInputEvent != null)) { 1095 | this.CheckCommonInputEvent(sender, e); 1096 | } 1097 | } 1098 | 1099 | internal void RaiseOnEdtTextChange(object sender, @__FilterCondition_EdtTextChangeEvent e) { 1100 | if ((this.EdtTextChange != null)) { 1101 | this.EdtTextChange(sender, e); 1102 | } 1103 | } 1104 | 1105 | internal void RaiseOnSwitchConditionEvent(object sender, @__FilterCondition_SwitchConditionEventEvent e) { 1106 | if ((this.SwitchConditionEvent != null)) { 1107 | this.SwitchConditionEvent(sender, e); 1108 | } 1109 | } 1110 | 1111 | internal void RaiseOnQuickItemCountChange(object sender, System.EventArgs e) { 1112 | if ((this.QuickItemCountChange != null)) { 1113 | this.QuickItemCountChange(sender, e); 1114 | } 1115 | } 1116 | } 1117 | 1118 | public delegate void @__FilterCondition_SimpleFilterEventHandler(object sender, @__FilterCondition_SimpleFilterEvent e); 1119 | 1120 | public class @__FilterCondition_SimpleFilterEvent { 1121 | 1122 | public object fldsrv; 1123 | 1124 | public bool isInterrelateUI; 1125 | 1126 | public @__FilterCondition_SimpleFilterEvent(object fldsrv, bool isInterrelateUI) { 1127 | this.fldsrv = fldsrv; 1128 | this.isInterrelateUI = isInterrelateUI; 1129 | } 1130 | } 1131 | 1132 | public delegate void @__FilterCondition_CheckCommonInputEventEventHandler(object sender, @__FilterCondition_CheckCommonInputEventEvent e); 1133 | 1134 | public class @__FilterCondition_CheckCommonInputEventEvent { 1135 | 1136 | public bool result; 1137 | 1138 | public @__FilterCondition_CheckCommonInputEventEvent(bool result) { 1139 | this.result = result; 1140 | } 1141 | } 1142 | 1143 | public delegate void @__FilterCondition_EdtTextChangeEventHandler(object sender, @__FilterCondition_EdtTextChangeEvent e); 1144 | 1145 | public class @__FilterCondition_EdtTextChangeEvent { 1146 | 1147 | public string edtName; 1148 | 1149 | public object fldsrv; 1150 | 1151 | public @__FilterCondition_EdtTextChangeEvent(string edtName, object fldsrv) { 1152 | this.edtName = edtName; 1153 | this.fldsrv = fldsrv; 1154 | } 1155 | } 1156 | 1157 | public delegate void @__FilterCondition_SwitchConditionEventEventHandler(object sender, @__FilterCondition_SwitchConditionEventEvent e); 1158 | 1159 | public class @__FilterCondition_SwitchConditionEventEvent { 1160 | 1161 | public UFGeneralFilterOCX.ConditionSetType condSetType; 1162 | 1163 | public @__FilterCondition_SwitchConditionEventEvent(UFGeneralFilterOCX.ConditionSetType condSetType) { 1164 | this.condSetType = condSetType; 1165 | } 1166 | } 1167 | 1168 | [System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)] 1169 | public class AxFilterConditionEventMulticaster : UFGeneralFilterOCX.@__FilterCondition { 1170 | 1171 | private AxFilterCondition parent; 1172 | 1173 | public AxFilterConditionEventMulticaster(AxFilterCondition parent) { 1174 | this.parent = parent; 1175 | } 1176 | 1177 | public virtual void OKFilter() { 1178 | System.EventArgs okfilterEvent = new System.EventArgs(); 1179 | this.parent.RaiseOnOKFilter(this.parent, okfilterEvent); 1180 | } 1181 | 1182 | public virtual void CancelFilter() { 1183 | System.EventArgs cancelfilterEvent = new System.EventArgs(); 1184 | this.parent.RaiseOnCancelFilter(this.parent, cancelfilterEvent); 1185 | } 1186 | 1187 | public virtual void SimpleFilter(ref object fldsrv, bool isInterrelateUI) { 1188 | @__FilterCondition_SimpleFilterEvent simplefilterEvent = new @__FilterCondition_SimpleFilterEvent(fldsrv, isInterrelateUI); 1189 | this.parent.RaiseOnSimpleFilterEvent(this.parent, simplefilterEvent); 1190 | fldsrv = simplefilterEvent.fldsrv; 1191 | } 1192 | 1193 | public virtual void CheckCommonInputEvent(ref bool result) { 1194 | @__FilterCondition_CheckCommonInputEventEvent checkcommoninputeventEvent = new @__FilterCondition_CheckCommonInputEventEvent(result); 1195 | this.parent.RaiseOnCheckCommonInputEvent(this.parent, checkcommoninputeventEvent); 1196 | result = checkcommoninputeventEvent.result; 1197 | } 1198 | 1199 | public virtual void EdtTextChange(string edtName, ref object fldsrv) { 1200 | @__FilterCondition_EdtTextChangeEvent edttextchangeEvent = new @__FilterCondition_EdtTextChangeEvent(edtName, fldsrv); 1201 | this.parent.RaiseOnEdtTextChange(this.parent, edttextchangeEvent); 1202 | fldsrv = edttextchangeEvent.fldsrv; 1203 | } 1204 | 1205 | public virtual void SwitchConditionEvent(UFGeneralFilterOCX.ConditionSetType condSetType) { 1206 | @__FilterCondition_SwitchConditionEventEvent switchconditioneventEvent = new @__FilterCondition_SwitchConditionEventEvent(condSetType); 1207 | this.parent.RaiseOnSwitchConditionEvent(this.parent, switchconditioneventEvent); 1208 | } 1209 | 1210 | public virtual void QuickItemCountChange() { 1211 | System.EventArgs quickitemcountchangeEvent = new System.EventArgs(); 1212 | this.parent.RaiseOnQuickItemCountChange(this.parent, quickitemcountchangeEvent); 1213 | } 1214 | } 1215 | 1216 | [System.Windows.Forms.AxHost.ClsidAttribute("{e613a26a-7edd-40ff-a8f8-e38ae352539c}")] 1217 | [System.ComponentModel.DesignTimeVisibleAttribute(true)] 1218 | [System.ComponentModel.DefaultEvent("SolutionSelected")] 1219 | public class AxFilterSolution : System.Windows.Forms.AxHost { 1220 | 1221 | private UFGeneralFilterOCX._FilterSolution ocx; 1222 | 1223 | private AxFilterSolutionEventMulticaster eventMulticaster; 1224 | 1225 | private System.Windows.Forms.AxHost.ConnectionPointCookie cookie; 1226 | 1227 | public AxFilterSolution() : 1228 | base("e613a26a-7edd-40ff-a8f8-e38ae352539c") { 1229 | } 1230 | 1231 | [System.ComponentModel.Browsable(false)] 1232 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 1233 | [System.Runtime.InteropServices.DispIdAttribute(1745027073)] 1234 | public virtual UFGeneralFilterOCX.UseMode Mode { 1235 | set { 1236 | if ((this.ocx == null)) { 1237 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Mode", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 1238 | } 1239 | this.ocx.Mode = value; 1240 | } 1241 | } 1242 | 1243 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 1244 | [System.Runtime.InteropServices.DispIdAttribute(1745027075)] 1245 | public virtual bool IsExistSolution { 1246 | get { 1247 | if ((this.ocx == null)) { 1248 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("IsExistSolution", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 1249 | } 1250 | return this.ocx.IsExistSolution; 1251 | } 1252 | } 1253 | 1254 | public event @__FilterSolution_SolutionSelectedEventHandler SolutionSelected; 1255 | 1256 | public virtual object Init(ref object fld) { 1257 | if ((this.ocx == null)) { 1258 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Init", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 1259 | } 1260 | object returnValue = ((object)(this.ocx.Init(ref fld))); 1261 | return returnValue; 1262 | } 1263 | 1264 | public virtual object Layout() { 1265 | if ((this.ocx == null)) { 1266 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Layout", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 1267 | } 1268 | object returnValue = ((object)(this.ocx.Layout())); 1269 | return returnValue; 1270 | } 1271 | 1272 | public virtual object GetSolutionData() { 1273 | if ((this.ocx == null)) { 1274 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("GetSolutionData", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 1275 | } 1276 | object returnValue = ((object)(this.ocx.GetSolutionData())); 1277 | return returnValue; 1278 | } 1279 | 1280 | public virtual object ChangeSolution(string solutionId) { 1281 | if ((this.ocx == null)) { 1282 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("ChangeSolution", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 1283 | } 1284 | object returnValue = ((object)(this.ocx.ChangeSolution(solutionId))); 1285 | return returnValue; 1286 | } 1287 | 1288 | public virtual void AdjustLayout(bool isLayouting) { 1289 | if ((this.ocx == null)) { 1290 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("AdjustLayout", System.Windows.Forms.AxHost.ActiveXInvokeKind.MethodInvoke); 1291 | } 1292 | this.ocx.AdjustLayout(isLayouting); 1293 | } 1294 | 1295 | protected override void CreateSink() { 1296 | try { 1297 | this.eventMulticaster = new AxFilterSolutionEventMulticaster(this); 1298 | this.cookie = new System.Windows.Forms.AxHost.ConnectionPointCookie(this.ocx, this.eventMulticaster, typeof(UFGeneralFilterOCX.@__FilterSolution)); 1299 | } 1300 | catch (System.Exception ) { 1301 | } 1302 | } 1303 | 1304 | protected override void DetachSink() { 1305 | try { 1306 | this.cookie.Disconnect(); 1307 | } 1308 | catch (System.Exception ) { 1309 | } 1310 | } 1311 | 1312 | protected override void AttachInterfaces() { 1313 | try { 1314 | this.ocx = ((UFGeneralFilterOCX._FilterSolution)(this.GetOcx())); 1315 | } 1316 | catch (System.Exception ) { 1317 | } 1318 | } 1319 | 1320 | internal void RaiseOnSolutionSelected(object sender, @__FilterSolution_SolutionSelectedEvent e) { 1321 | if ((this.SolutionSelected != null)) { 1322 | this.SolutionSelected(sender, e); 1323 | } 1324 | } 1325 | } 1326 | 1327 | public delegate void @__FilterSolution_SolutionSelectedEventHandler(object sender, @__FilterSolution_SolutionSelectedEvent e); 1328 | 1329 | public class @__FilterSolution_SolutionSelectedEvent { 1330 | 1331 | public string solutionId; 1332 | 1333 | public @__FilterSolution_SolutionSelectedEvent(string solutionId) { 1334 | this.solutionId = solutionId; 1335 | } 1336 | } 1337 | 1338 | [System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)] 1339 | public class AxFilterSolutionEventMulticaster : UFGeneralFilterOCX.@__FilterSolution { 1340 | 1341 | private AxFilterSolution parent; 1342 | 1343 | public AxFilterSolutionEventMulticaster(AxFilterSolution parent) { 1344 | this.parent = parent; 1345 | } 1346 | 1347 | public virtual void SolutionSelected(string solutionId) { 1348 | @__FilterSolution_SolutionSelectedEvent solutionselectedEvent = new @__FilterSolution_SolutionSelectedEvent(solutionId); 1349 | this.parent.RaiseOnSolutionSelected(this.parent, solutionselectedEvent); 1350 | } 1351 | } 1352 | 1353 | [System.Windows.Forms.AxHost.ClsidAttribute("{351a1621-9d11-45cf-89d5-d0d2a1cc6f71}")] 1354 | [System.ComponentModel.DesignTimeVisibleAttribute(true)] 1355 | [System.ComponentModel.DefaultEvent("ClickEvent")] 1356 | public class AxFilterSolutionLabel : System.Windows.Forms.AxHost { 1357 | 1358 | private UFGeneralFilterOCX._FilterSolutionLabel ocx; 1359 | 1360 | private AxFilterSolutionLabelEventMulticaster eventMulticaster; 1361 | 1362 | private System.Windows.Forms.AxHost.ConnectionPointCookie cookie; 1363 | 1364 | public AxFilterSolutionLabel() : 1365 | base("351a1621-9d11-45cf-89d5-d0d2a1cc6f71") { 1366 | } 1367 | 1368 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 1369 | [System.Runtime.InteropServices.DispIdAttribute(1745027074)] 1370 | public virtual string SolutionId { 1371 | get { 1372 | if ((this.ocx == null)) { 1373 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SolutionId", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 1374 | } 1375 | return this.ocx.SolutionId; 1376 | } 1377 | set { 1378 | if ((this.ocx == null)) { 1379 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("SolutionId", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 1380 | } 1381 | this.ocx.SolutionId = value; 1382 | } 1383 | } 1384 | 1385 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 1386 | [System.Runtime.InteropServices.DispIdAttribute(1745027073)] 1387 | public virtual UFGeneralFilterOCX.Status Status { 1388 | get { 1389 | if ((this.ocx == null)) { 1390 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Status", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertyGet); 1391 | } 1392 | return this.ocx.Status; 1393 | } 1394 | set { 1395 | if ((this.ocx == null)) { 1396 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Status", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 1397 | } 1398 | this.ocx.Status = value; 1399 | } 1400 | } 1401 | 1402 | [System.ComponentModel.Browsable(false)] 1403 | [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)] 1404 | [System.Runtime.InteropServices.DispIdAttribute(1745027072)] 1405 | public virtual string Caption { 1406 | set { 1407 | if ((this.ocx == null)) { 1408 | throw new System.Windows.Forms.AxHost.InvalidActiveXStateException("Caption", System.Windows.Forms.AxHost.ActiveXInvokeKind.PropertySet); 1409 | } 1410 | this.ocx.Caption = value; 1411 | } 1412 | } 1413 | 1414 | public event System.EventHandler ClickEvent; 1415 | 1416 | protected override void CreateSink() { 1417 | try { 1418 | this.eventMulticaster = new AxFilterSolutionLabelEventMulticaster(this); 1419 | this.cookie = new System.Windows.Forms.AxHost.ConnectionPointCookie(this.ocx, this.eventMulticaster, typeof(UFGeneralFilterOCX.@__FilterSolutionLabel)); 1420 | } 1421 | catch (System.Exception ) { 1422 | } 1423 | } 1424 | 1425 | protected override void DetachSink() { 1426 | try { 1427 | this.cookie.Disconnect(); 1428 | } 1429 | catch (System.Exception ) { 1430 | } 1431 | } 1432 | 1433 | protected override void AttachInterfaces() { 1434 | try { 1435 | this.ocx = ((UFGeneralFilterOCX._FilterSolutionLabel)(this.GetOcx())); 1436 | } 1437 | catch (System.Exception ) { 1438 | } 1439 | } 1440 | 1441 | internal void RaiseOnClickEvent(object sender, System.EventArgs e) { 1442 | if ((this.ClickEvent != null)) { 1443 | this.ClickEvent(sender, e); 1444 | } 1445 | } 1446 | } 1447 | 1448 | [System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)] 1449 | public class AxFilterSolutionLabelEventMulticaster : UFGeneralFilterOCX.@__FilterSolutionLabel { 1450 | 1451 | private AxFilterSolutionLabel parent; 1452 | 1453 | public AxFilterSolutionLabelEventMulticaster(AxFilterSolutionLabel parent) { 1454 | this.parent = parent; 1455 | } 1456 | 1457 | public virtual void Click() { 1458 | System.EventArgs clickEvent = new System.EventArgs(); 1459 | this.parent.RaiseOnClickEvent(this.parent, clickEvent); 1460 | } 1461 | } 1462 | } 1463 | -------------------------------------------------------------------------------- /AX_U8V1300/Target/DAO.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/DAO.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/EDITLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/EDITLib.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/Interop.U8Login.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/Interop.U8Login.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/MSComctlLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/MSComctlLib.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/MSHierarchicalFlexGridLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/MSHierarchicalFlexGridLib.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/MSXML2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/MSXML2.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/MsSuperGrid.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/MsSuperGrid.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/PRINTCONTROLLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/PRINTCONTROLLib.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/ReferMakeVouch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/ReferMakeVouch.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/Scripting.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/Scripting.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/U8DefPro.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/U8DefPro.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/U8Ref.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/U8Ref.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/U8RowAuthsvr.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/U8RowAuthsvr.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/U8VouchList.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/U8VouchList.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/UAPUfToolKit85.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/UAPUfToolKit85.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/UAPVoucherControl85.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/UAPVoucherControl85.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/UFGeneralFilterOCX.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/UFGeneralFilterOCX.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/UFGeneralFilterPub.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/UFGeneralFilterPub.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/UFPortalProxyInterface.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/UFPortalProxyInterface.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/UFToolBarCtrl.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/UFToolBarCtrl.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/UfDbKit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/UfDbKit.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/VBA.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/VBA.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/VBRUN.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/VBRUN.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/VSFlex8N.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/VSFlex8N.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/VSFlex8U.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/VSFlex8U.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/VoucherCO_Sa.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/VoucherCO_Sa.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/ZzPub.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/ZzPub.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/ZzPz.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/ZzPz.dll -------------------------------------------------------------------------------- /AX_U8V1300/Target/adodb.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/Target/adodb.dll -------------------------------------------------------------------------------- /AX_U8V1300/aaaa.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/AX_U8V1300/aaaa.dll -------------------------------------------------------------------------------- /AX_U8V1300/aaaa.txt: -------------------------------------------------------------------------------- 1 | "C:\Program Files (x86)\Microsoft\ILMerge\ILMerge.exe" 2 | /ndebug 3 | /copyattrs 4 | /targetplatform:4.0,"C:\Windows\Microsoft.NET\Framework64\v4.0.30319" 5 | /out:"c:\AX_U8V1300\aaaa.dll" 6 | 7 | "C:\AX_U8V1300\Target\UAPVoucherControl85.dll" 8 | 9 | "C:\AX_U8V1300\Target\ADODBV28.dll" 10 | "C:\AX_U8V1300\Target\ADOX.dll" 11 | "C:\AX_U8V1300\Target\DAO.dll" 12 | "C:\AX_U8V1300\Target\EDITLib.dll" 13 | "C:\AX_U8V1300\Target\MSComctlLib.dll" 14 | "C:\AX_U8V1300\Target\MSHierarchicalFlexGridLib.dll" 15 | "C:\AX_U8V1300\Target\MsSuperGrid.dll" 16 | "C:\AX_U8V1300\Target\MSXML2.dll" 17 | "C:\AX_U8V1300\Target\PRINTCONTROLLib.dll" 18 | "C:\AX_U8V1300\Target\ReferMakeVouch.dll" 19 | "C:\AX_U8V1300\Target\Scripting.dll" 20 | "C:\AX_U8V1300\Target\U8DefPro.dll" 21 | "C:\AX_U8V1300\Target\U8Ref.dll" 22 | "C:\AX_U8V1300\Target\U8RowAuthsvr.dll" 23 | "C:\AX_U8V1300\Target\U8VouchList.dll" 24 | "C:\AX_U8V1300\Target\UAPUfToolKit85.dll" 25 | "C:\AX_U8V1300\Target\UfDbKit.dll" 26 | "C:\AX_U8V1300\Target\UFGeneralFilterOCX.dll" 27 | "C:\AX_U8V1300\Target\UFGeneralFilterPub.dll" 28 | "C:\AX_U8V1300\Target\UFPortalProxyInterface.dll" 29 | "C:\AX_U8V1300\Target\UFToolBarCtrl.dll" 30 | "C:\AX_U8V1300\Target\VBA.dll" 31 | "C:\AX_U8V1300\Target\VBRUN.dll" 32 | "C:\AX_U8V1300\Target\VoucherCO_Sa.dll" 33 | "C:\AX_U8V1300\Target\VSFlex8N.dll" 34 | "C:\AX_U8V1300\Target\VSFlex8U.dll" 35 | "C:\AX_U8V1300\Target\ZzPub.dll" 36 | "C:\AX_U8V1300\Target\ZzPz.dll" 37 | -------------------------------------------------------------------------------- /Bin/HYCommonLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/Bin/HYCommonLib.dll -------------------------------------------------------------------------------- /Bin/UAPEventSyncAdapter.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/Bin/UAPEventSyncAdapter.dll -------------------------------------------------------------------------------- /Bin/ZAxImp.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/Bin/ZAxImp.exe -------------------------------------------------------------------------------- /Bin/ZTlbImp.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/Bin/ZTlbImp.exe -------------------------------------------------------------------------------- /Bin/ZTlbImp2.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/Bin/ZTlbImp2.exe -------------------------------------------------------------------------------- /Bin/fr.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/Bin/fr.exe -------------------------------------------------------------------------------- /ILMergeGUI_Portable.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/ILMergeGUI_Portable.exe -------------------------------------------------------------------------------- /License.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_CLASSES_ROOT\Licenses] 4 | @="Licensing: Copying the keys may be a violation of established copyrights." 5 | 6 | [HKEY_CLASSES_ROOT\Licenses\096EFC40-6ABF-11cf-850C-08002B30345D] 7 | @="knsgigmnmngnmnigthmgpninrmumhgkgrlrk" 8 | 9 | [HKEY_CLASSES_ROOT\Licenses\12B142A4-BD51-11d1-8C08-0000F8754DA1] 10 | @="aadhgafabafajhchnbchehfambfbbachmfmb" 11 | 12 | [HKEY_CLASSES_ROOT\Licenses\18277A1C-A353-4E93-879A-E45DC95E7397] 13 | @="oijijiiikpmpqiiiromppiipwjuovikpjiwj" 14 | 15 | [HKEY_CLASSES_ROOT\Licenses\190B7910-992A-11cf-8AFA-00AA00C00905] 16 | @="gclclcejjcmjdcccoikjlcecoioijjcjnhng" 17 | 18 | [HKEY_CLASSES_ROOT\Licenses\1F3D5522-3F42-11d1-B2FA-00A0C908FB55] 19 | @="gcfjdjecpchcncdjpdejijgcrdoijjfcieod" 20 | 21 | [HKEY_CLASSES_ROOT\Licenses\2c49f800-c2dd-11cf-9ad6-0080c7e7b78d] 22 | @="mlrljgrlhltlngjlthrligklpkrhllglqlrk" 23 | 24 | [HKEY_CLASSES_ROOT\Licenses\38911DA0-E448-11D0-84A3-00DD01104159] 25 | @="mcpckchcdchjcjcclidcgcgchdqdcjhcojpd" 26 | 27 | [HKEY_CLASSES_ROOT\Licenses\4250E830-6AC2-11cf-8ADB-00AA00C00905] 28 | @="kjljvjjjoquqmjjjvpqqkqmqykypoqjquoun" 29 | 30 | [HKEY_CLASSES_ROOT\Licenses\43478d75-78e0-11cf-8e78-00a0d100038e] 31 | @="imshohohphlmnhimuinmphmmuiminhlmsmsl" 32 | 33 | [HKEY_CLASSES_ROOT\Licenses\45D0AA33-5564-4a89-BE94-C1972EF4658C] 34 | "6A7693BA-3139-41fd-BF3D-299961C965D5"="01000000d08c9ddf0115d1118c7a00c04fc297eb010000005c59b451b17ece409af7bfc9dc93e2b60400000018000000560053002000500049004400200049006e0066006f00000003660000a8000000100000006edc63ad6e991f17e50b3158f67716f80000000004800000a000000010000000f114a1771deb70b8615731d9c7987c7910000000b18a131f9e437cf77ca11d6e0c389b2b140000004916c77c4d58082618377a9d5ba4620ad1afff4d" 35 | @="qepirojahflqeryjcncmnveuiroqejadfjakfjihhu" 36 | "CCF5A555-D92E-457b-9235-2B326B64035A"="01000000d08c9ddf0115d1118c7a00c04fc297eb010000005c59b451b17ece409af7bfc9dc93e2b60400000018000000560053002000500049004400200049006e0066006f00000003660000a800000010000000bd470574d146a7f711f3fec5111b9ceb0000000004800000a00000001000000071b5ded1593748648c5d17b74dc2c52108000000b8c37cad57cda37714000000a21dd3e2ba53354e94f7e6d4a5b8391c622a56f8" 37 | 38 | [HKEY_CLASSES_ROOT\Licenses\4D553650-6ABE-11cf-8ADB-00AA00C00905] 39 | @="gfjmrfkfifkmkfffrlmmgmhmnlulkmfmqkqj" 40 | 41 | [HKEY_CLASSES_ROOT\Licenses\4F86BADF-9F77-11d1-B1B7-0000F8753F5D] 42 | @="iplpwpnippopupiivjrioppisjsjlpiiokuj" 43 | 44 | [HKEY_CLASSES_ROOT\Licenses\57CBF9E0-6AA7-11cf-8ADB-00AA00C00905] 45 | @="aahakhchghkhfhaamghhbhbhkbpgfhahlfle" 46 | 47 | [HKEY_CLASSES_ROOT\Licenses\6000720D-F342-11D1-AF65-00A0C90DCA10] 48 | @="kefeflhlhlgenelerfleheietfmflelljeqf" 49 | 50 | [HKEY_CLASSES_ROOT\Licenses\6FB38640-6AC7-11cf-8ADB-00AA00C00905] 51 | @="gdjkokgdldikhdddpjkkekgknesjikdkoioh" 52 | 53 | [HKEY_CLASSES_ROOT\Licenses\72E67120-5959-11cf-91F6-C2863C385E30] 54 | @="ibcbbbebqbdbciebmcobmbhifcmciibblgmf" 55 | 56 | [HKEY_CLASSES_ROOT\Licenses\74872840-703A-11d1-A3AF-00A0C90F26FA] 57 | @="mninuglgknogtgjnthmnggjgsmrmgniglish" 58 | 59 | [HKEY_CLASSES_ROOT\Licenses\74872841-703A-11d1-A3AF-00A0C90F26FA] 60 | @="klglsejeilmereglrfkleeheqkpkelgejgqf" 61 | 62 | [HKEY_CLASSES_ROOT\Licenses\78E1BDD1-9941-11cf-9756-00AA00C00908] 63 | @="yjrjvqkjlqqjnqkjvprqsjnjvkuknjpjtoun" 64 | 65 | [HKEY_CLASSES_ROOT\Licenses\82198EB8-0FAB-4b2b-98AD-F745A8566EFE] 66 | "A3CA4A41-58C9-4804-8B80-11FAD9E20A2A"="" 67 | 68 | [HKEY_CLASSES_ROOT\Licenses\899B3E80-6AC6-11cf-8ADB-00AA00C00905] 69 | @="wjsjjjlqmjpjrjjjvpqqkqmqukypoqjquoun" 70 | 71 | [HKEY_CLASSES_ROOT\Licenses\9ADF72AD-DDA9-11D1-9D4B-000021006D51] 72 | @="kcgjcccjjceccjijpdgjgjdjgdrihchjpjod" 73 | 74 | [HKEY_CLASSES_ROOT\Licenses\9DF1A470-BA8E-11D0-849C-00A0C90DC8A9] 75 | @="cchcqjejhcgcqcfjpdfcdjkckiqikchcojpd" 76 | 77 | [HKEY_CLASSES_ROOT\Licenses\9E799BF1-8817-11cf-958F-0020AFC28C3B] 78 | @="uqpqnqkjujkjjjjqwktjrjkjtkupsjnjtoun" 79 | 80 | [HKEY_CLASSES_ROOT\Licenses\A133F000-CCB0-11d0-A316-00AA00688B10] 81 | @="cibbcimbpihbbbbbnhdbeidiocmcbbdbgdoc" 82 | 83 | [HKEY_CLASSES_ROOT\Licenses\a8a9f020-b426-11cf-bf3b-00a0d10003fa] 84 | @="eesjgjnekjeeheijrfheiegepftigeljfepi" 85 | 86 | [HKEY_CLASSES_ROOT\Licenses\AC0871D0-6ACC-11cf-8ADB-00AA00C00905] 87 | @="knjnpgognginknggsmnnhnjnumvmlngnrlrk" 88 | 89 | [HKEY_CLASSES_ROOT\Licenses\B1692F60-23B0-11D0-8E95-00A0C90F26F8] 90 | @="mjjjccncgjijrcfjpdfjfcejpdkdkcgjojpd" 91 | 92 | [HKEY_CLASSES_ROOT\Licenses\B1EFCCF0-6AC1-11cf-8ADB-00AA00C00905] 93 | @="qqkjvqpqmqjjpqjjvpqqkqmqvkypoqjquoun" 94 | 95 | [HKEY_CLASSES_ROOT\Licenses\BC96F860-9928-11cf-8AFA-00AA00C00905] 96 | @="mmimfflflmqmlfffrlnmofhfkgrlmmfmqkqj" 97 | 98 | [HKEY_CLASSES_ROOT\Licenses\BEA2ED97-562A-4510-974C-C4F20AE429AD] 99 | "1"=hex:83,00,77,01,0a,01,c5,00,e1,00,e7,00,3f,01,ee,00,34,00,cd,00,9f,00,64,\ 100 | 00,16,01,e6,00,cc,00 101 | 102 | [HKEY_CLASSES_ROOT\Licenses\C4145310-469C-11d1-B182-00A0C922E820] 103 | @="konhqhioohihphkouimonhqhvnwiqhhhnjti" 104 | 105 | [HKEY_CLASSES_ROOT\Licenses\C98409E8-B4F4-413C-9F39-0EF56E7358CF] 106 | @="idnkddedgdrdddrdlehdekjkmehekdkkndrj" 107 | 108 | [HKEY_CLASSES_ROOT\Licenses\CDE57A55-8B86-11D0-b3C6-00A0C90AEA82] 109 | @="ekpkhddkjkekpdjkqemkfkldoeoefkfdjfqe" 110 | 111 | [HKEY_CLASSES_ROOT\Licenses\CEDD4F80-B43C-11cf-837C-00AA00573EDE] 112 | @=hex(2):67,00,78,00,77,00,61,00,65,00,7a,00,75,00,63,00,66,00,79,00,71,00,70,\ 113 | 00,77,00,6a,00,67,00,71,00,62,00,63,00,6d,00,74,00,73,00,6e,00,63,00,75,00,\ 114 | 68,00,77,00,73,00,6e,00,79,00,68,00,69,00,6f,00,68,00,77,00,78,00,7a,00,00,\ 115 | 00 116 | 117 | [HKEY_CLASSES_ROOT\Licenses\D015B071-D2ED-11d0-A31A-00AA00688B10] 118 | @="gjdcfjpcmjicjcdcoihcechjlioiccechepd" 119 | 120 | [HKEY_CLASSES_ROOT\Licenses\DC4D7920-6AC8-11cf-8ADB-00AA00C00905] 121 | @="iokouhloohrojhhhtnooiokomiwnmohosmsl" 122 | 123 | [HKEY_CLASSES_ROOT\Licenses\E32E2733-1BC5-11d0-B8C3-00A0C90DCA10] 124 | @="kmhfimlflmmfpffmsgfmhmimngtghmoflhsg" 125 | 126 | [HKEY_CLASSES_ROOT\Licenses\ED4B87C4-9F76-11d1-8BF7-0000F8754DA1] 127 | @="knlggnmntgggrninthpgmnngrhqhnnjnslsh" 128 | 129 | [HKEY_CLASSES_ROOT\Licenses\F4FC596D-DFFE-11CF-9551-00AA00A3DC45] 130 | @="mbmabptebkjcdlgtjmskjwtsdhjbmkmwtrak" 131 | 132 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CSharpU8 2 | 一个快速生成U8相关COM Interop的工程,用于给C#语言进行调用,包括控件 3 | 具体的技术细节在这篇博客中已经介绍了,这里不再重复 4 | https://blog.csdn.net/zzlufida/article/details/81056123 5 | ## 文件基本信息 6 | - Bin\ZTlbImp2.exe 这是一个经过特殊绿化处理的Interop生成工具,他可以在Win7和Win2008系统中正常的生成Interop文件,不会遇到ADODB引用错误. 7 | - Bin\ZTlibImp.exe 这个是微软原装的TlbImp文件包装的,经过特殊绿化,但是不建议使用,他在遇到变体类型参数的时候,会有一些错误,不适合和AxImp配合使用,所以我都使用ZTlbImp2,这个就是临时放在这里,如果遇到问题,可以切换进行对比. 8 | - Bin\ZAxImp.exe 这也经过特殊绿化,可以配合Interop文件生成AxHost包装类,我使用的是/source参数,直接生成源码文件. 9 | - Start.bat是批处理脚本,执行后,会在目标文件夹下生成一套相应的Interop文件,具体包含哪些COM组件和OCX控件可以自己修改. 10 | - License.reg是OCX控件的设计许可证,直接双击导入注册表就可以正常在VS中拖拽控件了. 11 | - ILMergeGUI_Portable.exe 用于进行DLL合并工作,这个工具可以将多个分散的DLL文件合并成一个DLL. 12 | - 增加UAPEventSyncAdapter.dll插件,用于跟踪单据的DOM生成,具体文章可以到这里查看https://blog.csdn.net/zzlufida/article/details/83104492 13 | - AX_U8V1300 这个目录就是U8 13.0版本输出的一个结果,其中aaaa.dll就是我合并出来的完成品,名字可以随便定义,使用ILMergeGUI_Portable指定. 14 | - VB6 OCX许可证算法分析.xlsm 用来计算VB6开发的OCX控件的许可证,方便开发人员使用。 15 | ## 工作原理 16 | Start.bat 执行时会确定3个信息: 17 | 18 | 1 U8的安装目录 19 | 20 | 2 生成结果保存目录 21 | 22 | 3 Bin目录位置 23 | 24 | ```bat 25 | ::--请指明用友软件的安装目录,注意结尾的\ 26 | set U8PATH=C:\U8Soft\ 27 | ::--请指定需要将结果保存到哪个目录,最好在目录名字上带版本号,注意结尾的\ 28 | set TARPATH=C:\AX_U8V1300\ 29 | ::--请指定工具命令所在的目录,注意结尾的\ 30 | set BINPATH=C:\ax_new\Bin\ 31 | ``` 32 | 33 | 以上三个信息需要在Start.bat脚本中,手工修改,就在前三行. 34 | 35 | 工具会把每一个COM组件产生的Interop文件, 生成到一个文件夹下面,文件夹的名称正好和COM组件名称一致,但是为了看到顺序,我在名字前面故意加上了顺序编号,例如00COMMON,01UAPVouchControl85等等. 36 | 37 | 过程中工具主要调用ZTlbImp2来生成Interop的DLL,然后调用ZAxImp来生成控件的AxHost包装类源码文件.并在最后将所有生成好的文件统一放在一个叫做Target的文件夹下面,换言之这里面存储了整个生成过程的结果,其余文件夹都是过程中的部分结果.例如00文件夹和01文件夹加起来所有的文件正好等于Target,这样做的目的是为了调试方便(每一步都去看编码文件夹),最后拿到结果也方便(直接去Target). 38 | 39 | 最后需要手工使用ILMergeGUI_Portable.exe工具进行DLL合并,如果不合并也可以使用,合并仅仅是为了引用方便.发版的时候只要一个DLL文件就可以了.合并的过程也不复杂,把软件打开,然后从Target目录中拖拽你想要合并的DLL文件,别的选项都不要改,直接合并就好了. 40 | 41 | ## 默认情况下,都生成哪些COM组件 42 | 默认情况下,工具生成的COM组件包括: 43 | 44 | | 文件名 | 描述 | 45 | | -------- |-------- | 46 | |ADODBV28.dll|ADODB 2.8版本 对应msado28.tlb| 47 | |UAPvouchercontrol85| U8单据控件| 48 | |u8vouchlist| U8单据列表控件| 49 | |U8RefEdit| U8参照控件 带文本框编辑功能| 50 | |UFGeneralFilterOCX| U8过滤控件| 51 | |voucherco_sa|销售模块CO类,API调用的关键类| 52 | | PrintControl|U8打印控件| 53 | |US_Pz|凭证组件 这个用处不是很大| 54 | |ReferMakeVouch|这个我也不清楚,仅仅是测试用| 55 | 56 | 57 | -------------------------------------------------------------------------------- /Start.bat: -------------------------------------------------------------------------------- 1 | echo off 2 | ::--请指明用友软件的安装目录 3 | set U8PATH=C:\U8Soft\ 4 | ::--请指定需要将结果保存到哪个目录 5 | set TARPATH=C:\AX_U8V1300\ 6 | ::--请指定工具命令所在的目录 7 | set BINPATH=C:\ax_new\Bin\ 8 | 9 | set U8INTEROP=%U8PATH%Interop\ 10 | set U8COMSQL=%U8PATH%ufcomsql\ 11 | set TLBPARAM=/sysarray /unsafe /machine:X86 /silent 12 | set AXPARAM=/source 13 | set TLBIMP=%BINPATH%ztlbimp2.exe 14 | set AXIMP=%BINPATH%zaximp.exe 15 | set R_=/reference: 16 | set FR=%BINPATH%fr.exe 17 | 18 | ::第一步 前往目的目录 19 | call:GODIR %TARPATH% 20 | mkdir Target 21 | 22 | ::第二步 创建基础目录00COMMON,用于存放基础文件,为后面提供引用 23 | call:GODIR 00COMMON 24 | ::-- 生成ADODB v2.8版本的Interop文件 25 | %TLBIMP% "C:\Program Files (x86)\Common Files\System\ado\msado28.tlb" /namespace:ADODBV28 /out:"ADODBV28.dll" %TLBPARAM% 26 | ::--拷贝interop.u8login.dll 27 | copy %U8INTEROP%Interop.U8Login.dll %cd%\Interop.U8Login.dll 28 | 29 | ::--拷贝Interop.MSXML2.dll 增加msxml的引用,这么做,是尽量使用u8原厂的文件,防止后期自动生产 30 | copy %U8INTEROP%Interop.MSXML2.dll %cd%\Interop.MSXML2.dll 31 | 32 | ::--拷贝v2.6版本的ADODB.dll 33 | copy C:\Windows\assembly\GAC\ADODB\7.0.3300.0__b03f5f7f11d50a3a\adodb.dll %cd%\adodb.dll 34 | 35 | ::--将%cd%下的所有dll文件,放入到引用参数中 36 | call:AddRefByDir %cd% 37 | call:GORet 38 | 39 | echo.%TLBPARAM% 40 | ::第三步 顺序生成ocx和dll对应的interop文件 41 | call:CreateDLLAndAxHost 01UAPvouchercontrol85 %U8COMSQL%UAPvouchercontrol85.ocx 42 | 43 | call:CreateDLLAndAxHost 02u8vouchlist %U8COMSQL%U8VouchList.ocx 44 | 45 | call:CreateDLLAndAxHost 03U8RefEdit %U8COMSQL%U8RefEdit.ocx 46 | 47 | call:CreateDLLAndAxHost 04UFGeneralFilterOCX %U8COMSQL%UFGeneralFilterOCX.ocx 48 | 49 | call:CreateDLL 05voucherco_sa %U8COMSQL%voucherco_sa.dll 50 | 51 | call:CreateDLLAndAxHost 06PrintControl %U8COMSQL%PrintControl.ocx 52 | 53 | call:CreateDLL 07US_Pz %U8COMSQL%US_Pz.dll 54 | 55 | call:CreateDLLAndAxHost 08ReferMakeVouch %U8COMSQL%ReferMakeVouch.ocx 56 | 57 | call:GODIR 09UFToolBarCtrl 58 | call:AXIMP %U8COMSQL%UFToolBarCtrl.ocx 59 | call:GORet 60 | 61 | call:GODIR 10MSCOMCTL 62 | call:AXIMP c:\windows\syswow64\MSCOMCTL.OCX 63 | call:GORet 64 | 65 | 66 | %FR% %TARPATH%Target\*.cs /r:"public\sclass\s(.*)\s[:]\sSystem.Windows.Forms.AxHost" -t:"[System.ComponentModel.ToolboxItem(true)]\n public class \1 : System.Windows.Forms.AxHost" 67 | %FR% %TARPATH%Target\*.cs /r:"[[]assembly: System.Reflection.AssemblyVersion.*\n" /t:"" 68 | %FR% %TARPATH%Target\*.cs /r:"[[]assembly: System.Windows.Forms.AxHost.TypeLibraryTimeStamp.*\n" /t:"" 69 | goto:eof 70 | 71 | ::-------------------------------------------------------- 72 | ::-- TLB生成函数,调用tlbimp执行COM组件的interop工作 73 | ::-------------------------------------------------------- 74 | :TLBIMP - here starts my function identified by it`s label 75 | ::echo. 生成 %~1 76 | %TLBIMP% "%~1" %TLBPARAM% >tlbimp.log 77 | goto:eof 78 | 79 | ::-------------------------------------------------------- 80 | ::-- AXIMP函数,调用AxImp生成控件的源代码文件 81 | ::-------------------------------------------------------- 82 | :AXIMP - here starts my function identified by it`s label 83 | ::echo. 生成 %~1 84 | %AXIMP% "%~1" %AXPARAM% 85 | goto:eof 86 | 87 | ::-------------------------------------------------------- 88 | ::-- AddRef增加函数 89 | ::-------------------------------------------------------- 90 | :AddRef - here starts my function identified by it`s label 91 | echo. AddRef %~1 92 | set TLBPARAM=%R_%"%~1" %TLBPARAM% 93 | set AXPARAM=/rcw:"%~1" %AXPARAM% 94 | goto:eof 95 | 96 | ::-------------------------------------------------------- 97 | ::-- GODIR函数,创建组件对应的目录,让tlb和ax生成到该目录下, 98 | ::-- 方便生成后进行观察和调试 99 | ::-------------------------------------------------------- 100 | :GODIR 101 | mkdir %~1 >nul 102 | cd %~1 >nul 103 | del *.dll >nul 104 | goto:eof 105 | 106 | ::-------------------------------------------------------- 107 | ::-- GORet函数,和GODIR配对使用, 108 | ::-- 用于从GODIR中快速返回到工作主目录 109 | ::-------------------------------------------------------- 110 | :GORet 111 | del Ax*.dll >nul 112 | del Ax*.pdb >nul 113 | copy *.cs %TARPATH%Target >nul 114 | copy *.dll %TARPATH%Target >nul 115 | cd %TARPATH% 116 | goto:eof 117 | 118 | ::-------------------------------------------------------- 119 | ::-- AddRefByDir罗列某目录下的所有dll文件,并自动调用AddRef 120 | ::-------------------------------------------------------- 121 | :AddRefByDir %~1 122 | :: 参数 /R 表示需要遍历子文件夹,去掉表示不遍历子文件夹 123 | :: %%f 是一个变量,类似于迭代器,但是这个变量只能由一个字母组成,前面带上%% 124 | :: 括号中是通配符,可以指定后缀名,*.*表示所有文件 125 | for /R %~1 %%f in (*.dll) do ( 126 | call:AddRef %%f 127 | ) 128 | goto:eof 129 | 130 | ::-------------------------------------------------------- 131 | ::-- CreateDLLAndAxHost 调用tlbimp和axImp生成 132 | ::-------------------------------------------------------- 133 | :CreateDLLAndAxHost %~1 %~2 134 | call:GODIR %~1 135 | call:TLBIMP %~2 136 | call:AddRefByDir %cd% 137 | call:AXIMP %~2 138 | call:GORet 139 | goto:eof 140 | 141 | ::-------------------------------------------------------- 142 | ::-- CreateDLL 调用tlbimp生成 143 | ::-------------------------------------------------------- 144 | :CreateDLL %~1 %~2 145 | call:GODIR %~1 146 | call:TLBIMP %~2 147 | call:AddRefByDir %cd% 148 | call:GORet 149 | goto:eof 150 | -------------------------------------------------------------------------------- /VB6 OCX许可证算法分析.xlsm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zzlufida/CSharpU8/2b3c938f7aba959c7faf23964aa35e46f1bd5573/VB6 OCX许可证算法分析.xlsm --------------------------------------------------------------------------------