コード例 #1
0
        public static object GetLookupData(EntityNames entity, int pageIndex, int pageSize, string sort, string filterString, IList <object> paras, ref int pageCount, string userID)
        {
            object ents = null;
            Type   type = Type.GetType("SMT.HRM.BLL." + entity.ToString() + "BLL");

            if (type != null)
            {
                ILookupEntity bll = (ILookupEntity)Activator.CreateInstance(type);
                ents = bll.GetLookupData(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userID);
            }
            return(ents);
        }
コード例 #2
0
ファイル: Utility.cs プロジェクト: jjg0519/OA
        //public static EntityObject[] GetLookupData(EntityNames entity, Dictionary<string, string> args)
        //{
        //    EntityObject[] ents = null;
        //    Type type = Type.GetType("SMT.SaaS.Permission.BLL." + entity.ToString() + "BLL");

        //    if (type != null)
        //    {
        //        ILookupEntity bll = (ILookupEntity)Activator.CreateInstance(type);
        //        ents =  bll.GetLookupData(args);
        //    }
        //    return ents;
        //}
        public static EntityObject[] GetLookupData(EntityNames entity, Dictionary <string, string> args, int pageIndex, int pageSize, string sort, string filterString, IList <object> paras, ref int pageCount)
        {
            EntityObject[] ents = null;
            Type           type = Type.GetType("SMT.SaaS.Permission.BLL." + entity.ToString() + "BLL");

            if (type != null)
            {
                ILookupEntity bll = (ILookupEntity)Activator.CreateInstance(type);
                ents = bll.GetLookupData(args, pageIndex, pageSize, sort, filterString, paras, ref pageCount);
            }
            return(ents);
        }
コード例 #3
0
ファイル: LookupForm.xaml.cs プロジェクト: JuRogn/OA
        public LookupForm(EntityNames entName, Type type, Dictionary<string, string> cols)
        {
            EntityName = entName;
            EntityType = type;
            ColumnNames = cols;

            InitializeComponent();

            client.GetLookupOjbectsCompleted += new EventHandler<GetLookupOjbectsCompletedEventArgs>(client_GetLookupOjbectsCompleted);

            this.TitleContent = Utility.GetResourceStr(entName.ToString().ToUpper());
            BindData();
        }
コード例 #4
0
ファイル: LookupForm.xaml.cs プロジェクト: jjg0519/OA
        public LookupForm(EntityNames entName, Type type, Dictionary <string, string> cols)
        {
            EntityName  = entName;
            EntityType  = type;
            ColumnNames = cols;

            InitializeComponent();

            client.GetLookupOjbectsCompleted += new EventHandler <GetLookupOjbectsCompletedEventArgs>(client_GetLookupOjbectsCompleted);

            this.TitleContent = Utility.GetResourceStr(entName.ToString().ToUpper());
            BindData();
        }
コード例 #5
0
ファイル: LookupForm.xaml.cs プロジェクト: JuRogn/OA
        public LookupForm(EntityNames entName, Type type, Dictionary<string, string> cols, string filter, System.Collections.ObjectModel.ObservableCollection<object> paras)
        {
            EntityName = entName;
            EntityType = type;
            ColumnNames = cols;

            InitializeComponent();

            client.GetLookupOjbectsCompleted += new EventHandler<GetLookupOjbectsCompletedEventArgs>(client_GetLookupOjbectsCompleted);

            this.TitleContent = Utility.GetResourceStr(entName.ToString().ToUpper());
            this.filter = filter;
            this.paras = paras;
            BindData();
        }
コード例 #6
0
ファイル: LookupForm.xaml.cs プロジェクト: jjg0519/OA
        public LookupForm(EntityNames entName, Type type, Dictionary <string, string> cols, string filter, System.Collections.ObjectModel.ObservableCollection <object> paras)
        {
            EntityName  = entName;
            EntityType  = type;
            ColumnNames = cols;

            InitializeComponent();

            client.GetLookupOjbectsCompleted += new EventHandler <GetLookupOjbectsCompletedEventArgs>(client_GetLookupOjbectsCompleted);

            this.TitleContent = Utility.GetResourceStr(entName.ToString().ToUpper());
            this.filter       = filter;
            this.paras        = paras;
            BindData();
        }