예제 #1
0
        //Check thông tin MMTB - máy tiện
        public Boolean CheckError_MMTB_T()
        {
            DataTable _checkTien = new DataTable();

            _checkTien = M0006_MayTien_DAO.GetInfo_M0006_Check(
                sLook_Code.Text.Trim(),
                Int32.Parse(txt_Turret.Text.Trim()),
                Int32.Parse(txt_Horizontal.Text.Trim()),
                cbx_Tailstock.SelectedIndex,
                cbx_AxisC.SelectedIndex);

            if (_checkTien.Rows.Count > 0)
            {
                return(false);
            }
            return(true);
        }
예제 #2
0
        //Check thông tin MMTB - máy tiện
        public Boolean CheckError_MMTB_T()
        {
            DataTable _checkTien = new DataTable();

            _checkTien = M0006_MayTien_DAO.GetInfo_M0006_Check(sLook_Code.Text.Trim()
                                                               , Int32.Parse(txt_Turret.Text.Trim())
                                                               , Int32.Parse(txt_Horizontal.Text.Trim())
                                                               , cbx_Tailstock.SelectedIndex
                                                               , cbx_AxisC.SelectedIndex);

            if (_checkTien.Rows.Count > 0)
            {
                //MessageBox.Show("Mã MMTB (Tiện): " + sLook_Code.Text.ToString() + " đã có", "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
                //sLook_Code.Focus();
                return(false);
            }
            return(true);
        }