示例#1
0
        public HJsonResult BulidEntity(SoftProjectAreaEntityDomain domain)
        {
            //return null;
            var resp = domain.Design_ModularField_BulidEntity();

            return(new HJsonResult(new { Data = resp }));
        }
示例#2
0
        public ActionResult IndexDashboard(SoftProjectAreaEntityDomain domain)
        {
            if (!domain.Querys.QueryDicts.ContainsKey("Pre_CompanyID___equal"))
            {
                if (domain.Item.Pre_CompanyID == null)
                {
                    throw new Exception("加盟商ID不有为空");
                }
                domain.Querys.Add(new Query {
                    QuryType = 0, FieldName = "Pre_CompanyID___equal", Value = domain.Item.Pre_CompanyID.ToString()
                });
            }

            //domain.Querys.Add(new Query { QuryType = 0, FieldName = "ActivityStatuID___equal", Value = "16" });
            ModularOrFunCode           = "ActivityAreas.Fra_Activity.IndexDashboard";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.QueryIndex();

            //resp.Items.ForEach(p => p.ActivitySelfAtudyTable = p.ActivitySelfAtudyTable.Replace("<input ", "<input disabled='disabled'"));
            //resp.Items.ForEach(p => p.ActivityConclusion = p.ActivityConclusion.Replace("<input ", "<input disabled='disabled'"));

            if (Request.IsAjaxRequest())
            {
                return(View(Design_ModularOrFun.PartialView, resp));
            }
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
示例#3
0
        public ActionResult Login(SoftProjectAreaEntityDomain domain)
        {
            //LoginInfo ss = new SoftProject.CellModel.SoftProjectAreaEntity();
            var resp = new MyResponseBase();

            resp.Item = domain.Item;
            if (domain.Item.MobilePhone != null)
            {
                try
                {
                    resp = domain.Login();
                    Session["LoginInfo"] = resp.Item;
                    if (resp.Item.LoginCategoryID == 1)
                    {
                        SoftProjectAreaEntityDomain.Sys_OperLogDetail_AddSave(1, 1, "登录", resp.Item.CompanyID, resp.Item.Sys_LoginInfoID, resp.Item.UserName, resp.Item.Sys_LoginInfoID, "登录");
                    }
                    else
                    {
                        SoftProjectAreaEntityDomain.Sys_OperLogDetail_AddSave(2, 1, "登录", resp.Item.CompanyID, resp.Item.Sys_LoginInfoID, resp.Item.UserName, resp.Item.Sys_LoginInfoID, "登录");
                    }

                    return(RedirectToAction("Index", "Home"));
                }
                catch (Exception e)
                {
                    resp.Item.ErrorMessage = e.Message;
                    return(View(resp));
                }
            }
            return(View(resp));
        }
        public HJsonResult EditListSave(SoftProjectAreaEntityDomain domain)
        {
            //return null;
            var resp = domain.Design_ModularOrFunBtn_EditListSave();

            return(new HJsonResult(new { Data = resp }));
        }
        public ActionResult IndexDashboard(SoftProjectAreaEntityDomain domain)
        {
            //domain.Querys.Add(new Query { QuryType = 0, FieldName = "Pre_CompanyID___equal", Value = LoginInfo.CompanyID.ToString() });
            if (!domain.Querys.QueryDicts.ContainsKey("Pre_CompanyID___equal"))
            {
                if (domain.Item.Pre_CompanyID == null)
                {
                    throw new Exception("加盟商ID不能为空");
                }
                domain.Querys.Add(new Query {
                    QuryType = 0, FieldName = "Pre_CompanyID___equal", Value = domain.Item.Pre_CompanyID.ToString()
                });
            }

            ModularOrFunCode           = "MemberGradeAreas.MG_MemberGrade.IndexDashboard";
            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));
        }
        /// <summary>
        /// 加盟商后台管理
        /// </summary>
        /// <returns></returns>
        public ActionResult CompIndex()
        {
            var loginInfo = new SoftProjectAreaEntity
            {
                Sys_LoginInfoID = 1,
                LoginName       = "公司1-企业管理员",
                PasswordDigest  = "",//;//.Item.PasswordDigest,
                CompanyID       = 1,
                CompanyName     = "公司",
                LoginCategoryID = 2,
                LoginNameCn     = "公司-企业管理员1",
                //HomeConstrollName = "Home",
                //HomeActionName = "Default",
                //CurrNav = "Home",
                //CurrMenuModularOrFunID = 71
            };

            //loginInfo.CurrNavCategoryID = 1;
            //loginInfo.CurrNav = "加盟商仪表盘";
            //loginInfo.CurrNavIdent = 1005;

            //Session["Pre_Users"] = new Pre_Users { Pre_UsersID = 1, UserName = "******", LoginName = "zs" };
            //SoftProjectAreaEntityDomain.Sys_OperLogDetail_AddSave(1, 1, "登录", 1, "登录");
            SoftProjectAreaEntityDomain.Sys_OperLogDetail_AddSave(2, 1, "登录", 1, 1, "公司1-企业管理员", 1, "登录");
            //SoftProjectAreaEntityDomain.Sys_OperLogDetail_AddSave(2, 1, "登录", 1005, "登录");
            Session["LoginInfo"] = loginInfo;

            return(View("Index"));
        }
        /// <summary>
        /// 公司后台管理
        /// </summary>
        /// <returns></returns>
        public ActionResult PlatformIndex()
        {
            var loginInfo = new SoftProjectAreaEntity
            {
                Sys_LoginInfoID = 1,
                LoginName       = "平台-超级管理员",
                PasswordDigest  = "",//;//.Item.PasswordDigest,
                CompanyID       = 1,
                CompanyName     = "平台-超级管理员",
                LoginCategoryID = 1,
                LoginNameCn     = "平台-超级管理员",
                //HomeConstrollName = "Home",
                //HomeActionName = "Default",
                //CurrNav = "Home",
                //CurrMenuModularOrFunID = 71
            };

            //loginInfo.CurrNavCategoryID = 1;
            //loginInfo.CurrNav = "加盟商仪表盘";
            //loginInfo.CurrNavIdent = 1005;

            SoftProjectAreaEntityDomain.Sys_OperLogDetail_AddSave(1, 1, "登录", 1, 1, "平台-超级管理员", 1, "登录");

            Session["LoginInfo"] = loginInfo;
            return(View("Index"));
        }
示例#8
0
        /// <summary>
        /// 文档类别管理--查询
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Index(SoftProjectAreaEntityDomain domain)
        {
            domain.Querys.Add(new Query {
                QuryType = 0, FieldName = "Pre_CompanyID___equal", Value = LoginInfo.CompanyID.ToString()
            });
            if (domain.Querys.QueryDicts.ContainsKey("ParentDoc_CategoryID___equal"))
            {
                if (domain.Querys.QueryDicts["ParentDoc_CategoryID___equal"].Value == "1")
                {
                    domain.Querys.Remove(domain.Querys.QueryDicts["ParentDoc_CategoryID___equal"]);
                }
            }

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

            //MenuCode = "AuthorizationPanel";

            if (Request.IsAjaxRequest())
            {
                return(View("TableContext", resp));
            }
            resp.TreeID        = "Doc_CategoryID";
            resp.TreeQueryType = 2;

            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
        public HJsonResult EditListBulidRecordByAtt(SoftProjectAreaEntityDomain domain)
        {
            //return null;
            var resp = domain.Design_ModularOrFunControll_EditListBulidRecordByAtt();

            return(new HJsonResult(new { Data = resp }));
        }
示例#10
0
        public ActionResult Index(SoftProjectAreaEntityDomain domain)
        {
            //if (!domain.Querys.QueryDicts.ContainsKey("T_ToolCategoryID___equal"))
            //{
            //    if (domain.Item.T_ToolCategoryID == null)
            //throw new Exception("主键不能为空");
            //domain.Querys.Add(new Query { QuryType = 0, FieldName = "T_ToolCategoryID___equal", Value = domain.Item.T_ToolCategoryID.ToString() });
            //}

            ModularOrFunCode           = "ToolArea.T_Tool.Index";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.QueryIndex();

            resp.EditAction = new SoftProjectAreaEntity
            {
                LableTitle       = "下载",
                ActionNameEn     = "IndexDown",
                ControllName     = "T_ToolAttachment",
                ActionFieldNames = "T_Tool",
                T_Tool           = resp.Item.T_Tool,
            };

            if (Request.IsAjaxRequest())
            {
                return(View(Design_ModularOrFun.PartialView, resp));
            }
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
示例#11
0
        /// <summary>
        /// 顾客订单明细ID--Rows
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Rows(SoftProjectAreaEntityDomain domain)
        {
            var resp = domain.C_OrderDetail_Rows();

            ModularOrFunCode = "CustomerAreas.C_OrderDetail.IndexEdit";
            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 }));
        }
示例#13
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));
        }
        public ActionResult IndexEdit(SoftProjectAreaEntityDomain domain)
        {
            //domain.Querys.Add(new Query { QuryType = 0, FieldName = "P_ProductID___equal", Value = domain.Item.P_ProductID.ToString() });
            //ModularOrFunCode = "ProductAreas.P_ProductAttachment.IndexEdit";
            //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);

            //////////////////////////////////////////////////
            var resp = new MyResponseBase();

            ModularOrFunCode           = "ProductAreas.P_ProductAttachment.IndexEdit";
            domain.Design_ModularOrFun = Design_ModularOrFun;

            if (!string.IsNullOrEmpty(domain.Item.ImageFileNameGuid))
            {
                domain.Querys.Add(new Query {
                    QuryType = 0, FieldName = "RefPKTableGuid___equal", Value = domain.Item.ImageFileNameGuid
                });
                resp = domain.QueryIndex();
            }

            if (Request.IsAjaxRequest())
            {
                return(View(Design_ModularOrFun.PartialView, resp));
            }
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
        public ActionResult IndexDetail(SoftProjectAreaEntityDomain domain)
        {
            if (!domain.Querys.QueryDicts.ContainsKey("Pre_CompanyID___equal"))
            {
                domain.Querys.Add(new Query {
                    QuryType = 0, FieldName = "Pre_CompanyID___equal", Value = LoginInfo.CompanyID.ToString()
                });
            }

            if (domain.Item.Pre_UserID == null)
            {
                throw new Exception("合作商ID不能为空");
            }
            if (!domain.Querys.QueryDicts.ContainsKey("Pre_UserID___equal"))
            {
                domain.Querys.Add(new Query {
                    QuryType = 0, FieldName = "Pre_UserID___equal", Value = domain.Item.Pre_UserID.ToString()
                });
            }

            ModularOrFunCode           = "FranchiseeAreas.BC_PartnerProductPrice.IndexDetail";
            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));
        }
示例#17
0
        /// <summary>
        /// 营销课堂--添加查询
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Add(SoftProjectAreaEntityDomain domain)
        {
            var resp = domain.Default();

            resp.Item.HandoutFileNameGuid = Guid.NewGuid().ToString();
            resp.Item.VideoFileNameGuid   = Guid.NewGuid().ToString();

            resp.EditActions = new List <SoftProjectAreaEntity> {
                new SoftProjectAreaEntity
                {
                    LableTitle          = "讲义",
                    ActionNameEn        = "IndexEditHandout",
                    ControllName        = "M_MarketingAttachment",
                    ActionFieldNames    = "HandoutFileNameGuid",
                    HandoutFileNameGuid = resp.Item.HandoutFileNameGuid,
                },
                new SoftProjectAreaEntity
                {
                    LableTitle        = "视频",
                    ActionNameEn      = "IndexEdit",
                    ControllName      = "M_MarketingAttachment",
                    ActionFieldNames  = "VideoFileNameGuid",
                    VideoFileNameGuid = resp.Item.VideoFileNameGuid,
                },
            };

            ModularOrFunCode     = "MarketingAreas.M_Marketing.Add";
            resp.FunNameEn       = "Add";
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
        public ActionResult IndexCompCP(SoftProjectAreaEntityDomain domain)
        {
            ////domain.Querys.Add(new Query { QuryType = 0, FieldName = "Pre_CompanyID___equal", Value = LoginInfo.CompanyID.ToString() });
            //if (!domain.Querys.QueryDicts.ContainsKey("Pre_UserID___equal"))
            //{
            //    if (domain.Item.Pre_UserID == null)
            //        throw new Exception("主键不能为空");
            //    domain.Querys.Add(new Query { QuryType = 0, FieldName = "Pre_UserID___equal", Value = domain.Item.Pre_UserID.ToString() });
            //}
            if (domain.Item.Pre_UserID == null)
            {
                throw new Exception("主键不能为空");
            }
            domain.Querys.Add(new Query {
                QuryType = 0, FieldName = "Pre_UserID___equal", Value = domain.Item.Pre_UserID.ToString()
            });

            ModularOrFunCode           = "CustomerAreas.C_Recharge.IndexCompCP";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.QueryIndex();

            #region 余额

            resp.Item.FundBalance = SoftProjectAreaEntityDomain.Pre_UserRoleAll.Where(p => p.Pre_UserID == domain.Item.Pre_UserID).FirstOrDefault().FundBalance;

            #endregion

            if (Request.IsAjaxRequest())
            {
                return(View(Design_ModularOrFun.PartialView, resp));
            }
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
示例#19
0
        public ActionResult Popup(SoftProjectAreaEntityDomain domain)
        {
            //企业ID
            domain.Querys.Add(new Query {
                QuryType = 0, FieldName = "Pre_CompanyID___equal", Value = LoginInfo.CompanyID.ToString()
            });

            //根据顾客ID,获取顾客级别
            //Pre_UserID
            var MG_MemberGradeID = SoftProjectAreaEntityDomain.Pre_UserRoleAll.Where(p => p.Pre_UserID == domain.Item.Pre_UserID).FirstOrDefault().MG_MemberGradeID;

            domain.Querys.Add(new Query {
                QuryType = 0, FieldName = "MG_MemberGradeID___equal", Value = MG_MemberGradeID.ToString()
            });

            ModularOrFunCode           = "CustomerAreas.C_OrderDetail.Popup";
            domain.Design_ModularOrFun = Design_ModularOrFun;

            domain.PageQueryBase.PageSize = 10000;
            var resp = domain.QueryIndex();

            if (Request.IsAjaxRequest())
            {
                return(View(Design_ModularOrFun.PartialView, resp));
            }
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
示例#20
0
        /// <summary>
        /// 组织机构管理--查询
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Index(SoftProjectAreaEntityDomain domain)
        {
            if (domain.Querys.QueryDicts.ContainsKey("ParentPre_OrganizationID___equal"))
            {
                if (domain.Querys.QueryDicts["ParentPre_OrganizationID___equal"].Value == "1")
                {
                    domain.Querys.Remove(domain.Querys.QueryDicts["ParentPre_OrganizationID___equal"]);
                    //Querys.Add(new Query { QuryType = 0, FieldName = "ParentToolCategoryID___equal", Value = "1" });
                }
            }
            domain.Querys.Add(new Query {
                QuryType = 0, FieldName = "LoginCategoryID___equal", Value = "1"
            });
            ModularOrFunCode           = "PreOrg_Area.Pre_Organization.Index";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.QueryIndex();

            resp.Item.LoginCategoryID = 1;
            if (Request.IsAjaxRequest())
            {
                return(View("TableContext", resp));
            }
            resp.TreeID          = "Pre_OrganizationID";
            resp.TreeQueryType   = 2;
            resp.ViewContextName = Design_ModularOrFun.PartialView;
            return(View(Design_ModularOrFun.MainView, resp));
        }
示例#21
0
        /// <summary>
        /// 组织机构管理--添加查询
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public ActionResult Add(SoftProjectAreaEntityDomain domain)
        {
            var resp = domain.Default();

            resp.Item.LoginCategoryID = 1;
            ModularOrFunCode          = "PreOrg_Area.Pre_Organization.Add";
            return(View("PopupEdit", resp));
        }
        /// <summary>
        /// 公司管理--编辑保存
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public HJsonResult Edit1Save(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "AuthorizationAreas.Pre_Company.Edit1";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.EditSave();

            return(new HJsonResult(new { Data = resp }));
        }
示例#23
0
        /// <summary>
        /// 企业合作商管理--编辑保存
        /// </summary>
        /// <param name="domain"></param>
        /// <returns></returns>
        public HJsonResult EditByMyCompCPSave(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "AuthorizationAreas.Pre_User.EditByMyCompCP";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.Pre_User_EditByMySave();

            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 HJsonResult Delete(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "ProductAreas.P_ProductAttachment.Delete";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.DeleteByID();

            return(new HJsonResult(new { Data = resp }));
        }
示例#26
0
        public ActionResult FraMagerIndex()
        {
            MyResponseBase resp   = new MyResponseBase();
            var            domain = new SoftProjectAreaEntityDomain();

            resp = domain.Doc_Docment_Home();
            return(View(resp));
        }
示例#27
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 HJsonResult AddSave(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "PartnerAreas.BC_Order.Add";
            domain.Design_ModularOrFun = Design_ModularOrFun;
            var resp = domain.BC_Order_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 EditSave(SoftProjectAreaEntityDomain domain)
        {
            ModularOrFunCode           = "MemberGradeAreas.MG_MemberGrade.Edit";
            domain.Design_ModularOrFun = Design_ModularOrFun;

            var resp = domain.EditSave();

            return(new HJsonResult(new { Data = resp }));
        }