예제 #1
0
    public bool irsaliyeKontrol()
    {
        myLibrary.myDbHelper db = new myLibrary.myDbHelper(new myLibrary.sqlDbHelper());
        bool   kontrol          = false;
        string adet             = db.exReaderTekSutun(CommandType.Text, "select count(*) from seferler where sefer_IrsaliyeNo=@irsaliye and sefer_IrsaliyeNo!=0", "irsaliye=" + txtIrsaliyeNo.Text);

        if (adet.Length > 0 && adet == "0")
        {
            kontrol = true;
        }
        return(kontrol);
    }