public override void InitEditors(Entity entity)
        {
            base.InitEditors(entity);

            CustomerIdSearchLookUpEdit.Bind(entity);
            CustomerIdSearchLookUpEdit.AddDetailButton("Account");
            OriginatingLeadIdSearchLookUpEdit.Bind(entity);
            OriginatingLeadIdSearchLookUpEdit.Bind(entity);

            OriginatingLeadIdSearchLookUpEdit.AddDetailButton("Lead");
            OwnerIdSearchLookUpEdit.AddDetailButton("User");
            OwnerIdSearchLookUpEdit.InitEdit("User", "Department", false);
            TransacitionCurrencyIdLookUpEdit.BindLookupList(entity, true);
            DepartmentLookUpEdit.BindLookupList(entity, true);

            PriorityCodeLookUpEdit.BindPickList(entity);
            OpportunityRatingCodeLookUpEdit.BindPickList(entity);
            SalesStageCodeLookUpEdit.BindPickList(entity);
            StatusCodeLookUpEdit.BindPickList(entity);
            OpportunityTypeCodeLookUpEdit.BindPickList(entity);
            projectTypeCodeLookUpEdit.BindPickList(entity);
            technologyCodeLookUpEdit.BindComboBoxList(entity, "TechnologyCode");
            technicianIdSearchLookUpEdit.Bind(entity);
            technicianIdSearchLookUpEdit.AddDetailButton("User");
        }
        public override void InitEditors(Entity entity)
        {
            base.InitEditors(entity);
            string defaultLayoutPath = "Katrin.Win.MainModule.DefaultLayout";

            CustomerIdSearchLookUpEdit.Bind(entity);
            CustomerIdSearchLookUpEdit.AddDetailButton <AccountDetailView>(OpenDetail, "Account");
            OriginatingLeadIdSearchLookUpEdit.Bind(entity);
            //OriginatingLeadIdSearchLookUpEdit.BindSeverMode(entity);
            OriginatingLeadIdSearchLookUpEdit.AddDetailButton <LeadDetailView>(OpenDetail, "Lead");
            //OwnerIdSearchLookUpEdit.Bind(entity);
            OwnerIdSearchLookUpEdit.AddDetailButton <UserDetailView>(OpenDetail, "User");
            OwnerIdSearchLookUpEdit.InitEdit("User", "Department", false);
            TransacitionCurrencyIdLookUpEdit.BindLookupList(entity, true);
            DepartmentLookUpEdit.BindLookupList(entity, true);

            PriorityCodeLookUpEdit.BindPickList(entity);
            OpportunityRatingCodeLookUpEdit.BindPickList(entity);
            SalesStageCodeLookUpEdit.BindPickList(entity);
            StatusCodeLookUpEdit.BindPickList(entity);
            OpportunityTypeCodeLookUpEdit.BindPickList(entity);
            projectTypeCodeLookUpEdit.BindPickList(entity);
            technologyCodeLookUpEdit.BindPickList(entity);
            technicianIdSearchLookUpEdit.Bind(entity);
            technicianIdSearchLookUpEdit.AddDetailButton <UserDetailView>(OpenDetail, "User");
        }