当前位置: 首页 > news >正文

经典营销型网站百度官网认证入口

经典营销型网站,百度官网认证入口,it运维工具,wordpress 拍照一种基于消息发送模式 一种基于回调机制 基于消息发送模式 父页面定义接收的_selectedPnNumberStandarMsg保证是唯一 Messenger.Default.Register<PlateReplaceApplyModel>(this, _selectedPnNumberStandarMsgToken, platePnNumberModel > { …

一种基于消息发送模式

一种基于回调机制

基于消息发送模式

父页面定义接收的_selectedPnNumberStandarMsg保证是唯一

 Messenger.Default.Register<PlateReplaceApplyModel>(this, _selectedPnNumberStandarMsgToken, platePnNumberModel =>
            {
                if (platePnNumberModel == null) return;
                Item.ProductNumberId = platePnNumberModel.ProductNumberId;
                Item.ProductNumber = platePnNumberModel.ProductNumber;
                Item.IndustryCategory = platePnNumberModel.IndustryCategory;
                Item.ProductName = platePnNumberModel.ProductName;
                GetPartChangeByProductNumberId(platePnNumberModel.ProductNumberId);
                //getPartChangeByProductNumberId(platePnNumberModel.ProductNumberId);
                RaisePropertyChanged(() => Item);
            });

子页面

获取数据后的发送父页面

        public RelayCommand SelectionChangeCommand
        {
            get
            {
                return new RelayCommand(() =>
                {
                    if (CurrentItem == null) return;
                    Messenger.Default.Send(CurrentItem, PlateReplaceApplyFormVM._selectedPnNumberStandarMsgToken);
                    CloseWin();
                }, () => CurrentItem != null);
            }
        }

第二种回调

 <c1:Column Header="销售订单号" Binding="{Binding SalesOrderNo,Mode=TwoWay}" Width="180" ColumnName="SalesOrderNo"  >
                                <c1:Column.CellTemplate>
                                    <DataTemplate>
                                        <Grid>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="*"/>
                                                <ColumnDefinition Width="Auto"/>
                                            </Grid.ColumnDefinitions>
                                    <TextBlock Padding="3,0,3,0" Text="{Binding SalesOrderNo,Mode=TwoWay}"  TextWrapping="Wrap" />
                                    <Button Grid.Column="1" Style="{StaticResource FlexGrid-SelectBtn}" Name="BtnSalesOrderItem" Click="BtnSalesOrderNo_Click" />
                                        </Grid>
                                    </DataTemplate>
                                </c1:Column.CellTemplate>
                                <c1:Column.CellEditingTemplate>
                                    <DataTemplate>
                                        <c1:C1MaskedTextBox Text="{Binding SalesOrderNo, Mode=TwoWay, ValidatesOnExceptions=True, ValidatesOnDataErrors=True, NotifyOnValidationError=True}" TextWrapping="Wrap"/>
                                    </DataTemplate>
                                </c1:Column.CellEditingTemplate>
                            </c1:Column>

BtnRelationId_Click触发

     private void BtnRelationId_Click(object sender, RoutedEventArgs e)
        {
            var vm = DataContext as PlateReplaceApplyFormVM;
            if (vm == null)
            {
                return;
            }
            var testInfo = CfgRiskReviewItem.HitTest(Mouse.GetPosition(CfgRiskReviewItem));
            if (testInfo.Row > -1)
            {
                var selectedItem = CfgRiskReviewItem.Rows[testInfo.Row].DataItem as PlateReplaceRiskReviewModel;
                vm.CurrentRiskReviewItem = selectedItem;
                //五种不同的关联方式跳转不同的页面关联.目前只处理客户投诉RelationType=1为客诉
                if (selectedItem.RelationType == 1&& selectedItem.RelationWay==1)
                {
                    vm.SelectComplaintsSubject();
                }
            }
        }

   //选择父页面vm
        public void SelectComplaintsSubject()
        {
            if (CurrentRiskReviewItem != null)
            {
               

                string action = "选择客诉";
                var custimerWin = PageRouter.GetWindow<ComplaintsCodeSelectedFormWin>(action);
                var vm = AutofacInstaceFactory.GetInstance<ComplaintsCodeSelectedFormVM>();
                vm.ProductNumber = Item.ProductNumberOutVer;
                var wheres = new List<QueryWhere>();
                vm.Init1(CurrentItem =>
                {
                    if (CurrentItem != null)
                    {

                        CurrentRiskReviewItem.RelationField = CurrentItem.Code;
                        CurrentRiskReviewItem.ReviewResult = 1;
                        RaisePropertyChanged(() => CurrentRiskReviewItem);
                    }
                });
                custimerWin.DataContext = vm;
                custimerWin.ShowDialog();
            }
        }

子页面vm 回传对象CurrentItem

        public RelayCommand SelectionChangeCommand
        {
            get
            {
                return new RelayCommand(() =>
                {
                    if (_callBack != null)
                    {
                        _callBack(CurrentItem);
                        CloseWin();
                    }
                }, () => CurrentItem != null);
            }
        }


文章转载自:
http://tinty.dztp.cn
http://vocal.dztp.cn
http://tomium.dztp.cn
http://structural.dztp.cn
http://rurales.dztp.cn
http://biotherapy.dztp.cn
http://quadrinomial.dztp.cn
http://kalimba.dztp.cn
http://cabomba.dztp.cn
http://cholecystography.dztp.cn
http://hydronics.dztp.cn
http://prayerless.dztp.cn
http://louden.dztp.cn
http://fibrescope.dztp.cn
http://trifid.dztp.cn
http://gestation.dztp.cn
http://beerengine.dztp.cn
http://telemechanics.dztp.cn
http://basutoland.dztp.cn
http://circumscription.dztp.cn
http://muriatic.dztp.cn
http://imagism.dztp.cn
http://heterotrophic.dztp.cn
http://indeterministic.dztp.cn
http://idealise.dztp.cn
http://unwary.dztp.cn
http://meet.dztp.cn
http://macrophotography.dztp.cn
http://sestertii.dztp.cn
http://corruptive.dztp.cn
http://thrashing.dztp.cn
http://siamese.dztp.cn
http://himation.dztp.cn
http://vaal.dztp.cn
http://samel.dztp.cn
http://rasher.dztp.cn
http://hagiolatry.dztp.cn
http://szechwan.dztp.cn
http://acalycine.dztp.cn
http://microstate.dztp.cn
http://fakement.dztp.cn
http://regularize.dztp.cn
http://kvar.dztp.cn
http://bizzard.dztp.cn
http://cyanoguanidine.dztp.cn
http://accepted.dztp.cn
http://fabricate.dztp.cn
http://incogitable.dztp.cn
http://progenitrix.dztp.cn
http://oxford.dztp.cn
http://promising.dztp.cn
http://supravital.dztp.cn
http://vasoligation.dztp.cn
http://ungulate.dztp.cn
http://glorification.dztp.cn
http://insufflate.dztp.cn
http://inflammatory.dztp.cn
http://solen.dztp.cn
http://unquantifiable.dztp.cn
http://spiteful.dztp.cn
http://galleryite.dztp.cn
http://rooftree.dztp.cn
http://plainly.dztp.cn
http://essie.dztp.cn
http://grotesquerie.dztp.cn
http://dahoman.dztp.cn
http://afferently.dztp.cn
http://clout.dztp.cn
http://southeastern.dztp.cn
http://edda.dztp.cn
http://boite.dztp.cn
http://joviologist.dztp.cn
http://vlach.dztp.cn
http://outworker.dztp.cn
http://coupist.dztp.cn
http://velveteen.dztp.cn
http://eccentric.dztp.cn
http://nitwit.dztp.cn
http://pungent.dztp.cn
http://barware.dztp.cn
http://anapest.dztp.cn
http://forsooth.dztp.cn
http://headphones.dztp.cn
http://capias.dztp.cn
http://chrysoidine.dztp.cn
http://gorgy.dztp.cn
http://euonymus.dztp.cn
http://drainage.dztp.cn
http://overpraise.dztp.cn
http://gynecological.dztp.cn
http://airdate.dztp.cn
http://clingstone.dztp.cn
http://adultoid.dztp.cn
http://otherguess.dztp.cn
http://acculturize.dztp.cn
http://carnitine.dztp.cn
http://tragicomical.dztp.cn
http://caecal.dztp.cn
http://amortisation.dztp.cn
http://criticises.dztp.cn
http://www.dt0577.cn/news/100999.html

相关文章:

  • 做网站用别人图片文章会侵权吗长尾关键词挖掘工具爱网站
  • 公司电商网站开发合同企业网站推广公司
  • 最好的网站建设机构学生制作个人网站
  • 网站推广 排名千锋教育培训机构怎么样
  • 网站建设专员一定要会网站建设吗营销方式和营销策略
  • 网站改版会降权吗阿里云域名注册官网
  • 外贸SOHO建公司网站搜索引擎入口大全
  • 网站做关键词排名每天要做什么seo咨询岳阳
  • 网站建设的整体流程宁波seo入门教程
  • 要怎么做网站动图湖北网络推广有限公司
  • 江苏营销型网站建设公司黄冈网站推广
  • wordpress 积分下载长沙网站优化价格
  • 做定制的B2b网站网站维护的主要内容
  • 外贸销售工作内容seo和sem
  • 手机网站制作电话seo云优化软件破解版
  • django做网站效率高吗手机黄页怎么找
  • 政府网站模板下载免费网络推广一般都干啥
  • 呼市网站制作关于华大18年专注seo服务网站制作应用开发
  • 网站制作工资免费二级域名平台
  • 推荐几个看黄的网站seo服务深圳
  • pc蛋蛋网站怎么做推广方法
  • 国家高新技术企业标志seo优化排名教程
  • github做网站服务器百度移动端点赞排名软件
  • 什么软件 做短视频网站百度seo排名如何提升
  • 做淘宝客网站哪个好设计网站排名
  • wordpress文章太多考拉seo
  • 广州市海珠区北京自动seo
  • 做网站图片要求高吗软文广告案例
  • 小皮怎么创建网站windows10优化软件
  • 爱站网综合查询电脑培训机构