public int ShowInList() { try { if (this.ucListSelect == null) { this.ucListSelect = new ucPhaListSelect(); } this.ucListSelect.Init(); this.ucListSelect.DeptInfo = this.phaInManager.DeptInfo; this.ucListSelect.State = "0"; //需检索状态 this.ucListSelect.Class2Priv = "0310"; //入库 this.ucListSelect.SelecctListEvent -= new ucIMAListSelecct.SelectListHandler(ucListSelect_SelecctListEvent); this.ucListSelect.SelecctListEvent += new ucIMAListSelecct.SelectListHandler(ucListSelect_SelecctListEvent); Neusoft.FrameWork.WinForms.Classes.Function.PopShowControl(this.ucListSelect); } catch (Exception ex) { System.Windows.Forms.MessageBox.Show(Language.Msg(ex.Message)); return(-1); } return(1); }
public int ShowInList() { try { if (this.ucListSelect == null) { this.ucListSelect = new ucPhaListSelect(); } this.ucListSelect.Init(); this.ucListSelect.DeptInfo = this.phaInManager.DeptInfo; System.Collections.Hashtable hsState = new Hashtable(); hsState.Add("0", "未录发票"); hsState.Add("1", "已录发票未核准"); hsState.Add("2", "已核准"); this.ucListSelect.InOutStateCollection = hsState; this.ucListSelect.State = "2"; //需检索状态 System.Collections.Hashtable hs = new Hashtable(); hs.Add(this.phaInManager.PrivType.ID, null); this.ucListSelect.MarkPrivType = hs; this.ucListSelect.Class2Priv = "0310"; //入库 this.ucListSelect.SelecctListEvent -= new ucIMAListSelecct.SelectListHandler(ucListSelect_SelecctListEvent); this.ucListSelect.SelecctListEvent += new ucIMAListSelecct.SelectListHandler(ucListSelect_SelecctListEvent); Neusoft.FrameWork.WinForms.Classes.Function.PopShowControl(this.ucListSelect); } catch (Exception ex) { System.Windows.Forms.MessageBox.Show(Language.Msg(ex.Message)); return(-1); } return(1); }
public int ShowOutList() { if (this.ucListSelect == null) { this.ucListSelect = new ucPhaListSelect(); } this.ucListSelect.Init(); this.ucListSelect.DeptInfo = this.phaInManager.DeptInfo; System.Collections.Hashtable hsInOutState = new Hashtable(); hsInOutState.Add("1", "审批"); this.ucListSelect.InOutStateCollection = hsInOutState; this.ucListSelect.State = "1"; //需检索状态 this.ucListSelect.Class2Priv = "0320"; //出库 this.ucListSelect.PrivType = this.phaInManager.PrivType; this.ucListSelect.SelecctListEvent -= new ucIMAListSelecct.SelectListHandler(ucListSelect_SelecctListEvent); this.ucListSelect.SelecctListEvent += new ucIMAListSelecct.SelectListHandler(ucListSelect_SelecctListEvent); Neusoft.FrameWork.WinForms.Classes.Function.PopShowControl(this.ucListSelect); #region 屏蔽原窗口弹出方式 //string targetNO = "AAAA"; //if (this.phaInManager.TargetDept.ID != "" && this.phaInManager.TargetDept.ID != null) //{ // targetNO = this.phaInManager.TargetDept.ID; //} ////取待核准记录 出库记录状态为"1"的 //ArrayList alList = this.itemManager.QueryOutputListForApproveInput(targetNO, this.phaInManager.DeptInfo.ID, "A"); //if (alList == null) //{ // MessageBox.Show(Language.Msg("获取出库单据数据出错" + this.itemManager.Err)); // return -1; //} ////弹出窗口选择单据 //Neusoft.FrameWork.Models.NeuObject selectObj = new Neusoft.FrameWork.Models.NeuObject(); //string[] fpLabel = { "入库单号", "供货单位" }; //float[] fpWidth = { 120F, 120F }; //bool[] fpVisible = { true, true, false, false, false, false }; //if (Neusoft.FrameWork.WinForms.Classes.Function.ChooseItem(alList, ref selectObj) == 1) //{ // this.Clear(); // Neusoft.FrameWork.Models.NeuObject targeDept = new Neusoft.FrameWork.Models.NeuObject(); // targeDept.ID = selectObj.Memo; //出库科室编码 // targeDept.Name = selectObj.Name; //出库科室名称 // targeDept.Memo = "0"; //目标单位性质 内部科室 // if (this.phaInManager.TargetDept.ID != targeDept.ID) // { // this.phaInManager.TargetDept = targeDept; // this.ShowSelectData(); // } // this.AddOutDataByListNO(selectObj.ID); // this.SetFocusSelect(); // if (this.phaInManager.FpSheetView != null) // { // this.phaInManager.FpSheetView.ActiveRowIndex = 0; // } //} #endregion return(1); }