コード例 #1
0
 public void Initialize(VO_WF_SLXX_CX d_SLOriginal)
 {
     Title         = "查看实例信息";
     _D_SLXXDetail = d_SLOriginal.Clone <VO_WF_SLXX_CX>();
     QueryLZXX(_D_SLXXDetail);
     //this.StartEdit(D_SLXXDetail, "D_SLXXDetail");
 }
コード例 #2
0
ファイル: VM_LSSLGL.cs プロジェクト: wxanywhere/WX_DEMO
        private void QueryLZXX(VO_WF_SLXX_CX vo)
        {
            D_SLLZView.Clear();
            IsProcessed          = false;
            _AsyncWorker         = new BackgroundWorker();
            _AsyncWorker.DoWork += (obj, args) =>
            {
                var client = new S_GZLGL();
                var voLZXX = new VO_WF_LZXX_LS();
                voLZXX.SLGUID = vo.SLGUID;
                args.Result   = client.WFGL_CXLZXX_LS(voLZXX);
            };
            _AsyncWorker.RunWorkerCompleted += (obj, args) =>
            {
                try
                {
                    var result = args.Result as Tuple <VOX_SYS_HEAD, VOX_SYS_ERROR, VO_WF_LZXX_LS[]>;
                    if (result.Item2 != null)
                    {
                        MessageX.ShowError(result.Item2.TSXX);
                    }
                    else
                    {
                        D_SLLZView.AddRange(result.Item3.Select(a =>
                        {
                            a.JRRQX = DateTimeHelper.GetDateTime(a.JRRQ, a.JRSJ);
                            a.LCRQX = DateTimeHelper.GetDateTime(a.LCRQ, a.LCSJ);
                            switch (Decimal.ToInt32(a.ZYZT))
                            {
                            case 0:
                                a.ZYZTX = "正常通过";
                                break;

                            case 1:
                                a.ZYZTX = "未通过结束";
                                break;

                            case 2:
                                a.ZYZTX = "待流转";
                                break;

                            case 3:
                                a.ZYZTX = "强制跳转";
                                break;

                            case 4:
                                a.ZYZTX = "作废";
                                break;
                            }
                            ;
                            return(a);
                        })
                                            );
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message, "错误信息", MessageBoxButton.OK, MessageBoxImage.Error);
                }
                IsProcessed = true;
            };
            _AsyncWorker.RunWorkerAsync();
        }