EcSettlCertQuery.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace PTMedicalInsurance.Forms.ElectronicSettlementCertificates
  11. {
  12. public partial class EcSettlCertQuery : Form
  13. {
  14. private EcSettlCertMainForm mainForm;
  15. public EcSettlCertQuery()
  16. {
  17. InitializeComponent();
  18. }
  19. public EcSettlCertQuery(Form frm)
  20. {
  21. InitializeComponent();
  22. InitForm(frm);
  23. }
  24. private void InitForm(Form frm)
  25. {
  26. mainForm = (EcSettlCertMainForm)frm;
  27. CheckForIllegalCrossThreadCalls = false;
  28. // 禁用关闭按钮
  29. this.FormBorderStyle = FormBorderStyle.None;
  30. // 隐藏标题栏
  31. this.ControlBox = false;
  32. // 其他可能需要的配置
  33. this.TopLevel = false;
  34. this.Dock = DockStyle.Fill; // 根据需要设置 Dock 属性
  35. }
  36. }
  37. }