public frmChiTietTraNo(clsBusTraNo trano,frmNoVatTu f)
 {
     InitializeComponent();
     this.f = f;
     try
     {
         this.trano = trano;
         txtMVT.Text = trano.Ma_vat_tu;
         txtTVT.Text = trano.Ten_vat_tu;
         txtChatLuong.Text = trano.Ten_Chat_luong;
         txtSoLuongMuon.Text = trano.soluongmuon.ToString();
         txtKhoHienTai.Text = new clsDM_Kho().get_TenKho(trano.ID_kho);
         txtKhoTraNo.Text = new clsDM_Kho().get_TenKho(trano.ID_kho_muon);
     }
     catch (Exception ex) { MessageBox.Show(Utilities.clsThamSoUtilities.COException(ex)); }
 }
Ejemplo n.º 2
0
        private void khoNợVậtTưToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (Utilities.clsThamSoUtilities.isSectionLogin == true)
            {
                frmNoVatTu frm = new frmNoVatTu();
                frm.Name = "Nợ vật tư  ";

                foreach (Form f in this.MdiChildren)
                {
                    if (f.Name == frm.Name)
                    {
                        f.Activate();
                        return;
                    }
                }

                frm.MdiParent = this;
                frm.WindowState = FormWindowState.Maximized;
                frm.Show();

            }
        }