Xây dựng phần mềm cửa hàng thờitrangT* Ế tenKH± (asdtKHI, @ỉdNV ) SELECT TOP(l)idHD ERCỈ1 dbD.IHD ORDER BY idHD DESC EUD GO EXEC dbo USP_ThemHoaữonMhap l&tonggiaHD = Ị&tenKH = N’'j (SsdtKH = fd''j (SidNV = CREATE PROC LISP_C a pNhatSoLuongSP (ĐidSP MVARCHAR(IO) j (Đsoluongthem INT Ăs BEGIN UPDATE dbo.SP SET soluongSP = soluongSP + (Ssoluongthem NHERE idsp = (SidSP EMD GO EXEC dbo ƯSP_CapNhat5oLuongSP (SidSP = rd ' ' J ỊSsoluongthem = Source code a Main private void MainForm _oad£object senderj EventArgs e) an±matĨ.On I I seì: AnimateWindow( thiĩ //Phân quyen người sủr dụng ÍT ( ! Account _oaiTK) < btNhapHang.Enabled = falsej btHoaDon.Enabled = false; btlaiKhoan Enabled = fđlsej ] b TenAccount Texrt = Acccunt TenNV I I I I //Sh-oi-R1 trang chủ panelAddControls.Controls.Add(ucT^angChu.Instance)j ucT^angChu.Instance.BringToEront()j ucĩ-angChu Instance Shcv/(' ) ị //Load data từ database bgii.,orke - Cci'.'crk += 3gi'.'orke ^_Ccr.'cr k ị bgWorker RunWorkerCompleted += BgWorker RunlTcirkerCompletedJ bgNorker.RunUorkerAsync()j cWaitFornuShowDialog( ) J ]■ ’ ) j private voỉd BgHorker_RiinHorkerCo(ip].eted(*M##Ta**«-fr+