コード例 #1
0
        public ResponseMessage <PipingDetailInfo> GetInfo(string usertoken, string pipingid)
        {
            ResponseMessage <PipingDetailInfo> result = new ResponseMessage <PipingDetailInfo>();

            //验证token
            result = service.GetInfo(usertoken, pipingid);
            return(result);
        }
コード例 #2
0
        public AddInfomation(string pipingid)
        {
            InitializeComponent();
            PipingDetailInfo detailInfo = service.GetInfo(MainWindow.loginUser.UserName, pipingid).ext;

            keyId          = detailInfo.PipingDetectionInfo.KeyID;
            pipingId       = pipingid;
            TextBox1.Text  = detailInfo.PipingDetectionInfo.VideoFile;
            TextBox2.Text  = detailInfo.PipingDetectionInfo.LayingYear;
            TextBox3.Text  = detailInfo.PipingDetectionInfo.TubulationType;
            TextBox4.Text  = detailInfo.PipingDetectionInfo.DetectionDirect;
            TextBox5.Text  = detailInfo.PipingDetectionInfo.DetectionAddress;
            TextBox6.Text  = detailInfo.PipingDetectionInfo.StartWellNo;
            TextBox7.Text  = detailInfo.PipingDetectionInfo.StartPointDepth;
            TextBox8.Text  = detailInfo.PipingDetectionInfo.TubulationMaterial;
            TextBox9.Text  = detailInfo.PipingDetectionInfo.TubulationLength;
            TextBox10.Text = detailInfo.PipingDetectionInfo.DetectionFun;
            TextBox11.Text = detailInfo.PipingDetectionInfo.EndWellNo;
            TextBox12.Text = detailInfo.PipingDetectionInfo.EndPointDepth;
            TextBox13.Text = detailInfo.PipingDetectionInfo.TubulationDiameter;
            TextBox14.Text = detailInfo.PipingDetectionInfo.DetectionLength;
            TextBox15.Text = detailInfo.PipingDetectionInfo.DetectionTime;
            //drawing.Text = gcPictInfo.PictureFilePath;
            List <PipingPictureInfo> picInfo = detailInfo.PipingPictureInfoes;
            PipingPictureInfo        gcPic   = new PipingPictureInfo();

            foreach (var i in picInfo)
            {
                if (i.PictureType == 1)
                {
                    AddImgGrid(i.PictureFilePath);
                }
                else
                {
                    drawing.Text = i.PictureFilePath;
                    gcPic        = i;
                }
                imgList.Add(i.PictureFilePath);
            }
            picInfo.Remove(gcPic);
            // 加载图片信息
            for (int i = 0; i <= pictureInfo.Children.Count - 1; i++)
            {
                StackPanel infos = (StackPanel)((Grid)pictureInfo.Children[i]).Children[2];

                ((TextBox)infos.Children[3]).Text = picInfo[i].Grade;
                ((TextBox)infos.Children[2]).Text = picInfo[i].Score;
                ((TextBox)infos.Children[4]).Text = picInfo[i].PipingInternalState;
                ((TextBox)infos.Children[5]).Text = picInfo[i].PictureRemark;
                ((TextBox)infos.Children[1]).Text = picInfo[i].DefectCode;
                ((TextBox)infos.Children[0]).Text = picInfo[i].Distance;
                remark.Text = picInfo[i].Remark;
            }
        }