예제 #1
0
        public static V_SpecialTransferVoucher N12_SpecialTransferVoucher(BankAcceptBill orgObj)
        {
            Mapper.CreateMap <BankAcceptBill, V_SpecialTransferVoucher>();
            V_SpecialTransferVoucher dstObj = Mapper.Map <BankAcceptBill, V_SpecialTransferVoucher>(orgObj);

            dstObj.TimeMark         = orgObj.DrawBillDate;
            dstObj.OrgVoucherName   = "银行承兑汇票";
            dstObj.OrgVoucherNo     = orgObj.BillNo;
            dstObj.OrgVoucherAmount = orgObj.MoneyAmount;
            dstObj.TransferReason   = "收取承兑汇票票款";
            dstObj.TransferOrient   = "借方";
            dstObj.BankName         = orgObj.RemitterBank;
            return(dstObj);
        }
예제 #2
0
        public ActionResult BankAcceptBill()
        {
            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"])];
                BankAcceptBill  tcInfo       = dataContainer.BankAcceptBill.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("BankAcceptBill_" + node.Index, tcInfo));
            }
        }
예제 #3
0
 public ActionResult InitBankAcceptBillData()
 {
     using (FATContainer dataContainer = new FATContainer())
     {
         int            tchRoutineID = Convert.ToInt32(RouteData.Values["tchRoutineID"]);
         BankAcceptBill info         = dataContainer.BankAcceptBill.FirstOrDefault(item => (item.TchRoutineID == tchRoutineID));
         if (info == null)
         {
             info = dataContainer.BankAcceptBill.Create();
             info.TchRoutineID   = tchRoutineID;
             info.DrawBillDate   = DateTime.Now;
             info.IncomeBillDate = DateTime.Now;
             dataContainer.BankAcceptBill.Add(info);
             dataContainer.SaveChanges();
         }
         return(View("BankAcceptBill", info));
     }
 }
예제 #4
0
 public static V_TradeAcceptance N2_TradeAcceptance(BankAcceptBill orgObj)
 {
     Mapper.CreateMap <BankAcceptBill, V_TradeAcceptance>();
     return(Mapper.Map <BankAcceptBill, V_TradeAcceptance>(orgObj));
 }