本文整理汇总了C#中SoftProject.Domain.SoftProjectAreaEntityDomain.QueryIndex方法的典型用法代码示例。如果您正苦于以下问题:C# SoftProjectAreaEntityDomain.QueryIndex方法的具体用法?C# SoftProjectAreaEntityDomain.QueryIndex怎么用?C# SoftProjectAreaEntityDomain.QueryIndex使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SoftProject.Domain.SoftProjectAreaEntityDomain
的用法示例。
在下文中一共展示了SoftProjectAreaEntityDomain.QueryIndex方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AutoCompleteProductPrice
/// <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 = "FranchiseeAreas.Fra_ProductPrice.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 });
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.Fra_ProductPriceID.ToString()
});
}
return Json(AutocompleteItems, JsonRequestBehavior.AllowGet);
}
示例2: Index
public ActionResult Index(SoftProjectAreaEntityDomain domain)
{
domain.Querys.Add(new Query { QuryType = 0, FieldName = "Doc_BaseDocmentID___equal", Value = domain.Item.Doc_BaseDocmentID.ToString() });
ModularOrFunCode = "DocArea.Doc_BaseDocmentAttachment.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);
}
示例3: Popup
public ActionResult Popup(SoftProjectAreaEntityDomain domain)
{
ModularOrFunCode = "PartnerAreas.BC_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);
}
示例4: IndexDetail
public ActionResult IndexDetail(SoftProjectAreaEntityDomain domain)
{
//由于仪表盘,去掉了验证
//if (domain.Item.BC_OrderID == null)
// throw new Exception("主键不能为空!");
ModularOrFunCode = "PartnerAreas.BC_OrderDetail.IndexDetail";
domain.Design_ModularOrFun = Design_ModularOrFun;
domain.Querys.Add(new Query { QuryType = 0, FieldName = "BC_OrderID___equal", Value = domain.Item.BC_OrderID.ToString() });
var resp = domain.QueryIndex();
return View(Design_ModularOrFun.MainView, resp);
}
示例5: IndexEdit
public ActionResult IndexEdit(SoftProjectAreaEntityDomain domain)
{
var resp = new MyResponseBase();
ModularOrFunCode = "PartnerAreas.BC_OrderDetail.IndexEdit";
domain.Design_ModularOrFun = Design_ModularOrFun;
if (domain.Item.BC_OrderID == null)
{
return View("IndexEdit", resp);
}
domain.Querys.Add(new Query { QuryType = 0, FieldName = "BC_OrderID___equal", Value = domain.Item.BC_OrderID.ToString() });
resp = domain.QueryIndex();
//return View(Design_ModularOrFun.MainView, resp);
return View("IndexEdit", resp);
}
示例6: IndexDetail
public ActionResult IndexDetail(SoftProjectAreaEntityDomain domain)
{
var resp = new MyResponseBase();
ModularOrFunCode = "ToolArea.T_ToolAttachment.IndexDetail";
domain.Design_ModularOrFun = Design_ModularOrFun;
if (!string.IsNullOrEmpty(domain.Item.ToolAttRefPKTableGuid))
{
domain.Querys.Add(new Query { QuryType = 0, FieldName = "RefPKTableGuid___equal", Value = domain.Item.ToolAttRefPKTableGuid });
resp = domain.QueryIndex();
}
if (Request.IsAjaxRequest())
return View(Design_ModularOrFun.PartialView, resp);
resp.ViewContextName = Design_ModularOrFun.PartialView;
return View(Design_ModularOrFun.MainView, resp);
}
示例7: IndexDetail
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() });
}
domain.Querys.Add(new Query { QuryType = 0, FieldName = "bValidate___equal", Value = "1" });
ModularOrFunCode = "FranchiseeAreas.Fra_ProductPrice.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);
}
示例8: IndexEdit
public ActionResult IndexEdit(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.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);
}
示例9: Index
public ActionResult Index(SoftProjectAreaEntityDomain domain)
{
//if (!domain.Querys.QueryDicts.ContainsKey("___equal"))
//{
// if (domain.Item. == null)
//throw new Exception("主键不能为空");
//domain.Querys.Add(new Query { QuryType = 0, FieldName = "___equal", Value = domain.Item..ToString() });
//}
ModularOrFunCode = "ActivityAreas.Act_SurveyTemplate.Index";
domain.Design_ModularOrFun = Design_ModularOrFun;
var resp = domain.QueryIndex();
resp.Items.ForEach(p => p.SurveyTemplateTitleContext = p.SurveyTemplateTitleContext.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);
}
示例10: IndexCU
/// <summary>
/// 用户管理--查询
/// </summary>
/// <param name="domain"></param>
/// <returns></returns>
public ActionResult IndexCU(SoftProjectAreaEntityDomain domain)
{
domain.Querys.Add(new Query { QuryType = 0, FieldName = "Pre_CompanyID___equal", Value = LoginInfo.CompanyID.ToString() });
domain.Querys.Add(new Query { QuryType = 0, FieldName = "LoginCategoryID___equal", Value = "4" });
ModularOrFunCode = "AuthorizationAreas.Pre_User.IndexCU";
domain.Design_ModularOrFun = Design_ModularOrFun;
var resp = domain.QueryIndex();
resp.Item.LoginCategoryID = 4;
if (Request.IsAjaxRequest())
return View(Design_ModularOrFun.PartialView, resp);
resp.ViewContextName = Design_ModularOrFun.PartialView;
return View(Design_ModularOrFun.MainView, resp);
}
示例11: IndexImageHandout
public ActionResult IndexImageHandout(SoftProjectAreaEntityDomain domain)
{
ModularOrFunCode = "MarketingAreas.M_MarketingAttachment.IndexImage";
domain.Design_ModularOrFun = Design_ModularOrFun;
var resp = new MyResponseBase();
if (!string.IsNullOrEmpty(domain.Item.HandoutFileNameGuid))
{
domain.Querys.Add(new Query { QuryType = 0, FieldName = "RefPKTableGuid___equal", Value = domain.Item.HandoutFileNameGuid });
resp = domain.QueryIndex();
}
if (Request.IsAjaxRequest())
return View(Design_ModularOrFun.PartialView, resp);
resp.ViewContextName = Design_ModularOrFun.PartialView;
return View(Design_ModularOrFun.MainView, resp);
}
示例12: IndexWaitExamine
public ActionResult IndexWaitExamine(SoftProjectAreaEntityDomain domain)
{
domain.Querys.Add(new Query { QuryType = 0, FieldName = "ActivityStatuID___equal", Value = "4" });
ModularOrFunCode = "ActivityAreas.Fra_Activity.IndexWaitExamine";
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);
}
示例13: IndexDashboard
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);
}
示例14: IndexEdit
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);
}
示例15: IndexCU
/// <summary>
/// 角色管理--查询
/// </summary>
/// <param name="domain"></param>
/// <returns></returns>
public ActionResult IndexCU(SoftProjectAreaEntityDomain domain)
{
domain.Querys.Add(new Query { QuryType = 0, FieldName = "LoginCategoryID___equal", Value = "4" });
ModularOrFunCode = "AuthorizationAreas.Pre_Role.IndexCU";
domain.Design_ModularOrFun = Design_ModularOrFun;
var resp = domain.QueryIndex();
if (Request.IsAjaxRequest())
return View(Design_ModularOrFun.PartialView, resp);
//return View("IndexPFrame", resp);
resp.ViewContextName = Design_ModularOrFun.PartialView;
return View(Design_ModularOrFun.MainView, resp);
}