Beispiel #1
0
        public AddReviewDetailsAnimal(int id, SysReviewInfoAnimal sysreviewinfocy)
        {
            InitializeComponent();
            this.sysreviewinfocy = sysreviewinfocy;

            orderid = id;

            string    reviewflag = operationContract.GetReviewFlag("a", id);
            DataTable table      = operationContract.ExecuteProDetect("a", id);

            //给画面上的控件赋值
            //图片地址改为从数据库中获取
            string picture_url = operationContract.GetPictureUrl();

            if (picture_url == "")
            {
                picture_url = "http://www.zrodo.com:8080/xmjc/";
            }
            _img.Source           = new BitmapImage(new Uri(picture_url + table.Rows[0][21].ToString()));
            _orderid.Text         = table.Rows[0][15].ToString();
            _areaName.Text        = table.Rows[0][8].ToString();
            _companyName.Text     = table.Rows[0][9].ToString();
            _itemName.Text        = table.Rows[0][3].ToString();
            _objectName.Text      = table.Rows[0][4].ToString();
            _reangetName.Text     = table.Rows[0][5].ToString();
            _resultName.Text      = table.Rows[0][6].ToString();
            _deptName.Text        = table.Rows[0][2].ToString();
            _detectDate.Text      = table.Rows[0][1].ToString();
            _detectUserName.Text  = table.Rows[0][7].ToString();
            _detectTypeName.Text  = table.Rows[0][0].ToString();
            _cardId.Text          = table.Rows[0][20].ToString();
            _objectLable.Text     = table.Rows[0][22].ToString();
            _objectCount.Text     = table.Rows[0][23].ToString();
            _sampleName.Text      = table.Rows[0][18].ToString();
            _sensitivityName.Text = table.Rows[0][19].ToString();
            _sampleNo.Text        = table.Rows[0][24].ToString();

            //检测结果为疑似阳性变红
            if (_resultName.Text == "疑似阳性" || _resultName.Text == "确证阳性")
            {
                _resultName.Foreground = Brushes.Red;
            }
            else
            {
                _resultName.Foreground = Brushes.Black;
            }


            _reviewUserid.Text = PubClass.userInfo.ShowName;
            _reviewDate.Text   = DateTime.Now.ToString();
            ComboboxTool.InitComboboxSource(_reviewResult, operationContract.GetComboDetResult(), "lr");
            ComboboxTool.InitComboboxSource(_reviewReagent, operationContract.GetComboDetReviewReagent("a"), "lr");
        }