Пример #1
0
 private void btnReset_x_Click(object sender, EventArgs e)
 {
     this.txtxbxxpyc.Text      = string.Empty;
     this.radxbxxpzc.Checked   = false;
     this.radxbxxpyc.Checked   = false;
     this.HHAssistCheck.CHESTX = string.Empty;
 }
Пример #2
0
        public void InitEveryThing()
        {
            this.HHAssistCheck = new HealthHousePhysicalAssistCheckBLL().GetModel(HealthHouseFactory.ID);
            this.HHModel       = new HealthHouseBLL().GetDataByID(HealthHouseFactory.ID);

            if (this.HHAssistCheck == null)
            {
                this.HHAssistCheck = new HealthHousePhysicalAssistCheckModel();
            }

            this.SimpleBinding(this.tbBIL, "BIL");
            this.SimpleBinding(this.tbBLD, "BLD");
            this.SimpleBinding(this.tbGLU, "GLU");
            this.SimpleBinding(this.tbKET, "KET");
            this.SimpleBinding(this.tbLEU, "LEU");
            this.SimpleBinding(this.tbNIT, "NIT");
            this.SimpleBinding(this.tbPH, "PH");
            this.SimpleBinding(this.tbPRO, "PRO");
            this.SimpleBinding(this.tbSG, "SG");
            this.SimpleBinding(this.tbUBG, "UBG");
            this.SimpleBinding(this.tbVC, "VC");

            CSingleItem item2 = new CSingleItem
            {
                Name    = "胸部X射线",
                Usual   = this.radxbxxpzc,
                Unusual = this.radxbxxpyc,
                Info    = this.txtxbxxpyc
            };

            this.CHESTX = item2;
            this.CHESTX.TransInfo(this.HHAssistCheck.CHESTX, this.HHAssistCheck.CHESTXEx);

            this.EveryThingIsOk = true;
        }
Пример #3
0
 private void btnReset_bqt_Click(object sender, EventArgs e)
 {
     this.txtbcqtyc.Text       = string.Empty;
     this.radbcqtyc.Checked    = false;
     this.radbcqtzc.Checked    = false;
     this.BchaoModel.BCHAOther = string.Empty;
 }
Пример #4
0
 public void UpdataToModel()
 {
     this.BchaoModel.BCHAO       = this.BCHAO.Choose;
     this.BchaoModel.BCHAOEx     = this.BCHAO.Choose_EX;
     this.BchaoModel.BCHAOther   = this.BCHAOther.Choose;
     this.BchaoModel.BCHAOtherEx = this.BCHAOther.Choose_EX;
 }
Пример #5
0
        public void InitEveryThing()
        {
            this.BchaoModel = this.BchaoBLL.GetModel(HealthHouseFactory.ID);
            if (this.BchaoModel == null)
            {
                this.BchaoModel          = new HealthHouseBCHAOModel();
                this.BchaoModel.IDCardNo = this.Model.IDCardNo;
            }
            CSingleItem item1 = new CSingleItem
            {
                Name    = "B超",
                Usual   = this.radbczc,
                Unusual = this.radbcyc,
                Info    = this.txtbcyc
            };

            this.BCHAO = item1;
            this.BCHAO.TransInfo(this.BchaoModel.BCHAO, this.BchaoModel.BCHAOEx);
            CSingleItem item2 = new CSingleItem
            {
                Name    = "B超其他",
                Usual   = this.radbcqtzc,
                Unusual = this.radbcqtyc,
                Info    = this.txtbcqtyc
            };

            this.BCHAOther = item2;
            this.BCHAOther.TransInfo(this.BchaoModel.BCHAOther, this.BchaoModel.BCHAOtherEx);
            if (!string.IsNullOrEmpty(this.BchaoModel.ImgPath) && File.Exists(this.BchaoModel.ImgPath))
            {
                //读取文件流
                System.IO.FileStream fs = new System.IO.FileStream(this.BchaoModel.ImgPath, FileMode.Open, FileAccess.Read);

                int    byteLength = (int)fs.Length;
                byte[] fileBytes  = new byte[byteLength];
                fs.Read(fileBytes, 0, byteLength);

                //文件流关閉,文件解除锁定
                fs.Close();
                Image image = Image.FromStream(new MemoryStream(fileBytes));

                pboxBShow.Image = image;
            }
            else
            {
                btnPrint.Visible = false;
            }
            this.EveryThingIsOk = true;
        }
Пример #6
0
        public void InitEveryThing()
        {
            this.BoneModel = this.BoneBLL.GetData(this.Model.IDCardNo, HealthHouseFactory.ID);
            if (this.BoneModel == null)
            {
                this.BoneModel          = new HHBoneModel();
                this.BoneModel.IDCardNo = this.Model.IDCardNo;
            }
            CSingleItem item = new CSingleItem
            {
                Name    = "骨密度",
                Usual   = this.rdBone,
                Unusual = this.rdBoneEx,
                Info    = this.txtResultEx
            };

            this.Bone = item;
            this.Bone.TransInfo(this.BoneModel.Result, this.BoneModel.ResultEx);
            if (!string.IsNullOrEmpty(this.BoneModel.ImgPath) && File.Exists(this.BoneModel.ImgPath))
            {
                //读取文件流
                System.IO.FileStream fs = new System.IO.FileStream(this.BoneModel.ImgPath, FileMode.Open, FileAccess.Read);

                int    byteLength = (int)fs.Length;
                byte[] fileBytes  = new byte[byteLength];
                fs.Read(fileBytes, 0, byteLength);

                //文件流关閉,文件解除锁定
                fs.Close();
                Image image = Image.FromStream(new MemoryStream(fileBytes));

                pboxBShow.Image = image;

                //Image img = System.Drawing.Image.FromFile(this.BoneModel.ImgPath);
                //Image bmp = new System.Drawing.Bitmap(img);
                //img.Dispose();

                //pboxBShow.Image = bmp;
            }
            else
            {
                btnPrint.Visible = false;
            }
            this.EveryThingIsOk = true;
        }
Пример #7
0
        public void InitEveryThing()
        {
            this.EcgModel = this.EcgBLL.GetModel(HealthHouseFactory.ID);
            if (this.EcgModel == null)
            {
                this.EcgModel          = new HealthHouseEcgModel();
                this.EcgModel.IDCardNo = this.Model.IDCardNo;
            }
            CSingleItem item = new CSingleItem
            {
                Name    = "心电",
                Usual   = this.radXDZC,
                Unusual = this.radXDYC,
                Info    = this.txtXDYC
            };

            this.xindian = item;
            this.xindian.TransInfo(this.EcgModel.ECG, this.EcgModel.ECGEx);
            if (!string.IsNullOrEmpty(this.EcgModel.ImgPath) && File.Exists(this.EcgModel.ImgPath))
            {
                //读取文件流
                System.IO.FileStream fs = new System.IO.FileStream(this.EcgModel.ImgPath, FileMode.Open, FileAccess.Read);

                int    byteLength = (int)fs.Length;
                byte[] fileBytes  = new byte[byteLength];
                fs.Read(fileBytes, 0, byteLength);

                //文件流关閉,文件解除锁定
                fs.Close();
                Image image = Image.FromStream(new MemoryStream(fileBytes));

                pboxBShow.Image = image;
            }
            else
            {
                btnPrint.Visible = false;
            }
            this.EveryThingIsOk = true;
        }
Пример #8
0
 public void UpdataToModel()
 {
     this.HHAssistCheck.IDCardNo = this.Model.IDCardNo;
     this.HHAssistCheck.CHESTX   = this.CHESTX.Choose;
     this.HHAssistCheck.CHESTXEx = this.CHESTX.Choose_EX;
 }