//获取字典表中请假原因
        public List<String> GetAllConfig()
        {
            List<String> Reason = new List<string>();
            String skey = "LeaveReason";
            SM_CONFIG_KEY entity = new SM_CONFIG_KEY();
            entity.sKey = skey; 
            IList<SM_CONFIG_KEY> list = new List<SM_CONFIG_KEY>();
            if (entity!=null)
	        {
            list = confBO.GetEntities(entity);
            }
            if (list != null && list.Count > 0)

            {
                String value = list[0].sValue;
                string[] sArray=value.Split(',');
                foreach(string i in sArray){
                    Reason.Add(i.ToString ());
            }
             
          
        }
           
           return Reason;
        }
Exemplo n.º 2
0
        public string[] getCategory()
        {
            SM_CONFIG_KEY param = new SM_CONFIG_KEY()
            {
                sKey = "CauseCategory"
            };
            IList <SM_CONFIG_KEY> SM_CONFIG_KEYs = _SM_CONFIG_KEYBO.GetEntities(param);
            string ct = SM_CONFIG_KEYs.First().sValue;

            string[] cts = ct.Split(',');
            return(cts);
        }
Exemplo n.º 3
0
        public string[] getRD()
        {
            SM_CONFIG_KEY param = new SM_CONFIG_KEY()
            {
                sKey = "RD"
            };
            IList <SM_CONFIG_KEY> SM_CONFIG_KEYs = _SM_CONFIG_KEYBO.GetEntities(param);
            string rd = SM_CONFIG_KEYs.First().sValue;

            string[] rds = rd.Split(',');
            return(rds);
        }