partial void DeleteMCode(MCode instance);
partial void UpdateMCode(MCode instance);
/// <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; }
partial void InsertMCode(MCode instance);
/// <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; }