public override void AfterInit(IPart Part, EventArgs e) { part = Part; _strongPart = Part as ItemBListUIModel.ItemBListUIFormWebPart; // Card0 // 3 IUFCard card0 = (IUFCard)part.GetUFControlByName(part.TopLevelContainer, "Card0"); if (card0 != null) { IUFButton btn2DMSWhqoh = new UFWebButtonAdapter(); btn2DMSWhqoh.Text = "下发DMS库存"; btn2DMSWhqoh.ID = "btn2DMSWhqoh"; btn2DMSWhqoh.AutoPostBack = true; btn2DMSWhqoh.Click += new EventHandler(btn2DMSWhqoh_Click); card0.Controls.Add(btn2DMSWhqoh); HBHCommon.HBHCommonUI.UICommonHelper.Layout(card0, btn2DMSWhqoh, 8, 0); // 确认对话框 UFIDA.U9.UI.PDHelper.PDFormMessage.ShowConfirmDialog(_strongPart.Page, "确认同步DMS库存?", "确认同步DMS库存", btn2DMSWhqoh); } }
public static UFSoft.UBF.UI.ControlModel.IUFControl FindControl(UFSoft.UBF.UI.IView.IPart part, string control) { try { UFSoft.UBF.UI.ControlModel.IUFControl ctrl = part.GetUFControlByName(part.TopLevelContainer, control); return(ctrl); } catch (Exception ex) { return(null); } }
public override void AfterInit(IPart Part, EventArgs e) { part = Part; _strongPart = Part as UFIDA.U9.SPR.SalePriceListBListUI.SalePriceListBListUIFormWebPart; // Card0 // 3 IUFCard card0 = (IUFCard)part.GetUFControlByName(part.TopLevelContainer, "Card0"); if (card0 != null) { IUFButton btn2DMS = new UFWebButtonAdapter(); btn2DMS.Text = "下发DMS"; btn2DMS.ID = "btn2DMS"; btn2DMS.AutoPostBack = true; btn2DMS.Click += new EventHandler(btn2DMS_Click); card0.Controls.Add(btn2DMS); HBHCommon.HBHCommonUI.UICommonHelper.Layout(card0, btn2DMS, 8, 0); // 确认对话框 UFIDA.U9.UI.PDHelper.PDFormMessage.ShowDelConfirmDialog(_strongPart.Page, "确认同步DMS?", "确认同步DMS", btn2DMS); } }