本文整理汇总了C#中SoftProject.Domain.SoftProjectAreaEntityDomain类的典型用法代码示例。如果您正苦于以下问题:C# SoftProjectAreaEntityDomain类的具体用法?C# SoftProjectAreaEntityDomain怎么用?C# SoftProjectAreaEntityDomain使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SoftProjectAreaEntityDomain类属于SoftProject.Domain命名空间,在下文中一共展示了SoftProjectAreaEntityDomain类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CompMagerIndex
public ActionResult CompMagerIndex()
{
MyResponseBase resp = new MyResponseBase();
var domain=new SoftProjectAreaEntityDomain();
resp = domain.Doc_Docment_Home();
return View(resp);
}
示例2: AutoCompleteProductPrice
///// <summary>
///// 自动匹配用户名
///// </summary>
///// <param name="key"></param>
///// <returns></returns>
//public JsonResult AutoCompletePartnerProduct(SoftProjectAreaEntityDomain domain)//string key, int Pre_UserID)
//{
// //key = key.Trim().ToUpper();
// //var keyValueList = new List<Pre_UsersView>();
// //if (Pre_UsersDomain.Pre_UsersViews != null && Pre_UsersDomain.Pre_UsersViews.Count > 0)
// //{
// // keyValueList = Pre_UsersDomain.Pre_UsersViews.Where(p => p.UserName.Contains(key)).ToList();
// //}
// domain.Querys.Add(new Query { QuryType = 0, FieldName = "Pre_UserID___equal", Value = domain.Item.Pre_UserID.ToString() });
// domain.Querys.Add(new Query { QuryType = 0, FieldName = "ProductNo__ProductName__Specifications___like", Value = domain.Item.ProductNo__ProductName__Specifications });
// var resp = domain.BC_PartnerProductPrice_AutoCompletePartnerProduct();
// List<AutocompleteItem> AutocompleteItems = new List<AutocompleteItem>();
// //foreach (var item in resp.Items)
// //{
// // AutocompleteItems.Add(new AutocompleteItem
// // {
// // text = item.ProductNo,
// // label = item.ProductNo,
// // value = item.BC_PartnerProductPriceID.ToString()
// // });
// //}
// AutocompleteItems.Add(new AutocompleteItem
// {
// text = "12345678",
// label = "12345678",
// value = "12345678"
// });
// AutocompleteItems.Add(new AutocompleteItem
// {
// text = "22345678",
// label = "22345678",
// value = "22345678"
// });
// AutocompleteItems.Add(new AutocompleteItem
// {
// text = "32345678",
// label = "32345678",
// value = "32345678"
// });
// return Json(AutocompleteItems, JsonRequestBehavior.AllowGet);
//}
/// <summary>
/// 自动匹配用商品价格表
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
public JsonResult AutoCompleteProductPrice(SoftProjectAreaEntityDomain domain)
{
//参数:用户ID+商品xxx
//根据用户ID,查询用户会员等级,可以从缓存中获取
//查询条件:加盟商ID+会员等级+商品XXX
//var MG_MemberGradeID = SoftProjectAreaEntityDomain.Pre_UserRoleAll.Where(p => p.Pre_UserID == domain.Item.Pre_UserID).First().MG_MemberGradeID;
ModularOrFunCode = "PartnerAreas.BC_PartnerProductPrice.IndexEdit";
domain.Design_ModularOrFun = Design_ModularOrFun;
//domain.Querys.Add(new Query { QuryType = 0, FieldName = "Pre_CompanyID___equal", Value = LoginInfo.CompanyID.ToString() });
//domain.Querys.Add(new Query { QuryType = 0, FieldName = "MG_MemberGradeID___equal", Value = MG_MemberGradeID.ToString() });
domain.Querys.Add(new Query { QuryType = 0, FieldName = "ProductNo__ProductName__Specifications___like", Value = domain.Item.ProductNo__ProductName__Specifications });
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() });
}
domain.PageQueryBase.PageSize = 10;
var resp = domain.QueryIndex();
List<AutocompleteItem> AutocompleteItems = new List<AutocompleteItem>();
foreach (var item in resp.Items)
{
AutocompleteItems.Add(new AutocompleteItem
{
text = "【" + item.ProductNo + "】" + "【" + item.ProductName + "】" + "【" + item.Specifications + "】",
label = "【" + item.ProductNo + "】" + "【" + item.ProductName + "】" + "【" + item.Specifications + "】",
value = item.BC_PartnerProductPriceID.ToString()
});
}
return Json(AutocompleteItems, JsonRequestBehavior.AllowGet);
}
示例3: Add
/// <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);
}
示例4: Login
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);
}
示例5: Delete
public HJsonResult Delete(SoftProjectAreaEntityDomain domain)
{
ModularOrFunCode = "ToolArea.T_ToolAttachment.Delete";
domain.Design_ModularOrFun = Design_ModularOrFun;
var resp = domain.DeleteByID();
return new HJsonResult(new { Data = resp });
}
示例6: 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);
}
示例7: Add
/// <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);
}
示例8: AddSave
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 });
}
示例9: Pr_Notice_ByCurrMonth
/// <summary>
/// 根据主键查询--本月促销
/// </summary>
/// <returns></returns>
public static MyResponseBase Pr_Notice_ByCurrMonth()
{
var domain = new SoftProjectAreaEntityDomain();
domain.Sys_HOperControl = null;
string sql = string.Format("SELECT * FROM Pr_Notice WHERE YEAR(PromotionStartDate)=YEAR(GETDATE()) AND MONTH(PromotionStartDate)=MONTH(getdate()) ORDER BY PromotionStartDate DESC ");
var resp = domain.Query16(sql);
return resp;
}
示例10: Add
/// <summary>
/// 公司管理--添加查询
/// </summary>
/// <param name="domain"></param>
/// <returns></returns>
public ActionResult Add(SoftProjectAreaEntityDomain domain)
{
var resp = domain.Default();
resp.FunNameEn = "Add";
ModularOrFunCode = "AuthorizationAreas.Pre_Company.Add";
resp.ViewContextName = Design_ModularOrFun.PartialView;
return View(Design_ModularOrFun.MainView, resp);
}
示例11: P_Product_ByNewHome
/// <summary>
/// 根据主键查询--显示
/// </summary>
/// <returns></returns>
public static List<SoftProjectAreaEntity> P_Product_ByNewHome()
{
var domain = new SoftProjectAreaEntityDomain();
domain.Sys_HOperControl = null;
string sql = string.Format("SELECT TOP 10 * FROM V_P_Product WHERE BNewID=1 ORDER BY CREATEDATE DESC");
var resp = domain.Query16(sql);
return resp.Items;
}
示例12: Add
/// <summary>
/// 活动费用规定--添加查询
/// </summary>
/// <param name="domain"></param>
/// <returns></returns>
public ActionResult Add(SoftProjectAreaEntityDomain domain)
{
var resp = domain.Default();
ModularOrFunCode = "ActivityAreas.Act_ActivityCostRegulation.Add";
resp.FunNameEn = "Add";
resp.ViewContextName = Design_ModularOrFun.PartialView;
return View(Design_ModularOrFun.MainView, resp);
}
示例13: EditSave
public HJsonResult EditSave(SoftProjectAreaEntityDomain domain)
{
ModularOrFunCode = "CustomerAreas.C_Recharge.Edit";
domain.Design_ModularOrFun = Design_ModularOrFun;
var resp = domain.C_Recharge_EditSave();
return new HJsonResult(new { Data = resp });
}
示例14: 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 });
}
示例15: 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 });
}