Esempio n. 1
0
 void UserControl1_Load(object sender, System.EventArgs e)
 {
     Neusoft.HISFC.Management.Manager.Department dd = new Neusoft.HISFC.Management.Manager.Department();
     System.Collections.ArrayList list = dd.GetDeptmentAll();
     this.textBox1.AddItems(list);
     this.textBox1.Location = new System.Drawing.Point((this.Width - 110), (this.Height - 50));
     //textBox1.Location = new Point Location.X - 110;
     //textBox1.Location.Y = Location.Y - 50;
     //textBox1.ListBoxHeight = 100;
     //textBox1.ListBoxWidth = 150;
 }
Esempio n. 2
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void Init()
        {
            // Neusoft.HISFC.Management.Pharmacy.Item itemManager = new Neusoft.HISFC.Management.Pharmacy.Item();
            // List<Neusoft.HISFC.Object.Pharmacy.Item> itemList = itemManager.QueryItemList(true);
            //this.cmbDrug.AddItems(new ArrayList(itemList.ToArray()));


            Neusoft.HISFC.Management.Manager.Department deptManager = new Neusoft.HISFC.Management.Manager.Department();

            ArrayList alDept = deptManager.GetDeptmentAll();

            this.deptHelper = new Neusoft.NFC.Public.ObjectHelper(alDept);

            string operCode = string.Empty;

            Neusoft.NFC.Management.DataBaseManger data = new Neusoft.NFC.Management.DataBaseManger();

            operCode = ((Neusoft.HISFC.Object.Base.Employee)data.Operator).ID;

            //取该操作员所在科室即可
            stroeageCode = ((Neusoft.HISFC.Object.Base.Employee)data.Operator).Dept.ID;

            #region 加载Sql

            //            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";
            //and t.storage_code= '{stroeageCode}'
            this.sql1 = @"
           select s.item_name 物品名称,s.specs 规格,t.store_num 库存,t.price 单价,t.stat_unit 包装单位,t.store_cost 库存金额,t.valid_state 有效标志,s.item_code,s.kind_code,s.spell_code 拼音码,t.place_code
           from  log_mat_baseinfo s,log_mat_stock t
           where t.item_code=s.item_code
            and t.storage_code= '{0}'"
            ;
            this.sql2 = @"
         select s.item_name 物品名称,s.item_code,s.kind_code,s.spell_code 拼音码,s.specs 规格,t.store_num 库存,t.price 单价,t.stat_unit 包装单位,t.store_cost 库存金额,,t.valid_state 有效标志s.item_code,s.kind_code,s.spell_code 拼音码,t.place_code
         from  log_mat_baseinfo s,log_mat_stock t
         where t.item_code=s.item_code
         and t.storage_code= '{0}'
         and t.item_code = '{1}'";

            #endregion

            this.neuSpread1_Sheet1.DefaultStyle.Locked = true;
            //this.neuSpread1_Sheet2.DefaultStyle.Locked = true;
        }
Esempio n. 3
0
 /// <summary>
 /// 设置列下拉列表
 /// </summary>
 private void initList()
 {
     try
     {
         Neusoft.HISFC.Management.Manager.Department dept = new Neusoft.HISFC.Management.Manager.Department();
         this.fpEnter1.SelectNone = true;
         //获取科室
         ArrayList al = dept.GetDeptmentAll();
         this.fpEnter1.SetColumnList(this.fpEnter1_Sheet1, 0, al);
         this.fpEnter1.SetColumnList(this.fpEnter1_Sheet1, 1, al);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Esempio n. 4
0
        /// <summary>
        /// 初始化
        /// </summary>
        public void Init()
        {
            Neusoft.NFC.Management.DataBaseManger dataManager = new DataBaseManger();
            Neusoft.NFC.Object.NeuObject          class2Priv  = new Neusoft.NFC.Object.NeuObject();

            if (this.IOType == "1")
            {
                class2Priv.ID   = "0510";
                class2Priv.Name = "入库申请";
            }
            else
            {
                class2Priv.ID   = "0520";
                class2Priv.Name = "出库申请";
            }

            this.Class2Priv    = class2Priv;
            this.OperInfo      = dataManager.Operator;
            this.OperInfo.Memo = "apply";
            Neusoft.HISFC.Management.Manager.Department managerIntegrate = new Neusoft.HISFC.Management.Manager.Department();
            Neusoft.HISFC.Object.Base.Department        dept             = managerIntegrate.GetDeptmentById(this.DeptInfo.ID);

            if (dept != null)
            {
                this.DeptInfo.Memo = dept.DeptType.ID.ToString();
            }
            if (this.FilePath == "")
            {
                this.FilePath = @"\Setting\MatApplySetting.xml";
            }

            if (this.SetPrivType(true) == -1)
            {
                return;
            }

            this.GetInterface();
        }
Esempio n. 5
0
 private void Form1_Load(object sender, EventArgs e)
 {
     Neusoft.HISFC.Management.Manager.Department dd = new Neusoft.HISFC.Management.Manager.Department();
     System.Collections.ArrayList list = dd.GetDeptmentAll();
     this.textBox1.AddItems(list);
 }