private void InitContext(BaseFormBizView ownerView) { BaseButtonGroupView btng = new BaseButtonGroupView(ownerView) { Dock = DockStyle.Fill }; this.AddRender(btng); RegisteBottomGroupMap.Add(EmsViewType.EmptyEmsViewType, btng); btng = new EmsAddDelSaveCancelGroupView(ownerView) { Dock = DockStyle.Fill }; this.AddRender(btng); RegisteBottomGroupMap.Add(EmsViewType.EmsDrugsViewType, btng); RegisteBottomGroupMap.Add(EmsViewType.EmsHerbsViewType, RegisteBottomGroupMap[EmsViewType.EmsDrugsViewType]); btng = new EmsSaveCancelGroupView(ownerView) { Dock = DockStyle.Fill }; this.AddRender(btng); RegisteBottomGroupMap.Add(EmsViewType.EmsLisViewType, btng); RegisteBottomGroupMap.Add(EmsViewType.EmsRisViewType, RegisteBottomGroupMap[EmsViewType.EmsLisViewType]); RegisteBottomGroupMap.Add(EmsViewType.EmsConsViewType, RegisteBottomGroupMap[EmsViewType.EmsLisViewType]); RegisteBottomGroupMap.Add(EmsViewType.EmsOpsViewType, RegisteBottomGroupMap[EmsViewType.EmsLisViewType]); RegisteBottomGroupMap.Add(EmsViewType.EmsTreatViewType, RegisteBottomGroupMap[EmsViewType.EmsLisViewType]); RegisteBottomGroupMap.Add(EmsViewType.EmsPathgyViewType, RegisteBottomGroupMap[EmsViewType.EmsLisViewType]); btng = new EmsUseSaveCancelGroupView(ownerView) { Dock = DockStyle.Fill }; this.AddRender(btng); RegisteBottomGroupMap.Add(EmsViewType.EmsApbtViewType, btng); RegisteBottomGroupMap.Add(EmsViewType.EmsApbuViewType, RegisteBottomGroupMap[EmsViewType.EmsLisViewType]); btng = new ExpAddDelSaveGroupView(ownerView) { Dock = DockStyle.Fill }; this.AddRender(btng); RegisteBottomGroupMap.Add(EmsViewType.EmsExpenseViewType, btng); }
public EmsButtonGroupView(BaseFormBizView o) { this.ownerView = o; InitContext(o); }