Beispiel #1
0
        /// <summary>
        /// 初始化绑定下拉框
        /// </summary>
        public void InitBindDrop()
        {
            BPMS_ItemDetailsIBLL bpms_itemdetailsibll = new BPMS_ItemDetailsBLL();
            IList List = bpms_itemdetailsibll.GetListByItemsId("5fed1313-7355-4cc4-a7ec-73211a361fa6");

            ControlBindHelper.BindHtmlSelect(List, Category, "ItemName", "ItemCode", "==请选择==");
        }
Beispiel #2
0
        /// <summary>
        /// 初始化绑定下拉框
        /// </summary>
        public void InitBindDrop()
        {
            BPMS_ItemDetailsIBLL bpms_itemdetailsibll = new BPMS_ItemDetailsBLL();
            IList list = bpms_itemdetailsibll.GetList();
            //职称
            IList TitleIdList = IListHelper.IListToList <BPMS_ItemDetails>(list).FindAll(t => t.ItemsId == "2acba9e8-5fa7-4b6f-8ebd-56e753dd059a");

            ControlBindHelper.BindHtmlSelect(TitleIdList, TitleId, "ItemName", "ItemCode", "==请选择==");
            //职位
            IList DutyIdList = IListHelper.IListToList <BPMS_ItemDetails>(list).FindAll(t => t.ItemsId == "137a2d97-d1d9-4752-9c5e-239097e2ed68");

            ControlBindHelper.BindHtmlSelect(DutyIdList, DutyId, "ItemName", "ItemCode", "==请选择==");
        }
Beispiel #3
0
        /// <summary>
        /// 将职位code转换为名称
        /// </summary>
        /// <param name="DutyID"></param>
        /// <returns></returns>
        public string toPosition(string DutyId)
        {
            BPMS_ItemDetailsIBLL bpms_itemdetailsibll = new BPMS_ItemDetailsBLL();
            IList list       = bpms_itemdetailsibll.GetList();
            IList DutyIdList = IListHelper.IListToList <BPMS_ItemDetails>(list).FindAll(t => t.ItemsId == "137a2d97-d1d9-4752-9c5e-239097e2ed68");

            foreach (BPMS_ItemDetails entity in DutyIdList)
            {
                if (entity.ItemCode == DutyId)
                {
                    return(entity.ItemName);
                }
            }

            return("");
        }
Beispiel #4
0
        /// <summary>
        /// 初始化绑定下拉框
        /// </summary>
        public void InitBindDrop()
        {
            BPMS_ItemDetailsIBLL bpms_itemdetailsibll = new BPMS_ItemDetailsBLL();
            IList list = bpms_itemdetailsibll.GetList();
            //最高学历
            IList EducationList = IListHelper.IListToList <BPMS_ItemDetails>(list).FindAll(t => t.ItemsId == "1559ff6d-8b04-48f7-952c-333305bc526d");

            ControlBindHelper.BindHtmlSelect(EducationList, Education, "ItemName", "ItemCode", "==请选择==");
            //最高学位
            IList DegreeList = IListHelper.IListToList <BPMS_ItemDetails>(list).FindAll(t => t.ItemsId == "964d6a06-5282-4fcb-b805-f192ae0de922");

            ControlBindHelper.BindHtmlSelect(DegreeList, Degree, "ItemName", "ItemCode", "==请选择==");
            //职称
            IList TitleIdList = IListHelper.IListToList <BPMS_ItemDetails>(list).FindAll(t => t.ItemsId == "2acba9e8-5fa7-4b6f-8ebd-56e753dd059a");

            ControlBindHelper.BindHtmlSelect(TitleIdList, TitleId, "ItemName", "ItemCode", "==请选择==");
            //职称等级
            IList TitleLevelList = IListHelper.IListToList <BPMS_ItemDetails>(list).FindAll(t => t.ItemsId == "b65809f0-3b7b-44d1-b2f5-c93ef9afa12d");

            ControlBindHelper.BindHtmlSelect(TitleLevelList, TitleLevel, "ItemName", "ItemCode", "==请选择==");
            //职位
            IList DutyIdList = IListHelper.IListToList <BPMS_ItemDetails>(list).FindAll(t => t.ItemsId == "137a2d97-d1d9-4752-9c5e-239097e2ed68");

            ControlBindHelper.BindHtmlSelect(DutyIdList, DutyId, "ItemName", "ItemCode", "==请选择==");
            //用工性质
            IList WorkingPropertyList = IListHelper.IListToList <BPMS_ItemDetails>(list).FindAll(t => t.ItemsId == "0e08fdaa-8e7a-4890-98d5-e2f36f55c512");

            ControlBindHelper.BindHtmlSelect(WorkingPropertyList, WorkingProperty, "ItemName", "ItemCode", "==请选择==");
            //政治面貌
            IList PartyList = IListHelper.IListToList <BPMS_ItemDetails>(list).FindAll(t => t.ItemsId == "44e210fb-5afd-4511-a56c-a438d947d5bc");

            ControlBindHelper.BindHtmlSelect(PartyList, Party, "ItemName", "ItemCode", "==请选择==");
            //国籍
            IList NationList = IListHelper.IListToList <BPMS_ItemDetails>(list).FindAll(t => t.ItemsId == "e2e78aec-31f7-4de5-af7b-bb5bc7c09a61");

            ControlBindHelper.BindHtmlSelect(NationList, Nation, "ItemName", "ItemCode", "==请选择==");
            //民族
            IList NationalityList = IListHelper.IListToList <BPMS_ItemDetails>(list).FindAll(t => t.ItemsId == "104bfd21-5bbe-4b96-b5c2-448b84dbe0d8");

            ControlBindHelper.BindHtmlSelect(NationalityList, Nationality, "ItemName", "ItemCode", "==请选择==");
        }