/// <summary> /// 物资申购 /// </summary> /// <param name="isBakcIn"></param> /// <param name="ucMatApplyManager">正常入库FALSE , 退库入库TRUE </param> public BuyApplyPriv(bool isBakcIn, In.ucMatIn ucMatApplyManager) { this.isBack = isBakcIn; this.listNO = ""; this.SetMaterialProperty(ucMatApplyManager); }
public BackInPriv(In.ucMatIn ucMatInManager) { if (System.Diagnostics.Process.GetCurrentProcess().ProcessName.ToUpper() != "DEVENV") { this.Init(); this.SetMatManagerProperty(ucMatInManager); } }
private void SetMaterialProperty(In.ucMatIn ucMatApplyManager) { this.MatApplyManager = ucMatApplyManager; //{7019A2A6-ADCA-4984-944B-C4F1A312449A} visibleColumns = controlIntegrate.GetControlParam <int>("MT0002", true); if (this.MatApplyManager != null) { //设置界面显示 this.MatApplyManager.IsShowItemSelectpanel = true; this.MatApplyManager.IsShowInputPanel = false; //设置内部申请目标科室信息 this.MatApplyManager.SetTargetDept(false, true, Neusoft.HISFC.Models.IMA.EnumModuelType.Material, Neusoft.HISFC.Models.Base.EnumDepartmentType.L); //设置内部申请显示的待选择数据 //this.MatApplyManager.SetSelectData("1", false, null, null, null); this.ShowSelectData(); //{7019A2A6-ADCA-4984-944B-C4F1A312449A} this.MatApplyManager.SetItemListWidth(visibleColumns); //设置工具栏按钮显示 this.MatApplyManager.SetToolBarButtonVisible(true, false, false, false, true, true, false); //设置信息显示 this.MatApplyManager.ShowInfo = ""; //Fp 设置 this.MatApplyManager.FpSheetView.DataAutoSizeColumns = false; this.MatApplyManager.Fp.EditModeReplace = true; this.MatApplyManager.EndTargetChanged -= new ucIMAInOutBase.DataChangedHandler(value_EndTargetChanged); this.MatApplyManager.EndTargetChanged += new ucIMAInOutBase.DataChangedHandler(value_EndTargetChanged); this.MatApplyManager.FpKeyEvent -= new ucIMAInOutBase.FpKeyHandler(value_FpKeyEvent); this.MatApplyManager.FpKeyEvent += new ucIMAInOutBase.FpKeyHandler(value_FpKeyEvent); this.MatApplyManager.Fp.EditModeOff -= new EventHandler(Fp_EditModeOff); this.MatApplyManager.Fp.EditModeOff += new EventHandler(Fp_EditModeOff); this.MatApplyManager.FpSheetView.DataAutoSizeColumns = false; this.MatApplyManager.FpSheetView.DataAutoCellTypes = false; this.SetFormat(); } }
/// <summary> /// 设置主窗体属性 /// </summary> /// <param name="ucPhaManager"></param> protected void SetMatManagerProperty(In.ucMatIn ucPhaManager) { this.matInManager = ucPhaManager; if (this.matInManager != null) { //设置界面显示 this.matInManager.IsShowItemSelectpanel = false; //设置目标科室信息 this.matInManager.SetTargetDept(true, false, Neusoft.HISFC.Models.IMA.EnumModuelType.Material, Neusoft.HISFC.Models.Base.EnumDepartmentType.L); //设置需过滤数据 if (this.matInManager.TargetDept.ID != "") { this.ShowSelectData(); } //设置工具栏按钮显示 this.matInManager.SetToolBarButton(false, true, false, false, true); //{17B337D1-FE4C-4576-BB3C-7FFAD8C8D27C}入库退库时不应该显示采购单 //this.matInManager.SetToolBarButtonVisible(false, true, false, true, true, true, false); this.matInManager.SetToolBarButtonVisible(false, true, false, false, true, true, false); //设置项目列表宽度{7019A2A6-ADCA-4984-944B-C4F1A312449A} this.matInManager.SetItemListWidth(visibleColumns); //设置Fp this.matInManager.Fp.EditModePermanent = false; this.matInManager.Fp.EditModeReplace = true; this.matInManager.FpSheetView.DataAutoSizeColumns = false; this.matInManager.EndTargetChanged -= new ucIMAInOutBase.DataChangedHandler(value_EndTargetChanged); this.matInManager.EndTargetChanged += new ucIMAInOutBase.DataChangedHandler(value_EndTargetChanged); this.matInManager.FpKeyEvent -= new ucIMAInOutBase.FpKeyHandler(value_FpKeyEvent); this.matInManager.FpKeyEvent += new ucIMAInOutBase.FpKeyHandler(value_FpKeyEvent); this.matInManager.Fp.EditModeOff -= new EventHandler(Fp_EditModeOff); this.matInManager.Fp.EditModeOff += new EventHandler(Fp_EditModeOff); } }