public void FillSupplierDropDown()
        {
            try
            {
                List <FBFoodInventoryInfo> items;
                FBFoodInventoryController  controller = new FBFoodInventoryController();
                items = controller.FBSuppliers_List(this.ModuleId);

                dtSupplier = Components.GridViewTools.ToDataTable(items);

                DataView dv = dtSupplier.DefaultView;

                dv.RowFilter = "IsActive = 1";



                ddlSupplier.DataTextField  = "SupplierName";
                ddlSupplier.DataValueField = "SupplierID";
                ddlSupplier.DataSource     = dv;
                ddlSupplier.DataBind();

                ddlSupplier.Items.Insert(0, new ListItem("--Select--", "0"));
            }
            catch (Exception ex)
            {
                Exceptions.ProcessModuleLoadException(this, ex);
            }
        }
        public void FillSuppliersGrid()
        {
            try
            {
                //DonationUserId = Int32.Parse(Request.QueryString["UserId"]);

                List <FBFoodInventoryInfo> items;
                FBFoodInventoryController  controller = new FBFoodInventoryController();
                items = controller.FBSuppliers_List(this.ModuleId);

                dt = Components.GridViewTools.ToDataTable(items);

                DataView dv = dt.DefaultView;

                dv.RowFilter = "IsActive = 1";


                if (cbxShowInActive.Checked == true)
                {
                    dv.RowFilter += " or IsActive = 0";
                }


                gvSuppliers.DataSource = dv;
                gvSuppliers.DataBind();
            }
            catch (Exception ex)
            {
                Exceptions.ProcessModuleLoadException(this, ex);
            }
        }