Browse Source

1.增加慢特病用药查询

zzz 2 months ago
parent
commit
bc09a7073b

+ 36 - 0
Common/SMLib/SMUtil.cs

@@ -8,6 +8,9 @@ using System;
 using System.Text;
 using Newtonsoft.Json.Linq;
 using Newtonsoft.Json;
+using PTMedicalInsurance.Forms;
+using System.IO;
+using System.Security.Cryptography;
 
 namespace GMCrypto.Lib
 {
@@ -49,6 +52,39 @@ namespace GMCrypto.Lib
             return decryptDataStr;
         }
 
+        /**
+        * 解密 AES   ECB/ 编码:Base64/字符集 utf8 / 解密密钥 
+        *
+        * @param data
+        * @param appId
+        * @param appSecret
+        * @return
+       */
+        public static string AESDecrypt(string cipherText, string key)
+        {
+            using (Aes aesAlg = Aes.Create())
+            {
+                aesAlg.Key = Encoding.UTF8.GetBytes(key);
+                aesAlg.Mode = CipherMode.ECB; // 使用ECB模式
+                aesAlg.Padding = PaddingMode.PKCS7; // 使用PKCS7填充
+
+                ICryptoTransform decryptor = aesAlg.CreateDecryptor(aesAlg.Key, aesAlg.IV);
+                byte[] encryptedBytes = Convert.FromBase64String(cipherText); // Base64解码
+
+                using (MemoryStream msDecrypt = new MemoryStream(encryptedBytes))
+                {
+                    using (CryptoStream csDecrypt = new CryptoStream(msDecrypt, decryptor, CryptoStreamMode.Read))
+                    {
+                        using (StreamReader srDecrypt = new StreamReader(csDecrypt))
+                        {
+                            return srDecrypt.ReadToEnd();
+                        }
+                    }
+                }
+            }
+        }
+
+
         /**
         * 签名
         *

File diff suppressed because it is too large
+ 426 - 421
Forms/MedInsuQuery.designer.cs


+ 559 - 0
Forms/SpecialDrugSelect.Designer.cs

@@ -0,0 +1,559 @@
+namespace AnHuiMI.Forms
+{
+    partial class SpecialDrugSelect
+    {
+        /// <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 dataGridViewCellStyle41 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle42 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle43 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle44 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle45 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle46 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle47 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle48 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle49 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle50 = new System.Windows.Forms.DataGridViewCellStyle();
+            this.uiTabControl1 = new Sunny.UI.UITabControl();
+            this.tabPage1 = new System.Windows.Forms.TabPage();
+            this.tabPage2 = new System.Windows.Forms.TabPage();
+            this.uiDataGridView1 = new Sunny.UI.UIDataGridView();
+            this.uiPanel1 = new Sunny.UI.UIPanel();
+            this.uiDatetimePicker1 = new Sunny.UI.UIDatetimePicker();
+            this.uiLabel1 = new Sunny.UI.UILabel();
+            this.uiLabel2 = new Sunny.UI.UILabel();
+            this.uiDatetimePicker2 = new Sunny.UI.UIDatetimePicker();
+            this.uiButton1 = new Sunny.UI.UIButton();
+            this.uiDataGridView2 = new Sunny.UI.UIDataGridView();
+            this.uiPanel2 = new Sunny.UI.UIPanel();
+            this.uiLabel3 = new Sunny.UI.UILabel();
+            this.uiLabel4 = new Sunny.UI.UILabel();
+            this.uiDatetimePicker3 = new Sunny.UI.UIDatetimePicker();
+            this.uiDatetimePicker4 = new Sunny.UI.UIDatetimePicker();
+            this.uiButton3 = new Sunny.UI.UIButton();
+            this.uiTextBox1 = new Sunny.UI.UITextBox();
+            this.uiTextBox2 = new Sunny.UI.UITextBox();
+            this.uiLabel5 = new Sunny.UI.UILabel();
+            this.uiLabel6 = new Sunny.UI.UILabel();
+            this.uiLabel7 = new Sunny.UI.UILabel();
+            this.uiLabel8 = new Sunny.UI.UILabel();
+            this.uiTextBox3 = new Sunny.UI.UITextBox();
+            this.uiTextBox4 = new Sunny.UI.UITextBox();
+            this.uiTabControl1.SuspendLayout();
+            this.tabPage1.SuspendLayout();
+            this.tabPage2.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.uiDataGridView1)).BeginInit();
+            this.uiPanel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.uiDataGridView2)).BeginInit();
+            this.uiPanel2.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // uiTabControl1
+            // 
+            this.uiTabControl1.Controls.Add(this.tabPage1);
+            this.uiTabControl1.Controls.Add(this.tabPage2);
+            this.uiTabControl1.DrawMode = System.Windows.Forms.TabDrawMode.OwnerDrawFixed;
+            this.uiTabControl1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiTabControl1.ItemSize = new System.Drawing.Size(250, 40);
+            this.uiTabControl1.Location = new System.Drawing.Point(2, 3);
+            this.uiTabControl1.MainPage = "";
+            this.uiTabControl1.Name = "uiTabControl1";
+            this.uiTabControl1.SelectedIndex = 0;
+            this.uiTabControl1.Size = new System.Drawing.Size(1413, 628);
+            this.uiTabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
+            this.uiTabControl1.TabIndex = 0;
+            this.uiTabControl1.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiTabControl1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // tabPage1
+            // 
+            this.tabPage1.Controls.Add(this.uiPanel2);
+            this.tabPage1.Controls.Add(this.uiDataGridView2);
+            this.tabPage1.Location = new System.Drawing.Point(0, 40);
+            this.tabPage1.Name = "tabPage1";
+            this.tabPage1.Size = new System.Drawing.Size(1413, 588);
+            this.tabPage1.TabIndex = 0;
+            this.tabPage1.Text = "慢特病用药记录数据查询";
+            this.tabPage1.UseVisualStyleBackColor = true;
+            // 
+            // tabPage2
+            // 
+            this.tabPage2.Controls.Add(this.uiPanel1);
+            this.tabPage2.Controls.Add(this.uiDataGridView1);
+            this.tabPage2.Location = new System.Drawing.Point(0, 40);
+            this.tabPage2.Name = "tabPage2";
+            this.tabPage2.Size = new System.Drawing.Size(1413, 588);
+            this.tabPage2.TabIndex = 1;
+            this.tabPage2.Text = "慢特病用药记录数据统计";
+            this.tabPage2.UseVisualStyleBackColor = true;
+            // 
+            // uiDataGridView1
+            // 
+            dataGridViewCellStyle41.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
+            this.uiDataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle41;
+            this.uiDataGridView1.BackgroundColor = System.Drawing.Color.White;
+            this.uiDataGridView1.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
+            dataGridViewCellStyle42.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle42.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle42.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle42.ForeColor = System.Drawing.Color.White;
+            dataGridViewCellStyle42.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle42.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle42.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.uiDataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle42;
+            this.uiDataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            dataGridViewCellStyle43.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle43.BackColor = System.Drawing.SystemColors.Window;
+            dataGridViewCellStyle43.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle43.ForeColor = System.Drawing.SystemColors.ControlText;
+            dataGridViewCellStyle43.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle43.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle43.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+            this.uiDataGridView1.DefaultCellStyle = dataGridViewCellStyle43;
+            this.uiDataGridView1.EnableHeadersVisualStyles = false;
+            this.uiDataGridView1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiDataGridView1.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            this.uiDataGridView1.Location = new System.Drawing.Point(3, 3);
+            this.uiDataGridView1.Name = "uiDataGridView1";
+            dataGridViewCellStyle44.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle44.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle44.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle44.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle44.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle44.SelectionForeColor = System.Drawing.Color.White;
+            dataGridViewCellStyle44.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.uiDataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle44;
+            dataGridViewCellStyle45.BackColor = System.Drawing.Color.White;
+            dataGridViewCellStyle45.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiDataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle45;
+            this.uiDataGridView1.RowTemplate.Height = 23;
+            this.uiDataGridView1.SelectedIndex = -1;
+            this.uiDataGridView1.Size = new System.Drawing.Size(1407, 478);
+            this.uiDataGridView1.StripeOddColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
+            this.uiDataGridView1.TabIndex = 0;
+            this.uiDataGridView1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiPanel1
+            // 
+            this.uiPanel1.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.uiPanel1.Controls.Add(this.uiTextBox4);
+            this.uiPanel1.Controls.Add(this.uiTextBox3);
+            this.uiPanel1.Controls.Add(this.uiLabel8);
+            this.uiPanel1.Controls.Add(this.uiLabel7);
+            this.uiPanel1.Controls.Add(this.uiButton1);
+            this.uiPanel1.Controls.Add(this.uiDatetimePicker2);
+            this.uiPanel1.Controls.Add(this.uiLabel2);
+            this.uiPanel1.Controls.Add(this.uiLabel1);
+            this.uiPanel1.Controls.Add(this.uiDatetimePicker1);
+            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, 480);
+            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(1410, 108);
+            this.uiPanel1.TabIndex = 1;
+            this.uiPanel1.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
+            this.uiPanel1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiDatetimePicker1
+            // 
+            this.uiDatetimePicker1.FillColor = System.Drawing.Color.White;
+            this.uiDatetimePicker1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiDatetimePicker1.Location = new System.Drawing.Point(226, 9);
+            this.uiDatetimePicker1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.uiDatetimePicker1.MaxLength = 19;
+            this.uiDatetimePicker1.MinimumSize = new System.Drawing.Size(63, 0);
+            this.uiDatetimePicker1.Name = "uiDatetimePicker1";
+            this.uiDatetimePicker1.Padding = new System.Windows.Forms.Padding(0, 0, 30, 2);
+            this.uiDatetimePicker1.Size = new System.Drawing.Size(200, 29);
+            this.uiDatetimePicker1.SymbolDropDown = 61555;
+            this.uiDatetimePicker1.SymbolNormal = 61555;
+            this.uiDatetimePicker1.TabIndex = 0;
+            this.uiDatetimePicker1.Text = "uiDatetimePicker1";
+            this.uiDatetimePicker1.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.uiDatetimePicker1.Value = new System.DateTime(2025, 12, 30, 9, 52, 6, 281);
+            this.uiDatetimePicker1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiLabel1
+            // 
+            this.uiLabel1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiLabel1.Location = new System.Drawing.Point(76, 15);
+            this.uiLabel1.Name = "uiLabel1";
+            this.uiLabel1.Size = new System.Drawing.Size(100, 23);
+            this.uiLabel1.TabIndex = 1;
+            this.uiLabel1.Text = "开始时间";
+            this.uiLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            this.uiLabel1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiLabel2
+            // 
+            this.uiLabel2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiLabel2.Location = new System.Drawing.Point(76, 70);
+            this.uiLabel2.Name = "uiLabel2";
+            this.uiLabel2.Size = new System.Drawing.Size(100, 23);
+            this.uiLabel2.TabIndex = 2;
+            this.uiLabel2.Text = "结束时间";
+            this.uiLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            this.uiLabel2.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiDatetimePicker2
+            // 
+            this.uiDatetimePicker2.FillColor = System.Drawing.Color.White;
+            this.uiDatetimePicker2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiDatetimePicker2.Location = new System.Drawing.Point(226, 64);
+            this.uiDatetimePicker2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.uiDatetimePicker2.MaxLength = 19;
+            this.uiDatetimePicker2.MinimumSize = new System.Drawing.Size(63, 0);
+            this.uiDatetimePicker2.Name = "uiDatetimePicker2";
+            this.uiDatetimePicker2.Padding = new System.Windows.Forms.Padding(0, 0, 30, 2);
+            this.uiDatetimePicker2.Size = new System.Drawing.Size(200, 29);
+            this.uiDatetimePicker2.SymbolDropDown = 61555;
+            this.uiDatetimePicker2.SymbolNormal = 61555;
+            this.uiDatetimePicker2.TabIndex = 3;
+            this.uiDatetimePicker2.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.uiDatetimePicker2.Value = new System.DateTime(2025, 12, 30, 9, 52, 6, 281);
+            this.uiDatetimePicker2.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiButton1
+            // 
+            this.uiButton1.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.uiButton1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiButton1.Location = new System.Drawing.Point(844, 33);
+            this.uiButton1.MinimumSize = new System.Drawing.Size(1, 1);
+            this.uiButton1.Name = "uiButton1";
+            this.uiButton1.Size = new System.Drawing.Size(185, 48);
+            this.uiButton1.TabIndex = 4;
+            this.uiButton1.Text = "查询";
+            this.uiButton1.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiButton1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            this.uiButton1.Click += new System.EventHandler(this.uiButton1_Click);
+            // 
+            // uiDataGridView2
+            // 
+            dataGridViewCellStyle46.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
+            this.uiDataGridView2.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle46;
+            this.uiDataGridView2.BackgroundColor = System.Drawing.Color.White;
+            this.uiDataGridView2.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
+            dataGridViewCellStyle47.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle47.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle47.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle47.ForeColor = System.Drawing.Color.White;
+            dataGridViewCellStyle47.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle47.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle47.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.uiDataGridView2.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle47;
+            this.uiDataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            dataGridViewCellStyle48.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle48.BackColor = System.Drawing.SystemColors.Window;
+            dataGridViewCellStyle48.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle48.ForeColor = System.Drawing.SystemColors.ControlText;
+            dataGridViewCellStyle48.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle48.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle48.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+            this.uiDataGridView2.DefaultCellStyle = dataGridViewCellStyle48;
+            this.uiDataGridView2.EnableHeadersVisualStyles = false;
+            this.uiDataGridView2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiDataGridView2.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            this.uiDataGridView2.Location = new System.Drawing.Point(0, 0);
+            this.uiDataGridView2.Name = "uiDataGridView2";
+            dataGridViewCellStyle49.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle49.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle49.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle49.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(48)))), ((int)(((byte)(48)))));
+            dataGridViewCellStyle49.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(160)))), ((int)(((byte)(255)))));
+            dataGridViewCellStyle49.SelectionForeColor = System.Drawing.Color.White;
+            dataGridViewCellStyle49.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.uiDataGridView2.RowHeadersDefaultCellStyle = dataGridViewCellStyle49;
+            dataGridViewCellStyle50.BackColor = System.Drawing.Color.White;
+            dataGridViewCellStyle50.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiDataGridView2.RowsDefaultCellStyle = dataGridViewCellStyle50;
+            this.uiDataGridView2.RowTemplate.Height = 23;
+            this.uiDataGridView2.SelectedIndex = -1;
+            this.uiDataGridView2.Size = new System.Drawing.Size(1410, 473);
+            this.uiDataGridView2.StripeOddColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(243)))), ((int)(((byte)(255)))));
+            this.uiDataGridView2.TabIndex = 0;
+            this.uiDataGridView2.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiPanel2
+            // 
+            this.uiPanel2.Controls.Add(this.uiLabel6);
+            this.uiPanel2.Controls.Add(this.uiLabel5);
+            this.uiPanel2.Controls.Add(this.uiTextBox2);
+            this.uiPanel2.Controls.Add(this.uiTextBox1);
+            this.uiPanel2.Controls.Add(this.uiButton3);
+            this.uiPanel2.Controls.Add(this.uiDatetimePicker4);
+            this.uiPanel2.Controls.Add(this.uiDatetimePicker3);
+            this.uiPanel2.Controls.Add(this.uiLabel4);
+            this.uiPanel2.Controls.Add(this.uiLabel3);
+            this.uiPanel2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiPanel2.Location = new System.Drawing.Point(0, 472);
+            this.uiPanel2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.uiPanel2.MinimumSize = new System.Drawing.Size(1, 1);
+            this.uiPanel2.Name = "uiPanel2";
+            this.uiPanel2.Size = new System.Drawing.Size(1410, 116);
+            this.uiPanel2.TabIndex = 1;
+            this.uiPanel2.TextAlignment = System.Drawing.ContentAlignment.MiddleCenter;
+            this.uiPanel2.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            this.uiPanel2.Click += new System.EventHandler(this.uiPanel2_Click);
+            // 
+            // uiLabel3
+            // 
+            this.uiLabel3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiLabel3.Location = new System.Drawing.Point(104, 25);
+            this.uiLabel3.Name = "uiLabel3";
+            this.uiLabel3.Size = new System.Drawing.Size(100, 23);
+            this.uiLabel3.TabIndex = 0;
+            this.uiLabel3.Text = "开始时间";
+            this.uiLabel3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            this.uiLabel3.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiLabel4
+            // 
+            this.uiLabel4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiLabel4.Location = new System.Drawing.Point(104, 72);
+            this.uiLabel4.Name = "uiLabel4";
+            this.uiLabel4.Size = new System.Drawing.Size(100, 23);
+            this.uiLabel4.TabIndex = 1;
+            this.uiLabel4.Text = "截止时间";
+            this.uiLabel4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            this.uiLabel4.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiDatetimePicker3
+            // 
+            this.uiDatetimePicker3.FillColor = System.Drawing.Color.White;
+            this.uiDatetimePicker3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiDatetimePicker3.Location = new System.Drawing.Point(233, 25);
+            this.uiDatetimePicker3.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.uiDatetimePicker3.MaxLength = 19;
+            this.uiDatetimePicker3.MinimumSize = new System.Drawing.Size(63, 0);
+            this.uiDatetimePicker3.Name = "uiDatetimePicker3";
+            this.uiDatetimePicker3.Padding = new System.Windows.Forms.Padding(0, 0, 30, 2);
+            this.uiDatetimePicker3.Size = new System.Drawing.Size(200, 29);
+            this.uiDatetimePicker3.SymbolDropDown = 61555;
+            this.uiDatetimePicker3.SymbolNormal = 61555;
+            this.uiDatetimePicker3.TabIndex = 2;
+            this.uiDatetimePicker3.Text = "uiDatetimePicker3";
+            this.uiDatetimePicker3.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.uiDatetimePicker3.Value = new System.DateTime(2025, 12, 30, 10, 1, 45, 211);
+            this.uiDatetimePicker3.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiDatetimePicker4
+            // 
+            this.uiDatetimePicker4.FillColor = System.Drawing.Color.White;
+            this.uiDatetimePicker4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiDatetimePicker4.Location = new System.Drawing.Point(233, 72);
+            this.uiDatetimePicker4.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.uiDatetimePicker4.MaxLength = 19;
+            this.uiDatetimePicker4.MinimumSize = new System.Drawing.Size(63, 0);
+            this.uiDatetimePicker4.Name = "uiDatetimePicker4";
+            this.uiDatetimePicker4.Padding = new System.Windows.Forms.Padding(0, 0, 30, 2);
+            this.uiDatetimePicker4.Size = new System.Drawing.Size(200, 29);
+            this.uiDatetimePicker4.SymbolDropDown = 61555;
+            this.uiDatetimePicker4.SymbolNormal = 61555;
+            this.uiDatetimePicker4.TabIndex = 3;
+            this.uiDatetimePicker4.Text = "2025-12-30 10:01:45";
+            this.uiDatetimePicker4.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.uiDatetimePicker4.Value = new System.DateTime(2025, 12, 30, 10, 1, 45, 211);
+            this.uiDatetimePicker4.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiButton3
+            // 
+            this.uiButton3.Cursor = System.Windows.Forms.Cursors.Hand;
+            this.uiButton3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiButton3.Location = new System.Drawing.Point(951, 43);
+            this.uiButton3.MinimumSize = new System.Drawing.Size(1, 1);
+            this.uiButton3.Name = "uiButton3";
+            this.uiButton3.Size = new System.Drawing.Size(100, 35);
+            this.uiButton3.TabIndex = 4;
+            this.uiButton3.Text = "查询";
+            this.uiButton3.TipsFont = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiButton3.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            this.uiButton3.Click += new System.EventHandler(this.uiButton3_Click);
+            // 
+            // uiTextBox1
+            // 
+            this.uiTextBox1.Cursor = System.Windows.Forms.Cursors.IBeam;
+            this.uiTextBox1.DoubleValue = 1D;
+            this.uiTextBox1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiTextBox1.IntValue = 1;
+            this.uiTextBox1.Location = new System.Drawing.Point(586, 25);
+            this.uiTextBox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.uiTextBox1.MinimumSize = new System.Drawing.Size(1, 16);
+            this.uiTextBox1.Name = "uiTextBox1";
+            this.uiTextBox1.ShowText = false;
+            this.uiTextBox1.Size = new System.Drawing.Size(150, 29);
+            this.uiTextBox1.TabIndex = 5;
+            this.uiTextBox1.Text = "1";
+            this.uiTextBox1.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.uiTextBox1.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiTextBox2
+            // 
+            this.uiTextBox2.Cursor = System.Windows.Forms.Cursors.IBeam;
+            this.uiTextBox2.DoubleValue = 100D;
+            this.uiTextBox2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiTextBox2.IntValue = 100;
+            this.uiTextBox2.Location = new System.Drawing.Point(586, 72);
+            this.uiTextBox2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.uiTextBox2.MinimumSize = new System.Drawing.Size(1, 16);
+            this.uiTextBox2.Name = "uiTextBox2";
+            this.uiTextBox2.ShowText = false;
+            this.uiTextBox2.Size = new System.Drawing.Size(150, 29);
+            this.uiTextBox2.TabIndex = 6;
+            this.uiTextBox2.Text = "100";
+            this.uiTextBox2.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.uiTextBox2.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiLabel5
+            // 
+            this.uiLabel5.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiLabel5.Location = new System.Drawing.Point(479, 31);
+            this.uiLabel5.Name = "uiLabel5";
+            this.uiLabel5.Size = new System.Drawing.Size(100, 23);
+            this.uiLabel5.TabIndex = 7;
+            this.uiLabel5.Text = "页数";
+            this.uiLabel5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            this.uiLabel5.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiLabel6
+            // 
+            this.uiLabel6.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiLabel6.Location = new System.Drawing.Point(479, 78);
+            this.uiLabel6.Name = "uiLabel6";
+            this.uiLabel6.Size = new System.Drawing.Size(100, 23);
+            this.uiLabel6.TabIndex = 8;
+            this.uiLabel6.Text = "页记录数";
+            this.uiLabel6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            this.uiLabel6.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiLabel7
+            // 
+            this.uiLabel7.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiLabel7.Location = new System.Drawing.Point(479, 15);
+            this.uiLabel7.Name = "uiLabel7";
+            this.uiLabel7.Size = new System.Drawing.Size(100, 23);
+            this.uiLabel7.TabIndex = 8;
+            this.uiLabel7.Text = "页数";
+            this.uiLabel7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            this.uiLabel7.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiLabel8
+            // 
+            this.uiLabel8.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiLabel8.Location = new System.Drawing.Point(479, 70);
+            this.uiLabel8.Name = "uiLabel8";
+            this.uiLabel8.Size = new System.Drawing.Size(100, 23);
+            this.uiLabel8.TabIndex = 9;
+            this.uiLabel8.Text = "页记录数";
+            this.uiLabel8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+            this.uiLabel8.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiTextBox3
+            // 
+            this.uiTextBox3.Cursor = System.Windows.Forms.Cursors.IBeam;
+            this.uiTextBox3.DoubleValue = 1D;
+            this.uiTextBox3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiTextBox3.IntValue = 1;
+            this.uiTextBox3.Location = new System.Drawing.Point(571, 15);
+            this.uiTextBox3.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.uiTextBox3.MinimumSize = new System.Drawing.Size(1, 16);
+            this.uiTextBox3.Name = "uiTextBox3";
+            this.uiTextBox3.ShowText = false;
+            this.uiTextBox3.Size = new System.Drawing.Size(150, 29);
+            this.uiTextBox3.TabIndex = 10;
+            this.uiTextBox3.Text = "1";
+            this.uiTextBox3.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.uiTextBox3.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // uiTextBox4
+            // 
+            this.uiTextBox4.Cursor = System.Windows.Forms.Cursors.IBeam;
+            this.uiTextBox4.DoubleValue = 100D;
+            this.uiTextBox4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.uiTextBox4.IntValue = 100;
+            this.uiTextBox4.Location = new System.Drawing.Point(571, 64);
+            this.uiTextBox4.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
+            this.uiTextBox4.MinimumSize = new System.Drawing.Size(1, 16);
+            this.uiTextBox4.Name = "uiTextBox4";
+            this.uiTextBox4.ShowText = false;
+            this.uiTextBox4.Size = new System.Drawing.Size(150, 29);
+            this.uiTextBox4.TabIndex = 11;
+            this.uiTextBox4.Text = "100";
+            this.uiTextBox4.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
+            this.uiTextBox4.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
+            // 
+            // SpecialDrugSelect
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(1413, 630);
+            this.Controls.Add(this.uiTabControl1);
+            this.Name = "SpecialDrugSelect";
+            this.Text = "Form1";
+            this.Load += new System.EventHandler(this.SpecialDrugSelect_Load);
+            this.uiTabControl1.ResumeLayout(false);
+            this.tabPage1.ResumeLayout(false);
+            this.tabPage2.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.uiDataGridView1)).EndInit();
+            this.uiPanel1.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.uiDataGridView2)).EndInit();
+            this.uiPanel2.ResumeLayout(false);
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private Sunny.UI.UITabControl uiTabControl1;
+        private System.Windows.Forms.TabPage tabPage1;
+        private Sunny.UI.UIPanel uiPanel2;
+        private Sunny.UI.UIButton uiButton3;
+        private Sunny.UI.UIDatetimePicker uiDatetimePicker4;
+        private Sunny.UI.UIDatetimePicker uiDatetimePicker3;
+        private Sunny.UI.UILabel uiLabel4;
+        private Sunny.UI.UILabel uiLabel3;
+        private Sunny.UI.UIDataGridView uiDataGridView2;
+        private System.Windows.Forms.TabPage tabPage2;
+        private Sunny.UI.UIPanel uiPanel1;
+        private Sunny.UI.UIButton uiButton1;
+        private Sunny.UI.UIDatetimePicker uiDatetimePicker2;
+        private Sunny.UI.UILabel uiLabel2;
+        private Sunny.UI.UILabel uiLabel1;
+        private Sunny.UI.UIDatetimePicker uiDatetimePicker1;
+        private Sunny.UI.UIDataGridView uiDataGridView1;
+        private Sunny.UI.UILabel uiLabel6;
+        private Sunny.UI.UILabel uiLabel5;
+        private Sunny.UI.UITextBox uiTextBox2;
+        private Sunny.UI.UITextBox uiTextBox1;
+        private Sunny.UI.UITextBox uiTextBox4;
+        private Sunny.UI.UITextBox uiTextBox3;
+        private Sunny.UI.UILabel uiLabel8;
+        private Sunny.UI.UILabel uiLabel7;
+    }
+}

+ 132 - 0
Forms/SpecialDrugSelect.cs

@@ -0,0 +1,132 @@
+using Newtonsoft.Json.Linq;
+using PTMedicalInsurance.Helper;
+using PTMedicalInsurance;
+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;
+using PTMedicalInsurance.Variables;
+using PTMedicalInsurance.Common;
+
+namespace AnHuiMI.Forms
+{
+    public partial class SpecialDrugSelect : Form
+    {
+        public SpecialDrugSelect()
+        {
+            InitializeComponent();
+        }
+
+        InvokeHelper invoker = new InvokeHelper();
+
+        private void uiButton3_Click(object sender, EventArgs e)
+        {
+            //人员慢特病用药记录数据查询接口
+            JObject Joinput= new JObject();
+            JObject JoParms= new JObject();
+
+            JoParms.Add("psnNo", Global.pat.psn_no);
+            JoParms.Add("begnTime", uiDatetimePicker3.Text);
+            JoParms.Add("endTime", uiDatetimePicker3.Text);
+
+            Joinput.Add("Code", "feeListOpsp");
+            Joinput.Add("pageNum", uiTextBox1.Text);
+            Joinput.Add("pageSize", uiTextBox2.Text);
+            Joinput.Add("queryParms", JoParms);
+
+            JObject joOpspRtn = invoker.invokeMBCenterService("feeListOpsp", JsonHelper.setCenterInparMB("feeListOpsp", Joinput));
+            if (JsonHelper.getDestValue(joOpspRtn, "msg") != "查询成功")
+            {
+                MessageBox.Show("人员慢特病用药记录查询失败");
+                return;
+            }
+            JObject joOutput = JObject.Parse(JsonHelper.getDestValue(joOpspRtn, "data"));
+            JArray joIDInfo = JArray.Parse(JsonHelper.getDestValue(joOutput, "rows"));
+
+            //if (joIDInfo.Count > 0)
+            //{
+            //    for (int i = 0; i < joIDInfo.Count; i++)
+            //    {
+            //        Utils.convertTimestamp((JObject)joIDInfo[i], "fee_ocur_time");
+            //    }
+            //}
+            //dgv5205.DataSource = (DataTable)joRtn["output"]["feedetail"].ToObject(typeof(DataTable));
+            uiDataGridView2.DataSource = (DataTable)joIDInfo.ToObject(typeof(DataTable));
+        }
+
+        private void uiButton1_Click(object sender, EventArgs e)
+        {
+            //人员慢特病用药记录数据统计接口
+            JObject Joinput = new JObject();
+            JObject JoParms = new JObject();
+
+            JoParms.Add("psnNo", Global.pat.psn_no);
+            JoParms.Add("begnTime", uiDatetimePicker1.Text);
+            JoParms.Add("endTime", uiDatetimePicker2.Text);
+
+            Joinput.Add("Code", "feeListOpspCount");
+            Joinput.Add("pageNum", uiTextBox3.Text);
+            Joinput.Add("pageSize", uiTextBox4.Text);
+            Joinput.Add("queryParms", JoParms);
+
+            JObject joOpspRtn = invoker.invokeMBCenterService("feeListOpspCount", JsonHelper.setCenterInparMB("feeListOpspCount", Joinput));
+            if (JsonHelper.getDestValue(joOpspRtn, "msg") != "查询成功")
+            {
+                MessageBox.Show("人员慢特病用药记录查询失败" );
+                return;
+            }
+            JObject joOutput = JObject.Parse(JsonHelper.getDestValue(joOpspRtn, "data"));
+            JArray joIDInfo = JArray.Parse(JsonHelper.getDestValue(joOutput, "rows"));
+
+            //if (joIDInfo.Count > 0)
+            //{
+            //    for (int i = 0; i < joIDInfo.Count; i++)
+            //    {
+            //        Utils.convertTimestamp((JObject)joIDInfo[i], "fee_ocur_time");
+            //    }
+            //}
+            //dgv5205.DataSource = (DataTable)joRtn["output"]["feedetail"].ToObject(typeof(DataTable));
+            uiDataGridView1.DataSource = (DataTable)joIDInfo.ToObject(typeof(DataTable));
+        }
+
+        private void uiPanel2_Click(object sender, EventArgs e)
+        {
+
+        }
+
+        private void SpecialDrugSelect_Load(object sender, EventArgs e)
+        {
+            string outParam = "", errMsg = "";
+            JObject joData = new JObject();
+            JObject joInput = new JObject();
+            JObject joRtn = new JObject();
+            string errorMsg = "";
+
+            joData.Add("mdtrt_cert_type", "02");
+            joData.Add("mdtrt_cert_no", Global.pat.certNO);
+            joData.Add("card_sn", "");
+            joData.Add("begntime", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
+            joData.Add("psn_cert_type", "01");
+            joData.Add("certno", Global.pat.certNO); //证件号码
+            joData.Add("psn_name", Global.pat.name);
+
+            joInput.Add("data", joData);
+            joRtn = invoker.invokeCenterService("1101", JsonHelper.setCenterInpar("1101", joInput));
+            if (JsonHelper.parseCenterRtnValue(joRtn, out errorMsg) == 0)
+            {
+                outParam = joRtn.ToString();
+                Global.pat.insuplc_admdvs = JsonHelper.getDestValue(JObject.Parse(outParam), "output.insuinfo.insuplc_admdvs"); //参保地
+                Global.pat.psn_no = JsonHelper.getDestValue(JObject.Parse(outParam), "output.baseinfo.psn_no"); //人员编号
+            }
+            else
+            {
+                MessageBox.Show("未查询到参保人员信息,请检查接口选择是否正确或电脑医保环境是否正常!");
+            }
+        }
+    }
+}

+ 120 - 0
Forms/SpecialDrugSelect.resx

@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>

+ 9 - 18
HeFeiMI.csproj

@@ -360,6 +360,12 @@
       <DependentUpon>OutOfAreaClearing.cs</DependentUpon>
     </Compile>
     <Compile Include="Forms\Clearings\Services\OutOfAreaPatientClearing.cs" />
+    <Compile Include="Forms\SpecialDrugSelect.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Forms\SpecialDrugSelect.Designer.cs">
+      <DependentUpon>SpecialDrugSelect.cs</DependentUpon>
+    </Compile>
     <Compile Include="Forms\PreAndInProcessAnalysisForm.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -487,17 +493,6 @@
     <Compile Include="Helper\XmlHelper.cs" />
     <Compile Include="InsuBusiness.cs" />
     <Compile Include="IInsuBusiness.cs" />
-    <Compile Include="Properties\AssemblyInfo.cs" />
-    <Compile Include="Properties\Resources.Designer.cs">
-      <AutoGen>True</AutoGen>
-      <DesignTime>True</DesignTime>
-      <DependentUpon>Resources.resx</DependentUpon>
-    </Compile>
-    <Compile Include="Properties\Settings.Designer.cs">
-      <AutoGen>True</AutoGen>
-      <DesignTimeSharedInput>True</DesignTimeSharedInput>
-      <DependentUpon>Settings.settings</DependentUpon>
-    </Compile>
     <Compile Include="Variables\customenums\OperationTypeEnum.cs" />
     <Compile Include="Variables\ModeEnum.cs" />
     <Compile Include="Variables\StructExtend.cs" />
@@ -508,6 +503,7 @@
   </ItemGroup>
   <ItemGroup>
     <Folder Include="ControlSetter\" />
+    <Folder Include="Properties\" />
   </ItemGroup>
   <ItemGroup>
     <EmbeddedResource Include="Business\Core\Forms\DischargeAudit\AdmissionRegistration.resx">
@@ -624,18 +620,13 @@
     <EmbeddedResource Include="Forms\SettlementInfo.resx">
       <DependentUpon>SettlementInfo.cs</DependentUpon>
     </EmbeddedResource>
-    <EmbeddedResource Include="Properties\Resources.resx">
-      <Generator>ResXFileCodeGenerator</Generator>
-      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+    <EmbeddedResource Include="Forms\SpecialDrugSelect.resx">
+      <DependentUpon>SpecialDrugSelect.cs</DependentUpon>
     </EmbeddedResource>
   </ItemGroup>
   <ItemGroup>
     <None Include="app.config" />
     <None Include="packages.config" />
-    <None Include="Properties\Settings.settings">
-      <Generator>SettingsSingleFileGenerator</Generator>
-      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
-    </None>
   </ItemGroup>
   <ItemGroup>
     <COMReference Include="stdole">

+ 128 - 1
Helper/InvokeHelper.cs

@@ -30,6 +30,7 @@ using AnHuiMI.Forms;
 using AnHuiMI.Common;
 using static System.Net.WebRequestMethods;
 using File = System.IO.File;
+using GMCrypto.Lib;
 
 namespace PTMedicalInsurance.Helper
 {
@@ -334,6 +335,91 @@ namespace PTMedicalInsurance.Helper
             }
         }
 
+        /// <summary>
+        /// 医保中心慢特病Post服务调用封装
+        /// </summary>
+        /// <param name="data"></param>
+        /// <returns></returns>
+        private JObject invokeCenterServiceMB(string data)
+        {
+            string postContent = "";
+            JObject joRtn = new JObject();
+            try
+            {
+                //Global.writeLog(string.Format("调用中心{0}接口入参:{1}",data, Global.curEvt.URL));
+
+
+                //创建一个HTTP请求  
+                HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Global.curEvt.URL);
+                //Post请求方式  
+                request.Method = "POST";
+                //string nonce = Guid.NewGuid().ToString();         //非重复的随机字符串(十分钟内不能重复)
+                //string timestamp = TimeStamp.get13().ToString();  //当前时间戳(秒)
+                //string BusinessID = Global.inf.BusinessID;        //服务商ID
+                //string InsuHosID = Global.inf.hospitalNO;         //医疗机构ID
+                //string CreditID = Global.inf.CreditID;            //服务商统一社会信用代码                
+
+                //内容类型
+                request.ContentType = "application/json;charset=UTF-8";
+                //昆明增加头部信息
+                //string sTemp = timestamp + BusinessID + nonce;
+                //Sha256 加密生成的签名 signature = sha256(hsf_timestamp + infosyssign + hsf_nonce)
+                //string signature = Encrypt.SHA256EncryptStr(sTemp);
+
+                //request.Headers.Add("hsf_signature", signature);
+                //request.Headers.Add("hsf_timestamp", timestamp);
+                //request.Headers.Add("hsf_nonce", nonce);
+                //request.Headers.Add("fixmedins_code", InsuHosID);
+                //request.Headers.Add("infosyscode", CreditID);
+
+                //设置参数,并进行URL编码 
+                string paraUrlCoded = data;//System.Web.HttpUtility.UrlEncode(jsonParas);   
+                byte[] payload;
+                //将Json字符串转化为字节  
+                payload = System.Text.Encoding.UTF8.GetBytes(paraUrlCoded);
+                //设置请求的ContentLength   
+                request.ContentLength = payload.Length;
+                //发送请求,获得请求流 
+                Stream writer;
+                writer = request.GetRequestStream();//获取用于写入请求数据的Stream对象
+                                                    //将请求参数写入流
+                writer.Write(payload, 0, payload.Length);
+                writer.Close();//关闭请求流
+                               // String strValue = "";//strValue为http响应所返回的字符流
+                HttpWebResponse response = null;
+                try
+                {
+                    //获得响应流
+                    response = (HttpWebResponse)request.GetResponse();
+                }
+                catch (WebException ex)
+                {
+                    // return JsonHelper.setExceptionJson(-99, "centerServeiceInvok中获得响应流异常", ex.Message);
+
+                    HttpWebResponse res = (HttpWebResponse)ex.Response;
+                    Stream myResponseStream = res.GetResponseStream();
+                    StreamReader myStreamReader = new StreamReader(myResponseStream, Encoding.UTF8);
+                    string retString = myStreamReader.ReadToEnd();
+                    return JsonHelper.setExceptionJson(-99, "获得响应流异常", retString);
+
+                }
+                postContent =SMUtil.AESDecrypt(getResponseData(response), Global.inf.MBkey); //解密后转换Json
+                joRtn = JObject.Parse(postContent);//返回Json数据
+                if (joRtn.ContainsKey("body"))
+                {
+                    joRtn = (JObject)joRtn.GetValue("body");
+                }
+                return joRtn;
+            }
+            catch (Exception ex)
+            {
+                postContent = "调用中心服务异常" + ex.Message;
+                joRtn.Add("infcode", -1);
+                joRtn.Add("err_msg", "invokeCenterService(1):" + ex.Message);
+                return joRtn;
+            }
+        }
+
         /// <summary>
         /// 这个是调用业务服务的invokeCenterService
         /// </summary>
@@ -425,6 +511,48 @@ namespace PTMedicalInsurance.Helper
             }
         }
 
+        /// <summary>
+        /// 这个是合肥慢病用药查询用的invokeCenterService
+        /// </summary>
+        /// <param name="funNO"></param>
+        /// <param name="data"></param>
+        /// <returns></returns>
+        public JObject invokeMBCenterService(string funNO, string data)
+        {
+            JObject joRtn = new JObject();
+            try
+            {
+                // 动态调试模式
+                if (Global.curEvt.enabledDebug)
+                {
+                    CenterResult center = new CenterResult();
+                    center.setTradeNo(funNO);
+                    if (center.ShowDialog() == DialogResult.OK)
+                    {
+                        string outPar = center.returnData;
+                        return JObject.Parse(outPar);
+                    }
+                }
+                Global.curEvt.URL = "http://10.67.241.148:8080/api/definition/send";
+                joRtn = invokeCenterServiceMB(data);
+                return joRtn;
+
+            }
+            catch (Exception ex)
+            {
+                if (joRtn["infcode"] == null)
+                { joRtn.Add("infcode", -1); }
+                if (joRtn["err_msg"] == null)
+                { joRtn.Add("err_msg", "invokeCenterService(3):" + ex.Message); }
+                return joRtn;
+            }
+            finally
+            {
+                Global.writeLog(funNO + "(" + Global.curEvt.URL + ")", JsonHelper.Compress(data), joRtn.ToString());
+                this.saveCenterLog(JsonHelper.Compress(data), joRtn.ToString(), JsonHelper.Compress(data), joRtn.ToString());
+            }
+        }
+
         /// <summary>
         /// 这个是下载目录用的invokeCenterService
         /// </summary>
@@ -550,7 +678,6 @@ namespace PTMedicalInsurance.Helper
                 case "10001":
                     prefix = "http://10.67.187.46:8000/v1/pb/op/opRiskTips";
                     break;
-
                 default:
                     prefix = Global.inf.centerURL;
                     break;

+ 55 - 0
Helper/JsonHelper.cs

@@ -556,6 +556,61 @@ namespace PTMedicalInsurance.Helper
             return JsonHelper.toJsonString(Jo);
 
         }
+        /// <summary>
+        /// 组织合肥医保慢病中心入参
+        /// </summary>
+        /// <param name="infno"></param>
+        /// <param name="input"></param>
+        /// <returns></returns>
+        public static string setCenterInparMB(string infno, JObject joInput)
+        {
+            dynamic Jo = new JObject();
+            Global.inf.MBkey = "";
+            if (Global.inf.interfaceDr == 12)//安徽省基线版-瑶海Jo.appKey
+            {
+                Jo.appKey = "A05CA9455BE8BF66";
+                Global.inf.MBkey= "";
+            }
+            if (Global.inf.interfaceDr == 16)//合肥市基线版-瑶海
+            {
+                Jo.appKey = "7571C4995A2F4290";
+                Global.inf.MBkey = "";
+            }
+            if (Global.inf.interfaceDr == 15)//安徽省基线版-蜀山老院
+            {
+                Jo.appKey = "4SR6eFwdmsHGBkSQ";
+                Global.inf.MBkey = "StCR87Mi8YM7XcYc";
+            }
+            if (Global.inf.interfaceDr == 17)//合肥市基线版-蜀山老院
+            {
+                Jo.appKey = "4SR6eFwdmsHGBkSQ";
+                Global.inf.MBkey = "StCR87Mi8YM7XcYc";
+            }
+            //if (Global.inf.interfaceDr == 40)//合肥市基线版-庐江门诊
+            //{
+            //    Jo.opter = "F7A80649CD515C55";
+            //}
+            //if (Global.inf.interfaceDr == 52)//合肥市基线版-经开区门诊
+            //{
+            //    Jo.opter = "F2D71DD91690A813";
+            //}
+
+            Jo.channelCode = Global.inf.hospitalNO;
+            Jo.apiCode = infno;
+
+            if (joInput != null)
+            {
+                Jo.Add("args0", joInput);
+            }
+            else
+            {
+                Jo.Add("args0", "");
+            }
+
+            return JsonHelper.toJsonString(Jo);
+
+        }
+
 
         /// <summary>
         /// 组织中心入参-医保电子处方流转

+ 1 - 0
Variables/Struct.cs

@@ -74,6 +74,7 @@ namespace PTMedicalInsurance.Variables
         public string Secret;
 
         public string presCenterURL;
+        public string MBkey;
     }
 
     /// <summary>

Some files were not shown because too many files changed in this diff