浏览代码

fix: 入院诊断描述默认传门诊主诊断

zhengjie 1 年之前
父节点
当前提交
87e576e10a

+ 14 - 4
Business/HisMainBusiness.cs

@@ -782,15 +782,21 @@ namespace PTMedicalInsurance.Business
                     joMdtrtinfo.Add("medrcdno", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.medrcdno"));          //病历号
                     joMdtrtinfo.Add("atddr_no", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.atddr_no"));          //主治医生编码
                     joMdtrtinfo.Add("chfpdr_name", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.chfpdr_name"));          //主诊医师姓名
+                   
                     joMdtrtinfo.Add("adm_diag_dscr", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.adm_diag_dscr"));          //入院诊断描述
                     joMdtrtinfo.Add("adm_dept_codg", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.adm_dept_codg"));          //入院科室编码
                     joMdtrtinfo.Add("adm_dept_name", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.adm_dept_name"));          //入院科室名称
                     joMdtrtinfo.Add("adm_bed", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.adm_bed"));          //入院床位
                     joMdtrtinfo.Add("dscg_maindiag_code", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.dscg_maindiag_code"));          //住院主诊断代码
-                    joMdtrtinfo.Add("dscg_maindiag_name", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.dscg_maindiag_name"));          //住院主诊断名称
-                    //joMdtrtinfo.Add("dscg_maindiag_code", dscg_maindiag_code);          //住院主诊断代码
-                    //joMdtrtinfo.Add("dscg_maindiag_name", dscg_maindiag_name);          //住院主诊断名称
-                    joMdtrtinfo.Add("main_cond_dscr", JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.main_cond_dscr"));          //主要病情描述
+                    string mainDiagName = JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.dscg_maindiag_name");
+                    string diagDescripts = JsonHelper.getDestValue(joHisRtnInfo, "mdtrtinfo.main_cond_dscr");
+                    if (string.IsNullOrEmpty(diagDescripts))
+                    {
+                        diagDescripts = mainDiagName;
+                    }
+
+                    joMdtrtinfo.Add("dscg_maindiag_name", mainDiagName);          //住院主诊断名称
+                    joMdtrtinfo.Add("main_cond_dscr", diagDescripts);          //主要病情描述
                     joMdtrtinfo.Add("dise_codg", diseCodg);          //病种编码
                     joMdtrtinfo.Add("dise_name", diseName);          //病种名称
                     joMdtrtinfo.Add("oprn_oprt_code", frmReg.oprn_oprt_code??"");          //手术操作代码
@@ -1933,6 +1939,10 @@ namespace PTMedicalInsurance.Business
                         Global.pat.insuType = JsonHelper.getDestValue(joInparam, "insuAdmObj.insutype");
                         break;
                     }
+                case "HistoryPrescription":
+                    pat.certNO = JsonHelper.getDestValue(joInparam, "insuAdmObj.certno");
+                    pat.name = JsonHelper.getDestValue(joInparam, "insuAdmObj.psn_name");
+                    break;
                 default:
                     {
                         break;

+ 72 - 0
Business/Local/OtherQueryProcess.cs

@@ -0,0 +1,72 @@
+using Newtonsoft.Json.Linq;
+using PTMedicalInsurance.Common;
+using PTMedicalInsurance.Forms;
+using PTMedicalInsurance.Helper;
+using PTMedicalInsurance.Variables;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace PTMedicalInsurance.Business
+{
+    class OtherQueryProcess : AbstractProcess
+    {
+        TradeEnum trade;
+        /// <summary>
+        /// 构造函数
+        /// </summary>
+        /// <param name="trade">交易</param>
+        public OtherQueryProcess(TradeEnum trade)
+        {
+            this.trade = trade;
+        }
+        public override CallResult Process(JObject input)
+        {
+            this.OrginalInput = input;
+            switch (this.trade)
+            {
+                case TradeEnum.HistoryPrescriptionQuery:
+                    QueryPatientPrescription();
+                    break;
+                default:
+                    break;
+            }
+
+            return Success();
+        }
+
+        private void QueryPatientPrescription()
+        {
+            dynamic input = new JObject();
+            input.psn_name = Global.pat.name;
+            input.certno = Global.pat.certNO ;
+
+            string errMsg = "";
+            try
+            {
+                JObject joRtn = invoker.invokeCenterService(trade, input);
+                if (JsonHelper.parseCenterRtnValue(joRtn, out errMsg) != 0)
+                {
+                    Global.writeLog("QueryPatientPrescription", input.ToString(), errMsg);
+                    return;
+                }
+
+                JArray list = JArray.Parse(joRtn["mdtrtinfo"].Text());
+                if (list?.Count > 0)
+                {
+                    PrescriptionForm form = new PrescriptionForm();
+                    form.initList(list);
+                    form.ShowDialog();
+                }
+            }
+            catch (Exception ex)
+            {
+                Global.writeLog("QueryPatientPrescription",input.ToString(),ex.Message);
+            }
+
+        }
+    }
+}

+ 22 - 0
FormSetter/GridViewSetter.cs

@@ -939,6 +939,28 @@ namespace PTMedicalInsurance.FormSetter
             dgv.RowHeadersVisible = false;
         }
         #endregion
+
+
+        #region 历史处方信息
+        public void SetHeaderTextOfHistoryPrescription(DataGridView dgv)
+        {
+            dgv.AutoGenerateColumns = false;
+            dgv.Columns.Clear();
+
+            AddDGVColumn(dgv, "医保目录编码", "hilist_code", 200);
+            AddDGVColumn(dgv, "医保目录名称", "hilist_name", 300);
+            AddDGVColumn(dgv, "目录类别", "hilist_type", 120);
+            AddDGVColumn(dgv, "费用发生时间", "fee_ocur_time", 150);
+            AddDGVColumn(dgv, "数量", "cnt", 200);
+            AddDGVColumn(dgv, "规格", "spec", 150);
+            AddDGVColumn(dgv, "剂型", "dosform", 150);
+            AddDGVColumn(dgv, "是否结算标志", "setl_falg", 80);
+
+            dgv.RowHeadersVisible = true;
+        }
+
+        #endregion
+
     }
 
 }

+ 0 - 50
Forms/InformationOfSelfPatients.Designer.cs

@@ -1,50 +0,0 @@
-
-namespace KunMingMIMI.Forms
-{
-    partial class InformationOfSelfPatients
-    {
-        /// <summary>
-        /// Required designer variable.
-        /// </summary>
-        private System.ComponentModel.IContainer components = null;
-
-        /// <summary>
-        /// Clean up any resources being used.
-        /// </summary>
-        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
-        protected override void Dispose(bool disposing)
-        {
-            if (disposing && (components != null))
-            {
-                components.Dispose();
-            }
-            base.Dispose(disposing);
-        }
-
-        #region Windows Form Designer generated code
-
-        /// <summary>
-        /// Required method for Designer support - do not modify
-        /// the contents of this method with the code editor.
-        /// </summary>
-        private void InitializeComponent()
-        {
-            this.pageSetupDialog1 = new System.Windows.Forms.PageSetupDialog();
-            this.SuspendLayout();
-            // 
-            // InformationOfSelfPatients
-            // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
-            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(800, 450);
-            this.Name = "InformationOfSelfPatients";
-            this.Text = "自费病人医保信息";
-            this.ResumeLayout(false);
-
-        }
-
-        #endregion
-
-        private System.Windows.Forms.PageSetupDialog pageSetupDialog1;
-    }
-}

+ 0 - 20
Forms/InformationOfSelfPatients.cs

@@ -1,20 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-
-namespace KunMingMIMI.Forms
-{
-    public partial class InformationOfSelfPatients : Form
-    {
-        public InformationOfSelfPatients()
-        {
-            InitializeComponent();
-        }
-    }
-}

+ 191 - 0
Forms/PrescriptionForm.Designer.cs

@@ -0,0 +1,191 @@
+
+namespace PTMedicalInsurance.Forms
+{
+    partial class PrescriptionForm
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+            this.txtNo = new Sunny.UI.UITextBox();
+            this.txtName = new Sunny.UI.UITextBox();
+            this.uiLabel2 = new Sunny.UI.UILabel();
+            this.uiLabel1 = new Sunny.UI.UILabel();
+            this.dgvHistory = new Sunny.UI.UIDataGridView();
+            this.uiPanel1 = new Sunny.UI.UIPanel();
+            ((System.ComponentModel.ISupportInitialize)(this.dgvHistory)).BeginInit();
+            this.uiPanel1.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // txtNo
+            // 
+            this.txtNo.Cursor = System.Windows.Forms.Cursors.IBeam;
+            this.txtNo.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.txtNo.Location = new System.Drawing.Point(731, 30);
+            this.txtNo.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.txtNo.MinimumSize = new System.Drawing.Size(1, 16);
+            this.txtNo.Name = "txtNo";
+            this.txtNo.ShowText = false;
+            this.txtNo.Size = new System.Drawing.Size(327, 33);
+            this.txtNo.TabIndex = 17;
+            this.txtNo.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.txtNo.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // txtName
+            // 
+            this.txtName.Cursor = System.Windows.Forms.Cursors.IBeam;
+            this.txtName.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.txtName.Location = new System.Drawing.Point(228, 30);
+            this.txtName.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.txtName.MinimumSize = new System.Drawing.Size(1, 16);
+            this.txtName.Name = "txtName";
+            this.txtName.ShowText = false;
+            this.txtName.Size = new System.Drawing.Size(267, 33);
+            this.txtName.TabIndex = 16;
+            this.txtName.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.txtName.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiLabel2
+            // 
+            this.uiLabel2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiLabel2.Location = new System.Drawing.Point(579, 30);
+            this.uiLabel2.Name = "uiLabel2";
+            this.uiLabel2.Size = new System.Drawing.Size(130, 33);
+            this.uiLabel2.TabIndex = 15;
+            this.uiLabel2.Text = "身份证号码";
+            this.uiLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
+            this.uiLabel2.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiLabel1
+            // 
+            this.uiLabel1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiLabel1.Location = new System.Drawing.Point(64, 30);
+            this.uiLabel1.Name = "uiLabel1";
+            this.uiLabel1.Size = new System.Drawing.Size(131, 33);
+            this.uiLabel1.TabIndex = 14;
+            this.uiLabel1.Text = "病人姓名:";
+            this.uiLabel1.TextAlign = System.Drawing.ContentAlignment.TopRight;
+            this.uiLabel1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // dgvHistory
+            // 
+            this.dgvHistory.AllowUserToAddRows = false;
+            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
+            this.dgvHistory.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+            this.dgvHistory.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
+            this.dgvHistory.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
+            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvHistory.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
+            this.dgvHistory.ColumnHeadersHeight = 32;
+            this.dgvHistory.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle3.BackColor = System.Drawing.Color.White;
+            dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+            this.dgvHistory.DefaultCellStyle = dataGridViewCellStyle3;
+            this.dgvHistory.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.dgvHistory.EnableHeadersVisualStyles = false;
+            this.dgvHistory.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.dgvHistory.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(173)))), ((int)(((byte)(255)))));
+            this.dgvHistory.Location = new System.Drawing.Point(0, 0);
+            this.dgvHistory.Name = "dgvHistory";
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(243)))), ((int)(((byte)(249)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvHistory.RowHeadersDefaultCellStyle = dataGridViewCellStyle4;
+            this.dgvHistory.RowHeadersWidth = 62;
+            dataGridViewCellStyle5.BackColor = System.Drawing.Color.White;
+            dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(236)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            this.dgvHistory.RowsDefaultCellStyle = dataGridViewCellStyle5;
+            this.dgvHistory.RowTemplate.Height = 23;
+            this.dgvHistory.SelectedIndex = -1;
+            this.dgvHistory.Size = new System.Drawing.Size(1186, 555);
+            this.dgvHistory.TabIndex = 18;
+            this.dgvHistory.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiPanel1
+            // 
+            this.uiPanel1.Controls.Add(this.txtName);
+            this.uiPanel1.Controls.Add(this.uiLabel1);
+            this.uiPanel1.Controls.Add(this.txtNo);
+            this.uiPanel1.Controls.Add(this.uiLabel2);
+            this.uiPanel1.Dock = System.Windows.Forms.DockStyle.Top;
+            this.uiPanel1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiPanel1.Location = new System.Drawing.Point(0, 0);
+            this.uiPanel1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.uiPanel1.MinimumSize = new System.Drawing.Size(1, 1);
+            this.uiPanel1.Name = "uiPanel1";
+            this.uiPanel1.Size = new System.Drawing.Size(1186, 98);
+            this.uiPanel1.TabIndex = 19;
+            this.uiPanel1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
+            this.uiPanel1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // PrescriptionForm
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(1186, 555);
+            this.Controls.Add(this.uiPanel1);
+            this.Controls.Add(this.dgvHistory);
+            this.Name = "PrescriptionForm";
+            this.Text = "历史处方信息";
+            this.Load += new System.EventHandler(this.PrescriptionForm_Load);
+            ((System.ComponentModel.ISupportInitialize)(this.dgvHistory)).EndInit();
+            this.uiPanel1.ResumeLayout(false);
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private Sunny.UI.UITextBox txtNo;
+        private Sunny.UI.UITextBox txtName;
+        private Sunny.UI.UILabel uiLabel2;
+        private Sunny.UI.UILabel uiLabel1;
+        private Sunny.UI.UIDataGridView dgvHistory;
+        private Sunny.UI.UIPanel uiPanel1;
+    }
+}

+ 40 - 0
Forms/PrescriptionForm.cs

@@ -0,0 +1,40 @@
+using Newtonsoft.Json.Linq;
+using PTMedicalInsurance.FormSetter;
+using PTMedicalInsurance.Variables;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace PTMedicalInsurance.Forms
+{
+    public partial class PrescriptionForm : Form
+    {
+        private GridViewSetter grdSetter = new GridViewSetter();
+
+        public PrescriptionForm()
+        {
+            InitializeComponent();
+        }
+
+        private void PrescriptionForm_Load(object sender, EventArgs e)
+        {
+            this.txtName.Text = Global.pat.name;
+            this.txtNo.Text = Global.pat.certNO;
+        }
+
+        public void initList(JArray joData)
+        {
+            DataTable dtData = (DataTable)joData.ToObject(typeof(DataTable));
+            dgvHistory.DataSource = dtData;
+            grdSetter.SetHeaderTextOfHistoryPrescription(dgvHistory);
+        }
+    }
+
+
+}

+ 0 - 3
Forms/InformationOfSelfPatients.resx → Forms/PrescriptionForm.resx

@@ -117,7 +117,4 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
-  <metadata name="pageSetupDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>17, 17</value>
-  </metadata>
 </root>

+ 7 - 0
InsuBusiness.cs

@@ -633,6 +633,12 @@ namespace PTMedicalInsurance
 
                             break;
                         }
+                    case "HistoryPrescriptionQuery":
+                        // 历史处方查询
+                        string funNo = JsonHelper.getDestValue(joInParam, "funNO");
+                        TradeEnum trade = TradeEnum.DEFAULT.GetByCode(funNo);
+                        new OtherQueryProcess(trade).Process(JObject.Parse(InParam));
+                        break;
                     default:
                         {
                             rtnResult = JsonHelper.setExceptionJson(-1, "AgentFun 交易", "传入的业务编码不对!").ToString();
@@ -699,6 +705,7 @@ namespace PTMedicalInsurance
                 if (funNO=="4101")
                     Global.pat.insuplc_admdvs = JsonHelper.getDestValue(joInParam, "insuplc_admdvs");
                 TradeEnum trade = TradeEnum.DEFAULT.GetByCode(funNO);
+
                 JObject joRtn = invoker.invokeCenterService(trade, joParam);
                 if (JsonHelper.parseCenterRtnValue(joRtn, out errMsg) != 0)
                 {

+ 10 - 9
ShenYangMI.csproj

@@ -108,6 +108,7 @@
     <Compile Include="Business\Inpatient\IPSettlementCancelProcess.cs" />
     <Compile Include="Business\InsuServices.cs" />
     <Compile Include="Business\Basic\IPSettlementService.cs" />
+    <Compile Include="Business\Local\OtherQueryProcess.cs" />
     <Compile Include="Business\Local\ReadCardProcess.cs" />
     <Compile Include="Business\Local\TestProcess.cs" />
     <Compile Include="Business\Other\MedDirDownloadProcess.cs" />
@@ -195,6 +196,12 @@
     <Compile Include="Forms\OutpatientRegistration.designer.cs">
       <DependentUpon>OutpatientRegistration.cs</DependentUpon>
     </Compile>
+    <Compile Include="Forms\PrescriptionForm.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Forms\PrescriptionForm.Designer.cs">
+      <DependentUpon>PrescriptionForm.cs</DependentUpon>
+    </Compile>
     <Compile Include="Forms\PrintersForm.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -248,12 +255,6 @@
     <Compile Include="Forms\Clearing.designer.cs">
       <DependentUpon>Clearing.cs</DependentUpon>
     </Compile>
-    <Compile Include="Forms\InformationOfSelfPatients.cs">
-      <SubType>Form</SubType>
-    </Compile>
-    <Compile Include="Forms\InformationOfSelfPatients.Designer.cs">
-      <DependentUpon>InformationOfSelfPatients.cs</DependentUpon>
-    </Compile>
     <Compile Include="Forms\PreAndInProcessAnalysisForm.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -387,9 +388,6 @@
     <EmbeddedResource Include="Forms\Clearing.resx">
       <DependentUpon>Clearing.cs</DependentUpon>
     </EmbeddedResource>
-    <EmbeddedResource Include="Forms\InformationOfSelfPatients.resx">
-      <DependentUpon>InformationOfSelfPatients.cs</DependentUpon>
-    </EmbeddedResource>
     <EmbeddedResource Include="Forms\InpatientRegistration.resx">
       <DependentUpon>InpatientRegistration.cs</DependentUpon>
     </EmbeddedResource>
@@ -402,6 +400,9 @@
     <EmbeddedResource Include="Forms\PreAndInProcessAnalysisForm.resx">
       <DependentUpon>PreAndInProcessAnalysisForm.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="Forms\PrescriptionForm.resx">
+      <DependentUpon>PrescriptionForm.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="Forms\PrintersForm.resx">
       <DependentUpon>PrintersForm.cs</DependentUpon>
     </EmbeddedResource>

+ 2 - 0
Variables/TradeEnum.cs

@@ -448,6 +448,8 @@ namespace PTMedicalInsurance
 
         #region 地方扩展
 
+        [Trade("5280", "历史处方查询")]
+        HistoryPrescriptionQuery,
 
         #endregion