Example #1
0
        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);
            }
        }
Example #2
0
        private void Do_BeforeLoad(UFSoft.UBF.UI.IView.IPart part, EventArgs args)
        {
            #region 获取相关强类型数据

            _strongPart = part as UFIDA.U9.SCM.INV.TransferOutUIModel.TransferOutUIMainFormWebPart;
            if (_strongPart == null)
            {
                return;
            }

            #endregion

            #region 页面扩展-加按钮
            //Card里面增加按钮
            //设置按钮在容器中的位置
            IUFCard   card      = (IUFCard)_strongPart.GetUFControlByName(_strongPart.TopLevelContainer, "Card0");
            IUFButton btnPRToPM = new UFWebButtonAdapter();
            btnPRToPM.Text         = "运费计算";
            btnPRToPM.ID           = "ComplexLogistics";
            btnPRToPM.AutoPostBack = true;
            card.Controls.Add(btnPRToPM);
            CommonFunction.Layout(card, btnPRToPM, 18, 0);   //一般为从左往右按钮个数乘以2
            #endregion
            btnPRToPM.Click += new EventHandler(btnPRToPM_Click);
        }
 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);
            }
        }
Example #5
0
 public override void BeforeLoad(UFSoft.UBF.UI.IView.IPart part, EventArgs args)
 {
     this.Do_BeforeLoad(part, args);;
 }