/// <summary> /// 模板内容赋值 /// </summary> /// <param name="p_objTemplateSetContent">模板内容</param> /// <param name="p_intIndex">常用值插入点</param> /// <param name="p_intHash">需要从中间插入内容的RichTextBox的hashCode</param> public void m_mthLoadTemplateset(clsTemplatesetContentValue [] p_objTemplateSetContent, int p_intIndex, int p_intHash) { if (p_objTemplateSetContent == null || p_objTemplateSetContent.Length <= 0) { return; } #region 替换数据复用内容 ArrayList arlTemp = new ArrayList(); for (int i = 0; i < p_objTemplateSetContent.Length; i++) { arlTemp.Add(p_objTemplateSetContent[i].m_strContent); } string[] strContentArr = (string[])arlTemp.ToArray(typeof(string)); com.digitalwave.Emr.Utility.DataShare.clsDataShareReplace.s_mthReplaceDataShareValue(MDIParent.s_ObjCurrentPatient, ref strContentArr); #endregion for (int i = 0; i < p_objTemplateSetContent.Length; i++) { for (int j = 0; j < m_intTemplateNumber; j++) { Control txtBox = m_objControlCollection[j]; string strContent = strContentArr[i]; if (txtBox != null && p_objTemplateSetContent[i].m_strControl_ID == m_strControlIDCollection[j]) { switch (txtBox.GetType().FullName) { case "System.Windows.Forms.RichTextBox": case "iCare.CustomForm.ctlRichTextBox": if (p_intIndex == -1) { txtBox.Text = strContent; } else { txtBox.Text = txtBox.Text.Replace("mb.", ""); if (txtBox.GetHashCode() == p_intHash) { txtBox.Text = txtBox.Text.Insert(p_intIndex, strContent); } else { txtBox.Text += strContent; } } break; case "com.digitalwave.Utility.Controls.ctlRichTextBox": com.digitalwave.Utility.Controls.ctlRichTextBox ctlTxt = (com.digitalwave.Utility.Controls.ctlRichTextBox)txtBox; int intMaxLength = ctlTxt.MaxLength; if (strContent != null && strContent.Length > intMaxLength) { strContent = strContent.Substring(0, intMaxLength); } if (p_intIndex == -1) { //如果手术记录单的手术名称有内容,保持其内容不变 if (txtBox.FindForm().Name == "frmOperationRecordDoctor" && txtBox.Name == "m_txtOperationName" && txtBox.Text.Trim() != "") { break; } //int intLength = ctlTxt.Text.Length; ctlTxt.m_mthClearText(); ctlTxt.m_mthInsertText(strContent, 0); } else { ctlTxt.m_mthReplace("mb.", ""); if (txtBox.GetHashCode() == p_intHash) { ctlTxt.m_mthInsertText(strContent, p_intIndex); } else { int intLength = ctlTxt.Text.Length; ctlTxt.m_mthInsertText(strContent, intLength); } } break; case "com.digitalwave.controls.ctlRichTextBox": com.digitalwave.controls.ctlRichTextBox ctlTxt2 = (com.digitalwave.controls.ctlRichTextBox)txtBox; int intMaxLength2 = ctlTxt2.MaxLength; if (strContent != null && strContent.Length > intMaxLength2) { strContent = strContent.Substring(0, intMaxLength2); } if (p_intIndex == -1) { //如果手术记录单的手术名称有内容,保持其内容不变 if (txtBox.FindForm().Name == "frmOperationRecordDoctor" && txtBox.Name == "m_txtOperationName" && txtBox.Text.Trim() != "") { break; } //int intLength1 = ctlTxt2.Text.Length; ctlTxt2.m_mthClearText(); ctlTxt2.m_mthInsertText(strContent, 0); } else { ctlTxt2.m_mthReplace("mb.", ""); if (txtBox.GetHashCode() == p_intHash) { ctlTxt2.m_mthInsertText(strContent, p_intIndex); } else { int intLength1 = ctlTxt2.Text.Length; ctlTxt2.m_mthInsertText(strContent, intLength1); } } break; case "com.digitalwave.Utility.Controls.ctlComboBox": com.digitalwave.Utility.Controls.ctlComboBox ctlBox = txtBox as com.digitalwave.Utility.Controls.ctlComboBox; ctlBox.Text = strContent; break; default: txtBox.Text = strContent; break; } break; } } } // clsDataShareTool.s_mthSetDataShare(MDIParent.s_ObjCurrentPatient,m_objControlCollection); }
/// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmTextTemplate)); this.panel1 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel(); this.treeView1 = new System.Windows.Forms.TreeView(); this.m_imgIcons = new System.Windows.Forms.ImageList(this.components); this.m_cmdNew = new PinkieControls.ButtonXP(); this.m_cmdChange = new PinkieControls.ButtonXP(); this.m_cmdHaltTemp = new PinkieControls.ButtonXP(); this.m_cmdExit = new PinkieControls.ButtonXP(); this.m_cmdCreatText = new PinkieControls.ButtonXP(); this.splitter1 = new System.Windows.Forms.Splitter(); this.panel3 = new System.Windows.Forms.Panel(); this.m_txtText = new com.digitalwave.Utility.Controls.ctlRichTextBox(); this.m_pnlControl = new System.Windows.Forms.Panel(); this.m_cmdReturn = new PinkieControls.ButtonXP(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.panel3.SuspendLayout(); this.SuspendLayout(); // // panel1 // this.panel1.Controls.Add(this.panel2); this.panel1.Controls.Add(this.m_cmdNew); this.panel1.Controls.Add(this.m_cmdChange); this.panel1.Controls.Add(this.m_cmdHaltTemp); this.panel1.Dock = System.Windows.Forms.DockStyle.Left; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(200, 625); this.panel1.TabIndex = 0; // // panel2 // this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel2.Controls.Add(this.treeView1); this.panel2.Location = new System.Drawing.Point(8, 8); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(184, 568); this.panel2.TabIndex = 0; // // treeView1 // this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill; this.treeView1.ImageList = this.m_imgIcons; this.treeView1.Location = new System.Drawing.Point(0, 0); this.treeView1.Name = "treeView1"; this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { new System.Windows.Forms.TreeNode("模板", 0, 0) }); this.treeView1.Size = new System.Drawing.Size(184, 568); this.treeView1.TabIndex = 0; this.treeView1.DoubleClick += new System.EventHandler(this.treeView1_DoubleClick); this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect); // // m_imgIcons // this.m_imgIcons.ImageSize = new System.Drawing.Size(16, 16); this.m_imgIcons.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("m_imgIcons.ImageStream"))); this.m_imgIcons.TransparentColor = System.Drawing.Color.Transparent; // // m_cmdNew // this.m_cmdNew.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.m_cmdNew.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200))); this.m_cmdNew.DefaultScheme = true; this.m_cmdNew.DialogResult = System.Windows.Forms.DialogResult.None; this.m_cmdNew.ForeColor = System.Drawing.Color.Black; this.m_cmdNew.Hint = ""; this.m_cmdNew.Location = new System.Drawing.Point(4, 584); this.m_cmdNew.Name = "m_cmdNew"; this.m_cmdNew.Scheme = PinkieControls.ButtonXP.Schemes.Blue; this.m_cmdNew.Size = new System.Drawing.Size(64, 32); this.m_cmdNew.TabIndex = 10000013; this.m_cmdNew.Text = "新建模板 "; this.m_cmdNew.Click += new System.EventHandler(this.btNew_Click); // // m_cmdChange // this.m_cmdChange.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.m_cmdChange.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200))); this.m_cmdChange.DefaultScheme = true; this.m_cmdChange.DialogResult = System.Windows.Forms.DialogResult.None; this.m_cmdChange.ForeColor = System.Drawing.Color.Black; this.m_cmdChange.Hint = ""; this.m_cmdChange.Location = new System.Drawing.Point(68, 584); this.m_cmdChange.Name = "m_cmdChange"; this.m_cmdChange.Scheme = PinkieControls.ButtonXP.Schemes.Blue; this.m_cmdChange.Size = new System.Drawing.Size(64, 32); this.m_cmdChange.TabIndex = 10000014; this.m_cmdChange.Text = "修改模板 "; this.m_cmdChange.Click += new System.EventHandler(this.btChange_Click); // // m_cmdHaltTemp // this.m_cmdHaltTemp.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.m_cmdHaltTemp.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200))); this.m_cmdHaltTemp.DefaultScheme = true; this.m_cmdHaltTemp.DialogResult = System.Windows.Forms.DialogResult.None; this.m_cmdHaltTemp.ForeColor = System.Drawing.Color.Black; this.m_cmdHaltTemp.Hint = ""; this.m_cmdHaltTemp.Location = new System.Drawing.Point(132, 584); this.m_cmdHaltTemp.Name = "m_cmdHaltTemp"; this.m_cmdHaltTemp.Scheme = PinkieControls.ButtonXP.Schemes.Blue; this.m_cmdHaltTemp.Size = new System.Drawing.Size(64, 32); this.m_cmdHaltTemp.TabIndex = 10000013; this.m_cmdHaltTemp.Text = "停用模板 "; this.m_cmdHaltTemp.Click += new System.EventHandler(this.m_cmdHaltTemp_Click); // // m_cmdExit // this.m_cmdExit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.m_cmdExit.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200))); this.m_cmdExit.DefaultScheme = true; this.m_cmdExit.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.m_cmdExit.ForeColor = System.Drawing.Color.Black; this.m_cmdExit.Hint = ""; this.m_cmdExit.Location = new System.Drawing.Point(592, 584); this.m_cmdExit.Name = "m_cmdExit"; this.m_cmdExit.Scheme = PinkieControls.ButtonXP.Schemes.Blue; this.m_cmdExit.Size = new System.Drawing.Size(72, 32); this.m_cmdExit.TabIndex = 10000017; this.m_cmdExit.Text = "退 出"; this.m_cmdExit.Click += new System.EventHandler(this.btExit_Click); // // m_cmdCreatText // this.m_cmdCreatText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.m_cmdCreatText.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200))); this.m_cmdCreatText.DefaultScheme = true; this.m_cmdCreatText.DialogResult = System.Windows.Forms.DialogResult.None; this.m_cmdCreatText.ForeColor = System.Drawing.Color.Black; this.m_cmdCreatText.Hint = ""; this.m_cmdCreatText.Location = new System.Drawing.Point(592, 436); this.m_cmdCreatText.Name = "m_cmdCreatText"; this.m_cmdCreatText.Scheme = PinkieControls.ButtonXP.Schemes.Blue; this.m_cmdCreatText.Size = new System.Drawing.Size(72, 32); this.m_cmdCreatText.TabIndex = 10000016; this.m_cmdCreatText.Text = "生成文本 "; this.m_cmdCreatText.Click += new System.EventHandler(this.btCreatText_Click); // // splitter1 // this.splitter1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.splitter1.Location = new System.Drawing.Point(200, 0); this.splitter1.Name = "splitter1"; this.splitter1.Size = new System.Drawing.Size(2, 625); this.splitter1.TabIndex = 1; this.splitter1.TabStop = false; // // panel3 // this.panel3.Controls.Add(this.m_txtText); this.panel3.Controls.Add(this.m_pnlControl); this.panel3.Controls.Add(this.m_cmdCreatText); this.panel3.Controls.Add(this.m_cmdReturn); this.panel3.Controls.Add(this.m_cmdExit); this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; this.panel3.Location = new System.Drawing.Point(202, 0); this.panel3.Name = "panel3"; this.panel3.Size = new System.Drawing.Size(670, 625); this.panel3.TabIndex = 2; // // m_txtText // this.m_txtText.AcceptsTab = true; this.m_txtText.AccessibleDescription = ""; this.m_txtText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.m_txtText.BackColor = System.Drawing.Color.White; this.m_txtText.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134))); this.m_txtText.ForeColor = System.Drawing.Color.Black; this.m_txtText.Location = new System.Drawing.Point(8, 432); this.m_txtText.m_BlnPartControl = false; this.m_txtText.m_BlnReadOnly = false; this.m_txtText.m_BlnUnderLineDST = false; this.m_txtText.m_ClrDST = System.Drawing.Color.Black; this.m_txtText.m_ClrOldPartInsertText = System.Drawing.Color.Black; this.m_txtText.m_IntCanModifyTime = 0; this.m_txtText.m_IntPartControlLength = 0; this.m_txtText.m_IntPartControlStartIndex = 0; this.m_txtText.m_StrUserID = ""; this.m_txtText.m_StrUserName = ""; this.m_txtText.Name = "m_txtText"; this.m_txtText.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedVertical; this.m_txtText.Size = new System.Drawing.Size(576, 188); this.m_txtText.TabIndex = 111; this.m_txtText.Text = ""; // // m_pnlControl // this.m_pnlControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.m_pnlControl.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.m_pnlControl.Location = new System.Drawing.Point(8, 8); this.m_pnlControl.Name = "m_pnlControl"; this.m_pnlControl.Size = new System.Drawing.Size(656, 416); this.m_pnlControl.TabIndex = 0; // // m_cmdReturn // this.m_cmdReturn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.m_cmdReturn.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200))); this.m_cmdReturn.DefaultScheme = true; this.m_cmdReturn.DialogResult = System.Windows.Forms.DialogResult.OK; this.m_cmdReturn.ForeColor = System.Drawing.Color.Black; this.m_cmdReturn.Hint = ""; this.m_cmdReturn.Location = new System.Drawing.Point(592, 510); this.m_cmdReturn.Name = "m_cmdReturn"; this.m_cmdReturn.Scheme = PinkieControls.ButtonXP.Schemes.Blue; this.m_cmdReturn.Size = new System.Drawing.Size(72, 32); this.m_cmdReturn.TabIndex = 10000016; this.m_cmdReturn.Text = "保 存"; this.m_cmdReturn.Click += new System.EventHandler(this.m_cmdReturn_Click); // // frmTextTemplate // this.AutoScaleBaseSize = new System.Drawing.Size(7, 16); this.ClientSize = new System.Drawing.Size(872, 625); this.Controls.Add(this.panel3); this.Controls.Add(this.splitter1); this.Controls.Add(this.panel1); this.Font = new System.Drawing.Font("宋体", 10.5F); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.Name = "frmTextTemplate"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "最小元素集模板"; this.Load += new System.EventHandler(this.frmTextTemplate_Load); this.panel1.ResumeLayout(false); this.panel2.ResumeLayout(false); this.panel3.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmRevistRemindMessage)); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.m_chkNoNeedRemind = new System.Windows.Forms.CheckBox(); this.m_cmdClose = new System.Windows.Forms.Button(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.m_txtRemindTips = new com.digitalwave.Utility.Controls.ctlRichTextBox(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // pictureBox1 // this.pictureBox1.Image = ((System.Drawing.Bitmap)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Location = new System.Drawing.Point(16, 46); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(48, 46); this.pictureBox1.TabIndex = 1; this.pictureBox1.TabStop = false; // // m_chkNoNeedRemind // this.m_chkNoNeedRemind.Location = new System.Drawing.Point(16, 156); this.m_chkNoNeedRemind.Name = "m_chkNoNeedRemind"; this.m_chkNoNeedRemind.TabIndex = 2; this.m_chkNoNeedRemind.Text = "不再提示"; // // m_cmdClose // this.m_cmdClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.m_cmdClose.Location = new System.Drawing.Point(344, 152); this.m_cmdClose.Name = "m_cmdClose"; this.m_cmdClose.Size = new System.Drawing.Size(75, 28); this.m_cmdClose.TabIndex = 99; this.m_cmdClose.Text = "关 闭"; this.m_cmdClose.Click += new System.EventHandler(this.m_cmdsave_Click); // // groupBox1 // this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] { this.m_txtRemindTips, this.pictureBox1 }); this.groupBox1.Location = new System.Drawing.Point(8, 4); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(416, 140); this.groupBox1.TabIndex = 100; this.groupBox1.TabStop = false; // // m_txtRemindTips // this.m_txtRemindTips.AccessibleDescription = ""; this.m_txtRemindTips.AutoSize = true; this.m_txtRemindTips.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(51)), ((System.Byte)(102)), ((System.Byte)(153))); this.m_txtRemindTips.BorderStyle = System.Windows.Forms.BorderStyle.None; this.m_txtRemindTips.Font = new System.Drawing.Font("SimSun", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134))); this.m_txtRemindTips.ForeColor = System.Drawing.Color.White; this.m_txtRemindTips.Location = new System.Drawing.Point(80, 28); this.m_txtRemindTips.m_BlnPartControl = false; this.m_txtRemindTips.m_BlnReadOnly = true; this.m_txtRemindTips.m_BlnUnderLineDST = false; this.m_txtRemindTips.m_ClrDST = System.Drawing.Color.White; this.m_txtRemindTips.m_ClrOldPartInsertText = System.Drawing.Color.White; this.m_txtRemindTips.m_IntCanModifyTime = 0; this.m_txtRemindTips.m_IntPartControlLength = 0; this.m_txtRemindTips.m_IntPartControlStartIndex = 0; this.m_txtRemindTips.m_StrUserID = ""; this.m_txtRemindTips.m_StrUserName = ""; this.m_txtRemindTips.MaxLength = 32265; this.m_txtRemindTips.Name = "m_txtRemindTips"; this.m_txtRemindTips.ReadOnly = true; this.m_txtRemindTips.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical; this.m_txtRemindTips.Size = new System.Drawing.Size(332, 108); this.m_txtRemindTips.TabIndex = 93; this.m_txtRemindTips.Tag = "0"; this.m_txtRemindTips.Text = ""; // // frmRevistRemindMessage // this.AutoScaleBaseSize = new System.Drawing.Size(8, 19); this.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(51)), ((System.Byte)(102)), ((System.Byte)(153))); this.ClientSize = new System.Drawing.Size(432, 191); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.groupBox1, this.m_cmdClose, this.m_chkNoNeedRemind }); this.Font = new System.Drawing.Font("SimSun", 12F); this.ForeColor = System.Drawing.Color.White; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "frmRevistRemindMessage"; this.Opacity = 0.89999997615814209; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "出院病人复诊提示"; this.groupBox1.ResumeLayout(false); this.ResumeLayout(false); }