Ejemplo n.º 1
0
        public static V_InterestVoucher DWTI_Interest(IndividualSaving orgObj)
        {
            Mapper.CreateMap <IndividualSaving, V_InterestVoucher>();
            V_InterestVoucher targetObj = Mapper.Map <IndividualSaving, V_InterestVoucher>(orgObj);

            targetObj.Abstract = "结息";
            return(targetObj);
        }
Ejemplo n.º 2
0
        public ActionResult InterestVoucher()
        {
            using (FATContainer dataContainer = new FATContainer())
            {
                int              tchRoutineID = dataContainer.TeachingNode.Find(Convert.ToInt32(RouteData.Values["id"])).RoutineID;
                TeachingRoutine  routine      = SharedCasePool.GetCasePool().GetRoutine(tchRoutineID);
                TeachingNode     node         = routine.NodeList[Convert.ToInt32(RouteData.Values["id"])];
                IndividualSaving targetObj    = dataContainer.IndividualSaving.FirstOrDefault(info => (info.TchRoutineID == node.RoutineID));
                ViewData[ConstDefine.ViewData_CaseText] = SharedCasePool.GetCasePool().GetRoutine(node.RoutineID).GroupList[node.GroupIdx].GroupText;
                ViewBag.RoutineName  = routine.RelTmpRoutine.RoutineName;
                ViewBag.NodeName     = node.RelTmpNode.NodeName;
                ViewBag.TchNodeID    = node.Row_ID;
                ViewBag.TchRoutineID = routine.Row_ID;

                Type       type   = Type.GetType("FATS.BusinessObject.Converters.InterestVoucherConverter");
                MethodInfo method = type.GetMethod(routine.RelTmpRoutine.RoutineTag, BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static);

                V_InterestVoucher modalInfo = (V_InterestVoucher)method.Invoke(null, new Object[] { targetObj });

                return(View("IndividualSaving_Interest", modalInfo));
            }
        }