123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace LYFZ.Software.MainBusiness.HospitalTrackingSystem
- {
- public partial class ConditionsInquiry : LYFZ.Software.UI.HospitalTrackingSystem.ConditionsInquiry
- {
- public ConditionsInquiry()
- {
- this.Shown += ConditionsInquiry_Shown;
- this.buttonEx1.Click += buttonEx1_Click;
- this.buttonEx2.Click += buttonEx2_Click;
- }
- /// <summary>
- /// 是否保存
- /// </summary>
- public bool IsSaveed = false;
- /// <summary>
- /// 返回的参数
- /// </summary>
- public Dictionary<string, string> DictDataArray = new Dictionary<string, string>();
- /// <summary>
- /// 窗体加载事件
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void ConditionsInquiry_Shown(object sender, EventArgs e)
- {
- LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_DepartmentAndEmployee(this.cmbtreevRetail);
- LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_SystemCategory("AAAAAAL", this.cmbtreevClientClass);
- LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_SystemCategory("AAAAAAC", this.cmbtreevRegion);
- LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_SystemCategory("AAAAAAM", this.cmbtreevSpecies);
- LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_SystemCategory("AAAAAAO", this.cmbtreevIntent);
- LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_SystemCategory("AAAAAAK", this.cmbtreevHospital);
- LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_DepartmentAndEmployee(this.cbxRetail);
- LYFZ.Software.MainBusiness.DoorCityProcess.PublicCodeClasses.BindComboBoxTreeView_DepartmentAndEmployee(this.cbx_GHUser);
- TreeNode root = null;
- root = new TreeNode();
- root.Text = "OK";
- root.Tag = "1";
- this.cmbtreevSendStatus.Nodes.Add(root);
- root = new TreeNode();
- root.Text = "部分OK";
- root.Tag = "2";
- this.cmbtreevSendStatus.Nodes.Add(root);
- root = new TreeNode();
- root.Text = "未发";
- root.Tag = "0";
- this.cmbtreevSendStatus.Nodes.Add(root);
- root = new TreeNode();
- root.Text = "OK";
- root.Tag = "1";
- this.cmbtreevCompleteStatus.Nodes.Add(root);
- root = new TreeNode();
- root.Text = "部分OK";
- root.Tag = "2";
- this.cmbtreevCompleteStatus.Nodes.Add(root);
- root = new TreeNode();
- root.Text = "未完";
- root.Tag = "0";
- this.cmbtreevCompleteStatus.Nodes.Add(root);
- root = new TreeNode();
- root.Text = "OK";
- root.Tag = "1";
- this.cmbtreevPickupStatus.Nodes.Add(root);
- root = new TreeNode();
- root.Text = "部分OK";
- root.Tag = "2";
- this.cmbtreevPickupStatus.Nodes.Add(root);
- root = new TreeNode();
- root.Text = "未取";
- root.Tag = "0";
- this.cmbtreevPickupStatus.Nodes.Add(root);
- }
- /// <summary>
- /// 保存
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void buttonEx1_Click(object sender, EventArgs e)
- {
- this.DictDataArray["StrClientName"] = this.txtClientName.Text.Trim();
- this.DictDataArray["StrClientPhone"] = this.txtClientPhone.Text.Trim();
- this.DictDataArray["StrOrderNumber"] = this.txtOrderNumber.Text.Trim();
- this.DictDataArray["StrClientClass"] = this.cmbtreevClientClass.Text.Trim();
- this.DictDataArray["StrIntent"] = this.cmbtreevIntent.Text.Trim();
- this.DictDataArray["StrSpecies"] = this.cmbtreevSpecies.Text.Trim();
- this.DictDataArray["StrHospital"] = this.cmbtreevHospital.Text.Trim();
- this.DictDataArray["StrRetail"] = this.cmbtreevRetail.Text.Trim();
- this.DictDataArray["StrRegion"] = this.cmbtreevRegion.Text.Trim();
- this.DictDataArray["StrAddress"] = this.txtAddress.Text.Trim();
- this.DictDataArray["StrCreateStart"] = this.dtpCreateStart.DateValue.Trim();
- this.DictDataArray["StrCreateEnd"] = this.dtpCreateEnd.DateValue.Trim();
- this.DictDataArray["StrBornInStart"] = this.dtpBornInStart.DateValue.Trim();
- this.DictDataArray["StrBornInEnd"] = this.dtpBornInEnd.DateValue.Trim();
- this.DictDataArray["StrBirthdayStart"] = this.dtpBirthdayStart.DateValue.Trim();
- this.DictDataArray["StrBirthdayEnd"] = this.dtpBirthdayEnd.DateValue.Trim();
- #region 上门时间
- this.DictDataArray["StrGHStartTime"] = this.dtp_GHStartTime.DateValue.Trim();
- this.DictDataArray["StrGHEndTime"] = this.dtp_GHEndTime.DateValue.Trim();
- #endregion
- #region 上门人员
- this.DictDataArray["StrGHUser"] = this.cbx_GHUser.Text.Trim();
- #endregion
- this.DictDataArray["StrSendStatus"] = this.cmbtreevSendStatus.Text.Trim();
- this.DictDataArray["StrCompleteStatus"] = this.cmbtreevCompleteStatus.Text.Trim();
- this.DictDataArray["StrPickupStatus"] = this.cmbtreevPickupStatus.Text.Trim();
- #region 沟通人员或叫通话人员;
- this.DictDataArray["strCommunicationPersonnel"] = this.cbxRetail.Text.Trim();
- #endregion
- this.IsSaveed = true;
- this.Close();
- }
- /// <summary>
- /// 关闭窗体
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- void buttonEx2_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- }
- }
|