public 版本发布(string text = "", InfoObjectBase infObj = null) { InitializeComponent(); this.Text = text == "" ? this.Text : text; this.infObj = infObj; connWG = infObj.connWG; }
public FastReport模板发布(string text = "", InfoObjectBase infObj = null) { InitializeComponent(); this.Text = text == "" ? this.Text : text; frManager = new FastReportManager(infObj.connWG); infObj.userPermission.GetPermUserDetail(infObj.userId, this.Text, out newFlag, out editFlag, out delFlag, out outFlag, out lockFlag, out printFlag); Init(); }
public 权限管理(string text = "", InfoObjectBase infObj = null) { InitializeComponent(); this.Text = text == "" ? this.Text : text; this.infObj = infObj; infObj.userPermission.GetPermUserDetail(infObj.userId, this.Text, out newFlag, out editFlag, out delFlag, out outFlag, out lockFlag, out printFlag); FormMain_Resized_Work(); BtnSave.Enabled = false; ShowUser(); }
public Main(InfoObjectBase _infObj) { infObj = _infObj; infObj.sql = new Mssql(); infObj.progName = Application.ProductName.ToString(); infObj.progVer = Application.ProductVersion.ToString(); infObj.systemType = "ERP"; versionManager = new VersionManeger(infObj.connWG); infObj.userPermission = new UserPermission(infObj.connWG, infObj.systemType); //添加组件列表 DataRow dr = infObj.componentFileDt.NewRow(); dr = infObj.componentFileDt.NewRow(); dr["FileName"] = "Microsoft.Office.Interop.Excel12.dll"; dr["FileVersion"] = "12.0.4518.1014"; infObj.componentFileDt.Rows.Add(dr); dr = infObj.componentFileDt.NewRow(); dr["FileName"] = "NPOI.dll"; dr["FileVersion"] = "2.0.0.0"; infObj.componentFileDt.Rows.Add(dr); dr = infObj.componentFileDt.NewRow(); dr["FileName"] = "NPOI.OOXML.dll"; dr["FileVersion"] = "2.0.0.0"; infObj.componentFileDt.Rows.Add(dr); dr = infObj.componentFileDt.NewRow(); dr["FileName"] = "NPOI.OpenXml4Net.dll"; dr["FileVersion"] = "2.0.0.0"; infObj.componentFileDt.Rows.Add(dr); dr = infObj.componentFileDt.NewRow(); dr["FileName"] = "NPOI.OpenXmlFormats.dll"; dr["FileVersion"] = "2.0.0.0"; infObj.componentFileDt.Rows.Add(dr); dr = infObj.componentFileDt.NewRow(); dr["FileName"] = "NPOI.xml"; dr["FileVersion"] = ""; infObj.componentFileDt.Rows.Add(dr); dr = infObj.componentFileDt.NewRow(); dr["FileName"] = "FastReport.Bars.dll"; dr["FileVersion"] = "2019.3.5.0"; infObj.componentFileDt.Rows.Add(dr); dr = infObj.componentFileDt.NewRow(); dr["FileName"] = "FastReport.dll"; dr["FileVersion"] = "2019.3.5.0"; infObj.componentFileDt.Rows.Add(dr); dr = infObj.componentFileDt.NewRow(); dr["FileName"] = "FastReport.Editor.dll"; dr["FileVersion"] = "2019.3.5.0"; infObj.componentFileDt.Rows.Add(dr); FileVersion.JudgeFile(infObj.updateHost, infObj.componentFileDt); }
public 主界面(InfoObjectBase _infObj = null, bool dllMode = false, string connSW = null, string connWG = null, string connYF = null, string localIP = "", string localPath = "", string mainDllComment = "", string mainIniFilePath = "", string updateHost = "", string progName = "", string progVer = "", string systemType = "", string userDpt = "", string userGroup = "", string userId = "", string userName = "", List <string> userPermList = null, bool debugFlag = false, bool remoteFlag = false, bool connSwFlag = false) { InitializeComponent(); if (!dllMode) { this.infObj = _infObj; } else { infObj = new InfoObjectBase(); infObj.connSW = connSW; infObj.connWG = connWG; infObj.connYF = connYF; infObj.localIP = localIP; infObj.localPath = localPath; infObj.mainDllComment = mainDllComment; infObj.mainIniFilePath = mainIniFilePath; infObj.updateHost = updateHost; infObj.progName = progName; infObj.progVer = progVer; infObj.systemType = systemType; infObj.userDpt = userDpt; infObj.userGroup = userGroup; infObj.userId = userId; infObj.userName = userName; infObj.userPermList = userPermList; infObj.debugFlag = debugFlag; infObj.remoteFlag = remoteFlag; infObj.connSwFlag = connSwFlag; } 关闭当前界面ToolStripMenuItem.Visible = false; FormPermission(); Form_MainResized_Work(); StatusBarSetItem(); }
public FormLogin() { InitializeComponent(); infObj = new InfoObjectBase(); main = new Main(infObj); //判断是否在debug模式 #if DEBUG infObj.debugFlag = true; #endif if (infObj.debugFlag) { this.Text += " -Debug"; } if (infObj.remoteFlag) { this.Text += " -Remote"; } labelVersion.Text = "Ver: " + infObj.progVer; SqlTestDelegate sqlTestDelegateSW = new SqlTestDelegate(SqlTestSW); sqlTestDelegateSW.BeginInvoke(infObj.connSW, null, null); textBoxUid.Text = infObj.userId; textBoxUid.SelectAll(); FileVersion.JudgeFile(infObj.updateHost, infObj.componentFileDt); //更新程序 if (main.GetNewVersion()) { Thread.Sleep(1000); UpdateMe.ProgUpdate(infObj.progName, infObj.updateHost + infObj.progName + ".exe"); } }