예제 #1
0
 private void button1_Click(object sender, System.EventArgs e)
 {
     try
     {
         if (!this.cboBookLocation.Text.Trim().Equals(""))
         {
             if (this.cboBookLocation.Text.Trim().Equals("请选择架位"))
             {
                 MessageBox.Show("请选择架位");
             }
             else
             {
                 DataBookList dbl = new DataBookList();
                 dbl.updateBooklist(this.ylblBH.Text.Trim(), this.cboBookLocation.Text.Trim());
                 MessageBox.Show("修改架位成功");
                 this.Close();
             }
         }
         else
         {
             MessageBox.Show("请选择架位");
         }
     }
     catch {}
 }
예제 #2
0
 private void cmdRFidquery_Click(object sender, System.EventArgs e)
 {
     try
     {
         if (BarCode.Text.Trim().Equals(""))
         {
             MessageBox.Show("编号不能为空");
         }
         else
         {
             DataBookList DBL = new DataBookList();
             DBL.GetDataBookList(BarCode.Text.Trim());
             wzhtb.Text    = DBL.WZH.Trim();
             tsflhtb.Text  = DBL.TSFLH.Trim();
             zchtb.Text    = DBL.ZCH.Trim();
             txtbname.Text = DBL.BookName.Trim();
         }
     }
     catch (Exception exx) { MessageBox.Show(exx.ToString()); }
 }