Exemple #1
0
        private void RecAddProc()
        {
            if (dataFormatCheck() == true)
            {
                bool bIsAdd = true;

                List <string> lFieldCap = new List <string>(); lFieldCap.Clear();
                lFieldCap.Add(sFieldCap[1]); lFieldCap.Add(sFieldCap[2]); lFieldCap.Add(sFieldCap[4]);
                //"Plc连接点", "数据区域",  "数据地址"                        //"数据类型"暂不考虑

                if (ParCfg_DgViewPtr.redundancyCheck(lFieldCap, -1) == true)  //多列重复
                {
                    bIsAdd = false;
                    MessageBox.Show("标签配置有冲突,请检查!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }

                if (bIsAdd == true)
                {
                    ParCfg_DgViewPtr.RecAddProc(AddCheck.Checked);
                }
            }
            else
            {
                MessageBox.Show("标签参数配置有误,请检查!", "警告", MessageBoxButtons.OK);
            }
        }
Exemple #2
0
        private void RecAddProc()
        {
            bool bIsAdd = true;

            if (ParCfg_DgViewPtr.redundancyCheck(sFieldCap[0], -1) == true || ParCfg_DgViewPtr.redundancyCheck(sFieldCap[1], -1) == true) //某一列重复
            {
                MessageBox.Show("指示灯编号或垫片值已存在,请检查!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                bIsAdd = false;
            }

            if (bIsAdd == true)
            {
                ParCfg_DgViewPtr.RecAddProc(AddCheck.Checked);
            }
        }
Exemple #3
0
        private void RecAddProc()
        {
            if (ItemCon_0.Text != "" && ItemCon_2.Text.Trim().Length > 0)
            {
                bool bIsAdd = true;

                if (ParCfg_DgViewPtr.redundancyCheck(sFieldCap[0], -1) == true) //列重复检查,-1--检查所有行
                {
                    MessageBox.Show("配置重复,请检查!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    bIsAdd = false;
                }

                if (bIsAdd == true)
                {
                    ParCfg_DgViewPtr.RecAddProc(AddCheck.Checked);
                }
            }
            else
            {
                MessageBox.Show("信息内容不能为空,请检查!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Exemple #4
0
        //**************************************************************************************************
        //**************************************************************************************************
        private void DgView_RecAddProc()
        {
            if (ItemCon_0.Text.Trim().Length > 0)
            {
                bool bIsAdd = true;

                if (DgViewRecPtr.redundancyCheck(sFieldCap[0], -1) == true || DgViewRecPtr.redundancyCheck(sFieldCap[1], -1) == true) //某列重复
                {
                    MessageBox.Show("产品型号或产品编号已存在,请检查!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    bIsAdd = false;
                }

                if (bIsAdd == true)
                {
                    DgViewRecPtr.RecAddProc(chkRecAdd.Checked);
                }
            }
            else
            {
                MessageBox.Show("产品型号或产品编号已存在, 请检查!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Exemple #5
0
        private void RecAddProc()
        {
            if (ItemCon_0.Text != "")
            {
                bool          bIsAdd    = true;
                List <string> lFieldCap = new List <string>();

                if (ParCfg_DgViewPtr.redundancyCheck(sFieldCap[0], -1) == true) //列重复检查,-1--检查所有行
                {
                    MessageBox.Show("按钮标签配置重复,请检查!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    bIsAdd = false;
                }

                if (bIsAdd == true)
                {
                    ParCfg_DgViewPtr.RecAddProc(AddCheck.Checked);
                }
            }
            else
            {
                MessageBox.Show("按钮标签不能为空,请检查!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }