Пример #1
0
        private void timKiemNguyenLieuGanDung(NguyenLieuDTO nl)
        {
            ArrayList ds = new ArrayList();

            ds = KhoHangBUS.layDSKhoHang_NguyenLieu(GlobalVariables.maNhaHang, nl);
            //MessageBox.Show(ds.Count.ToString());
            for (int i = 0; i < ds.Count; i++)
            {
                KhoHang_NguyenLieuDTO dto = (KhoHang_NguyenLieuDTO)ds[i];
                if (!ingrid_dsOrNot(dto))
                {
                    grid_ds.Rows.Add();
                    showThongTinKhoHang_NguyenLieuDTOLenGrid(grid_ds.RowCount - 1, dto);
                }
            }
        }
Пример #2
0
        private void showDanhSachNguyenLieuTheoMonAn(MonAnDTO monAn)
        {
            ArrayList dsNguyenLieuTheoMon = new ArrayList();

            dsNguyenLieuTheoMon = MonAnBUS.layDanhSachNguyenLieuTheoMonAn(monAn);


            for (int i = 0; i < dsNguyenLieuTheoMon.Count; i++)
            {
                ArrayList dsKQ = new ArrayList();
                dsKQ = KhoHangBUS.layDSKhoHang_NguyenLieu(GlobalVariables.maNhaHang, ((MonAn_NguyenLieuDTO)dsNguyenLieuTheoMon[i]).NguyenLieu);

                for (int j = 0; j < dsKQ.Count; j++)
                {
                    KhoHang_NguyenLieuDTO dto = (KhoHang_NguyenLieuDTO)dsKQ[j];
                    if (!ingrid_dsOrNot(dto))
                    {
                        grid_ds.Rows.Add();
                        showThongTinKhoHang_NguyenLieuDTOLenGrid(grid_ds.RowCount - 1, dto);
                    }
                }
            }
        }