private void BsTypeComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (BsTypeComboBox.SelectedItem == null)
            {
                return;
            }

            //             if (BsTypeComboBox.IsDropDownOpen == false)
            //                 return;

            BsTypeInfo bsTypeInfo = BsTypeComboBox.SelectedItem as BsTypeInfo;

            BSTypeTextBlock.Text          = bsTypeInfo.TypeName;
            CurSelectionProcedureInfoList = AlgorithmClass.GetSelectionProcedureInfoList(bsTypeInfo.ProcedurePrice);

            switch ((OperationType)(((DictionaryEntry)(OperationTypeList.SelectedValue)).Key))
            {
            case OperationType.Edit:
                procedureInfoListForEdit.Clear();
                AddRowBtn.IsEnabled = true;
                break;

            case OperationType.New:
                procedureInfoListForNew.Clear();
                AddRowBtn.IsEnabled = true;
                break;
            }
        }
        private void UpdateProcefureInfo()
        {
            if (SheetDataGrid.SelectedItem == null)
            {
                return;
            }

            SheetInfo sheetInfo = SheetDataGrid.SelectedItem as SheetInfo;

            //获取该单所对应的流程信息
            CurProcedureInfoList = SheetDeal.GetAllProcedureInfo(sheetInfo.ID);
            //获取跟单员
            sheetInfo.Follower = AlgorithmClass.GetFollowers(CurProcedureInfoList);

            BsTypeInfo bsTypeInfo = dataManager.AllBsTypeList.Where(type => type.TypeName == sheetInfo.BSType).FirstOrDefault();

            //获取该单中业务类型的全部流程信息 供选择更改
            CurSelectionProcedureInfoList = AlgorithmClass.GetSelectionProcedureInfoList(bsTypeInfo.ProcedurePrice);
            CurProcedureInfoList.ToList().ForEach(info => info.SelectionProcedureInfoList = CurSelectionProcedureInfoList);

            CurBOPInfoList      = SheetDeal.GetAllSheetBOPInfo(sheetInfo.ID);
            TotalTextBlock.Text = AlgorithmClass.GetBOPTotal(CurBOPInfoList).ToString();

            //绑定
            ProcedureDataGrid.ItemsSource = CurProcedureInfoList;
            BOPDataGrid.ItemsSource       = CurBOPInfoList;

            if (CurProcedureInfoList.Count == CurSelectionProcedureInfoList.Count)
            {
                AddRowBtn.IsEnabled = false;
            }
            else
            {
                AddRowBtn.IsEnabled = true;
            }
        }