예제 #1
0
 partial void DeleteMCode(MCode instance);
예제 #2
0
 partial void UpdateMCode(MCode instance);
예제 #3
0
파일: MCodeCom.cs 프로젝트: hieur8/web-mbec
        /// <summary>
        /// Get list unit
        /// </summary>
        /// <param name="nullValue">NullValue</param>
        /// <param name="ignoreDeleteFlag">IgnoreDeleteFlag</param>
        /// <returns>List unit</returns>
        public IList<MCode> GetListUnit(bool nullValue, bool ignoreDeleteFlag)
        {
            var data = _comDao.GetListUnit(ignoreDeleteFlag);
            var listResult = new List<MCode>();
            var code = new MCode();
            if (nullValue) listResult.Add(code);
            foreach (var obj in data)
            {
                code = new MCode();
                code.CodeCd = obj.UnitCd;
                code.CodeName = obj.UnitName;
                listResult.Add(code);
            }

            return listResult;
        }
예제 #4
0
 partial void InsertMCode(MCode instance);
예제 #5
0
파일: MCodeCom.cs 프로젝트: hieur8/web-mbec
        /// <summary>
        /// Get list city
        /// </summary>
        /// <returns>List city</returns>
        public IList<MCode> GetListCity()
        {
            var data = _comDao.GetListCity(false);
            var listResult = new List<MCode>();
            var code = new MCode();
            foreach (var obj in data)
            {
                code = new MCode();
                code.CodeCd = obj.CityCd;
                code.CodeName = obj.CityName;
                listResult.Add(code);
            }

            return listResult;
        }