public ActionResult CodeUpdateFor(string code) { var item = COD.FindItemByParam <CodeItem>(new DbParam().Add("Code", code), "*"); var commonParam = new CommonParam(); commonParam.Add("Item", item); commonParam.Add("state", MvcUtil.GetSelectList(item.State, "REG=REG,DEL=DEL")); return(PartialView("~/Views/Dev/Partial/CodeList/CodeUpdatePartial.cshtml", commonParam)); }
public ActionResult AccountUpdateFor(int id) { var inOutCodeList = COD.FindListByParam <CodeItem>("Code", new DbParam().Add("CodeType", "INOUT"), "*"); var caseCodeList = COD.FindListByParam <CodeItem>("Code", new DbParam().Add("CodeType", "ACCOUNT"), "*"); var cardBankCodeList = COD.FindListByParam <CodeItem>("Code", new DbParam().Add("CodeType", "CARDBANK"), "*"); var item = COD.FindItemById <AccountItem>(id); var commonParam = new CommonParam(); commonParam.Add("Item", item); commonParam.Add("inOutCode", new SelectList(inOutCodeList, "Code", "CodeName", item.InOutCode)); commonParam.Add("caseCode", new SelectList(caseCodeList, "Code", "CodeName", item.CaseCode)); commonParam.Add("cardBankCode", new SelectList(cardBankCodeList, "Code", "CodeName", item.CardBankCode)); commonParam.Add("state", MvcUtil.GetSelectList(item.State, "REG=REG,DEL=DEL")); return(PartialView("~/Views/Dev/Partial/AccountList/AccountUpdatePartial.cshtml", commonParam)); }