/// <summary> /// 本UC加载事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ucReprintDateControl_Load(object sender, System.EventArgs e) { if (this.DesignMode) { return; } // 设置截止时间为当前服务器时间 Neusoft.HISFC.BizLogic.Manager.Department dept = new Neusoft.HISFC.BizLogic.Manager.Department(); this.dtpDateFrom.Value = dept.GetDateTimeFromSysDateTime(); this.dtpDateTo.Value = dept.GetDateTimeFromSysDateTime(); }
private void ucMetOpdOper_Load(object sender, EventArgs e) { DateTime nowTime = manager.GetDateTimeFromSysDateTime(); this.dtpBeginTime.Value = new DateTime(nowTime.Year, nowTime.Month, nowTime.Day, 00, 00, 00); this.dtpEndTime.Value = new DateTime(nowTime.Year, nowTime.Month, nowTime.Day, 23, 59, 59); }
protected override void OnLoad(EventArgs e) { if (!DesignMode) { DateTime now = deptManager.GetDateTimeFromSysDateTime(); //this.dtpBeginTime.Value = now; this.dtpBeginTime.Value = new DateTime(now.Year, now.Month, now.Day, 0, 0, 0); this.dtpEndTime.Value = new DateTime(now.Year, now.Month, now.Day, 23, 59, 59); } //科室 ArrayList list = new ArrayList(); Neusoft.FrameWork.Models.NeuObject obj = new Neusoft.FrameWork.Models.NeuObject(); obj.ID = "ALL"; obj.Name = "全部"; alDept.Add(obj); list = deptManager.GetDeptment(Neusoft.HISFC.Models.Base.EnumDepartmentType.I); alDept.AddRange(list); cmbDept.AddItems(alDept); cmbDept.SelectedIndex = 0; // base.OnLoad(e); }
protected override void OnLoad(EventArgs e) { ArrayList list = new ArrayList(); Neusoft.FrameWork.Models.NeuObject obj = null; obj = new Neusoft.FrameWork.Models.NeuObject(); obj.ID = "1"; obj.Name = "门诊"; list.Add(obj); obj = new Neusoft.FrameWork.Models.NeuObject(); obj.ID = "2"; obj.Name = "住院"; list.Add(obj); this.neuDept.AddItems(list); this.beginTime = new DateTime(manger.GetDateTimeFromSysDateTime().Year, manger.GetDateTimeFromSysDateTime().Month, manger.GetDateTimeFromSysDateTime().Day, 0, 0, 0); this.endTime = this.beginTime.AddDays(-1); base.OnLoad(e); }
/// <summary> /// 初始化 /// </summary> /// <returns></returns> protected int Init() { Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList alDept = deptManager.GetDeptmentAll(); ArrayList alStockDept = new ArrayList(); foreach (Neusoft.HISFC.Models.Base.Department dept in alDept) { if (dept.DeptType.ID.ToString() == "PI") { alStockDept.Add(dept); } } this.cmbStockDept.AddItems(alStockDept); this.dtpBeginTime.Value = deptManager.GetDateTimeFromSysDateTime().AddDays(-1); this.dtpEndTime.Value = deptManager.GetDateTimeFromSysDateTime(); return(1); }
private void ucRegInfoQuery_Load(object sender, EventArgs e) { // 科室业务层 Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager(); // 医生业务层 Neusoft.HISFC.BizLogic.Manager.UserManager userFunction = new Neusoft.HISFC.BizLogic.Manager.UserManager(); // 常数业务层 Neusoft.HISFC.BizLogic.Manager.Constant constFunction = new Neusoft.HISFC.BizLogic.Manager.Constant(); Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm("正在初始化信息..."); Application.DoEvents(); // 设置挂号信息FarPoint页自动排序 this.SheetRegistRecord.SetColumnAllowAutoSort(-1, true); // 初始化科室 this.alDepartment = manager.QueryRegDepartment(); // 初始化医生 this.alEmployee = manager.QueryEmployee(Neusoft.HISFC.Models.Base.EnumEmployeeType.D); // 初始化合同单位 this.alPact = constFunction.GetAllList("PACTUNIT"); // 设置起始时间和截止时间 this.dateTimePickerRegisteTo.Value = departmentFunction.GetDateTimeFromSysDateTime(); this.dateTimePickerRegisteFrom.Value = new DateTime(this.dateTimePickerRegisteTo.Value.Year, this.dateTimePickerRegisteTo.Value.Month, this.dateTimePickerRegisteTo.Value.Day, 0, 0, 0); // 设置焦点到条件输入框 this.textBoxPatientCondition.Focus(); if (this.Parent.GetType() == typeof(TabPage)) { TabControl tabControl = this.Parent.Parent as TabControl; foreach (TabPage page in tabControl.TabPages) { tabControl.SelectTab(page); } tabControl.SelectTab(0); } Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm(); }
/// <summary> /// 初始化 /// </summary> private int Init() { Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm("正在加载查询数据 请稍候"); Application.DoEvents(); Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); Neusoft.HISFC.BizLogic.Manager.Person personManager = new Neusoft.HISFC.BizLogic.Manager.Person(); DateTime sysTime = deptManager.GetDateTimeFromSysDateTime(); this.dtBegin.Value = sysTime.Date.AddDays(-1); this.dtEnd.Value = sysTime; ArrayList al = deptManager.GetDeptmentAll(); if (al == null) { Function.ShowMsg("加载科室列表失败" + deptManager.Err); return(-1); } foreach (Neusoft.HISFC.Models.Base.Department info in al) { if (info.DeptType.ID.ToString() == "P") { this.deptData.Add(info); } } this.personData = personManager.GetEmployeeAll(); if (this.personData == null) { Function.ShowMsg("加载人员列表失败" + personManager.Err); return(-1); } this.privDept = ((Neusoft.HISFC.Models.Base.Employee)deptManager.Operator).Dept; this.privOper = deptManager.Operator; Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm(); return(1); }
/// <summary> /// 初始化 /// </summary> public virtual void Init() { try { this.ImageList = this.deptImageList; Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList alDept = deptManager.GetDeptmentAll(); if (alDept == null) { MessageBox.Show("加载科室列表发生错误" + deptManager.Err); } objHelper.ArrayObject = alDept; this.sysDate = deptManager.GetDateTimeFromSysDateTime().Date; this.InitControlParam(); } catch (Exception ex) { MessageBox.Show("树型通知列表初始化发生错误" + ex.Message); } }
protected override void OnLoad(EventArgs e) { //设置时间范围 DateTime now = deptManager.GetDateTimeFromSysDateTime(); neuDateTimePicker1.Text = now.Date.ToString(); //科室 ArrayList list = new ArrayList(); Neusoft.FrameWork.Models.NeuObject obj = new Neusoft.FrameWork.Models.NeuObject(); obj.ID = "ALL"; obj.Name = "全部"; alDept.Add(obj); list = deptManager.GetDeptment(Neusoft.HISFC.Models.Base.EnumDepartmentType.I); alDept.AddRange(list); cmbDept.AddItems(alDept); cmbDept.SelectedIndex = 0; // base.OnLoad(e); }