예제 #1
0
파일: frmDuocbv.cs 프로젝트: tayduivn/mdebv
        private void f_tonghop_duocbv_angiang()
        {
            Cursor = Cursors.WaitCursor;
            f_get_tongtienthuoc_xuat();
            if (d.bDuocBV_Xuat_tinhnguoncungcap(i_nhom) == false)
            {
                f_get_tongtienthuoc_nhap();
            }
            else
            {
                f_get_tongtienthuoc_xuat_donhap();
            }

            foreach (DataRow r in ds.Tables[0].Rows)
            {
                d.execute_data("update " + user + ".dm_07 set soluong=" + decimal.Parse(r["soluong"].ToString()) + " where ma=" + int.Parse(r["ma"].ToString()));
            }
            Cursor = Cursors.Default;
        }