예제 #1
0
        //打印
        /// <summary>
        /// 条码打印{D2F77BDA-F5E5-48fe-AB73-B7FE6D92E6E2}
        /// </summary>
        public void PrintBar()
        {
            Neusoft.HISFC.BizProcess.Interface.Registration.IPrintBar ip = Neusoft.FrameWork.WinForms.Classes.UtilInterface.CreateObject(this.GetType(), typeof(Neusoft.HISFC.BizProcess.Interface.Registration.IPrintBar))
                                                                           as Neusoft.HISFC.BizProcess.Interface.Registration.IPrintBar;
            if (ip == null)//默认实现打印
            {
                if (string.IsNullOrEmpty(CardNO))
                {
                    MessageBox.Show("病历号为空,不能打印");
                    return;
                }

                Neusoft.FrameWork.WinForms.Controls.ucBaseControl uc = new Neusoft.FrameWork.WinForms.Controls.ucBaseControl();
                Neusoft.FrameWork.WinForms.Controls.NeuPictureBox p  = new Neusoft.FrameWork.WinForms.Controls.NeuPictureBox();
                p.Image = Neusoft.FrameWork.WinForms.Classes.CodePrint.GetCode39(CardNO);
                Neusoft.FrameWork.WinForms.Controls.NeuPanel pn = new Neusoft.FrameWork.WinForms.Controls.NeuPanel();
                pn.Controls.Add(p);
                pn.BackColor = Color.White;
                uc.Controls.Add(pn);
                uc.BackColor = Color.White;

                Neusoft.FrameWork.WinForms.Classes.Print print = new Neusoft.FrameWork.WinForms.Classes.Print();
                print.PrintPage(0, 0, uc);
            }
            else //接口实现打印
            {
                string errText     = string.Empty;
                int    returnValue = ip.printBar((patientInfo as Neusoft.HISFC.Models.RADT.Patient), ref errText);
                if (returnValue < 0)
                {
                    MessageBox.Show(errText);
                    return;
                }
            }
        }
예제 #2
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmChooseDate));
     this.dtpBeginDate = new Neusoft.FrameWork.WinForms.Controls.NeuDateTimePicker();
     this.dtpEndDate   = new Neusoft.FrameWork.WinForms.Controls.NeuDateTimePicker();
     this.lblBeginDate = new Neusoft.FrameWork.WinForms.Controls.NeuLabel();
     this.lblEndDate   = new Neusoft.FrameWork.WinForms.Controls.NeuLabel();
     this.pictureBox1  = new Neusoft.FrameWork.WinForms.Controls.NeuPictureBox();
     this.label3       = new Neusoft.FrameWork.WinForms.Controls.NeuLabel();
     this.btnOK        = new Neusoft.FrameWork.WinForms.Controls.NeuButton();
     this.btnExit      = new Neusoft.FrameWork.WinForms.Controls.NeuButton();
     this.SuspendLayout();
     //
     // dtpBeginDate
     //
     this.dtpBeginDate.CustomFormat = "yyyy-MM-dd HH:mm:ss";
     this.dtpBeginDate.Format       = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpBeginDate.Location     = new System.Drawing.Point(117, 50);
     this.dtpBeginDate.Name         = "dtpBeginDate";
     this.dtpBeginDate.Size         = new System.Drawing.Size(151, 21);
     this.dtpBeginDate.TabIndex     = 0;
     //
     // dtpEndDate
     //
     this.dtpEndDate.CustomFormat = "yyyy-MM-dd HH:mm:ss";
     this.dtpEndDate.Format       = System.Windows.Forms.DateTimePickerFormat.Custom;
     this.dtpEndDate.Location     = new System.Drawing.Point(117, 75);
     this.dtpEndDate.Name         = "dtpEndDate";
     this.dtpEndDate.Size         = new System.Drawing.Size(151, 21);
     this.dtpEndDate.TabIndex     = 0;
     //
     // lblBeginDate
     //
     this.lblBeginDate.Location  = new System.Drawing.Point(54, 52);
     this.lblBeginDate.Name      = "lblBeginDate";
     this.lblBeginDate.Size      = new System.Drawing.Size(60, 17);
     this.lblBeginDate.TabIndex  = 2;
     this.lblBeginDate.Text      = "起始时间:";
     this.lblBeginDate.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // lblEndDate
     //
     this.lblEndDate.Location  = new System.Drawing.Point(54, 77);
     this.lblEndDate.Name      = "lblEndDate";
     this.lblEndDate.Size      = new System.Drawing.Size(60, 17);
     this.lblEndDate.TabIndex  = 2;
     this.lblEndDate.Text      = "终止时间:";
     this.lblEndDate.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // pictureBox1
     //
     this.pictureBox1.Image    = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location = new System.Drawing.Point(12, 7);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(32, 32);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
     this.pictureBox1.TabIndex = 3;
     this.pictureBox1.TabStop  = false;
     //
     // label3
     //
     this.label3.Location  = new System.Drawing.Point(54, 21);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(72, 17);
     this.label3.TabIndex  = 2;
     this.label3.Text      = "请选择日期:";
     this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // btnOK
     //
     this.btnOK.Location = new System.Drawing.Point(78, 106);
     this.btnOK.Name     = "btnOK";
     this.btnOK.Size     = new System.Drawing.Size(79, 23);
     this.btnOK.TabIndex = 4;
     this.btnOK.Text     = "确定(&O)";
     this.btnOK.Click   += new System.EventHandler(this.btnOK_Click);
     //
     // btnExit
     //
     this.btnExit.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnExit.Location     = new System.Drawing.Point(169, 106);
     this.btnExit.Name         = "btnExit";
     this.btnExit.Size         = new System.Drawing.Size(79, 23);
     this.btnExit.TabIndex     = 4;
     this.btnExit.Text         = "退出(&X)";
     this.btnExit.Click       += new System.EventHandler(this.btnExit_Click);
     //
     // frmChooseDate
     //
     this.AcceptButton      = this.btnOK;
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.CancelButton      = this.btnExit;
     this.ClientSize        = new System.Drawing.Size(313, 145);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.lblBeginDate);
     this.Controls.Add(this.lblEndDate);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.dtpBeginDate);
     this.Controls.Add(this.dtpEndDate);
     this.Controls.Add(this.btnExit);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
     this.Name            = "frmChooseDate";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "日期选择";
     this.Load           += new System.EventHandler(this.frmChooseDate_Load);
     this.ResumeLayout(false);
 }
예제 #3
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmWait));
     this.label1       = new Neusoft.FrameWork.WinForms.Controls.NeuLabel();
     this.progressBar1 = new Neusoft.FrameWork.WinForms.Controls.NeuProgressBar();
     this.pictureBox1  = new Neusoft.FrameWork.WinForms.Controls.NeuPictureBox();
     this.button1      = new Neusoft.FrameWork.WinForms.Controls.NeuButton();
     this.linkLabel1   = new Neusoft.FrameWork.WinForms.Controls.NeuLinkLabel();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.BackColor = System.Drawing.Color.Transparent;
     this.label1.Location  = new System.Drawing.Point(76, 9);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(200, 25);
     this.label1.Style     = Neusoft.FrameWork.WinForms.Controls.StyleType.Fixed3D;
     this.label1.TabIndex  = 0;
     this.label1.Text      = "正在处理,请稍候...";
     //
     // progressBar1
     //
     this.progressBar1.BackgroundBitmap    = null;
     this.progressBar1.BackgroundColor     = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(237)))), ((int)(((byte)(223)))));
     this.progressBar1.Border3D            = System.Windows.Forms.Border3DStyle.Flat;
     this.progressBar1.BorderColor         = System.Drawing.SystemColors.Highlight;
     this.progressBar1.EnableBorder3D      = false;
     this.progressBar1.ForegroundBitmap    = null;
     this.progressBar1.ForegroundColor     = System.Drawing.SystemColors.Highlight;
     this.progressBar1.GradientEndColor    = System.Drawing.Color.Empty;
     this.progressBar1.GradientMiddleColor = System.Drawing.Color.Empty;
     this.progressBar1.GradientStartColor  = System.Drawing.Color.Empty;
     this.progressBar1.Location            = new System.Drawing.Point(72, 45);
     this.progressBar1.Maximum             = 100;
     this.progressBar1.Minimum             = 0;
     this.progressBar1.Name = "progressBar1";
     this.progressBar1.ProgressTextColor         = System.Drawing.Color.Empty;
     this.progressBar1.ProgressTextHiglightColor = System.Drawing.Color.Empty;
     this.progressBar1.ShowProgressText          = false;
     this.progressBar1.Size     = new System.Drawing.Size(200, 8);
     this.progressBar1.Smooth   = false;
     this.progressBar1.Step     = 1;
     this.progressBar1.TabIndex = 1;
     this.progressBar1.Value    = 0;
     this.progressBar1.Visible  = false;
     //
     // pictureBox1
     //
     this.pictureBox1.Image    = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location = new System.Drawing.Point(5, 5);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(56, 40);
     this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.pictureBox1.Style    = Neusoft.FrameWork.WinForms.Controls.StyleType.Fixed3D;
     this.pictureBox1.TabIndex = 2;
     this.pictureBox1.TabStop  = false;
     //
     // button1
     //
     this.button1.BackgroundImage       = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage")));
     this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.button1.Location = new System.Drawing.Point(263, 3);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(12, 12);
     this.button1.Style    = Neusoft.FrameWork.WinForms.Controls.StyleType.Fixed3D;
     this.button1.TabIndex = 3;
     this.button1.Type     = Neusoft.FrameWork.WinForms.Controls.General.ButtonType.None;
     this.button1.Visible  = false;
     this.button1.Click   += new System.EventHandler(this.button1_Click);
     //
     // linkLabel1
     //
     this.linkLabel1.Location     = new System.Drawing.Point(225, 4);
     this.linkLabel1.Name         = "linkLabel1";
     this.linkLabel1.Size         = new System.Drawing.Size(33, 16);
     this.linkLabel1.Style        = Neusoft.FrameWork.WinForms.Controls.StyleType.Fixed3D;
     this.linkLabel1.TabIndex     = 4;
     this.linkLabel1.TabStop      = true;
     this.linkLabel1.Text         = "取消";
     this.linkLabel1.Visible      = false;
     this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
     //
     // frmWait
     //
     this.ClientSize = new System.Drawing.Size(280, 56);
     this.ControlBox = false;
     this.Controls.Add(this.linkLabel1);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.pictureBox1);
     this.Controls.Add(this.progressBar1);
     this.Controls.Add(this.label1);
     this.KeyPreview    = true;
     this.Name          = "frmWait";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "";
     this.TopMost       = true;
     this.Load         += new System.EventHandler(this.frmWait_Load);
     this.KeyDown      += new System.Windows.Forms.KeyEventHandler(this.frmWait_KeyDown);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
 }