public string GetFlowType(int typeID) { //typeID=0查询现金的资金类型,为1时查询银行相关的 string result = "{}"; string obj = ""; try { if (typeID == 0) { obj = JsonConvert.SerializeObject(WebComm.GetFundFlowTypeList_Cash().Where(c => c.InOutType == "in" || c.InOutType == "out")); } else if (typeID == 1) { obj = JsonConvert.SerializeObject(WebComm.GetFundFlowTypeList_Bank().Where(c => c.InOutType == "in" || c.InOutType == "out")); } else { obj = JsonConvert.SerializeObject(WebComm.GetFundFlowTypeList_Bank().Where(c => c.InOutType != "in" && c.InOutType != "out")); } result = WebComm.ReturnJsonForExterior(true, "获取资金类型成功!", obj); } catch (Exception ex) { result = WebComm.ReturnJsonForExterior(false, "获取资金类型失败!" + ex.Message, null); } return(result); }