Ejemplo n.º 1
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public SVFindWindow()
        {
            InitializeComponent();

            this.comboBox.SelectedIndexChanged += new EventHandler(comboBox_SelectedIndexChanged);
            this.comboBox.SelectedIndex         = 0;

            SVInterfaceApplication app = SVApplication.Instance;

            _treeView = app.TreeProject as SVTreeView;
            _findView = app.FindWindow as SVFindTextBox;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 获取发送地址表格
        /// </summary>
        /// <returns></returns>
        public DataTable loadSendDataTable()
        {
            SVInterfaceApplication app         = SVApplication.Instance;
            SVSqlDataBase          sqlDataBase = app.DataBase;

            DataTable sendIO      = sqlDataBase.getSendAddressForIO(SVProData.stationID);
            DataTable sendIO2     = sqlDataBase.getSendAddressForIO2(SVProData.stationID);
            DataTable sendNormal  = sqlDataBase.getSendAddressForNormal(SVProData.stationID);
            DataTable sendNormal2 = sqlDataBase.getSendAddressForNormal2(SVProData.stationID);

            ///合并表格
            DataTable result = new DataTable();

            if (sendIO != null)
            {
                result.Merge(sendIO);
            }

            if (sendIO2 != null)
            {
                dealDataTableAddress(sendIO2);
                result.Merge(sendIO2);
            }

            if (sendNormal != null)
            {
                sendNormal.Columns[0].ColumnName = "ioblockname";
                result.Merge(sendNormal);
            }

            if (sendNormal2 != null)
            {
                sendNormal2.Columns[0].ColumnName = "ioblockname";
                dealDataTableAddress(sendNormal2);
                result.Merge(sendNormal2);
            }

            return(result);
        }
Ejemplo n.º 3
0
        public SVCheckBeforeBuild()
        {
            SVInterfaceApplication app = SVApplication.Instance;

            _treeView = app.TreeProject as SVTreeView;
        }