Beispiel #1
0
 private void lsvCabinet_Click(object sender, EventArgs e)
 {
     try {
         int imgboxq = 1;
         if (lsvCabinet.SelectedItems != null && lsvCabinet.SelectedItems.Count > 0)
         {
             txtGuiHao.Text      = lsvCabinet.SelectedItems[0].Text;
             txtLie.Text         = lsvCabinet.SelectedItems[0].SubItems[1].Text;
             txtCeng.Text        = lsvCabinet.SelectedItems[0].SubItems[2].Text;
             txtboxsn.Text       = lsvCabinet.SelectedItems[0].SubItems[3].Text;
             txtJuan.Text        = lsvCabinet.SelectedItems[0].SubItems[4].Text;
             Clsxtpz.myCabinetID = Convert.ToInt32(lsvCabinet.SelectedItems[0].SubItems[5].Text);
             V_HouseSetCs.Id     = Clsxtpz.myCabinetID;
         }
         txt_kfsz_rongliang.Text = Convert.ToString(SnValid(txtGuiHao.Text) * SnValid(txtLie.Text) * SnValid(txtCeng.Text) * SnValid(txtboxsn.Text) * SnValid(txtJuan.Text) * 2);
         if (txtGuiHao.Text == "1")
         {
             imgboxq = 1;
         }
         else
         {
             imgboxq = SnValid(txtLie.Text) * SnValid(txtCeng.Text) * SnValid(txtboxsn.Text) * 2;
         }
         int imgboxz = SnValid(txtGuiHao.Text) * SnValid(txtLie.Text) * SnValid(txtCeng.Text) * SnValid(txtboxsn.Text) * 2;
         Clsxtpz.imagecount = T_Sysset.Getboxsnimage(imgboxq, imgboxz);
     } catch (Exception ee) {
         MessageBox.Show(ee.ToString());
     }
 }