예제 #1
0
        /// <summary>
        /// 提交表单数据
        /// </summary>
        public void SubmitForm()
        {
            string keyValue = !string.IsNullOrEmpty(ctx.Request["keyValue"]) ? ctx.Request["keyValue"] : ctx.Request["id"];
            order  or       = HttpContextDataWrapper.DataToObject <order>(ctx);

            IdalCommon.IorderEx.SubmitForm(or, keyValue);
            Success("操作成功!");
        }
예제 #2
0
 /// <summary>
 /// 提交表单数据
 /// </summary>
 public void SubmitForm()
 {
     try
     {
         string             keyValue = !string.IsNullOrEmpty(ctx.Request["keyValue"]) ? ctx.Request["keyValue"] : ctx.Request["id"];
         workflownodeaction wfna     = HttpContextDataWrapper.DataToObject <workflownodeaction>(ctx);
         IdalCommon.IworkflownodeactionEx.SubmitForm(wfna, keyValue);
         Success("操作成功!");
     }
     catch (Exception)
     {
         Error("操作失败!");
     }
 }
예제 #3
0
 /// <summary>
 /// 提交表单数据
 /// </summary>
 public void SubmitForm()
 {
     try
     {
         string          keyValue = !string.IsNullOrEmpty(ctx.Request["keyValue"]) ? ctx.Request["keyValue"] : ctx.Request["id"];
         propertymapping pm       = HttpContextDataWrapper.DataToObject <propertymapping>(ctx);
         IdalCommon.IpropertyMappingEx.SubmitForm(pm, keyValue);
         Success("操作成功!");
     }
     catch (Exception)
     {
         Error("操作失败!");
     }
 }
예제 #4
0
 /// <summary>
 /// 数据提交
 /// </summary>
 /// <param name="resource">资源对象</param>
 /// <param name="keyValue">对象id</param>
 /// <returns></returns>
 public void SubmitForm()
 {
     try
     {
         string   keyValue = !string.IsNullOrEmpty(ctx.Request["keyValue"]) ? ctx.Request["keyValue"] : ctx.Request["id"];
         resource re       = HttpContextDataWrapper.DataToObject <resource>(ctx);
         IdalCommon.IresourceEx.SubmitForm(re, keyValue);
         Success("操作成功!");
     }
     catch (Exception)
     {
         Error("操作失败!");
     }
 }
예제 #5
0
 /// <summary>
 /// 提交表单数据
 /// </summary>
 public void SubmitForm()
 {
     try
     {
         string keyValue = !string.IsNullOrEmpty(ctx.Request["keyValue"]) ? ctx.Request["keyValue"] : ctx.Request["id"];
         role   role     = HttpContextDataWrapper.DataToObject <role>(ctx);
         string resourcepermissionIds = ctx.Request["resourcepermissionIds"]; //资源权限
         string actionpermissionIds   = ctx.Request["actionpermissionIds"];   //动作权限
         IdalCommon.IroleEx.SubmitForm(role, resourcepermissionIds, actionpermissionIds, keyValue);
         Success("操作成功!");
     }
     catch (Exception)
     {
         Error("操作失败!");
     }
 }
예제 #6
0
 /// <summary>
 /// 提交表单
 /// </summary>
 public void SubmitForm()
 {
     try
     {
         string keyValue = !string.IsNullOrEmpty(ctx.Request["keyValue"]) ? ctx.Request["keyValue"] : ctx.Request["id"];
         user   u        = HttpContextDataWrapper.DataToObject <user>(ctx);
         //关联角色
         string rolelistIds = ctx.Request["rolelistIds"];
         //关联分组
         string grouplistIds = ctx.Request["grouplistIds"];
         IdalCommon.IuserEx.SubmitForm(u, rolelistIds, grouplistIds, keyValue);
         Success("操作成功!");
     }
     catch (Exception)
     {
         Error("操作失败!");
     }
 }
예제 #7
0
 /// <summary>
 /// 提交表单数据
 /// </summary>
 public void SubmitForm()
 {
     try
     {
         string keyValue = !string.IsNullOrEmpty(ctx.Request["keyValue"]) ? ctx.Request["keyValue"] : ctx.Request["id"];
         action ac       = HttpContextDataWrapper.DataToObject <action>(ctx);
         //if (ac.actiontype != 1)
         //{
         //    ac.actionowner=Convert.ToString(IdalCommon.IactionEx.getActionId(IdalCommon.IresourceEx.getEntityById(Convert.ToInt32(ac.actionowner)).resourcename));
         //}
         IdalCommon.IactionEx.SubmitForm(ac, keyValue);
         Success("操作成功!");
     }
     catch (Exception)
     {
         Error("操作失败!");
     }
 }