public static void SaveList(List <HCMIS.Desktop.DirectoryServices.ItemManufacturer> list)
        {
            BLL.ItemManufacturer bv = new BLL.ItemManufacturer();
            foreach (HCMIS.Desktop.DirectoryServices.ItemManufacturer v in list)
            {
                // try to load by primary key
                bv.LoadByItemIDandManufacturerID(v.ItemID.Value, v.ManufacturerID.Value);

                // if the entry doesn't exist, create it
                if (bv.RowCount == 0)
                {
                    bv.AddNew();
                }
                // populate the contents of v on the to the database list
                if (v.ItemID.HasValue)
                {
                    bv.ItemID = v.ItemID.Value;
                }
                if (v.ManufacturerID.HasValue)
                {
                    bv.ManufacturerID = v.ManufacturerID.Value;
                }
                if (v.PackageLevel.HasValue)
                {
                    bv.PackageLevel = v.PackageLevel.Value;
                }
                if (v.QuantityPerLevel.HasValue)
                {
                    bv.QuantityPerLevel = v.QuantityPerLevel.Value;
                }
                if (v.IsssuingDefault.HasValue)
                {
                    bv.IsssuingDefault = v.IsssuingDefault.Value;
                }
                if (v.RecevingDefault.HasValue)
                {
                    bv.RecevingDefault = v.RecevingDefault.Value;
                }
                if (v.BrandName != "" && v.BrandName != null)
                {
                    bv.BrandName = v.BrandName;
                }
                if (v.StackHeight.HasValue)
                {
                    bv.StackHeight = v.StackHeight.Value;
                }

                bv.BoxHeight = 1;
                bv.BoxLength = 1;
                bv.BoxWidth  = 1;
                bv.Save();
            }
        }
        public static void SaveList(List<HCMIS.Desktop.DirectoryServices.ItemManufacturer> list)
        {
            BLL.ItemManufacturer bv = new BLL.ItemManufacturer();
            foreach (HCMIS.Desktop.DirectoryServices.ItemManufacturer v in list)
            {
                // try to load by primary key
                bv.LoadByItemIDandManufacturerID(v.ItemID.Value, v.ManufacturerID.Value);

                // if the entry doesn't exist, create it
                if (bv.RowCount == 0)
                {
                    bv.AddNew();
                }
                // populate the contents of v on the to the database list
                if (v.ItemID.HasValue)
                    bv.ItemID = v.ItemID.Value;
                if (v.ManufacturerID.HasValue)
                    bv.ManufacturerID = v.ManufacturerID.Value;
                if (v.PackageLevel.HasValue)
                    bv.PackageLevel = v.PackageLevel.Value;
                if (v.QuantityPerLevel.HasValue)
                    bv.QuantityPerLevel = v.QuantityPerLevel.Value;
                if (v.IsssuingDefault.HasValue)
                    bv.IsssuingDefault = v.IsssuingDefault.Value;
                if (v.RecevingDefault.HasValue)
                    bv.RecevingDefault = v.RecevingDefault.Value;
                if (v.BrandName != "" && v.BrandName != null)
                    bv.BrandName = v.BrandName;
                if (v.StackHeight.HasValue)
                    bv.StackHeight = v.StackHeight.Value;

                bv.BoxHeight = 1;
                bv.BoxLength = 1;
                bv.BoxWidth = 1;
                bv.Save();
            }
        }