Преглед на файлове

fix: 基础数据查询bug

zhengjie преди 1 година
родител
ревизия
638e6a297d
променени са 3 файла, в които са добавени 5 реда и са изтрити 69 реда
  1. 1 13
      Forms/BasicData.cs
  2. 1 53
      Forms/BasicData.designer.cs
  3. 3 3
      Forms/BasicData.resx

+ 1 - 13
Forms/BasicData.cs

@@ -887,22 +887,10 @@ namespace PTMedicalInsurance.Forms
             int iCount = 50;
             if (rbNoMaped.Checked)
             {
-                try
-                {
-                    if (Int32.Parse(numPage.Text) > currentPageIndex && pgHISDirect.TotalCount > 0)
-                    {
-                        currentPageIndex = Int32.Parse(numPage.Text);
-                    }
-                }
-                catch (Exception ex)
-                {
-                    MessageBox.Show(ex.Message);
-                    return;
-                }
                 iCount = 300;
             }
             string errMsg;
-            if (queryHISDirectory(currentPageIndex, iCount, out errMsg) != 0)
+            if (queryHISDirectory(1, iCount, out errMsg) != 0)
             {
                 MessageBox.Show(errMsg);
                 return;

+ 1 - 53
Forms/BasicData.designer.cs

@@ -86,9 +86,6 @@
             this.panel3 = new System.Windows.Forms.Panel();
             this.dgvHISDirectory = new Sunny.UI.UIDataGridView();
             this.panel5 = new System.Windows.Forms.Panel();
-            this.lblPage = new Sunny.UI.UILabel();
-            this.lblPageOrder = new Sunny.UI.UILabel();
-            this.numPage = new Sunny.UI.UITextBox();
             this.btnExport = new Sunny.UI.UIButton();
             this.btnCancelUpShip = new Sunny.UI.UIButton();
             this.btnUpShip = new Sunny.UI.UIButton();
@@ -257,7 +254,7 @@
             this.limitPriceUpdate,
             this.toolStripSeparator2});
             this.cmsUpdateInsuDir.Name = "uiContextMenuStrip1";
-            this.cmsUpdateInsuDir.Size = new System.Drawing.Size(245, 70);
+            this.cmsUpdateInsuDir.Size = new System.Drawing.Size(245, 42);
             this.cmsUpdateInsuDir.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
             // 
             // limitPriceUpdate
@@ -870,9 +867,6 @@
             // 
             // panel5
             // 
-            this.panel5.Controls.Add(this.lblPage);
-            this.panel5.Controls.Add(this.lblPageOrder);
-            this.panel5.Controls.Add(this.numPage);
             this.panel5.Controls.Add(this.btnExport);
             this.panel5.Controls.Add(this.btnCancelUpShip);
             this.panel5.Controls.Add(this.btnUpShip);
@@ -889,47 +883,6 @@
             this.panel5.Size = new System.Drawing.Size(1584, 57);
             this.panel5.TabIndex = 1;
             // 
-            // lblPage
-            // 
-            this.lblPage.AutoSize = true;
-            this.lblPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.lblPage.Location = new System.Drawing.Point(1035, 14);
-            this.lblPage.Name = "lblPage";
-            this.lblPage.Size = new System.Drawing.Size(24, 20);
-            this.lblPage.TabIndex = 15;
-            this.lblPage.Text = "页";
-            this.lblPage.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
-            this.lblPage.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
-            // 
-            // lblPageOrder
-            // 
-            this.lblPageOrder.AutoSize = true;
-            this.lblPageOrder.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.lblPageOrder.Location = new System.Drawing.Point(955, 14);
-            this.lblPageOrder.Name = "lblPageOrder";
-            this.lblPageOrder.Size = new System.Drawing.Size(24, 20);
-            this.lblPageOrder.TabIndex = 15;
-            this.lblPageOrder.Text = "第";
-            this.lblPageOrder.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
-            this.lblPageOrder.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
-            // 
-            // numPage
-            // 
-            this.numPage.Cursor = System.Windows.Forms.Cursors.IBeam;
-            this.numPage.DoubleValue = 1D;
-            this.numPage.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.numPage.IntValue = 1;
-            this.numPage.Location = new System.Drawing.Point(982, 11);
-            this.numPage.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
-            this.numPage.MinimumSize = new System.Drawing.Size(1, 16);
-            this.numPage.Name = "numPage";
-            this.numPage.ShowText = false;
-            this.numPage.Size = new System.Drawing.Size(50, 27);
-            this.numPage.TabIndex = 14;
-            this.numPage.Text = "1";
-            this.numPage.TextAlignment = System.Drawing.ContentAlignment.MiddleLeft;
-            this.numPage.ZoomScaleRect = new System.Drawing.Rectangle(0, 0, 0, 0);
-            // 
             // btnExport
             // 
             this.btnExport.Cursor = System.Windows.Forms.Cursors.Hand;
@@ -1078,7 +1031,6 @@
             this.pgHISDirect.MinimumSize = new System.Drawing.Size(2, 2);
             this.pgHISDirect.Name = "pgHISDirect";
             this.pgHISDirect.RectSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.None;
-            this.pgHISDirect.ShowJumpButton = false;
             this.pgHISDirect.ShowText = false;
             this.pgHISDirect.Size = new System.Drawing.Size(1584, 43);
             this.pgHISDirect.TabIndex = 6;
@@ -1511,7 +1463,6 @@
             this.panel3.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.dgvHISDirectory)).EndInit();
             this.panel5.ResumeLayout(false);
-            this.panel5.PerformLayout();
             this.pgHISDirect.ResumeLayout(false);
             this.panel4.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.dgvCenterDirectory)).EndInit();
@@ -1608,9 +1559,6 @@
         private Sunny.UI.UITextBox uiTextBox3;
         private Sunny.UI.UITextBox uiTextBox5;
         private Sunny.UI.UILabel LabExplain;
-        private Sunny.UI.UILabel lblPage;
-        private Sunny.UI.UILabel lblPageOrder;
-        private Sunny.UI.UITextBox numPage;
     }
 }
 

+ 3 - 3
Forms/BasicData.resx

@@ -117,12 +117,12 @@
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
-  <metadata name="cmsUpdateInsuDir.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
-    <value>310, 17</value>
-  </metadata>
   <metadata name="cmsMapping.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>17, 17</value>
   </metadata>
+  <metadata name="cmsUpdateInsuDir.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>310, 17</value>
+  </metadata>
   <metadata name="cmsUpdateAuxInfo.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>146, 17</value>
   </metadata>