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; } /// /// 是否保存 /// public bool IsSaveed = false; /// /// 返回的参数 /// public Dictionary DictDataArray = new Dictionary(); /// /// 窗体加载事件 /// /// /// 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); } /// /// 保存 /// /// /// 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(); } /// /// 关闭窗体 /// /// /// void buttonEx2_Click(object sender, EventArgs e) { this.Close(); } } }