Пример #1
0
        public ActionResult AccountMultiExcelWriteFor()
        {
            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 commonParam = new CommonParam();

            commonParam.Add("inOutCode", new SelectList(inOutCodeList, "Code", "CodeName", ""));
            commonParam.Add("caseCode", new SelectList(caseCodeList, "Code", "CodeName", ""));
            commonParam.Add("cardBankCode", new SelectList(cardBankCodeList, "Code", "CodeName", ""));
            return(PartialView("~/Views/Dev/Partial/AccountList/AccountMultiExcelWritePartial.cshtml", commonParam));
        }
Пример #2
0
        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));
        }