Beispiel #1
0
        public static void showDanhSachNguyenLieuTheoMonAnLenComboNguyenLieu(MonAnDTO monAn, ComboBox cb)
        {
            ArrayList dsNguyenLieuTheoMon = new ArrayList();

            dsNguyenLieuTheoMon = MonAnBUS.layDanhSachNguyenLieuTheoMonAn(monAn);


            for (int i = 0; i < dsNguyenLieuTheoMon.Count; i++)
            {
                MonAn_NguyenLieuDTO dto = (MonAn_NguyenLieuDTO)dsNguyenLieuTheoMon[i];
                cb.Items.Add(dto);
            }
        }
Beispiel #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);
                    }
                }
            }
        }