ConditionsInquiry.cs 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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.Windows.Forms;
  9. namespace LYFZ.Software.MainBusiness.HospitalTrackingSystem
  10. {
  11. public partial class ConditionsInquiry : LYFZ.Software.UI.HospitalTrackingSystem.ConditionsInquiry
  12. {
  13. public ConditionsInquiry()
  14. {
  15. this.Shown += ConditionsInquiry_Shown;
  16. this.buttonEx1.Click += buttonEx1_Click;
  17. this.buttonEx2.Click += buttonEx2_Click;
  18. }
  19. /// <summary>
  20. /// 是否保存
  21. /// </summary>
  22. public bool IsSaveed = false;
  23. /// <summary>
  24. /// 返回的参数
  25. /// </summary>
  26. public Dictionary<string, string> DictDataArray = new Dictionary<string, string>();
  27. /// <summary>
  28. /// 窗体加载事件
  29. /// </summary>
  30. /// <param name="sender"></param>
  31. /// <param name="e"></param>
  32. void ConditionsInquiry_Shown(object sender, EventArgs e)
  33. {
  34. LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_DepartmentAndEmployee(this.cmbtreevRetail);
  35. LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_SystemCategory("AAAAAAL", this.cmbtreevClientClass);
  36. LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_SystemCategory("AAAAAAC", this.cmbtreevRegion);
  37. LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_SystemCategory("AAAAAAM", this.cmbtreevSpecies);
  38. LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_SystemCategory("AAAAAAO", this.cmbtreevIntent);
  39. LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_SystemCategory("AAAAAAK", this.cmbtreevHospital);
  40. LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_DepartmentAndEmployee(this.cbxRetail);
  41. LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_DepartmentAndEmployee(this.cbx_GHUser);
  42. TreeNode root = null;
  43. root = new TreeNode();
  44. root.Text = "OK";
  45. root.Tag = "1";
  46. this.cmbtreevSendStatus.Nodes.Add(root);
  47. root = new TreeNode();
  48. root.Text = "部分OK";
  49. root.Tag = "2";
  50. this.cmbtreevSendStatus.Nodes.Add(root);
  51. root = new TreeNode();
  52. root.Text = "未发";
  53. root.Tag = "0";
  54. this.cmbtreevSendStatus.Nodes.Add(root);
  55. root = new TreeNode();
  56. root.Text = "OK";
  57. root.Tag = "1";
  58. this.cmbtreevCompleteStatus.Nodes.Add(root);
  59. root = new TreeNode();
  60. root.Text = "部分OK";
  61. root.Tag = "2";
  62. this.cmbtreevCompleteStatus.Nodes.Add(root);
  63. root = new TreeNode();
  64. root.Text = "未完";
  65. root.Tag = "0";
  66. this.cmbtreevCompleteStatus.Nodes.Add(root);
  67. root = new TreeNode();
  68. root.Text = "OK";
  69. root.Tag = "1";
  70. this.cmbtreevPickupStatus.Nodes.Add(root);
  71. root = new TreeNode();
  72. root.Text = "部分OK";
  73. root.Tag = "2";
  74. this.cmbtreevPickupStatus.Nodes.Add(root);
  75. root = new TreeNode();
  76. root.Text = "未取";
  77. root.Tag = "0";
  78. this.cmbtreevPickupStatus.Nodes.Add(root);
  79. }
  80. /// <summary>
  81. /// 保存
  82. /// </summary>
  83. /// <param name="sender"></param>
  84. /// <param name="e"></param>
  85. void buttonEx1_Click(object sender, EventArgs e)
  86. {
  87. this.DictDataArray["StrClientName"] = this.txtClientName.Text.Trim();
  88. this.DictDataArray["StrClientPhone"] = this.txtClientPhone.Text.Trim();
  89. this.DictDataArray["StrOrderNumber"] = this.txtOrderNumber.Text.Trim();
  90. this.DictDataArray["StrClientClass"] = this.cmbtreevClientClass.Text.Trim();
  91. this.DictDataArray["StrIntent"] = this.cmbtreevIntent.Text.Trim();
  92. this.DictDataArray["StrSpecies"] = this.cmbtreevSpecies.Text.Trim();
  93. this.DictDataArray["StrHospital"] = this.cmbtreevHospital.Text.Trim();
  94. this.DictDataArray["StrRetail"] = this.cmbtreevRetail.Text.Trim();
  95. this.DictDataArray["StrRegion"] = this.cmbtreevRegion.Text.Trim();
  96. this.DictDataArray["StrAddress"] = this.txtAddress.Text.Trim();
  97. this.DictDataArray["StrCreateStart"] = this.dtpCreateStart.DateValue.Trim();
  98. this.DictDataArray["StrCreateEnd"] = this.dtpCreateEnd.DateValue.Trim();
  99. this.DictDataArray["StrBornInStart"] = this.dtpBornInStart.DateValue.Trim();
  100. this.DictDataArray["StrBornInEnd"] = this.dtpBornInEnd.DateValue.Trim();
  101. this.DictDataArray["StrBirthdayStart"] = this.dtpBirthdayStart.DateValue.Trim();
  102. this.DictDataArray["StrBirthdayEnd"] = this.dtpBirthdayEnd.DateValue.Trim();
  103. #region 上门时间
  104. this.DictDataArray["StrGHStartTime"] = this.dtp_GHStartTime.DateValue.Trim();
  105. this.DictDataArray["StrGHEndTime"] = this.dtp_GHEndTime.DateValue.Trim();
  106. #endregion
  107. #region 上门人员
  108. this.DictDataArray["StrGHUser"] = this.cbx_GHUser.Text.Trim();
  109. #endregion
  110. this.DictDataArray["StrSendStatus"] = this.cmbtreevSendStatus.Text.Trim();
  111. this.DictDataArray["StrCompleteStatus"] = this.cmbtreevCompleteStatus.Text.Trim();
  112. this.DictDataArray["StrPickupStatus"] = this.cmbtreevPickupStatus.Text.Trim();
  113. #region 沟通人员或叫通话人员;
  114. this.DictDataArray["strCommunicationPersonnel"] = this.cbxRetail.Text.Trim();
  115. #endregion
  116. this.IsSaveed = true;
  117. this.Close();
  118. }
  119. /// <summary>
  120. /// 关闭窗体
  121. /// </summary>
  122. /// <param name="sender"></param>
  123. /// <param name="e"></param>
  124. void buttonEx2_Click(object sender, EventArgs e)
  125. {
  126. this.Close();
  127. }
  128. }
  129. }