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 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 }); }
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) { 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 }); }
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 }); }
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 }); }
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 }); }
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 }); }
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 }); }
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 }); }
/// <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 }); }
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 }); }
/// <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 }); }
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 }); }
/// <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 }); }
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 }); }
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 原代码 //#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); }