当前位置: 首页>>代码示例>>C#>>正文


C# SoftProjectAreaEntityDomain.AddSave方法代码示例

本文整理汇总了C#中SoftProject.Domain.SoftProjectAreaEntityDomain.AddSave方法的典型用法代码示例。如果您正苦于以下问题:C# SoftProjectAreaEntityDomain.AddSave方法的具体用法?C# SoftProjectAreaEntityDomain.AddSave怎么用?C# SoftProjectAreaEntityDomain.AddSave使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SoftProject.Domain.SoftProjectAreaEntityDomain的用法示例。


在下文中一共展示了SoftProjectAreaEntityDomain.AddSave方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: UpLoad

        public ActionResult UpLoad(SoftProjectAreaEntityDomain domain)
        {
            #region 保存文件

            if (domain.Item.Doc_BaseDocmentID == null)
                throw new Exception("文档ID不能为空");
            domain.Item.AttachmentFileSizeDisp = ProjectCommon.FileSizeDisp(domain.Item.AttachmentFileSize);
            ModularOrFunCode = "DocArea.Doc_BaseDocmentAttachment.Upload";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var respadd = domain.AddSave();
            #endregion

            #region 查询
            if (respadd.Item.Doc_BaseDocmentAttachmentID == null)
                throw new Exception("添加失败");
            domain.Item.Doc_BaseDocmentAttachmentID = respadd.Item.Doc_BaseDocmentAttachmentID;
            ModularOrFunCode = "DocArea.Doc_BaseDocmentAttachment.Index";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.Items.Add(resp.Item);
            resp.FunNameEn = "Detail";
            resp.ViewContextName = Design_ModularOrFun.PartialView;

            #endregion
            return View("Rows", resp);
        }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:27,代码来源:Doc_BaseDocmentAttachmentControll.cs

示例2: AddSave

 public HJsonResult AddSave(SoftProjectAreaEntityDomain domain)
 {
     domain.Item.ToolDesc = Server.UrlDecode(domain.Item.ToolDesc);
     ModularOrFunCode = "ToolArea.T_Tool.Add";
     domain.Design_ModularOrFun = Design_ModularOrFun;
     var resp = domain.AddSave();
     return new HJsonResult(new { Data = resp });
 }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:8,代码来源:T_ToolControll.cs

示例3: AddSave

 public HJsonResult AddSave(SoftProjectAreaEntityDomain domain)
 {
     domain.Item.SurveyTemplateTitleContext = Server.UrlDecode(domain.Item.SurveyTemplateTitleContext);
     ModularOrFunCode = "ActivityAreas.Act_SurveyTemplate.Add";
     domain.Design_ModularOrFun = Design_ModularOrFun;
     var resp = domain.AddSave();
     return new HJsonResult(new { Data = resp });
 }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:8,代码来源:Act_SurveyTemplateControll.cs

示例4: AddSave

 public HJsonResult AddSave(SoftProjectAreaEntityDomain domain)
 {
     domain.Item.GuidanceContent = Server.UrlDecode(domain.Item.GuidanceContent);
     ModularOrFunCode = "FranchiseeAreas.Fra_Guidance.Add";
     domain.Design_ModularOrFun = Design_ModularOrFun;
     var resp = domain.AddSave();
     return new HJsonResult(new { Data = resp });
 }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:8,代码来源:Fra_GuidanceControll.cs

示例5: AddSave

 public HJsonResult AddSave(SoftProjectAreaEntityDomain domain)
 {
     domain.Item.PromotionContext = Server.UrlDecode(domain.Item.PromotionContext);
     ModularOrFunCode = "PromotionAreas.Pr_Notice.Add";
     domain.Design_ModularOrFun = Design_ModularOrFun;
     var resp = domain.AddSave();
     return new HJsonResult(new { Data = resp });
 }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:8,代码来源:Pr_NoticeControll.cs

示例6: AddSave

 public HJsonResult AddSave(SoftProjectAreaEntityDomain domain)
 {
     #region 初始值
     #endregion
     ModularOrFunCode = "CollocationAreas.CT_CollocationTips.Add";
     domain.Design_ModularOrFun = Design_ModularOrFun;
     var resp = domain.AddSave();
     return new HJsonResult(new { Data = resp });
 }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:9,代码来源:CT_CollocationTipsControll.cs

示例7: AddSave

 public HJsonResult AddSave(SoftProjectAreaEntityDomain domain)
 {
     domain.Item.Pre_CompanyID = LoginInfo.CompanyID;
     domain.Item.ComplaintStatuID = 1;
     ModularOrFunCode = "ComplaintAreas.Complaint.Add";
     domain.Design_ModularOrFun = Design_ModularOrFun;
     var resp = domain.AddSave();
     return new HJsonResult(new { Data = resp });
 }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:9,代码来源:ComplaintControll.cs

示例8: AddSave

 public HJsonResult AddSave(SoftProjectAreaEntityDomain domain)
 {
     if (domain.Item.ParentT_ToolCategoryID == null)
         domain.Item.ParentT_ToolCategoryID = 0;
     ModularOrFunCode = "ToolArea.T_ToolCategory.Add";
     domain.Design_ModularOrFun = Design_ModularOrFun;
     var resp = domain.AddSave();
     domain.T_ToolCategory_AddCache();
     return new HJsonResult(new { Data = resp });
 }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:10,代码来源:T_ToolCategoryControll.cs

示例9: AddSave

        /// <summary>
        /// 基本文档管理--添加保存
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public HJsonResult AddSave(SoftProjectAreaEntityDomain domain)
        {
            domain.Item.Pre_CompanyID = LoginInfo.CompanyID;
            domain.Item.DocmentContext = Server.UrlDecode(domain.Item.DocmentContext);
            ModularOrFunCode = "DocArea.Doc_BaseDocment.Add";
            domain.Design_ModularOrFun = Design_ModularOrFun;

            var resp = domain.AddSave();
            return new HJsonResult(new { Data = resp });
        }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:15,代码来源:Doc_BaseDocmentController.cs

示例10: AddSave

        public HJsonResult AddSave(SoftProjectAreaEntityDomain domain)
        {
            domain.Item.Pre_CompanyID = LoginInfo.CompanyID;
            domain.Item.CaseAuditStatuID = 1;
            domain.Item.CaseDescription = Server.UrlDecode(domain.Item.CaseDescription);
            domain.Item.CaseExperience = Server.UrlDecode(domain.Item.CaseExperience);

            ModularOrFunCode = "CaseArea.CA_Case.Add";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.AddSave();
            return new HJsonResult(new { Data = resp });
        }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:12,代码来源:CA_CaseControll.cs

示例11: AddSave

        /// <summary>
        /// 组织机构管理--添加保存
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public HJsonResult AddSave(SoftProjectAreaEntityDomain domain)
        {
            domain.Item.Pre_CompanyID = LoginInfo.CompanyID;
            domain.Item.LoginCategoryID = 1;
            ModularOrFunCode = "PreOrg_Area.Pre_Organization.Add";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.AddSave();

            domain.Item.Pre_OrganizationID = resp.Item.Pre_OrganizationID;
            domain.Pre_Organization_AddCache();
            return new HJsonResult(new { Data = resp });
        }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:17,代码来源:Pre_OrganizationController.cs

示例12: AddCompCPSave

        public HJsonResult AddCompCPSave(SoftProjectAreaEntityDomain domain)
        {
            #region 初始值
            #endregion
            domain.Item.SymptomDesc = Server.UrlDecode(domain.Item.SymptomDesc);
            domain.Item.Suggestions = Server.UrlDecode(domain.Item.Suggestions);
            domain.Item.Formula = Server.UrlDecode(domain.Item.Formula);

            ModularOrFunCode = "CustomerAreas.C_ExpertGuidance.AddCompCP";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.AddSave();
            return new HJsonResult(new { Data = resp });
        }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:13,代码来源:C_ExpertGuidanceControll.cs

示例13: AddSave

        /// <summary>
        /// 文档类别管理--添加保存
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public HJsonResult AddSave(SoftProjectAreaEntityDomain domain)
        {
            domain.Item.Pre_CompanyID = LoginInfo.CompanyID;

            if (domain.Item.ParentDoc_CategoryID == null)
                domain.Item.ParentDoc_CategoryID = 0;
            ModularOrFunCode = "DocArea.Doc_Category.Add";
            domain.Design_ModularOrFun = Design_ModularOrFun;

            var resp = domain.AddSave();

            domain.Item.Doc_CategoryID = resp.Item.Doc_CategoryID;
            domain.Doc_Category_AddCache();
            return new HJsonResult(new { Data = resp });
        }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:20,代码来源:Doc_CategoryController.cs

示例14: AddSave

        public HJsonResult AddSave(SoftProjectAreaEntityDomain domain)
        {
            domain.Item.ActivitySelfAtudyTable = Server.UrlDecode(domain.Item.ActivitySelfAtudyTable);
            domain.Item.ActivityConclusion = Server.UrlDecode(domain.Item.ActivityConclusion);
            domain.Item.ActivityStatuID = 1;

            if (domain.Item.ActivityStartDate != null && domain.Item.ActivityEndDate != null)
            {
                domain.Item.DayLen = domain.Item.ActivityStartDate.GetDay(domain.Item.ActivityEndDate);
            }

            ModularOrFunCode = "ActivityAreas.Fra_Activity.Add";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.AddSave();
            return new HJsonResult(new { Data = resp });
        }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:16,代码来源:Fra_ActivityControll.cs

示例15: UpLoadHandout

        public ActionResult UpLoadHandout(SoftProjectAreaEntityDomain domain)
        {
            #region 保存文件
            if (domain.Item.RefPKTableGuid == null)
                throw new Exception("附件Guid不能为空");
            domain.Item.AttachmentFileSizeDisp = ProjectCommon.FileSizeDisp(domain.Item.AttachmentFileSize);
            ModularOrFunCode = "MarketingAreas.M_MarketingAttachment.Upload";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var respadd = domain.AddSave();
            #endregion

            #region 查询
            if (respadd.Item.M_MarketingAttachmentID == null)
                throw new Exception("添加失败");
            domain.Item.M_MarketingAttachmentID = respadd.Item.M_MarketingAttachmentID;
            ModularOrFunCode = "MarketingAreas.M_MarketingAttachment.IndexEdit";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.Items.Add(resp.Item);
            resp.FunNameEn = "Detail";
            resp.ViewContextName = Design_ModularOrFun.PartialView;

            #endregion
            return View("Rows", resp);
        }
开发者ID:GreatChuangSoftWare,项目名称:WuGU,代码行数:26,代码来源:M_MarketingAttachmentControll.cs


注:本文中的SoftProject.Domain.SoftProjectAreaEntityDomain.AddSave方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。