摘要:
目的:为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 阅读全文
摘要:
SELECT 单元编号,年,月, 项目编号='11111', sum(case when 项目编号= 'ZB010201' then [当月额] else 0 end ) 医疗收入, sum(case when 项目编号='ZB010202' then [当月额] else 0 end ) 科教收入 阅读全文