Beispiel #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));
        }
Beispiel #3
0
        public ActionResult ProductDetail(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "ProductAreas.P_Product.Detail";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            return(View("ProductDetail", 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 ActionResult DetailCompCU(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "AuthorizationAreas.Pre_Role.DetailCompCU";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.FunNameEn = "Detail";
            return(View("Edit", resp));
        }
Beispiel #6
0
        /// <summary>
        /// 捐助查询--查看
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Detail2(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "DonationAreas.Donation.Detail2";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
Beispiel #7
0
        /// <summary>
        /// 文档类别管理--编辑查询
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Edit(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "DocArea.Doc_Category.Index";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            ModularOrFunCode = "DocArea.Doc_Category.Edit";
            return(View("PopupEdit", resp));
        }
Beispiel #8
0
        /// <summary>
        /// 商品类别管理--Row
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Row(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "ProductAreas.P_Category.Detail";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.Items.Add(resp.Item);
            return(View("Rows", resp));
        }
        /// <summary>
        /// 门店模板管理--查看
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Detail(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode = "FranchiseeAreas.Fra_StoreTemplate.Detail";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.FunNameEn = "Detail";
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return View(Design_ModularOrFun.MainView, resp);
        }
        /// <summary>
        /// 会员等级--Row
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Row(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "MemberGradeAreas.MG_MemberGrade.Index";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.Items.Add(resp.Item);
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View("Rows", resp));
        }
        /// <summary>
        /// 公司管理--编辑查询
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Detail(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "AuthorizationAreas.Pre_Company.Detail";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            //MenuCode = "AuthorizationPanel";
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
        /// <summary>
        /// 公司管理--编辑查询
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Detail1(SoftProjectAreaEntityDomain domain)
        {
            domain.Item.Pre_CompanyID  = LoginInfo.CompanyID;
            ModularOrFunCode           = "AuthorizationAreas.Pre_Company.Detail1";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
Beispiel #13
0
        /// <summary>
        /// 组织机构管理--编辑查询
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Edit(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "PreOrg_Area.Pre_Organization.Index";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.Item.LoginCategoryID = 1;
            ModularOrFunCode          = "PreOrg_Area.Pre_Organization.Edit";
            return(View("PopupEdit", resp));
        }
        /// <summary>
        /// 文档管理--编辑查询
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult DetailHome(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "DocArea.Doc_Docment.Index";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            ModularOrFunCode     = "DocArea.Doc_Docment.DetailHome";
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
Beispiel #15
0
        /// <summary>
        /// 投诉--查看
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Detail(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "ComplaintAreas.Complaint.Detail";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.FunNameEn       = "Detail";
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
Beispiel #16
0
        /// <summary>
        /// 组织机构管理--Row
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Row(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "PreOrg_Area.Pre_Organization.Index";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.Items.Add(resp.Item);
            ModularOrFunCode = "PreOrg_Area.Pre_Organization.Index";
            return(View("Rows", resp));
        }
        /// <summary>
        /// 促销公告--查看
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult DetailByCurrMonth(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "PromotionAreas.Pr_Notice.DetailByCurrMonth";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.FunNameEn       = "Detail";
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
Beispiel #18
0
        /// <summary>
        /// 文档类别管理--Row
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Row(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "DocArea.Doc_Category.Index";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.Items.Add(resp.Item);
            //
            //resp.FunNameEn = ActionName;
            return(View("Rows", resp));
        }
        /// <summary>
        /// 回访管理--编辑查询
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult EditCompCP(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "CustomerAreas.C_Visit.EditCompCP";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            ModularOrFunCode     = "CustomerAreas.C_Visit.EditCompCP";
            resp.FunNameEn       = "Edit";
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
Beispiel #20
0
        /// <summary>
        /// 企业合作商管理--编辑查询
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult EditByMyCompCP(SoftProjectAreaEntityDomain domain)
        {
            domain.Item.Pre_UserID     = LoginInfo.Sys_LoginInfoID;
            ModularOrFunCode           = "AuthorizationAreas.Pre_User.DetailCompCP";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            ModularOrFunCode     = "AuthorizationAreas.Pre_User.EditByMyCompCP";
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
Beispiel #21
0
        /// <summary>
        /// 企业合作商管理--编辑查询
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult DetailCompCP(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "AuthorizationAreas.Pre_User.DetailCompCP";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.FunNameEn       = "Detail";
            ModularOrFunCode     = "AuthorizationAreas.Pre_User.DetailCompCP";
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
Beispiel #22
0
        /// <summary>
        /// 门店管理--查看
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Detail(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "FranchiseeAreas.Fra_Store.Detail";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.Item.StoreContext = resp.Item.StoreContext.Replace("<input ", "<input disabled='disabled'");// (p => p.StoreContext = p.StoreContext.Replace("<input ", "<input disabled='disabled'"));
            resp.FunNameEn         = "Detail";
            resp.ViewContextName   = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
        ///// <summary>
        ///// 文档管理--浏览(根据类别ID)
        ///// </summary>
        ///// <param name="domain"></param>
        ///// <returns></returns>
        //public ActionResult IndexBrower(SoftProjectAreaEntityDomain domain)
        //{
        //    if (!domain.Querys.QueryDicts.ContainsKey("Doc_CategoryID___equal"))
        //    {
        //        if (domain.Item.Doc_CategoryID == null)
        //            throw new Exception("文档类别不能为空");
        //        domain.Querys.Add(new Query { QuryType = 0, FieldName = "Doc_CategoryID___equal", Value = domain.Item.Doc_CategoryID.ToString() });
        //    }

        //    ModularOrFunCode = "DocArea.Doc_Docment.IndexBrower";
        //    domain.Design_ModularOrFun = Design_ModularOrFun;
        //    var resp = domain.QueryIndex();

        //    if (Request.IsAjaxRequest())
        //        return View("Doc_List",resp);
        //    resp.ViewContextName = "Doc_List";// Design_ModularOrFun.PartialView;
        //    return View("Doc_Frame", resp);
        //}

        ///// <summary>
        ///// 文档管理--浏览(根据类别ID)
        ///// </summary>
        ///// <param name="domain"></param>
        ///// <returns></returns>
        //public ActionResult IndexBrowerHome(SoftProjectAreaEntityDomain domain)
        //{
        //    //Doc_CategoryID
        //    if (domain.Item.Doc_CategoryID == null)
        //        throw new Exception("文档类别不能为空");
        //    domain.Querys.Add(new Query { QuryType = 0, FieldName = "Doc_CategoryID___equal", Value = domain.Item.Doc_CategoryID.ToString() });

        //    ModularOrFunCode = "DocArea.Doc_Docment.Index";
        //    domain.Design_ModularOrFun = Design_ModularOrFun;
        //    var resp = domain.QueryIndex();

        //    if (Request.IsAjaxRequest())
        //        return View(Design_ModularOrFun.PartialView, resp);
        //    resp.ViewContextName = Design_ModularOrFun.PartialView;
        //    return View(Design_ModularOrFun.MainView, resp);
        //}

        #endregion

        /// <summary>
        /// 文档管理--浏览查看
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult IndexBrowerDetail(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "DocArea.Doc_Docment.Index";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.FunNameEn       = "Detail";
            ModularOrFunCode     = "DocArea.Doc_Docment.Detail";
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View("Doc_Detail", resp));
        }
        /// <summary>
        /// 顾客充值--Row
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Row(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "CustomerAreas.C_Recharge.Index";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.Items.Add(resp.Item);
            resp.FunNameEn       = "Row";
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View("Rows", resp));
        }
        /// <summary>
        /// 会员等级--编辑查询
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Edit(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "MemberGradeAreas.MG_MemberGrade.Edit";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            ModularOrFunCode     = "MemberGradeAreas.MG_MemberGrade.Edit";
            resp.FunNameEn       = "Edit";
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
        /// <summary>
        /// 活动费用规定--编辑查询
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Edit(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "ActivityAreas.Act_ActivityCostRegulation.Edit";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            ModularOrFunCode     = "ActivityAreas.Act_ActivityCostRegulation.Edit";
            resp.FunNameEn       = "Edit";
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
Beispiel #27
0
        /// <summary>
        /// 企业客户管理--编辑查询
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult EditCompCU(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "AuthorizationAreas.Pre_User.DetailCompCU";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.Item.LoginCategoryID = 8;
            resp.FunNameEn            = "Edit";
            ModularOrFunCode          = "AuthorizationAreas.Pre_User.EditCompCU";
            resp.ViewContextName      = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
Beispiel #28
0
        /// <summary>
        /// 待审核捐助--审核查询
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Audit(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "DonationAreas.Donation.Audit";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.Item.AuditDate     = DateTime.Now;
            resp.Item.AuditPersonID = LoginInfo.Sys_LoginInfoID;
            resp.Item.AuditPerson   = LoginInfo.UserName;
            ModularOrFunCode        = "DonationAreas.Donation.Audit";
            resp.FunNameEn          = "Audit";
            resp.ViewContextName    = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
Beispiel #29
0
        /// <summary>
        /// 待审核列表--审核查询
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Examine(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "CaseArea.CA_Case.Examine";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.Item.CaseAuditDate     = DateTime.Now;
            resp.Item.CaseAuditPersonID = LoginInfo.Sys_LoginInfoID;
            resp.Item.CaseAuditPerson   = LoginInfo.UserName;

            resp.FunNameEn       = "Detail";
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
Beispiel #30
0
        /// <summary>
        /// 活动管理--查看
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult DetailDashboard(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "ActivityAreas.Fra_Activity.DetailDashboard";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.ByID();

            resp.Item.ActivityFlowContext    = resp.Item.ActivityFlowContext.Replace("<input ", "<input disabled='disabled'");
            resp.Item.ActivitySelfAtudyTable = resp.Item.ActivitySelfAtudyTable.Replace("<input ", "<input disabled='disabled'");
            resp.Item.ActivityConclusion     = resp.Item.ActivityConclusion.Replace("<input ", "<input disabled='disabled'");

            resp.FunNameEn       = "Detail";
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }