//加载原料单位
 private void LoadRawUnit()
 {
     new Task(() =>
     {
         List<RawUnit> units = _RawUnitDataService.FindRawUnitByDeletedStatus();
         DispatcherHelper.CheckBeginInvokeOnUI(() =>
         {
             if (units != null)
             {
                 BaseRawMaterialItems.Clear();
                 foreach (var unit in units)
                 {
                     _BaseMaterialBean = new BaseMaterialBean();
                     _BaseMaterialBean.CreateBaseMaterialBean(unit);
                     _BaseMaterialBean.Code = (BaseRawMaterialItems.Count + 1).ToString();
                     BaseRawMaterialItems.Add(BaseMaterialBean);
                 }
             }
         });
     }).Start();
 }
        //加载大类
        private void LoadBigRaw()
        {
            new Task(() =>
            {
                List<Raw> raws = _MaterialDataService.FindAllBigRawByDeletedStatus();
                DispatcherHelper.CheckBeginInvokeOnUI(() =>
                {
                    if (raws != null)
                    {
                       
                        BaseRawMaterialItems.Clear();
                        foreach (var raw in raws)
                        {
                            _BaseMaterialBean = new BaseMaterialBean();
                            _BaseMaterialBean.CreateBaseMaterialBean(raw);
                            _BaseMaterialBean.Code = (BaseRawMaterialItems.Count + 1).ToString();
                            BaseRawMaterialItems.Add(BaseMaterialBean);
                        }
                    }
                });
            }).Start();

        }