Example #1
0
        private void frmAbout_Load(object sender, EventArgs e)
        {
            this.lbCustomer.Text = Program.HosName;

            //this.lbVersionNumber.Text = Program.HosVersion;
            this.lbVersionNumber.Text = "V 5.0";

            Neusoft.HISFC.BizLogic.Manager.SysModelManager modelMgr = new Neusoft.HISFC.BizLogic.Manager.SysModelManager();
            System.Collections.ArrayList Models = modelMgr.LoadAll();

            foreach (Neusoft.HISFC.Models.Admin.SysModel group in Models)
            {
                this.listView1.Items.Add(group.SysName, 0);
            }
        }
Example #2
0
        public void Initialize()
        {
            comboBoxCellType1.Items = new string[] { "MDI", "Form", "FormDialog" };
            comboBoxCellType2.Items = new string[] { "Form", "Control", "Report" };

            TreeNode node = new TreeNode("系统模块列表");

            node.Tag = "";
            this.treeView.Nodes.Add(node);

            Neusoft.HISFC.BizLogic.Manager.SysModelManager modelMgr = new Neusoft.HISFC.BizLogic.Manager.SysModelManager();
            ArrayList modelList = modelMgr.LoadAll();

            foreach (Neusoft.HISFC.Models.Admin.SysModel model in modelList)
            {
                AddTreeNode(node, model);
            }

            node.ExpandAll();
            this.treeView.SelectedNode = node;

            #region 加载模块功能信息 --修改

            initDataSet();

            Neusoft.HISFC.BizLogic.Manager.SysModelFunctionManager funMgr = new Neusoft.HISFC.BizLogic.Manager.SysModelFunctionManager();
            ArrayList funList = funMgr.QuerySysModelFunction();
            foreach (Neusoft.HISFC.Models.Admin.SysModelFunction fun in funList)
            {
                table.Rows.Add(new object[] {
                    fun.SysCode,
                    fun.FunName,
                    fun.WinName,
                    fun.DllName,
                    fun.FormShowType,
                    fun.FormType,
                    fun.Memo,
                    fun.Param,
                    fun.TreeControl.DllName,
                    fun.TreeControl.WinName,
                    fun.TreeControl.Param,
                    fun.ID,
                    fun.SortID,
                    "old"
                });
            }

            view = table.DefaultView;

            view.RowFilter = "";

            this.fpSpread1_Sheet1.DataSource = view;
            this.table.AcceptChanges();
            this.fpSpread1_Sheet1.OperationMode = FarPoint.Win.Spread.OperationMode.RowMode;

            #endregion

            SetCellType();

            this.fpSpread1_Sheet1.DataAutoSizeColumns  = false;
            this.fpSpread1_Sheet1.Columns[2].Width     = 200;
            this.fpSpread1_Sheet1.Columns[2].BackColor = Color.MistyRose;
            this.fpSpread1_Sheet1.Columns[2].ForeColor = Color.Black;
            this.fpSpread1.ContextMenuStrip            = this.neuContextMenuStrip1;
        }