Exemplo n.º 1
0
        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));
        }
        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));
        }
        /// <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);
            var DocmentContextImg = Tool.GetHtmlImageUrlList(domain.Item.DocmentContext);

            if (DocmentContextImg.Count() > 0)
            {
                domain.Item.DocmentThumbnailPath = DocmentContextImg.First();
            }
            var DocmentOutline       = Tool.HtmlToText(domain.Item.DocmentContext);
            var DocmentOutlineLength = 30;

            if (DocmentOutline.Length <= 30)
            {
                DocmentOutlineLength = DocmentOutline.Length;
            }
            domain.Item.DocmentOutline = DocmentOutline.Substring(0, DocmentOutlineLength);

            //domain.Item.DocmentOutline = domain.Item.DocmentOutline.Substring(0, 30);

            ModularOrFunCode           = "DocArea.Doc_Docment.Add";
            domain.Design_ModularOrFun = Design_ModularOrFun;

            var resp = domain.AddSave();

            return(new HJsonResult(new { Data = resp }));
        }
 public HJsonResult AddSave(SoftProjectAreaEntityDomain domain)
 {
     domain.Item.StoreTemplateContext = Server.UrlDecode(domain.Item.StoreTemplateContext);
     ModularOrFunCode = "FranchiseeAreas.Fra_StoreTemplate.Add";
     domain.Design_ModularOrFun = Design_ModularOrFun;
     var resp = domain.AddSave();
     return new HJsonResult(new { Data = resp });
 }
        public ActionResult UpLoad(SoftProjectAreaEntityDomain domain)
        {
            #region 原代码

            //#region 保存文件

            //if (domain.Item.P_ProductID == null)
            //    throw new Exception("ID不能为空");
            //domain.Item.AttachmentFileSizeDisp = ProjectCommon.FileSizeDisp(domain.Item.AttachmentFileSize);
            //ModularOrFunCode = "ProductAreas.P_ProductAttachment.Upload";
            //domain.Design_ModularOrFun = Design_ModularOrFun;
            //var respadd = domain.AddSave();
            //#endregion

            //#region 查询
            //if (respadd.Item.P_ProductAttachmentID == null)
            //    throw new Exception("添加失败");
            //domain.Item.Doc_DocmentAttachmentID = respadd.Item.Doc_DocmentAttachmentID;
            //ModularOrFunCode = "ProductAreas.P_ProductAttachment.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);
            #endregion
            ///////////////////////////////////////////
            #region 保存文件
            if (domain.Item.RefPKTableGuid == null)
            {
                throw new Exception("附件Guid不能为空");
            }
            domain.Item.AttachmentFileSizeDisp = ProjectCommon.FileSizeDisp(domain.Item.AttachmentFileSize);
            ModularOrFunCode           = "ProductAreas.P_ProductAttachment.Upload";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var respadd = domain.AddSave();
            #endregion

            #region 查询
            if (respadd.Item.P_ProductAttachmentID == null)
            {
                throw new Exception("添加失败");
            }
            domain.Item.P_ProductAttachmentID = respadd.Item.P_ProductAttachmentID;
            ModularOrFunCode           = "ProductAreas.P_ProductAttachment.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));
        }
 public HJsonResult AddSave(SoftProjectAreaEntityDomain domain)
 {
     #region 初始值
     #endregion
     ModularOrFunCode           = "ToolArea.T_ToolCategory.Add";
     domain.Design_ModularOrFun = Design_ModularOrFun;
     var resp = domain.AddSave();
     return(new HJsonResult(new { Data = resp }));
 }
Exemplo n.º 7
0
        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 }));
        }
 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 }));
 }
Exemplo n.º 9
0
        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 }));
        }
Exemplo n.º 10
0
        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 }));
        }
Exemplo n.º 11
0
 public HJsonResult AddSave(SoftProjectAreaEntityDomain domain)
 {
     #region 初始值
     #endregion
     ModularOrFunCode           = "MarketingAreas.M_Marketing.Add";
     domain.Design_ModularOrFun = Design_ModularOrFun;
     var resp = domain.AddSave();
     return(new HJsonResult(new { Data = resp }));
 }
Exemplo n.º 12
0
        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 }));
        }
Exemplo n.º 13
0
 public HJsonResult AddSave(SoftProjectAreaEntityDomain domain)
 {
     #region 初始值
     #endregion
     domain.Item.ProductContext = Server.UrlDecode(domain.Item.ProductContext);
     ModularOrFunCode           = "ProductAreas.P_Product.Add";
     domain.Design_ModularOrFun = Design_ModularOrFun;
     var resp = domain.AddSave();
     return(new HJsonResult(new { Data = resp }));
 }
Exemplo n.º 14
0
        public HJsonResult AddSave(SoftProjectAreaEntityDomain domain)
        {
            domain.Item.Pre_CompanyID   = LoginInfo.CompanyID;
            domain.Item.AuditStatuID    = 1;
            domain.Item.DonationContext = Server.UrlDecode(domain.Item.DonationContext);
            ModularOrFunCode            = "DonationAreas.Donation.Add";
            domain.Design_ModularOrFun  = Design_ModularOrFun;
            var resp = domain.AddSave();

            return(new HJsonResult(new { Data = resp }));
        }
Exemplo n.º 15
0
        /// <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 }));
        }
Exemplo n.º 16
0
        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 }));
        }
Exemplo n.º 17
0
        public HJsonResult AddSave(SoftProjectAreaEntityDomain domain)
        {
            if (domain.Item.ParentCA_CaseCategoryID == null)
            {
                domain.Item.ParentCA_CaseCategoryID = 0;
            }
            ModularOrFunCode           = "CaseArea.CA_CaseCategory.Add";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.AddSave();

            domain.CA_CaseCategory_AddCache();
            return(new HJsonResult(new { Data = resp }));
        }
        public HJsonResult AddSave(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.Add";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.AddSave();
            return(new HJsonResult(new { Data = resp }));
        }
Exemplo n.º 19
0
        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 }));
        }
Exemplo n.º 20
0
        /// <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 }));
        }