public string GetFlowTypeList() { int BusinessType = Convert.ToInt32(Request.Form["flowType"]); string result = ""; List <FundFlowType> list = new List <FundFlowType>(); if (BusinessType == 0) { list = WebComm.GetFundFlowTypeList_Cash(); } else if (BusinessType == 1) { list = WebComm.GetFundFlowTypeList_Bank(); } result = JsonConvert.SerializeObject(list); return(result); }
public Object Create(int businessTypeID, string inOutType) { if (businessTypeID == 0) { //跳转到现金记账页面 ViewBag.FlowType = WebComm.GetFundFlowTypeList_Cash().Where(c => c.InOutType == "in" || c.InOutType == "out").ToList(); return(PartialView(viewFolder + "CashAccounting.cshtml")); } else if (businessTypeID == 1) { //银行记账 ViewBag.FlowType = WebComm.GetFundFlowTypeList_Bank().Where(c => c.InOutType == "in" || c.InOutType == "out").ToList(); return(PartialView(viewFolder + "BankAccounting.cshtml")); } else { //跳转到转账页面 ViewBag.FlowType = WebComm.GetFundFlowTypeList().Where(c => c.InOutType != "in" && c.InOutType != "out").ToList(); return(PartialView(viewFolder + "ZhuanZhang.cshtml")); } }