public ActionResult CrudeDefaultPerformanceTimeRollupCreate([Bind()] CrudeDefaultPerformanceTimeRollupContract contract)
        {
            if (ModelState.IsValid)
            {
                new CrudeDefaultPerformanceTimeRollupServiceClient().Insert(contract);

                return(RedirectToAction("CrudeDefaultPerformanceTimeRollupIndex"));
            }

            return(View(
                       "~/Views/Crude/Default/CrudeDefaultPerformanceTimeRollup/CrudeDefaultPerformanceTimeRollupCreate.cshtml",
                       contract
                       ));
        }
Beispiel #2
0
 // shows the form with default values for comboboxes and pickers
 // links:
 //  docLink: http://sql2x.org/documentationLink/e04d0806-55ef-41cc-8669-acf0ddd850c7
 public void ShowAsAdd()
 {
     try {
         _contract = new CrudeDefaultPerformanceTimeRollupContract();
         _isNew    = true;
         Show();
     } catch (Exception ex) {
         if (ex == null)
         {
         }
         else
         {
             System.Diagnostics.Debugger.Break();
         }
     }
 }
        public ActionResult CrudeDefaultPerformanceTimeRollupEdit([Bind()] CrudeDefaultPerformanceTimeRollupContract contract)
        {
            if (ModelState.IsValid)
            {
                contract.DefaultUserId = new System.Guid("{FFFFFFFF-5555-5555-5555-FFFFFFFFFFFF}");

                new CrudeDefaultPerformanceTimeRollupServiceClient().Update(contract);

                return(RedirectToAction("CrudeDefaultPerformanceTimeRollupIndex"));
            }

            return(View(
                       "~/Views/Crude/Default/CrudeDefaultPerformanceTimeRollup/CrudeDefaultPerformanceTimeRollupEdit.cshtml",
                       contract
                       ));
        }
 // shows the form with default values for comboboxes and pickers
 // links:
 //  docLink: http://sql2x.org/documentationLink/e04d0806-55ef-41cc-8669-acf0ddd850c7
 public void ShowAsAdd()
 {
     try {
         _contract  = new CrudeDefaultPerformanceTimeRollupContract();
         _isNew     = true;
         this.Text += " - Not Savable (DefaultUser Missing)";
         Show();
     } catch (Exception ex) {
         if (ex == null)
         {
         }
         else
         {
             System.Diagnostics.Debugger.Break();
         }
     }
 }
        public ActionResult CrudeDefaultPerformanceTimeRollupCreate(System.Guid?defaultUserId)
        {
            var contract = new CrudeDefaultPerformanceTimeRollupContract();

            if (defaultUserId != null)
            {
                contract.DefaultUserId = (System.Guid)defaultUserId;
            }

            if (defaultUserId == null)
            {
                contract.DefaultUserId = new System.Guid("{FFFFFFFF-5555-5555-5555-FFFFFFFFFFFF}");
            }

            contract.DateTime = DateTime.UtcNow;


            return(View(
                       "~/Views/Crude/Default/CrudeDefaultPerformanceTimeRollup/CrudeDefaultPerformanceTimeRollupCreate.cshtml",
                       contract
                       ));
        }