protected override void OnLoad() { this.isAcross = true; this.isSort = false; this.Init(); base.OnLoad(); //野割方象 Neusoft.HISFC.Integrate.Manager manager = new Neusoft.HISFC.Integrate.Manager(); System.Collections.ArrayList constantList = manager.GetDeptmentAllValid(); Neusoft.HISFC.Object.Base.Department top = new Neusoft.HISFC.Object.Base.Department(); top.ID = "0"; top.Name = "畠 何"; top.SpellCode = "QB"; top.WBCode = "WU"; this.neuComboBox1.Items.Add(top); foreach (Neusoft.HISFC.Object.Base.Department con in constantList) { neuComboBox1.Items.Add(con); } this.neuComboBox1.alItems.Add(top); this.neuComboBox1.alItems.AddRange(constantList); if (neuComboBox1.Items.Count > 0) { neuComboBox1.SelectedIndex = 0; deptCode = ((Neusoft.HISFC.Object.Base.Department)neuComboBox1.Items[0]).ID; deptName = ((Neusoft.HISFC.Object.Base.Department)neuComboBox1.Items[0]).Name; } }
/// <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(); }