Esempio n. 1
0
        private bool CustomDelete(T_UnitX t_unitx, out bool customdelete_hasissues, string command = "")
        {
            var result = false;

            customdelete_hasissues = false;
            return(result);
        }
Esempio n. 2
0
        private bool CustomSaveOnImport(T_UnitX t_unitx, out string customerror, int i)
        {
            var result = false;

            customerror = "";
            return(result);
        }
Esempio n. 3
0
        private bool CustomSaveOnEdit(T_UnitX t_unitx, out bool customsave_hasissues, string command = "")
        {
            var result = false;

            customsave_hasissues = false;
            return(result);
        }
Esempio n. 4
0
        public string CheckBeforeSave(T_UnitX t_unitx, string command = "")
        {
            var AlertMsg = "";

            // Write your logic here

            //Make sure to assign AlertMsg with proper message
            //AlertMsg = "Validation Alert - Before Save !! Information not saved.";
            //ModelState.AddModelError("CustomError", AlertMsg);
            //ViewBag.ApplicationError = AlertMsg;
            return(AlertMsg);
        }
Esempio n. 5
0
        public bool CheckBeforeDelete(T_UnitX t_unitx)
        {
            var result = true;

            // Write your logic here

            if (!result)
            {
                var AlertMsg = "Validation Alert - Before Delete !! Information not deleted.";
                ModelState.AddModelError("CustomError", AlertMsg);
                ViewBag.ApplicationError = AlertMsg;
            }
            return(result);
        }
Esempio n. 6
0
 public void AfterSave(T_UnitX t_unitx)
 {
     // Write your logic here
 }
Esempio n. 7
0
 public void OnSaving(T_UnitX t_unitx, ApplicationContext db)
 {
     // Write your logic here
 }
Esempio n. 8
0
 public void OnDeleting(T_UnitX t_unitx)
 {
     // Write your logic here
 }
Esempio n. 9
0
 private RedirectToRouteResult CustomRedirectUrl(T_UnitX t_unitx, string action, string command = "")
 {
     // Sample Custom implemention below
     // return RedirectToAction("Index", "T_UnitX");
     return(null);
 }
Esempio n. 10
0
 private void CustomLoadViewDataListAfterEdit(T_UnitX t_unitx)
 {
 }
Esempio n. 11
0
 private void CustomLoadViewDataListBeforeEdit(T_UnitX t_unitx)
 {
 }
Esempio n. 12
0
 private void CustomLoadViewDataListAfterOnCreate(T_UnitX t_unitx)
 {
 }