예제 #1
0
        public ActionResult Create()
        {
            var britishZone  = TimeZoneInfo.FindSystemTimeZoneById("GMT Standard Time");
            var adjusteddate = TimeZoneInfo.ConvertTime(DateTime.Now, TimeZoneInfo.Local, britishZone);
            t_Milling_Bacs_Customers t_Milling_Bacs_Customers = new t_Milling_Bacs_Customers();

            t_Milling_Bacs_Customers.Status          = 1;
            t_Milling_Bacs_Customers.LastChangedBy   = User.Identity.Name;
            t_Milling_Bacs_Customers.LastChangedDate = adjusteddate;
            t_Milling_Bacs_Customers.CreatedBy       = User.Identity.Name;
            t_Milling_Bacs_Customers.CreatedDate     = adjusteddate;

            ViewBag.Status         = new SelectList(db.t_Milling_Bacs_Status, "StatusRecid", "StatusDesc");
            ViewBag.DDFrequency    = new SelectList(db.t_Milling_Bacs_DDFrequency, "DDFreqRecid", "DDFreqDesc");
            ViewBag.NewBankMandate = new SelectList(db.t_Milling_Bacs_NewBankMandate, "MandateRecid", "MandateDesc");

            return(View(t_Milling_Bacs_Customers));
        }
예제 #2
0
        public ActionResult Edit(long?CustomerRecid)
        {
            if (CustomerRecid == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            t_Milling_Bacs_Customers t_Milling_Bacs_Customers = db.t_Milling_Bacs_Customers.Find(CustomerRecid);

            if (t_Milling_Bacs_Customers == null)
            {
                return(HttpNotFound());
            }

            ViewBag.Status         = new SelectList(db.t_Milling_Bacs_Status, "StatusRecid", "StatusDesc");
            ViewBag.DDFrequency    = new SelectList(db.t_Milling_Bacs_DDFrequency, "DDFreqRecid", "DDFreqDesc");
            ViewBag.NewBankMandate = new SelectList(db.t_Milling_Bacs_NewBankMandate, "MandateRecid", "MandateDesc");

            return(View(t_Milling_Bacs_Customers));
        }