Przeglądaj źródła

fix: 取消调试异常处理

zhengjie 1 rok temu
rodzic
commit
d53e2f5af3
3 zmienionych plików z 6 dodań i 7 usunięć
  1. 1 3
      Common/CardReader.cs
  2. 2 1
      Forms/CenterResult.cs
  3. 3 3
      Forms/SettlementChecklist.cs

+ 1 - 3
Common/CardReader.cs

@@ -228,9 +228,7 @@ namespace PTMedicalInsurance.Common
             {
                 StringBuilder sbOutData = new StringBuilder(1024);
 
-                MessageBox.Show("dao");
-       
-
+                //MessageBox.Show("dao");
                 IntPtr pRtn = FastReportDll(sbOutData);
                 OutData = sbOutData.ToString();
                 string rtn = Marshal.PtrToStringAnsi(pRtn);

+ 2 - 1
Forms/CenterResult.cs

@@ -21,7 +21,8 @@ namespace AnHuiMI.Forms
 
         private void btnCancel_Click(object sender, EventArgs e)
         {
-            DialogResult = DialogResult.Cancel;
+            this.returnData = "{infcode:-1}";
+            DialogResult = DialogResult.OK;
             Close();
         }
 

+ 3 - 3
Forms/SettlementChecklist.cs

@@ -70,8 +70,6 @@ namespace PTMedicalInsurance.Forms
             JObject joRtn = mIS.QuerySettlementInfo(joSqlStr);
             DataTable dt = (DataTable)joRtn["result"]["data"].ToObject(typeof(DataTable));
             dgvSettlRecord.DataSource = dt;
-
-            FastReportFunction.Register();
         }
 
         public void Dispose()
@@ -250,6 +248,7 @@ namespace PTMedicalInsurance.Forms
        
             try
             {
+                FastReportFunction.Register();
                 string chineseSimpleFrl = Global.curEvt.path + @"\Chinese (Simplified).frl";
                 FastReport.Utils.Res.LoadLocale(chineseSimpleFrl);
 
@@ -333,7 +332,8 @@ namespace PTMedicalInsurance.Forms
         [STAThread]
         private void preview()
         {
-           
+            FastReportFunction.Register();
+
             Report report = new Report();
             try
             {