예제 #1
0
        public ActionResult Edit(Payments payments, string CreditNumber01)
        {
            int    nPos            = -1;
            string szError         = "";
            string szEncriptedData = "";

            if (ModelState.IsValid)
            {
                //use the user supplied data
                if (!string.IsNullOrEmpty(CreditNumber01))
                {
                    nPos = CreditNumber01.IndexOf("*");
                    if (nPos == -1)
                    {
                        payments.CreditCardNumber = CreditNumber01;

                        //Encode the credit card info
                        if (!string.IsNullOrEmpty(payments.CreditCardNumber))
                        {
                            szEncriptedData           = TimelyDepotMVC.Controllers.PaymentController.EncriptInfo02(payments.CreditCardNumber, ref szError);
                            payments.CreditCardNumber = szEncriptedData;
                        }
                    }
                    else
                    {
                        //Do not replace the credit card number
                    }
                }

                db.Entry(payments).State = EntityState.Modified;
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }
            return(View(payments));
        }
예제 #2
0
        public ActionResult Edit(CustomersCreditCardShipping customerscreditcardshipping, string CreditNumber01, string SecureCode01)
        {
            int    nPos            = -1;
            string szError         = "";
            string szEncriptedData = "";

            if (ModelState.IsValid)
            {
                //use the user supplied data
                if (!string.IsNullOrEmpty(CreditNumber01))
                {
                    nPos = CreditNumber01.IndexOf("*");
                    if (nPos == -1)
                    {
                        customerscreditcardshipping.CreditNumber = CreditNumber01;

                        //Encode the credit card info
                        if (!string.IsNullOrEmpty(customerscreditcardshipping.CreditNumber))
                        {
                            szEncriptedData = TimelyDepotMVC.Controllers.PaymentController.EncriptInfo02(customerscreditcardshipping.CreditNumber, ref szError);
                            customerscreditcardshipping.CreditNumber = szEncriptedData;
                        }
                    }
                    else
                    {
                        //Do not replace the credit card number
                    }
                }

                if (!string.IsNullOrEmpty(SecureCode01))
                {
                    nPos = -1;
                    nPos = SecureCode01.IndexOf("*");
                    if (nPos == -1)
                    {
                        customerscreditcardshipping.SecureCode = SecureCode01;

                        //Encode the credit card info
                        if (!string.IsNullOrEmpty(customerscreditcardshipping.SecureCode))
                        {
                            szEncriptedData = TimelyDepotMVC.Controllers.PaymentController.EncriptInfo02(customerscreditcardshipping.SecureCode, ref szError);
                            customerscreditcardshipping.SecureCode = szEncriptedData;
                        }
                    }
                    else
                    {
                        //Do not replace the credit card number
                    }
                }


                db.Entry(customerscreditcardshipping).State = EntityState.Modified;
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }
            return(View(customerscreditcardshipping));
        }
예제 #3
0
 public ActionResult Edit(Invoice invoice)
 {
     if (ModelState.IsValid)
     {
         db.Entry(invoice).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(invoice));
 }
 public ActionResult Edit(packagemaster packagemaster)
 {
     if (ModelState.IsValid)
     {
         db.Entry(packagemaster).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(packagemaster));
 }
예제 #5
0
 public ActionResult Edit(Applications applications)
 {
     if (ModelState.IsValid)
     {
         db.Entry(applications).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(applications));
 }
 public ActionResult Edit(DiscountManage discountmanage)
 {
     if (ModelState.IsValid)
     {
         db.Entry(discountmanage).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(discountmanage));
 }
 public ActionResult Edit(SUB_ITEM sub_item)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sub_item).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(sub_item));
 }
예제 #8
0
 public ActionResult Edit(VendorItem vendoritem)
 {
     if (ModelState.IsValid)
     {
         db.Entry(vendoritem).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(vendoritem));
 }
 public ActionResult Edit(aspnet_Membership aspnet_membership)
 {
     if (ModelState.IsValid)
     {
         db.Entry(aspnet_membership).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(aspnet_membership));
 }
예제 #10
0
 public ActionResult Edit(VendorsBillingDept vendorsbillingdept)
 {
     if (ModelState.IsValid)
     {
         db.Entry(vendorsbillingdept).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(vendorsbillingdept));
 }
예제 #11
0
 public ActionResult Edit(SalesOrderBlindShip salesorderblindship)
 {
     if (ModelState.IsValid)
     {
         db.Entry(salesorderblindship).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(salesorderblindship));
 }
예제 #12
0
 public ActionResult Edit(VendorsSpecialNotes vendorsspecialnotes)
 {
     if (ModelState.IsValid)
     {
         db.Entry(vendorsspecialnotes).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(vendorsspecialnotes));
 }
예제 #13
0
 public ActionResult Edit(CustomersCardType customerscardtype)
 {
     if (ModelState.IsValid)
     {
         db.Entry(customerscardtype).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(customerscardtype));
 }
 public ActionResult Edit(PurchaseOrders purchaseorders)
 {
     if (ModelState.IsValid)
     {
         db.Entry(purchaseorders).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(purchaseorders));
 }
예제 #15
0
 public ActionResult Edit(packingitemdetail packingitemdetail)
 {
     if (ModelState.IsValid)
     {
         db.Entry(packingitemdetail).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(packingitemdetail));
 }
예제 #16
0
 public ActionResult Edit(ShipmentDetails shipmentdetails)
 {
     if (ModelState.IsValid)
     {
         db.Entry(shipmentdetails).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(shipmentdetails));
 }
예제 #17
0
 public ActionResult Edit(webpages_UsersInRoles webpages_usersinroles)
 {
     if (ModelState.IsValid)
     {
         db.Entry(webpages_usersinroles).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(webpages_usersinroles));
 }
 public ActionResult Edit(Warehouses warehouses)
 {
     if (ModelState.IsValid)
     {
         db.Entry(warehouses).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(warehouses));
 }
예제 #19
0
 public ActionResult Edit(UserProfile userprofile)
 {
     if (ModelState.IsValid)
     {
         db.Entry(userprofile).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(userprofile));
 }
예제 #20
0
 public ActionResult Edit(ImprintMethods imprintmethods)
 {
     if (ModelState.IsValid)
     {
         db.Entry(imprintmethods).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(imprintmethods));
 }
 public ActionResult Edit(CustomersShipAddress customersshipaddress)
 {
     if (ModelState.IsValid)
     {
         db.Entry(customersshipaddress).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(customersshipaddress));
 }
예제 #22
0
 public ActionResult Edit(COLLECTION collection)
 {
     if (ModelState.IsValid)
     {
         db.Entry(collection).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(collection));
 }
 public ActionResult Edit(VendorsContactAddress vendorscontactaddress)
 {
     if (ModelState.IsValid)
     {
         db.Entry(vendorscontactaddress).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(vendorscontactaddress));
 }
예제 #24
0
 public ActionResult Edit(PackageRateLogParameters packageratelogparameters)
 {
     if (ModelState.IsValid)
     {
         db.Entry(packageratelogparameters).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(packageratelogparameters));
 }
 public ActionResult Edit(PackageGroupDetail packagegroupdetail)
 {
     if (ModelState.IsValid)
     {
         db.Entry(packagegroupdetail).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(packagegroupdetail);
 }
예제 #26
0
 public ActionResult Edit(Setup_for_Price setup_for_price)
 {
     if (ModelState.IsValid)
     {
         db.Entry(setup_for_price).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(setup_for_price));
 }
예제 #27
0
 public ActionResult Edit(InformationDetail informationdetail)
 {
     if (ModelState.IsValid)
     {
         db.Entry(informationdetail).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(informationdetail));
 }
예제 #28
0
 public ActionResult Edit(DIAL dial)
 {
     if (ModelState.IsValid)
     {
         db.Entry(dial).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(dial));
 }
예제 #29
0
 public ActionResult Edit(UserRegistration userregistration)
 {
     if (ModelState.IsValid)
     {
         db.Entry(userregistration).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(userregistration));
 }
 public ActionResult Edit(CustomersHistory customershistory)
 {
     if (ModelState.IsValid)
     {
         db.Entry(customershistory).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(customershistory));
 }