Exemplo n.º 1
0
 /// <summary>
 /// 增加医疗单页签
 /// </summary>
 /// <param name="o"></param>
 private void AddEmsPage(OrdEmsView o)
 {
     XTabPages.Add(new XTabPage(this)
     {
         Text        = o.Name,
         PageControl = o
     });
 }
Exemplo n.º 2
0
        public bool CreateTabEmsView(Ent4BannerDTO ent, int param)
        {
            // 处置页签
            var ordEmsContainer = new OrdEmsView(this, ent)
            {
                Context = this.Context
            };

            ordEmsContainer.EventSent -= ordEmsContainer_EventSent;
            ordEmsContainer.EventSent += ordEmsContainer_EventSent;
            AddEmsPage(ordEmsContainer);

            // 费用页签

            OrdExpenseView ordExpenseView = param > SYSTEM_PARAM_EXPENSE_NO ? new OrdExpenseView(this, param != SYSTEM_PARAM_EXPENSE_RO) : null;

            if (ordExpenseView != null)
            {
                ordExpenseView.Context = this.Context;
                AddExpensePage(ordExpenseView);
            }
            return(true);
        }