12 2022 档案
摘要:目的:为Dropdownlist赋值,并获得项目选项值itemID 法一: //项目列表 ViewData["ItemID"] = string.IsNullOrEmpty(itemID) ? "4" : itemID; var Result = from a in db.Fee_Items whe
阅读全文
摘要:子查询 法一:使用linq语句 //获得核算科室编号 IEnumerable<string> s = (from a in db.Fee_Depts where a.院区 == "**院区" select a.核算科室编号).Distinct(); //获得包括核算科室编号名称 var depts
阅读全文