Пример #1
0
 public AssButtonView()
 {
     // cidiViewModel构造函数是传当前环境,BaseContext,由于获取诊断不需要当前环境,可以设置为空
     this.cidiViewModel = new CiDiagViewModel(null);
     this.model         = new AssButtonViewModel();
     this.Load         += new EventHandler(buttonView_Load);
 }
Пример #2
0
 public OpTemplateControlComplex()
 {
     this.Buttonmodel    = new AssButtonViewModel();
     xapFormControl      = new XapFormControl();
     xapFormControl.Dock = DockStyle.Fill;
     this.Controls.Add(xapFormControl);
     this.Load += EntHistoryTabFrame_Load;
 }
Пример #3
0
 /// <summary>
 /// 获取控件相关的数据,不涉及界面(不读写界面元素)。
 /// </summary>
 protected override void OnLoadData()
 {
     if (Id_regularorca == null)
     {
         return;
     }
     model            = new commonOrderListViewModel(Id_regularorca);
     this.Buttonmodel = new AssButtonViewModel();
 }
Пример #4
0
        public OrTmplTreeView()
        {
            this.viewModel       = new OrTmplTreeViewModel();
            this.buttonViewModel = new AssButtonViewModel();
            this.lstTreeNodes    = new List <XAPTreeNodeRender>();
            this.lstOrTplNItmDOs = new List <OrTplNItmDO>();
            this.lstIdortmpls    = new List <string>();

            this.Load += new EventHandler(OrTmplTreeView_Load);
            InitializeComponent();
        }
Пример #5
0
        /// <summary>
        /// 获取控件相关的数据,不涉及界面(不读写界面元素)。
        /// </summary>
        protected override void OnLoadData()
        {
            if (Id_srvca == null)
            {
                return;
            }

            model               = new medSrvRadioViewModel(this.Ent4BannerDTO.Code_entp, this.FgUse, Id_srvca);
            this.Buttonmodel    = new AssButtonViewModel();
            this.medsrvSetmodel = new AssButtonViewModel();
        }
Пример #6
0
        //[XapEventRecv(Name = "Recv")]
        //public void OnRecv(object sender, XapEventArgs e)
        //{

        //}
        #endregion

        #region 父类继承区域

        /// <summary>
        /// 获取控件相关的数据,不涉及界面(不读写界面元素)。
        /// </summary>
        protected override void OnLoadData()
        {
            if (!string.IsNullOrEmpty(this.id_ortmpl))
            {
                this.model = new NewOrderTemplateListViewModel(id_ortmpl);
            }
            else
            {
                this.model = new NewOrderTemplateListViewModel("");
            }
            this.Buttonmodel = new AssButtonViewModel();
        }
Пример #7
0
        public OpOrderTemplateTreeViewPithy()
        {
            InitializeComponent();
            Buttonmodel = new AssButtonViewModel();
            this.Load  += NewOrderTemplateTreeView_Load;

            this.oTree1.ShowNodeIcon           = false;
            this.oTree1.ShowCheckBox           = true;
            this.oTree1.ShowSearchBox          = false;
            this.oTree1.TreeItemGetImageIndex += oTree1_TreeItemGetImageIndex;
            this.oTree1.TreeItemCheckChanged  += new TreeItemEventHandler(oTree1_TreeItemCheckChanged);

            this.AddRender(this.oTree1);
        }