Exemple #1
0
        private void ParCfg_TblBindInit(int ProdIdx)
        {
            string OpcGroupName = OpcGroupNameCboBox.Items[ProdIdx].ToString();

            if (ParCfg_DgViewPtr.TableBindToDgV("OpcItemTbl_" + OpcGroupName) == false)
            {
                MessageBox.Show("Opc标签数据表创建失败,请检查!");
                Close();
            }
        }
Exemple #2
0
        private void OnForm_Load(object sender, EventArgs e)
        {
            ParCfg_DgViewPtr = new DgVBindClass(TGlobalVar.sDataBase, TGlobalVar.sSqlConn, TGlobalVar.sMasterSqlConn, this);
            ParCfg_TblInit();

            if (ParCfg_DgViewPtr.TableBindToDgV("GasketTbl") == false)
            {
                MessageBox.Show("垫片数据表创建失败,请检查!");
                Close();
            }
        }
Exemple #3
0
        private void OnForm_Load(object sender, EventArgs e)
        {
            DgViewRecPtr = new DgVBindClass(TGlobalVar.sDataBase, TGlobalVar.sSqlConn, TGlobalVar.sMasterSqlConn, this);
            DgView_TblStructParInit();

            if (DgViewRecPtr.TableBindToDgV("ProdNameTbl") == false) //产品组表
            {
                MessageBox.Show("产品名表创建失败,请检查!");
                Close();
            }
        }
Exemple #4
0
        private void OnForm_Load(object sender, EventArgs e)
        {
            //*********************************************************************************
            ParCfg_DgViewPtr = new DgVBindClass(TGlobalVar.sDataBase, TGlobalVar.sSqlConn, TGlobalVar.sMasterSqlConn, this);
            TableStructParInit();

            //******************************************************************
            if (ParCfg_DgViewPtr.TableBindToDgV("AlarmInfoTbl") == false)
            {
                MessageBox.Show("数据表创建失败,请检查!");
                Close();
            }
        }
Exemple #5
0
        private void OnForm_Load(object sender, EventArgs e)
        {
            if (TSqlDbClass.IsDataBaseExist(TGlobalVar.sMasterSqlConn, TGlobalVar.sDataBase) == false) //数据库不存在则创建数据库
            {
                TSqlDbClass.CreateServerDb(TGlobalVar.sMasterSqlConn, Application.StartupPath, TGlobalVar.sDataBase);
            }

            //************************************************************
            ItemCon_1.SelectedIndex = 0; //Opc组模式

            ParCfg_DgViewPtr = new DgVBindClass(TGlobalVar.sDataBase, TGlobalVar.sSqlConn, TGlobalVar.sMasterSqlConn, this);
            TableStructParInit();

            //******************************************************************
            if (ParCfg_DgViewPtr.TableBindToDgV("OpcGroupTbl") == false)
            {
                MessageBox.Show("数据表创建失败,请检查!");
                Close();
            }
        }