/// <summary> /// 初始化 /// </summary> /// <returns></returns> protected int Init() { #region 获取科室 Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList al = deptManager.GetDeptmentAll(); ArrayList alDept = new ArrayList(); foreach (Neusoft.HISFC.Models.Base.Department info in al) { if (info.DeptType.ID.ToString() == "P" || info.DeptType.ID.ToString() == "PI") { alDept.Add(info); } } this.cmbStoreDept.AddItems(alDept); #endregion this.job = this.jobManager.GetJob(this.monthStoreType); if (this.job == null) { MessageBox.Show(Language.Msg("根据药品月结编码获取药品月结设置失败")); return(-1); } return(1); }
/// <summary> /// 初始化 /// </summary> public void InitCtrl() { this.imageList1.Images.Add(Neusoft.FrameWork.WinForms.Classes.Function.GetImage(Neusoft.FrameWork.WinForms.Classes.EnumImageList.L楼房)); this.imageList1.Images.Add(Neusoft.FrameWork.WinForms.Classes.Function.GetImage(Neusoft.FrameWork.WinForms.Classes.EnumImageList.L楼层)); this.imageList1.Images.Add(Neusoft.FrameWork.WinForms.Classes.Function.GetImage(Neusoft.FrameWork.WinForms.Classes.EnumImageList.F房间)); try { //初始化手术室 ArrayList OpsDept; // = new ArrayList(); OpsDept = dept.GetDeptment("1"); //"1"表示手术类型的科室 foreach (Neusoft.HISFC.Models.Base.Department ThisDept in OpsDept) { ListViewItem DeptItem = new ListViewItem(); DeptItem.Tag = ThisDept.ID.ToString(); DeptItem.Text = ThisDept.Name; DeptItem.ImageIndex = 1; DeptItem.StateImageIndex = 2; this.lvDept.Items.Add(DeptItem); } this.ncbDept.Items.Clear(); this.ncbDept.AddItems(dept.GetDeptmentAll()); } catch {} }
/// <summary> /// 数据初始化 /// </summary> protected void Init() { #region 加载科室 Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList alDept = deptManager.GetDeptmentAll(); if (alDept == null) { MessageBox.Show("获取科室列表出错" + deptManager.Err); return; } this.cmbDept.AddItems(alDept); this.cmbNoticeDept.AddItems(alDept); #endregion #region 加载功能组 Neusoft.HISFC.BizLogic.Manager.SysGroup sysGroupManager = new Neusoft.HISFC.BizLogic.Manager.SysGroup(); //ArrayList alSysGroup = sysGroupManager.GetList(); //if (alSysGroup == null) //{ // MessageBox.Show("获取功能组列表出错" + sysGroupManager.Err); // return; //} //this.cmbSysGroup.AddItems(alSysGroup); #endregion }
/// <summary> /// 初始化 /// </summary> /// <returns>成功返回1 失败返回-1</returns> protected int Init() { #region Sql初始化 this.sqlTotal = @"select t.from_date 起始时间,t.to_date 终止时间, sum(t.last_month_cost) as 上期结存, sum(t.in_cost) as 上期入库, sum(t.out_cost) as 上期出库, sum(t.special_in_cost) as 特殊入库, sum(t.special_out_cost) as 特殊出库, sum(t.check_profit_cost + t.check_loss_cost) as 盘点盈亏, sum(t.adjust_profit_cost + t.adjust_loss_cost) as 调价盈亏, sum(t.current_store_cost) as 本期结存 from pha_com_ms_dept t where t.drug_dept_code = '{0}' and t.from_date > to_date('{1}','yyyy-mm-dd hh24:mi:ss') and t.to_date < to_date('{2}','yyyy-mm-dd hh24:mi:ss') group by t.from_date,t.to_date"; this.sqlDetail = @" select t.trade_name 商品名称,t.specs 规格, t.last_month_cost as 上期结存, t.in_cost as 上期入库, t.out_cost as 上期出库, t.special_in_cost as 特殊入库, t.special_out_cost as 特殊出库, t.check_profit_cost + t.check_loss_cost as 盘点盈亏, t.adjust_profit_cost + t.adjust_loss_cost as 调价盈亏, t.current_store_cost as 本期结存 from pha_com_ms_drug t where t.parent_code = fun_get_parentcode and t.current_code = fun_get_currentcode and t.drug_dept_code = '{0}' and t.from_date >= to_date('{1}','yyyy-mm-dd HH24:mi:ss') and t.to_date <= to_date('{2}','yyyy-mm-dd HH24:mi:ss') "; #endregion #region 获取科室 Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList al = deptManager.GetDeptmentAll(); ArrayList alDept = new ArrayList(); foreach (Neusoft.HISFC.Models.Base.Department info in al) { if (info.DeptType.ID.ToString() == "P" || info.DeptType.ID.ToString() == "PI") { alDept.Add(info); } } this.cmbDept.AddItems(alDept); this.cmbDept.SelectedIndex = 0; #endregion this.fpHead.DefaultStyle.Locked = true; return(1); }
/// <summary> /// 初始化 /// </summary> private void Init() { #region 获取科室 Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList al = deptManager.GetDeptmentAll(); ArrayList alDept = new ArrayList(); foreach (Neusoft.HISFC.Models.Base.Department info in al) { if (info.DeptType.ID.ToString() == "P" || info.DeptType.ID.ToString() == "PI") { alDept.Add(info); } } this.cmbStoreDept.AddItems(alDept); int iIndex = 0; foreach (Neusoft.HISFC.Models.Base.Department dept in alDept) { if (dept.ID == this.privDept.ID) { break; } iIndex++; } this.cmbStoreDept.SelectedIndex = iIndex; #endregion this.GetLastTime(); }
/// <summary> /// 初始化 /// </summary> public override void Init() { base.Init(); FarPoint.Win.Spread.CellType.TextCellType txtType = new FarPoint.Win.Spread.CellType.TextCellType(); base.neuSpread1_Sheet1.Columns[0, neuSpread1_Sheet1.ColumnCount - 1].CellType = txtType; #region 获取入库权限 Neusoft.HISFC.BizLogic.Manager.PowerLevelManager myManager = new Neusoft.HISFC.BizLogic.Manager.PowerLevelManager(); ArrayList inPriv = myManager.LoadLevel3ByLevel2("0510"); ArrayList alPriv = new ArrayList(); Neusoft.FrameWork.Models.NeuObject tempInfo = new Neusoft.FrameWork.Models.NeuObject(); foreach (Neusoft.HISFC.Models.Admin.PowerLevelClass3 info in inPriv) { tempInfo = new Neusoft.FrameWork.Models.NeuObject(); tempInfo.ID = info.Class3Code; tempInfo.Name = info.Class3Name; alPriv.Add(tempInfo); } this.inTypeHelper = new Neusoft.FrameWork.Public.ObjectHelper(alPriv); #endregion #region 获取出库权限 ArrayList outPriv = myManager.LoadLevel3ByLevel2("0520"); ArrayList alOutPriv = new ArrayList(); Neusoft.FrameWork.Models.NeuObject tempOutfo = new Neusoft.FrameWork.Models.NeuObject(); foreach (Neusoft.HISFC.Models.Admin.PowerLevelClass3 info in outPriv) { tempOutfo = new Neusoft.FrameWork.Models.NeuObject(); tempOutfo.ID = info.Class3Code; tempOutfo.Name = info.Class3Name; alOutPriv.Add(tempOutfo); } this.outTypeHelper = new Neusoft.FrameWork.Public.ObjectHelper(alOutPriv); #endregion #region 获取科室 Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList alDept = deptManager.GetDeptmentAll(); if (alDept != null) { this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept); } #endregion #region 获取物资列表 this.GetItemList(); #endregion }
private void frmPageSize_Load(object sender, System.EventArgs e) { Neusoft.HISFC.BizLogic.Manager.Department dept = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList al = dept.GetDeptmentAll(); Neusoft.FrameWork.Models.NeuObject objAll = new Neusoft.FrameWork.Models.NeuObject(); objAll.ID = "ALL"; objAll.Name = "全部"; al.Add(objAll); helper = new Neusoft.FrameWork.Public.ObjectHelper(al); FarPoint.Win.Spread.CellType.ComboBoxCellType c = new FarPoint.Win.Spread.CellType.ComboBoxCellType(); string[] s = new string[al.Count + 1]; int i = 0; foreach (Neusoft.FrameWork.Models.NeuObject obj in al) { s[i] = obj.Name; i++; } s[i] = "ALL"; c.Items = s; this.fpSpread1.Sheets[0].Columns[8].CellType = c; dept = null; this.Retrieve(); //MessageBox.Show(manager.GetPageSize("operation1").Name); }
/// <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> /// <returns>成功返回1 发生错误返回-1</returns> public int Init() { Neusoft.HISFC.BizLogic.Manager.Department deptMgr = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList al = deptMgr.GetDeptmentAll(); if (al == null) { MessageBox.Show(Language.Msg("获取药房列表发生错误" + deptMgr.Err)); return(-1); } ArrayList alDept = new ArrayList(); foreach (Neusoft.HISFC.Models.Base.Department info in al) { if (info.DeptType.ID.ToString() == "P" || info.DeptType.ID.ToString() == "PI") { alDept.Add(info); } } Neusoft.FrameWork.Models.NeuObject deptAll = new Neusoft.FrameWork.Models.NeuObject(); deptAll.ID = "AAAA"; deptAll.Name = "全部"; alDept.Insert(0, deptAll); this.cmbDept.AddItems(alDept); this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept); Neusoft.HISFC.BizLogic.Pharmacy.Item itemMgr = new Neusoft.HISFC.BizLogic.Pharmacy.Item(); List <Neusoft.HISFC.Models.Pharmacy.Item> listDrug = itemMgr.QueryItemAvailableList(true); if (listDrug == null) { MessageBox.Show(Language.Msg("获取药品列表发生错误" + itemMgr.Err)); return(-1); } ArrayList alDrug = new ArrayList(); Neusoft.FrameWork.Models.NeuObject drugInfo = new Neusoft.FrameWork.Models.NeuObject(); foreach (Neusoft.HISFC.Models.Pharmacy.Item info in listDrug) { drugInfo = new Neusoft.FrameWork.Models.NeuObject(); drugInfo.ID = info.ID; drugInfo.Name = info.Name; drugInfo.Memo = info.Specs; drugInfo.User01 = info.MinUnit; alDrug.Add(drugInfo); } this.cmbItem.AddItems(alDrug); this.drugHelpter = new Neusoft.FrameWork.Public.ObjectHelper(alDrug); return(1); }
/// <summary> /// 初始化 /// </summary> public int Init() { Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList alDept = deptManager.GetDeptmentAll(); if (alDept != null) { this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept); } return(1); }
private void Init() { Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); System.Collections.ArrayList alDept = deptManager.GetDeptmentAll(); if (alDept == null) { MessageBox.Show("获取科室列表发生错误"); return; } this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept); }
private void Init() { Neusoft.HISFC.BizLogic.Manager.Constant consManager = new Neusoft.HISFC.BizLogic.Manager.Constant(); ArrayList alUsage = consManager.GetList(Neusoft.HISFC.Models.Base.EnumConstant.USAGE); usageHelper = new Neusoft.FrameWork.Public.ObjectHelper(alUsage); Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList alDept = deptManager.GetDeptmentAll(); deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept); }
public override void Init() { base.Init(); #region 获取入库权限 Neusoft.HISFC.BizLogic.Manager.PowerLevelManager myManager = new Neusoft.HISFC.BizLogic.Manager.PowerLevelManager(); ArrayList inPriv = myManager.LoadLevel3ByLevel2("0310"); ArrayList alPriv = new ArrayList(); Neusoft.FrameWork.Models.NeuObject tempInfo = new Neusoft.FrameWork.Models.NeuObject(); foreach (Neusoft.HISFC.Models.Admin.PowerLevelClass3 info in inPriv) { tempInfo = new Neusoft.FrameWork.Models.NeuObject(); tempInfo.ID = info.Class3Code; tempInfo.Name = info.Class3Name; alPriv.Add(tempInfo); } this.inTypeHelper = new Neusoft.FrameWork.Public.ObjectHelper(alPriv); #endregion #region 获取出库权限 ArrayList outPriv = myManager.LoadLevel3ByLevel2("0320"); ArrayList alOutPriv = new ArrayList(); Neusoft.FrameWork.Models.NeuObject tempOutfo = new Neusoft.FrameWork.Models.NeuObject(); foreach (Neusoft.HISFC.Models.Admin.PowerLevelClass3 info in outPriv) { tempOutfo = new Neusoft.FrameWork.Models.NeuObject(); tempOutfo.ID = info.Class3Code; tempOutfo.Name = info.Class3Name; alOutPriv.Add(tempOutfo); } this.outTypeHelper = new Neusoft.FrameWork.Public.ObjectHelper(alOutPriv); #endregion #region 获取科室 Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList alDept = deptManager.GetDeptmentAll(); if (alDept != null) { this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept); } #endregion }
private void InitCboRecipeDept() { Neusoft.FrameWork.Models.NeuObject obj1 = new Neusoft.FrameWork.Models.NeuObject(); obj1.ID = "ALL"; obj1.Name = "全部"; alDept.Add(obj1); alDept1 = deptManager.GetDeptmentAll(); alDept.AddRange(alDept1); this.cboRecipeDept.AddItems(alDept); if (this.cboRecipeDept.Items.Count > 0) { this.cboRecipeDept.SelectedIndex = 0; } }
/// <summary> /// 科室人员列表 /// </summary> private void LoadDeptEmpl() { ArrayList depts = departmentManager.GetDeptmentAll(); DataSet deptAll = new DataSet(); DataTable dept = new DataTable("dept"); DataColumn[] colDept = { new DataColumn("科室编码"), new DataColumn("科室名称"), new DataColumn("人员代码"), new DataColumn("人员姓名"), new DataColumn("性别"), new DataColumn("人员类型"), new DataColumn("所属护士站") }; dept.Columns.AddRange(colDept); dept.Rows.Clear(); ArrayList al = personManager.GetEmployeeAll(); if (al == null) { return; } Neusoft.FrameWork.Public.ObjectHelper helper = new Neusoft.FrameWork.Public.ObjectHelper(depts); foreach (Neusoft.HISFC.Models.Base.Employee pInfo in al) { DataRow row = dept.NewRow(); row["科室编码"] = pInfo.Dept.ID; row["科室名称"] = helper.GetName(pInfo.Dept.ID); row["人员代码"] = pInfo.ID; row["人员姓名"] = pInfo.Name; row["性别"] = pInfo.Sex.Name; row["人员类型"] = pInfo.EmployeeType.Name; if (pInfo.Nurse.ID != "" || deptsCache.Contains(pInfo.Nurse.ID)) { row["所属护士站"] = deptsCache[pInfo.Nurse.ID].ToString(); } else { row["所属护士站"] = ""; } dept.Rows.Add(row); } this.neuSpread1_Sheet1.DataSource = dept; this.SetColumn("deptEmpl"); }
/// <summary> /// 初始化 /// </summary> /// <returns></returns> public int Init() { Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList alDpet = deptManager.GetDeptmentAll(); this.cmbDept.AddItems(alDpet); Neusoft.HISFC.BizLogic.Manager.Person personManager = new Neusoft.HISFC.BizLogic.Manager.Person(); ArrayList alPerson = personManager.GetEmployeeAll(); this.cmbDoc.AddItems(alPerson); this.InitDataTable(); return(1); }
/// <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 virtual void Init() { if (deptHelper == null) { Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList al = deptManager.GetDeptmentAll(); if (al == null) { MessageBox.Show(Language.Msg("获取科室列表发生错误") + deptManager.Err); return; } this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(); } this.InitControlParam(); }
/// <summary> /// 获取所有执行科室 /// </summary> private void FillExecDept() { Neusoft.HISFC.BizLogic.Manager.Department dept = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList alExecDept = dept.GetDeptmentAll(); if (alExecDept == null) { return; } for (int i = 0, j = alExecDept.Count; i < j; i++) { this.htExecDept.Add(((Neusoft.FrameWork.Models.NeuObject)alExecDept[i]).ID, ((Neusoft.FrameWork.Models.NeuObject)alExecDept[i]).Name); } this.cbExecDept.AddItems(alExecDept); }
/// <summary> /// 初始化 /// </summary> /// <returns>成功返回1 发生错误返回-1</returns> public int Init() { Neusoft.HISFC.BizLogic.Manager.Department deptMgr = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList al = deptMgr.GetDeptmentAll(); if (al == null) { MessageBox.Show("获取库房列表发生错误" + deptMgr.Err); return(-1); } ArrayList alDept = new ArrayList(); foreach (Neusoft.HISFC.Models.Base.Department info in al) { if (info.DeptType.ID.ToString() == "P" || info.DeptType.ID.ToString() == "PI") { alDept.Add(info); } } Neusoft.FrameWork.Models.NeuObject deptAll = new Neusoft.FrameWork.Models.NeuObject(); deptAll.ID = "AAAA"; deptAll.Name = "全部"; alDept.Insert(0, deptAll); this.cmbDept.AddItems(alDept); this.deptHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDept); Neusoft.HISFC.BizLogic.Material.MetItem itemManager = new Neusoft.HISFC.BizLogic.Material.MetItem(); Neusoft.HISFC.Models.Material.MaterialItem listItem = itemManager.GetMetItemByValid("1"); if (listItem == null) { MessageBox.Show("获取物品列表发生错误" + itemManager.Err); return(-1); } ArrayList alItem = new ArrayList(); alItem.Add(listItem); this.cmbItem.AddItems(alItem); this.itemHelper = new Neusoft.FrameWork.Public.ObjectHelper(alItem); 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(Language.Msg("加载科室列表发生错误" + deptManager.Err)); } objHelper.ArrayObject = alDept; } catch (Exception ex) { MessageBox.Show(Language.Msg("树型通知列表初始化发生错误" + ex.Message)); } }
/// <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); }
/// <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> /// <returns></returns> private int Init() { //药品列表加载 this.ucDrugList1.ShowInfoList("Pharmacy.Item.SpeDrug", new string[] { "SPELL_CODE", "WB_CODE", "TRADE_NAME", "CUSTOM_CODE" }); this.ucDrugList1.SetFormat(new string[] { "编码", "商品名称", "规格", "拼音码", "五笔码", "自定义码" }, new int[] { 100, 120, 100, 60, 60, 60 }, new bool[] { false, true, true, false, false, false, false, false, false, false }); Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); this.alDpet = deptManager.GetDeptmentAll(); if (this.alDpet == null) { MessageBox.Show(Language.Msg("科室列表加载失败") + deptManager.Err); return(-1); } Neusoft.HISFC.BizLogic.Manager.Person personManager = new Neusoft.HISFC.BizLogic.Manager.Person(); this.alPerson = personManager.GetEmployeeAll(); if (this.alPerson == null) { MessageBox.Show(Language.Msg("人员列表加载失败") + personManager.Err); return(-1); } this.SetItemListWidth(3); #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 return(1); }
/// <summary> /// 数据初始化 /// </summary> protected void Init() { Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm("正在加载基础查询数据 请稍候..."); Application.DoEvents(); Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); System.Collections.ArrayList alDept = deptManager.GetDeptmentAll(); if (alDept == null) { Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm(); MessageBox.Show("加载科室列表失败"); return; } System.Collections.ArrayList alData = new System.Collections.ArrayList(); foreach (Neusoft.HISFC.Models.Base.Department info in alDept) { if (info.DeptType.ID.ToString() == "P" || info.DeptType.ID.ToString() == "PI") { alData.Add(info); } } this.InitItemData(0, Neusoft.HISFC.Components.Pharmacy.Report.CustomItemTypeEnum.Custom, "查询药品:", alData); if (this.isShowDrug) { this.InitItemData(1, Neusoft.HISFC.Components.Pharmacy.Report.CustomItemTypeEnum.Drug, "", null); this.ckSingle.Visible = true; } else { this.ckSingle.Visible = false; } Neusoft.HISFC.BizLogic.Manager.Person personManager = new Neusoft.HISFC.BizLogic.Manager.Person(); System.Collections.ArrayList alPerson = personManager.GetEmployeeAll(); this.personHelper = new Neusoft.FrameWork.Public.ObjectHelper(alPerson); Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm(); }
/// <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); }
/// <summary> /// 窗口初始化 /// </summary> private void Init() { //取全院科室列表,用于将编码转换为名称 Neusoft.HISFC.BizLogic.Manager.Department dept = new Neusoft.HISFC.BizLogic.Manager.Department(); objHelper.ArrayObject = dept.GetDeptmentAll(); //取人员类型 myEmplType = ((Neusoft.HISFC.Models.Base.Employee) this.personManager.Operator).EmployeeType.ID.ToString(); //根据人员类型,取科室或者病区 if (this.myEmplType == "N") { this.myDept = ((Neusoft.HISFC.Models.Base.Employee) this.personManager.Operator).Nurse; } else { this.myDept = ((Neusoft.HISFC.Models.Base.Employee) this.personManager.Operator).Dept; } //显示人员列表 this.ShowEmployee(); }
/// <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); } }
/// <summary> /// 初始化 /// </summary> private void Init() { #region 执行Sql this.sqlInterval = @"select t.from_date,t.to_date from pha_com_ms_dept t where t.drug_dept_code = '{0}' order by t.oper_date desc "; this.sqlTotal = @" select decode(t.drug_type,'P','西药','Z','中成药','C','中草药') as 科目, sum(t.last_month_cost) as 上期结存, sum(t.in_cost + t.special_in_cost) as 上期入库, sum(t.out_cost + t.special_out_cost) as 上期出库, --sum(t.special_in_cost) as 特殊入库, --sum(t.special_out_cost) as 特殊出库, --sum(t.check_profit_cost + t.check_loss_cost) as 盘点盈亏, sum(t.adjust_profit_cost + t.adjust_loss_cost) as 调价盈亏, sum(t.current_store_cost) as 本期结存 from pha_com_ms_drug t where t.drug_dept_code = '{0}' and t.from_date >= to_date('{1}','yyyy-mm-dd HH24:mi:ss') and t.to_date <= to_date('{2}','yyyy-mm-dd HH24:mi:ss') group by decode(t.drug_type,'P','西药','Z','中成药','C','中草药') "; this.sqlDetail = @" select t.trade_name 商品名称,t.specs 规格, t.last_month_cost as 上期结存, t.in_cost + t.special_in_cost as 上期入库, t.out_cost + t.special_out_cost as 上期出库, --t.special_in_cost as 特殊入库, --t.special_out_cost as 特殊出库, --t.check_profit_cost + t.check_loss_cost as 盘点盈亏, t.adjust_profit_cost + t.adjust_loss_cost as 调价盈亏, t.current_store_cost as 本期结存 from pha_com_ms_drug t where t.drug_dept_code = '{0}' and t.from_date >= to_date('{1}','yyyy-mm-dd HH24:mi:ss') and t.to_date <= to_date('{2}','yyyy-mm-dd HH24:mi:ss') "; #endregion #region 获取科室 Neusoft.HISFC.BizLogic.Manager.Department deptManager = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList al = deptManager.GetDeptmentAll(); ArrayList alDept = new ArrayList(); foreach (Neusoft.HISFC.Models.Base.Department info in al) { if (info.DeptType.ID.ToString() == "P" || info.DeptType.ID.ToString() == "PI") { alDept.Add(info); } } this.cmbDept.AddItems(alDept); this.cmbDept.SelectedIndex = 0; #endregion this.fpHead.DefaultStyle.Locked = true; this.QueryStoreInterval(); }
protected override void OnLoad(EventArgs e) { Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm("正在加载数据 请稍候..."); Application.DoEvents(); Neusoft.HISFC.BizLogic.Pharmacy.Item itemManagment = new Neusoft.HISFC.BizLogic.Pharmacy.Item(); List <Neusoft.HISFC.Models.Pharmacy.Item> itemDictionary = itemManagment.QueryItemAvailableList(); //sdh 20190107 显示通用名 foreach (Neusoft.HISFC.Models.Pharmacy.Item it1 in itemDictionary) { it1.Name = it1.NameCollection.RegularName; it1.Memo = it1.Specs; it1.SpellCode = it1.NameCollection.RegularSpell.SpellCode; it1.WBCode = it1.NameCollection.RegularSpell.WBCode; it1.UserCode = it1.NameCollection.RegularSpell.UserCode; } if (itemDictionary == null) { MessageBox.Show("加载药品列表发生错误" + itemManagment.Err); return; } //this.cmbDrug.AddItems(new System.Collections.ArrayList(itemDictionary.ToArray())); foreach (Neusoft.HISFC.Models.Pharmacy.Item info in itemDictionary) { this.hsDrug.Add(info.ID, info); } this.ucDrugList1.ShowPharmacyList(); //this.ucDrugList1.ShowPharmacyList(false); 是否显示协定处方 this.ucDrugList1.SetFormat(null, new int[] { 10, 170, 90, 20, 60, 170, 90, 20, 20, 20, 20, 170 }, null); this.ucDrugList1.ChooseDataEvent += new Neusoft.HISFC.Components.Common.Controls.ucDrugList.ChooseDataHandler(ucDrugList1_ChooseDataEvent); Neusoft.HISFC.BizLogic.Pharmacy.Constant phaCons = new Neusoft.HISFC.BizLogic.Pharmacy.Constant(); ArrayList alProduce = phaCons.QueryCompany("0"); if (alProduce == null) { MessageBox.Show("加载生产厂家列表发生错误" + phaCons.Err); return; } foreach (Neusoft.HISFC.Models.Pharmacy.Company compyInfo in alProduce) { this.hsProduce.Add(compyInfo.ID, compyInfo.Name); } Neusoft.HISFC.BizLogic.Manager.Department deptManagment = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList alDept = deptManagment.GetDeptmentAll(); if (alDept == null) { MessageBox.Show("加载科室列表发生错误" + phaCons.Err); return; } foreach (Neusoft.HISFC.Models.Base.Department deptInfo in alDept) { this.hsDept.Add(deptInfo.ID, deptInfo.Name); } Neusoft.HISFC.BizLogic.Manager.Constant consManagment = new Neusoft.HISFC.BizLogic.Manager.Constant(); ArrayList alDosage = consManagment.GetList("DOSAGEFORM"); if (alDosage == null) { MessageBox.Show("加载剂型列表发生错误" + consManagment.Err); return; } this.dosageHelper = new Neusoft.FrameWork.Public.ObjectHelper(alDosage); Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm(); base.OnLoad(e); }