public override void AfterInit(IPart Part, EventArgs e) { part = Part; _strongPart = Part as UFIDA.U9.CBO.Pub.Customer.CustomerBListUIModel.CustomerBListUIFormWebPart; // 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 override void AfterInit(IPart Part, EventArgs e) { part = Part; _strongPart = Part as UFIDA.U9.CBO.Pub.Customer.CustomerBListUIModel.CustomerBListUIFormWebPart; // 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.ShowDelConfirmDialog(_strongPart.Page, "确认同步DMS库存?", "确认同步DMS库存", btn2DMSWhqoh); } }