public static V_ElectronicVoucher N9_ElectronicVoucher(EntrustCorpPayment orgObj) { Mapper.CreateMap <EntrustCorpPayment, V_ElectronicVoucher>(); V_ElectronicVoucher dstObj = Mapper.Map <EntrustCorpPayment, V_ElectronicVoucher>(orgObj); dstObj.BankName = orgObj.RemitterBank; return(dstObj); }
public static V_CollectAccept_OuterSubject N12_OuterSubject(EntrustCorpPayment orgObj) { Mapper.CreateMap <EntrustCorpPayment, V_CollectAccept_OuterSubject>(); V_CollectAccept_OuterSubject dstObj = Mapper.Map <EntrustCorpPayment, V_CollectAccept_OuterSubject>(orgObj); dstObj.BillTitle = "表外科目登记簿"; dstObj.OpResult = "已划款"; dstObj.TimeMark = orgObj.PaymentDate; dstObj.FinalAmount = 0; dstObj.CollectDate = orgObj.EntrustDate; dstObj.AcceptDate = orgObj.PaymentDate; return(dstObj); }
public ActionResult SaveEntrustCorpPaymentData(EntrustCorpPayment info) { using (FATContainer dataContainer = new FATContainer()) { EntrustCorpPayment orgInfo = dataContainer.EntrustCorpPayment.Find(info.Row_ID); dataContainer.Entry <EntrustCorpPayment>(orgInfo).CurrentValues.SetValues(info); dataContainer.SaveChanges(); JsonResult result = new JsonResult(); result.Data = string.Empty; return(result); } }
public ActionResult EntrustCorpPayment() { 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"])]; EntrustCorpPayment tcInfo = dataContainer.EntrustCorpPayment.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; return(View("EntrustCorpPayment_" + node.Index, tcInfo)); } }
public ActionResult InitEntrustCorpPaymentData() { using (FATContainer dataContainer = new FATContainer()) { int tchRoutineID = Convert.ToInt32(RouteData.Values["tchRoutineID"]); EntrustCorpPayment info = dataContainer.EntrustCorpPayment.FirstOrDefault(item => (item.TchRoutineID == tchRoutineID)); if (info == null) { info = dataContainer.EntrustCorpPayment.Create(); info.TchRoutineID = tchRoutineID; info.EntrustDate = DateTime.Now; info.PaymentDate = DateTime.Now; dataContainer.EntrustCorpPayment.Add(info); dataContainer.SaveChanges(); } return(View("EntrustCorpPayment", info)); } }
public static V_CollectVoucher N4_CollectVoucher(EntrustCorpPayment orgObj) { Mapper.CreateMap <EntrustCorpPayment, V_CollectVoucher>(); return(Mapper.Map <EntrustCorpPayment, V_CollectVoucher>(orgObj)); }