Пример #1
0
 public static void CreateRow(string tableGuid, string tableName, string label, string inputType, string inputLabel, string inputCommand, string notes)
 {
     var model = new CCTableRowModel {
         _Id = Guid.NewGuid().ToString(),
         Guid = Guid.NewGuid().ToString(),
         TableGuid = tableGuid,
         Label = label,
         InputType = inputType,
         InputLabel = inputLabel,
         InputCommand = inputCommand,
         Notes = notes
     };
     model.HtmlInputID = "New" + tableName.UppercaseAllFirstLetters().RemoveWhiteSpace() + model.Label.UppercaseAllFirstLetters().RemoveWhiteSpace();
     model.HtmlSumbitID = "Update" + tableName.UppercaseAllFirstLetters().RemoveWhiteSpace() + model.Label.UppercaseAllFirstLetters().RemoveWhiteSpace();
     DeNSo.Session.New.Set(model);
 }
Пример #2
0
        public static void CreateRow(string tableGuid, string tableName, string label, string inputType, string inputLabel, string inputCommand, string notes)
        {
            var model = new CCTableRowModel {
                _Id          = Guid.NewGuid().ToString(),
                Guid         = Guid.NewGuid().ToString(),
                TableGuid    = tableGuid,
                Label        = label,
                InputType    = inputType,
                InputLabel   = inputLabel,
                InputCommand = inputCommand,
                Notes        = notes
            };

            model.HtmlInputID  = "New" + tableName.UppercaseAllFirstLetters().RemoveWhiteSpace() + model.Label.UppercaseAllFirstLetters().RemoveWhiteSpace();
            model.HtmlSumbitID = "Update" + tableName.UppercaseAllFirstLetters().RemoveWhiteSpace() + model.Label.UppercaseAllFirstLetters().RemoveWhiteSpace();
            DeNSo.Session.New.Set(model);
        }