public ActionResult MasterFormcreates(string formName, string FormWorkFlow_1, FormCollection form)
        {
            var appSettings = form.AllKeys.Where(k => k.StartsWith("AppSettings.")).ToDictionary(k => k, k => form[k]);
            Dictionary <string, object> forma = new Dictionary <string, object>(); form.CopyTo(forma);

            TextBoxList textList = new TextBoxList();

            foreach (String key in form.AllKeys)
            {
                if (key != "FormWorkFlow_1")
                {
                    TextBoxViewModel textBoxList1 = new TextBoxViewModel();
                    textBoxList1.FieldId = key;
                    textBoxList1.Value   = form[key];
                    textList.Add(textBoxList1);
                }
            }
            RelianceController.FormFieldController formFieldController = new RelianceController.FormFieldController();
            TextBoxViewModel textBoxList      = formFieldController.InsertMetada(formName, "", textList);
            MasterDocumentDo masterDocumentDo = new MasterDocumentDo();

            masterDocumentDo.Formid = Convert.ToInt32(TempData["Dataid"]);
            if (FormWorkFlow_1 != "0")
            {
                masterDocumentDo.docid    = textBoxList.IdentityId;
                masterDocumentDo.Formid   = Convert.ToInt32(TempData["Dataid"]);
                masterDocumentDo.UserId   = Convert.ToInt32(Session["LOGGED_UserId"]);
                masterDocumentDo.RoleId   = Convert.ToInt32(Session["LOGGED_ROLE"]);
                masterDocumentDo.FormName = formName;
                MasterDocumentController masterDocumentController = new MasterDocumentController();
                masterDocumentController.AddMasterDocument(masterDocumentDo);
            }
            return(RedirectToAction("MasterFormcreate", "FormMaster", new { LinKType = masterDocumentDo.Formid }));
        }
        public ActionResult TextBoxControl(string formName, FormCollection form)
        {
            TextBoxList textList = new TextBoxList();

            foreach (String key in form.AllKeys)
            {
                TextBoxViewModel textBoxList1 = new TextBoxViewModel();
                textBoxList1.FieldId = key;
                textBoxList1.Value   = form[key];

                textList.Add(textBoxList1);
            }
            RelianceController.FormFieldController formFieldController = new FormFieldController();
            formFieldController.InsertMetada(formName, "", textList);
            // TextList.Add(textBoxList1);
            return(View());
            // return Json(new { OnSuccess = "success" }, JsonRequestBehavior.AllowGet);
        }
        public ActionResult UpdateFields(string formName, string id, FormCollection form)
        {
            TextBoxList textList = new TextBoxList();

            foreach (String key in form.AllKeys)
            {
                TextBoxViewModel textBoxList1 = new TextBoxViewModel();
                textBoxList1.FieldId = key;
                textBoxList1.Value   = form[key];
                if (key == "id")
                {
                    // textList.Add(textBoxList1);
                }
                else
                {
                    textList.Add(textBoxList1);
                }
            }
            RelianceController.FormFieldController formFieldController = new RelianceController.FormFieldController();
            formFieldController.UpdateMasterField(formName, id, "", textList);
            return(RedirectToAction("MasterFormcreate", "FormMaster", new { LinKType = Convert.ToInt32(TempData["Dataid"]) }));
        }
Beispiel #4
0
        /// <summary>
        /// 텍스트 박스 리스트에 모든 텍스트 박스를 추가합니다.
        /// </summary>
        public void InitWIthTextBoxList()
        {
            _textBoxList.Add(textBoxFolderName);
            _textBoxList.Add(textBoxKeyPath);
            _textBoxList.Add(textBoxGameName);
            _textBoxList.Add(textBoxKeyAlias);
            _textBoxList.Add(textBoxPassWord);
            _textBoxList.Add(textBoxPackageName);
            _textBoxList.Add(textBox_keyOU);
            _textBoxList.Add(textBox_keyO);
            _textBoxList.Add(textBox_keyL);
            _textBoxList.Add(textBox_keyS);
            _textBoxList.Add(textBox_keyC);
            _textBoxList.Add(comboBoxOrientation);
            _textBoxList.Add(comboBoxFullscreen);
            _textBoxList.Add(comboBoxMinSdkVersion);
            _textBoxList.Add(comboBoxTargetSdkVersion);
            _textBoxList.Add(textBoxSettingGameFolder);
            _textBoxList.Add(comboBoxBuildMode);
            _textBoxList.Add(comboBoxCompileSdkVersion);

            _textBoxList.plugins = listBoxPlugins;
        }