示例#1
0
 public dbBook(dbBook Book, string BASENAME)
 {
     this.author            = Book.author;
     this.barcode           = Book.barcode;
     this.id                = Book.id;
     this.name              = Book.name;
     this.rid               = Book.rid;
     this.rname             = Book.rname;
     this.inv               = Book.inv;
     this.fctvzv            = Book.fctvzv;
     this.vzv               = Book.vzv;
     this.zal               = Book.zal;
     this.RESPAN            = Book.RESPAN;
     this.klass             = Book.klass;
     this.FirstIssue        = Book.FirstIssue;
     this.ChgKlass          = Book.ChgKlass;
     this.zalid             = Book.zalid;
     this.idemp             = Book.idemp;
     this.religion          = Book.religion;
     this.redk              = Book.redk;
     this.code              = Book.code;
     this.mainfund          = Book.mainfund;
     this.number            = Book.number;
     this.year              = Book.year;
     this.additionalNumbers = Book.additionalNumbers;
     this.BASENAME          = BASENAME;
     this.NumbersCount      = Book.NumbersCount;
     this.iddata            = Book.iddata;
     this.ord_id            = Book.ord_id;
     this.ord_rid           = Book.ord_rid;
 }
示例#2
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (previous == null)
     {
         previous = new dbBook();
     }
     textBox1.Text = previous.name;
     textBox2.Text = previous.year;
     textBox3.Text = previous.number;
     textBox4.Text = previous.additionalNumbers;
 }
示例#3
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (ResGrid.SelectedRows[0].Cells[9].Value.ToString() != "На бронеполке")
            {
                MessageBox.Show("Читатель сначала должен сдать книгу!");
                return;
            }
            dbBook b = new dbBook(ResGrid.SelectedRows[0].Cells[11].Value.ToString(), dbw.F1.BASENAME);

            dbw.MoveToHistory(b);
            MessageBox.Show("Запись о выдаче книги отправлена в историю! Книга может быть сдана в книгохранение или выдана другому читателю!");
            ResGrid.Rows.Remove(ResGrid.SelectedRows[0]);
            //this.construct();
        }
示例#4
0
        public PrintDemand(dbBook b, Form1 _f1)
        {
            this.bb = b;
            this.f1 = _f1;
            Conn.SQLDA.SelectCommand.CommandText = "select * from " + f1.BASENAME + "..ISSUED_OF where BAR = '" + bb.barcode + "'";
            DataSet DS = new DataSet();

            Conn.SQLDA.Fill(DS, "t");
            if (DS.Tables["t"].Rows.Count == 0)
            {
                result = "norespan";
            }
            else
            {
                result = "ok";
            }
        }
示例#5
0
        public Form28(dbBook b, bool IsIssue, dbBook previous_)
        {
            this.book     = b;
            this.previous = previous_;
            InitializeComponent();
            textBox1.Text             = book.name;
            textBox2.Text             = book.year;
            textBox3.Text             = book.number;
            this.numericUpDown1.Value = 1;
            if (IsIssue)
            {
                this.numericUpDown1.Visible = true;
                label6.Visible       = true;
                this.button3.Visible = false;
            }
            else
            {
                this.numericUpDown1.Visible = false;
                this.label6.Visible         = false;
                this.button3.Visible        = true;
            }


            if (book.id == "-1")
            {
                if (book.mainfund)
                {
                    radioButton1.Checked = true;
                }
                else
                {
                    radioButton2.Checked = true;
                }
            }
            label5.Text = book.barcode;
        }