public bool CheckDup()
        {
            IPQC_Motor.TfSQL tf     = new IPQC_Motor.TfSQL();
            string           sqldup = "select count(*) from m_model where model_cd = '" + txtModel.Text + "' and model_sub_cd ='" + txtModelSub.Text + "'";

            if (tf.sqlExecuteScalarDouble(sqldup) >= 1)
            {
                return(false);
            }
            return(true);
        }
Пример #2
0
        public bool CheckDup()
        {
            IPQC_Motor.TfSQL tf     = new IPQC_Motor.TfSQL();
            string           sqldup = "select count(*) from m_drawing where dwr_cd = '" + txtDwrCd.Text + "'";

            if (tf.sqlExecuteScalarDouble(sqldup) >= 1)
            {
                return(false);
            }
            return(true);
        }