/// <summary> /// 初始化 /// </summary> private void Init() { Neusoft.HISFC.BizLogic.Pharmacy.Item itemManager = new Neusoft.HISFC.BizLogic.Pharmacy.Item(); List <Neusoft.HISFC.Models.Pharmacy.Item> itemList = itemManager.QueryItemList(true); if (itemList == null) { MessageBox.Show(Language.Msg("基础数据初始化 加载药品列表发生错误") + itemManager.Err); return; } foreach (Neusoft.HISFC.Models.Pharmacy.Item item in itemList) { item.Memo = item.Specs; } this.cmbDrug.AddItems(new ArrayList(itemList.ToArray())); itemList.Clear(); itemList = null; DateTime sysTime = itemManager.GetDateTimeFromSysDateTime(); this.dtEnd.Value = sysTime.AddHours(1); this.dtBegin.Value = sysTime.AddDays(-7); }
protected override void OnLoad() { deptArry = new ArrayList(); deptYKArry = new ArrayList(); deptArry = deptManager.GetDeptment(Neusoft.HISFC.Models.Base.EnumDepartmentType.P); deptYKArry = deptManager.GetDeptment(Neusoft.HISFC.Models.Base.EnumDepartmentType.PI); if (deptYKArry != null) { foreach (Neusoft.HISFC.Models.Base.Department deptObj in deptYKArry) { deptArry.Add(deptYKArry); } } this.cmbDeptName.AddItems(deptArry); drugArry = new ArrayList(); itemList = new List <Neusoft.HISFC.Models.Pharmacy.Item>(); itemList = itemManager.QueryItemList(); if (itemList != null) { foreach (Neusoft.HISFC.Models.Pharmacy.Item itemObj in itemList) { drugArry.Add(itemObj); } this.cmbDrugName.AddItems(drugArry); } base.OnLoad(); }
private void ucPhaOutDetail_Load(object sender, EventArgs e) { Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm("加载数据中,请稍候……"); Application.DoEvents(); this.InitDrugStores(); cmbDrug.AddItems(new ArrayList(itemPhaManager.QueryItemList())); Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm(); }
private void ucPhaInDetail_Load(object sender, EventArgs e) { Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm("加载数据中,请稍候……"); Application.DoEvents(); this.cmbQuality.AddItems(inteManager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.DRUGQUALITY)); this.cmbInDept.AddItems(inteManager.GetDepartment(Neusoft.HISFC.Models.Base.EnumDepartmentType.P)); this.cmbOper.AddItems(inteManager.QueryEmployeeByDeptID(empl.Dept.ID)); this.cmbDrug.AddItems(new ArrayList(itemPhaManager.QueryItemList())); Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm(); }
/// <summary> /// ³õʼ»¯ /// </summary> private void Init() { Neusoft.HISFC.BizLogic.Pharmacy.Item itemManager = new Neusoft.HISFC.BizLogic.Pharmacy.Item(); List <Neusoft.HISFC.Models.Pharmacy.Item> itemList = itemManager.QueryItemList(true); //this.cmbDrug.AddItems(new ArrayList(itemList.ToArray())); Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList alDept = deptManager.GetDeptmentAll(); this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept); #region ¼ÓÔØSql this.sql1 = @" select s.trade_name Ò©Æ·Ãû³Æ,s.specs ¹æ¸ñ, s.pack_unit µ¥Î», s.spell_code Æ´ÒôÂë,s.wb_code Îå±ÊÂë,s.custom_code ×Ô¶¨ÒåÂë, s.DRUG_CODE Ò©Æ·±àÂë, s.valid_state Í£Óà from pha_com_baseinfo s where s.VALID_STATE = '1'"; // this.sql1 = @" //select s.trade_name Ò©Æ·Ãû³Æ,s.specs ¹æ¸ñ,t.drug_dept_code ¿â´æ¿ÆÊÒ, // round(t.store_sum / t.pack_qty,2) ¿â´æÁ¿,s.pack_unit µ¥Î», // s.spell_code Æ´ÒôÂë,s.wb_code Îå±ÊÂë,s.custom_code ×Ô¶¨ÒåÂë, // t.drug_code Ò©Æ·±àÂë,t.drug_dept_code ¿â´æ±àÂë,t.valid_state Í£Óà //from pha_com_stockinfo t,pha_com_baseinfo s //where t.drug_code = s.drug_code"; // this.sql2 = @" //select s.trade_name Ò©Æ·Ãû³Æ,s.specs ¹æ¸ñ,t.drug_dept_code ¿â´æ¿ÆÊÒ, // round(t.store_sum / t.pack_qty,2) ¿â´æÁ¿,s.pack_unit µ¥Î», // s.spell_code Æ´ÒôÂë,s.wb_code Îå±ÊÂë,s.custom_code ×Ô¶¨ÒåÂë, // t.drug_code Ò©Æ·±àÂë,t.drug_dept_code ¿â´æ±àÂë,t.valid_state Í£Óà //from pha_com_stockinfo t,pha_com_baseinfo s //where t.drug_code = '{0}' //and t.drug_code = s.drug_code"; // this.sql3 = @"select t.group_code Åú´Î,t.batch_no ÅúºÅ,s.trade_name Ò©Æ·Ãû³Æ,s.specs ¹æ¸ñ, // round(t.store_sum / t.pack_qty,2) ¿â´æÁ¿,s.pack_unit µ¥Î», // s.spell_code Æ´ÒôÂë,s.wb_code Îå±ÊÂë,s.custom_code ×Ô¶¨ÒåÂë, // t.drug_code Ò©Æ·±àÂë,t.drug_dept_code ¿â´æ±àÂë //from pha_com_storage t,pha_com_baseinfo s //where t.drug_code = '{0}' //and t.drug_dept_code = '{1}' //and t.drug_code = s.drug_code //"; #endregion this.neuSpread1_Sheet1.DefaultStyle.Locked = true; this.neuSpread1_Sheet2.DefaultStyle.Locked = true; }
/// <summary> /// 初始化 /// </summary> private void init() { #region 加载科室下拉框 deptArry = new ArrayList(); deptYKArry = new ArrayList(); deptArry = deptManager.GetDeptment(Neusoft.HISFC.Models.Base.EnumDepartmentType.P); deptYKArry = deptManager.GetDeptment(Neusoft.HISFC.Models.Base.EnumDepartmentType.PI); if (deptYKArry != null) { foreach (Neusoft.HISFC.Models.Base.Department deptObj in deptYKArry) { deptArry.Add(deptYKArry); } } this.cmbDept.AddItems(deptArry); #endregion #region 加载药品性质 constArry = new ArrayList(); constArry = constManager.GetAllList(Neusoft.HISFC.Models.Base.EnumConstant.DRUGQUALITY); this.cmbDrugQuality.AddItems(constArry); #endregion #region 加载药品名称 drugArry = new ArrayList(); itemList = new List <Neusoft.HISFC.Models.Pharmacy.Item>(); itemList = itemManager.QueryItemList(); if (itemList != null) { foreach (Neusoft.HISFC.Models.Pharmacy.Item itemObj in itemList) { drugArry.Add(itemObj); } this.cmbDrug.AddItems(drugArry); } #endregion #region 供货单位 companyArry = new ArrayList(); companyArry = phaConstManager.QueryCompany("1"); if (constArry != null) { this.cmbCompany.AddItems(companyArry); } #endregion }
/// <summary> /// 初始化 /// </summary> /// <returns></returns> private int Init() { Neusoft.HISFC.BizLogic.Pharmacy.Item itemManager = new Neusoft.HISFC.BizLogic.Pharmacy.Item(); List <Neusoft.HISFC.Models.Pharmacy.Item> alList = itemManager.QueryItemList(true); if (alList == null) { MessageBox.Show(Language.Msg("获取药品列表发生错误") + itemManager.Err); return(-1); } foreach (Neusoft.HISFC.Models.Pharmacy.Item item in alList) { item.Memo = item.Specs; } this.alItem = new ArrayList(alList.ToArray()); Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); this.alDept = deptManager.GetDeptmentAll(); if (this.alDept == null) { MessageBox.Show(Language.Msg("获取科室列表发生错误") + deptManager.Err); return(-1); } this.tvDeptList.ImageList = this.tvDeptList.groupImageList; this.parentNode = new TreeNode("基数药病区", 0, 0); this.tvDeptList.Nodes.Add(this.parentNode); #region 屏蔽Fp回车/换行键 FarPoint.Win.Spread.InputMap im; im = this.neuSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused); im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.None); im = this.neuSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused); im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Space, Keys.None), FarPoint.Win.Spread.SpreadActions.None); #endregion this.neuSpread1.EditModeReplace = true; return(1); }
/// <summary> /// 窗体加载事件 /// </summary> protected override void OnLoad() { base.OnLoad(); cmbFeelan.Items.Clear(); cmbDrugList.Items.Clear(); if (this.deptZone1 == DeptZone.ALL) { this.cmbFeelan.Items.Add("门诊"); this.cmbFeelan.Items.Add("住院"); this.cmbFeelan.Items.Add("全院"); this.cmbFeelan.SelectedIndex = 0; } if (this.deptZone1 == DeptZone.MZ) { this.cmbFeelan.Items.Add("门诊"); this.cmbFeelan.SelectedIndex = 0; } if (this.deptZone1 == DeptZone.ZY) { this.cmbFeelan.Items.Add("住院"); this.cmbFeelan.SelectedIndex = 0; } arrDrugList = new ArrayList(); itemList = new List <Neusoft.HISFC.Models.Pharmacy.Item>(); itemObject = new Neusoft.HISFC.Models.Pharmacy.Item(); itemList = itemManager.QueryItemList(); if (itemList != null) { foreach (Neusoft.HISFC.Models.Pharmacy.Item itemObj in itemList) { arrDrugList.Add(itemObj); } this.cmbDrugList.AddItems(arrDrugList); } this.isAcross = true; this.isSort = false; }
/// <summary> /// 初始化 /// </summary> /// <returns></returns> protected int Init() { DataSet ds = new DataSet(); Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); Neusoft.HISFC.BizLogic.Pharmacy.Item phaManager = new Neusoft.HISFC.BizLogic.Pharmacy.Item(); //ArrayList AllNurseCellList = deptManager.GetDeptment(Neusoft.HISFC.Models.Base.EnumDepartmentType.N); ArrayList AllNurseCellList = deptManager.GetDeptmentAll(); ArrayList AllShouShuList = deptManager.GetDeptment(Neusoft.HISFC.Models.Base.EnumDepartmentType.OP); List <Neusoft.HISFC.Models.Pharmacy.Item> ListDrug = phaManager.QueryItemList(); ArrayList AllDrugList = new ArrayList(); Object b = new Object(); for (int i = 0; i < ListDrug.Count; i++) { b = ListDrug[i]; AllDrugList.Insert(0, b); } Neusoft.HISFC.Models.Base.Item allItem = new Neusoft.HISFC.Models.Base.Item(); allItem.ID = "%%"; allItem.Name = "全部"; allItem.SpellCode = "QB"; AllNurseCellList.Insert(0, allItem); AllDrugList.Insert(0, allItem); AllNurseCellList.AddRange(AllShouShuList); this.cmbNurseCellCode.AddItems(AllNurseCellList); this.cmbDrugCode.AddItems(AllDrugList); this.cmbDrugCode.SelectedIndex = 0; this.cmbNurseCellCode.SelectedIndex = 0; //InitFp(); //this.dt_begin_quest.Value = deptManager.GetDateTimeFromSysDateTime().AddDays(-1); //this.dt_begin_send.Value = deptManager.GetDateTimeFromSysDateTime().AddDays(-1); return(1); }
private void ucPhaAdjustPriceByQuality_Load(object sender, EventArgs e) { this.dtpBeginTime.Value = this.dtpBeginTime.Value.Date; this.dtpEndTime.Value = this.dtpEndTime.Value.Date.AddDays(1).AddMilliseconds(-1); Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm("数据加载中,请稍候……"); Application.DoEvents(); cmbQuality.AddItems(inteManager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.DRUGQUALITY)); List <Neusoft.HISFC.Models.Pharmacy.Item> drugList = new List <Neusoft.HISFC.Models.Pharmacy.Item>(); drugList = itemPhaManager.QueryItemList(); if (drugList == null) { MessageBox.Show("初始化药品信息出错!"); Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm(); return; } else { cmbDrug.AddItems(new ArrayList(drugList)); } Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm(); }
/// <summary> /// 设置数据初始化 /// </summary> /// <param name="itemIndex">需设置Item索引 取值范围 0 1 2</param> /// <param name="customItemType">数据类型</param> /// <param name="customTitle">Item标题</param> /// <param name="alCustomData">Item数据</param> /// <returns>成功返回1 失败返回-1</returns> protected virtual int InitItemData(int itemIndex, CustomItemTypeEnum customItemType, string customTitle, ArrayList alCustomData) { ArrayList alData = new ArrayList(); string itemTitle = customTitle; #region 加载基础数据 if (customItemType == CustomItemTypeEnum.Drug) { Neusoft.HISFC.BizLogic.Pharmacy.Item itemManager = new Neusoft.HISFC.BizLogic.Pharmacy.Item(); List <Neusoft.HISFC.Models.Pharmacy.Item> drugList = itemManager.QueryItemList(false); if (drugList == null) { MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("加载药品信息发生错误" + itemManager.Err)); return(-1); } alData = new ArrayList(drugList.ToArray()); itemTitle = "查询药品"; } else if (customItemType == CustomItemTypeEnum.Dept) { Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); alData = deptManager.GetDeptmentAll(); if (alData == null) { MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("加载科室信息发生错误" + deptManager.Err)); return(-1); } itemTitle = "查询科室"; } else if (customItemType == CustomItemTypeEnum.Employee) { Neusoft.HISFC.BizLogic.Manager.Person personManager = new Neusoft.HISFC.BizLogic.Manager.Person(); alData = personManager.GetEmployeeAll(); if (alData == null) { MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("加载人员信息发生错误" + personManager.Err)); return(-1); } itemTitle = "查询人员"; } else { alData = alCustomData; } #endregion switch (itemIndex) { case 0: this.lbItem1.Text = itemTitle; this.cmbItem1.AddItems(alData); this.lbItem1.Visible = true; this.cmbItem1.Visible = true; break; case 1: this.lbItem2.Text = itemTitle; this.cmbItem2.AddItems(alData); this.lbItem2.Visible = true; this.cmbItem2.Visible = true; break; case 2: this.lbItem3.Text = itemTitle; this.cmbItem3.AddItems(alData); this.lbItem3.Visible = true; this.cmbItem3.Visible = true; break; } return(1); }
/// <summary> /// 初始化 /// </summary> private void init() { #region 加载科室 this.cmbDept.Items.Clear(); this.deptArry = new ArrayList(); deptArry = deptManager.GetDeptment(Neusoft.HISFC.Models.Base.EnumDepartmentType.PI);//加载所有的药库科室 if (deptArry != null) { this.cmbDept.AddItems(deptArry); } #endregion #region 加载供货商 this.cmbCompany.Items.Clear(); this.companyArry = new ArrayList(); companyArry = phaConstManager.QueryCompany("1");//加载所有供货公司 if (companyArry != null) { this.cmbCompany.AddItems(companyArry); } #endregion #region 加载药品性质 this.cmbDrugQulity.Items.Clear(); this.drugQulityArry = new ArrayList(); drugQulityArry = constManager.GetAllList(Neusoft.HISFC.Models.Base.EnumConstant.DRUGQUALITY); if (drugQulityArry != null) { this.cmbDrugQulity.AddItems(drugQulityArry); } #endregion #region 加载排序类型 this.cmbSorted.Items.Clear(); //this.cmbSorted.Items.Add("数量"); //this.cmbSorted.Items.Add("购入金额"); //this.cmbSorted.Items.Add("零售金额"); ArrayList al = new ArrayList(); al.Add(new Neusoft.FrameWork.Models.NeuObject("0", "数量", "根据数量排序")); al.Add(new Neusoft.FrameWork.Models.NeuObject("1", "购入金额", "根据购入金额排序")); al.Add(new Neusoft.FrameWork.Models.NeuObject("2", "零售金额", "根据零售金额排序")); this.cmbSorted.AddItems(al); this.cmbSorted.SelectedIndex = 0; #endregion #region 加载药品名称 this.cmbDrug.Items.Clear(); this.drugList.Clear(); this.drugArry = new ArrayList(); this.drugList = phaItemManager.QueryItemList(); if (drugList != null) { foreach (Neusoft.HISFC.Models.Pharmacy.Item itemObj in drugList) { drugArry.Add(itemObj); } this.cmbDrug.AddItems(drugArry); } #endregion }
protected override void OnLoad() { Neusoft.HISFC.BizProcess.Integrate.Manager manager = new Neusoft.HISFC.BizProcess.Integrate.Manager(); //发药人 System.Collections.ArrayList alPersonconstantList = manager.QueryEmployeeAll(); Neusoft.HISFC.Models.Base.Employee allpeo_name = new Neusoft.HISFC.Models.Base.Employee(); allpeo_name.ID = "ALL"; allpeo_name.Name = "全部"; allpeo_name.SpellCode = "QB"; neuComboBox2.Items.Add(allpeo_name); foreach (Neusoft.HISFC.Models.Base.Employee var in alPersonconstantList) { neuComboBox2.Items.Add(var); } alPersonconstantList.Insert(0, allpeo_name); this.neuComboBox2.alItems.AddRange(alPersonconstantList); if (neuComboBox2.Items.Count > 0) { neuComboBox2.SelectedIndex = 0; peo_name_code = ((Neusoft.HISFC.Models.Base.Employee)neuComboBox2.Items[0]).ID; peo_name_name = ((Neusoft.HISFC.Models.Base.Employee)neuComboBox2.Items[0]).Name; } ArrayList list = manager.GetConstantList(Neusoft.HISFC.Models.Base.EnumConstant.DRUGQUALITY); Neusoft.HISFC.Models.Base.Const obj = new Neusoft.HISFC.Models.Base.Const(); obj.ID = "ALL"; obj.Name = "全部"; obj.SpellCode = "QB"; obj.WBCode = "WU"; list.Add(obj); this.neuComboBox1.Items.Add(obj); foreach (Neusoft.HISFC.Models.Base.Const con in list) { neuComboBox1.Items.Add(con); } this.neuComboBox1.alItems.Add(obj); this.neuComboBox1.alItems.AddRange(list); if (neuComboBox1.Items.Count > 0) { neuComboBox1.SelectedIndex = 0; dr_type_code = ((Neusoft.HISFC.Models.Base.Const)neuComboBox1.Items[0]).ID; dr_type_name = ((Neusoft.HISFC.Models.Base.Const)neuComboBox1.Items[0]).Name; } #region 药品名称复值 //list = new ArrayList(); Neusoft.HISFC.BizLogic.Pharmacy.Item phaManager = new Neusoft.HISFC.BizLogic.Pharmacy.Item(); List <Neusoft.HISFC.Models.Pharmacy.Item> ListDrug = phaManager.QueryItemList(); //Object b = new Object(); for (int i = 0; i < ListDrug.Count; i++) { //b = ListDrug[i]; //AllDrugList.Insert(0, b); neuComboBox3.Items.Add(ListDrug[i]); } Neusoft.HISFC.Models.Pharmacy.Item obj2 = new Neusoft.HISFC.Models.Pharmacy.Item(); obj2.ID = "ALL"; obj2.Name = "全部"; neuComboBox3.Items.Insert(0, obj2); neuComboBox3.alItems.Add(obj2); neuComboBox3.alItems.AddRange(ListDrug); if (neuComboBox3.Items.Count > 0) { neuComboBox3.SelectedIndex = 0; tra_name = ((Neusoft.HISFC.Models.Pharmacy.Item)neuComboBox3.Items[0]).Name; tra_code = ((Neusoft.HISFC.Models.Pharmacy.Item)neuComboBox3.Items[0]).ID; } #endregion }