public ActionResult GetPageCount(int pageSize, string pId, string code, string name, string addr) { return(Json(departmentOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(pId)) { ICriterion criterion = Restrictions.Eq("PId", new Guid(pId)); criteria.Add(criterion); } else { ICriterion criterion = Restrictions.Eq("PId", Guid.Empty); criteria.Add(criterion); } if (!string.IsNullOrEmpty(code)) { ICriterion criterion = Restrictions.Eq("Code", code); criteria.Add(criterion); } if (!string.IsNullOrEmpty(name)) { ICriterion criterion = Restrictions.Like("Name", name, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(addr)) { ICriterion criterion = Restrictions.Like("Addr", addr, MatchMode.Anywhere); criteria.Add(criterion); } } , pageSize))); }
public ActionResult GetPageCount(int pageSize, string pId, string unitDesc, string goodsTypeCode, string goodsTypeName) { return(Json(goodsTypeOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(pId)) { ICriterion criterion = Restrictions.Eq("PId", new Guid(pId)); criteria.Add(criterion); } else { ICriterion criterion = Restrictions.Eq("PId", Guid.Empty); criteria.Add(criterion); } if (!string.IsNullOrEmpty(unitDesc)) { ICriterion criterion = Restrictions.Like("UnitDesc", unitDesc, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(goodsTypeCode)) { ICriterion criterion = Restrictions.Like("GoodsTypeCode", goodsTypeCode, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(goodsTypeName)) { ICriterion criterion = Restrictions.Like("GoodsTypeName", goodsTypeName, MatchMode.Anywhere); criteria.Add(criterion); } } , pageSize))); }
public ActionResult GetPageCount(int pageSize, string goodsCode, string goodsName, string barCode, string goodsTypeID, string modelNum) { return(Json(goodsInfoOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(goodsCode)) { ICriterion criterion = Restrictions.Like("GoodsCode", goodsCode, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(goodsName)) { ICriterion criterion = Restrictions.Like("GoodsName", goodsName, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(barCode)) { ICriterion criterion = Restrictions.Like("BarCode", barCode, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(goodsTypeID)) { ICriterion criterion = Restrictions.Eq("GoodsType", PojoUtil.InitPojo <GoodsType>(goodsTypeID)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(modelNum)) { ICriterion criterion = Restrictions.Like("ModelNum", modelNum, MatchMode.Anywhere); criteria.Add(criterion); } } , pageSize))); }
public ActionResult GetPageCount(int pageSize, string checkStockID, string goodsID, string sysQty, string qty, string profitLoss) { return(Json(checkStockDetailOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(checkStockID)) { ICriterion criterion = Restrictions.Eq("CheckStockID", PojoUtil.InitPojo <CheckStock>(checkStockID)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(goodsID)) { ICriterion criterion = Restrictions.Eq("GoodsID", PojoUtil.InitPojo <GoodsInfo>(goodsID)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(sysQty)) { ICriterion criterion = Restrictions.Like("SysQty", sysQty, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(qty)) { ICriterion criterion = Restrictions.Like("Qty", qty, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(profitLoss)) { ICriterion criterion = Restrictions.Like("ProfitLoss", profitLoss, MatchMode.Anywhere); criteria.Add(criterion); } } , pageSize))); }
public ActionResult GetPageCount(int pageSize, string retOrderID, string goodsID, string price, string qty) { return(Json(retOrderDetailOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(retOrderID)) { ICriterion criterion = Restrictions.Eq("RetOrderID", PojoUtil.InitPojo <RetOrder>(retOrderID)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(goodsID)) { ICriterion criterion = Restrictions.Eq("GoodsID", PojoUtil.InitPojo <GoodsInfo>(goodsID)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(price)) { ICriterion criterion = Restrictions.Like("Price", price, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(qty)) { ICriterion criterion = Restrictions.Like("Qty", qty, MatchMode.Anywhere); criteria.Add(criterion); } } , pageSize))); }
public ActionResult GetPageCount() { return(Json(companyOper.GetPageCount( delegate(object sender, ICriteria criteria) { } , 1))); }
public ActionResult GetPageCount(int pageSize) { return(Json(workCodeTypeOper.GetPageCount( delegate(object sender, ICriteria criteria) { } , pageSize))); }
public ActionResult GetPageCount(int pageSize, string unitName) { return(Json(unitOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(unitName)) { ICriterion criterion = Restrictions.Like("UnitName", unitName, MatchMode.Anywhere); criteria.Add(criterion); } } , pageSize))); }
public ActionResult GetPageCount(int pageSize, string cls) { return(Json(modFuncOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(cls)) { ICriterion criterion = Restrictions.Eq("Cls", cls); criteria.Add(criterion); } } , pageSize))); }
public ActionResult GetPageCount(int pageSize, string reqOrderCode, string srcHouseID, string destHouseID, string carrier, string approvalID, string oPerTime, string approvalTime, string state) { return(Json(reqOrderOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(reqOrderCode)) { ICriterion criterion = Restrictions.Like("ReqOrderCode", reqOrderCode, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(srcHouseID)) { ICriterion criterion = Restrictions.Eq("SrcHouseID", PojoUtil.InitPojo <Storehouse>(srcHouseID)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(destHouseID)) { ICriterion criterion = Restrictions.Eq("DestHouseID", PojoUtil.InitPojo <Storehouse>(destHouseID)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(carrier)) { ICriterion criterion = Restrictions.Like("Carrier", carrier, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(approvalID)) { ICriterion criterion = Restrictions.Eq("ApprovalID", PojoUtil.InitPojo <Employee>(approvalID)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(oPerTime)) { ICriterion criterion = Restrictions.Like("OPerTime", oPerTime, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(approvalTime)) { ICriterion criterion = Restrictions.Like("ApprovalTime", approvalTime, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(state)) { ICriterion criterion = Restrictions.Like("State", state, MatchMode.Anywhere); criteria.Add(criterion); } } , pageSize))); }
public ActionResult GetPageCount(int pageSize, string retOrderCode, string vendorID, string storeHouseID, string retMember, string approvalID, string approvalTime, string state, string totalMoney) { return(Json(retOrderOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(retOrderCode)) { ICriterion criterion = Restrictions.Like("RetOrderCode", retOrderCode, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(vendorID)) { ICriterion criterion = Restrictions.Eq("VendorID", PojoUtil.InitPojo <VendorInfo>(vendorID)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(storeHouseID)) { ICriterion criterion = Restrictions.Eq("StoreHouseID", PojoUtil.InitPojo <Storehouse>(storeHouseID)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(retMember)) { ICriterion criterion = Restrictions.Like("RetMember", retMember, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(approvalID)) { ICriterion criterion = Restrictions.Eq("ApprovalID", PojoUtil.InitPojo <Employee>(approvalID)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(approvalTime)) { ICriterion criterion = Restrictions.Like("ApprovalTime", approvalTime, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(state)) { ICriterion criterion = Restrictions.Like("State", state, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(totalMoney)) { ICriterion criterion = Restrictions.Like("TotalMoney", totalMoney, MatchMode.Anywhere); criteria.Add(criterion); } } , pageSize))); }
public ActionResult GetPageCount(int pageSize, string rentOrderCode, string storeHouseID, string borrID, string borrDeptID, string oPerTime, string approvalID, string approvalTime, string state) { return(Json(rentOrderOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(rentOrderCode)) { ICriterion criterion = Restrictions.Like("RentOrderCode", rentOrderCode, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(storeHouseID)) { ICriterion criterion = Restrictions.Eq("StoreHouseID", PojoUtil.InitPojo <Storehouse>(storeHouseID)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(borrID)) { ICriterion criterion = Restrictions.Eq("BorrID", PojoUtil.InitPojo <Employee>(borrID)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(borrDeptID)) { ICriterion criterion = Restrictions.Eq("BorrDeptID", PojoUtil.InitPojo <Department>(borrID)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(oPerTime)) { ICriterion criterion = Restrictions.Like("OPerTime", oPerTime, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(approvalID)) { ICriterion criterion = Restrictions.Eq("ApprovalID", PojoUtil.InitPojo <Employee>(approvalID)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(approvalTime)) { ICriterion criterion = Restrictions.Like("ApprovalTime", approvalTime, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(state)) { ICriterion criterion = Restrictions.Like("State", state, MatchMode.Anywhere); criteria.Add(criterion); } } , pageSize))); }
public ActionResult GetPageCount(int pageSize, string storehouseId, string goodsId) { return(Json(stockInitOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(storehouseId)) { ICriterion criterion = Restrictions.Eq("Storehouse", PojoUtil.InitPojo <Storehouse>(storehouseId)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(goodsId)) { ICriterion criterion = Restrictions.Eq("Goods", PojoUtil.InitPojo <GoodsInfo>(goodsId)); criteria.Add(criterion); } } , pageSize))); }
public ActionResult GetPageCount(int pageSize, string roleFlag, string roleId) { return(Json(photoOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(roleFlag)) { ICriterion criterion = Restrictions.Eq("RoleFlag", roleFlag); criteria.Add(criterion); } if (!string.IsNullOrEmpty(roleId)) { ICriterion criterion = Restrictions.Eq("RoleId", new Guid(roleId)); criteria.Add(criterion); } } , pageSize))); }
public ActionResult GetPageCount(int pageSize, string name, string nickname, string phoneNum, string tel, string qq, string weiXin, string email) { return(Json(customerOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(name)) { ICriterion criterion = Restrictions.Like("Name", name, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(nickname)) { ICriterion criterion = Restrictions.Like("Nickname", nickname, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(phoneNum)) { ICriterion criterion = Restrictions.Like("PhoneNum", phoneNum, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(tel)) { ICriterion criterion = Restrictions.Like("Tel", tel, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(qq)) { ICriterion criterion = Restrictions.Like("QQ", qq, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(weiXin)) { ICriterion criterion = Restrictions.Like("WeiXin", weiXin, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(email)) { ICriterion criterion = Restrictions.Like("Email", email, MatchMode.Anywhere); criteria.Add(criterion); } } , pageSize))); }
public ActionResult GetPageCount(int pageSize, string name, string addr) { return(Json(gardenOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(name)) { ICriterion criterion = Restrictions.Like("Name", name, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(addr)) { ICriterion criterion = Restrictions.Like("Addr", addr, MatchMode.Anywhere); criteria.Add(criterion); } // ICriterion criterion = Restrictions.Eq("Name", "测试123"); // criteria.Add(criterion); } , pageSize))); }
/// <summary> /// 查询仓库登记页数 /// </summary> /// <param name="pageSize"></param> /// <returns></returns> //[PowerActionFilterAttribute(FuncName = PowerActionFilterAttribute.FuncEnum.Get)] public ActionResult GetPageCount(int pageSize, string storeCode, string storeName, string deptID) { return(Json(storehouseOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(storeCode)) { ICriterion criterion = Restrictions.Like("StoreCode", storeCode, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(storeName)) { ICriterion criterion = Restrictions.Like("StoreName", storeName, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(deptID)) { ICriterion criterion = Restrictions.Eq("Dept", PojoUtil.InitPojo <Department>(deptID)); criteria.Add(criterion); } } , pageSize))); }
public ActionResult GetPageCount(int pageSize, string roleFlag, string roleId, string deptId) { return(Json(empDataOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(roleFlag)) { ICriterion criterion = Restrictions.Eq("RoleFlag", roleFlag); criteria.Add(criterion); } if (!string.IsNullOrEmpty(roleId)) { ICriterion criterion = Restrictions.Eq("RoleId", new Guid(roleId)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(deptId)) { ICriterion criterion = Restrictions.Eq("Dept", PojoUtil.InitPojo <Department>(deptId)); criteria.Add(criterion); } } , pageSize))); }
public ActionResult GetPageCount(int pageSize, string cstmrName, string contact, string phoneNum) { return(Json(workOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(cstmrName)) { ICriterion criterion = Restrictions.Like("Cstmr.Name", cstmrName, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(contact)) { ICriterion criterion = Restrictions.Like("Contact", contact, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(phoneNum)) { ICriterion criterion = Restrictions.Like("PhoneNum", phoneNum, MatchMode.Anywhere); criteria.Add(criterion); } } , pageSize))); }
public ActionResult GetPageCount(int pageSize, string roleFlag, string roleId, string modFuncId) { return(Json(empModFuncOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(roleFlag)) { ICriterion criterion = Restrictions.Eq("RoleFlag", roleFlag); criteria.Add(criterion); } if (!string.IsNullOrEmpty(roleId)) { ICriterion criterion = Restrictions.Eq("RoleId", new Guid(roleId)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(modFuncId)) { ICriterion criterion = Restrictions.Eq("ModFunc", PojoUtil.InitPojo <ModFunc>(modFuncId)); criteria.Add(criterion); } } , pageSize))); }
public ActionResult GetPageCount(int pageSize, string code, string empName, string nickName) { return(Json(employeeOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(code)) { ICriterion criterion = Restrictions.Eq("Code", code); criteria.Add(criterion); } if (!string.IsNullOrEmpty(empName)) { ICriterion criterion = Restrictions.Like("EmpName", empName, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(nickName)) { ICriterion criterion = Restrictions.Like("NickName", nickName, MatchMode.Anywhere); criteria.Add(criterion); } } , pageSize))); }
public ActionResult GetPageCount(int pageSize, string sellOrderCode, string storeHouseID, string salespersonID, string salespersonDeptID, string sellDateTime, string totalMoney) { return(Json(sellOrderOper.GetPageCount( delegate(object sender, ICriteria criteria) { if (!string.IsNullOrEmpty(sellOrderCode)) { ICriterion criterion = Restrictions.Like("SellOrderCode", sellOrderCode, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(storeHouseID)) { ICriterion criterion = Restrictions.Eq("StoreHouseID", PojoUtil.InitPojo <Storehouse>(storeHouseID)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(salespersonID)) { ICriterion criterion = Restrictions.Eq("SalespersonID", PojoUtil.InitPojo <Employee>(salespersonID)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(salespersonDeptID)) { ICriterion criterion = Restrictions.Eq("SalespersonDeptID", PojoUtil.InitPojo <Department>(salespersonDeptID)); criteria.Add(criterion); } if (!string.IsNullOrEmpty(sellDateTime)) { ICriterion criterion = Restrictions.Like("SellDateTime", sellDateTime, MatchMode.Anywhere); criteria.Add(criterion); } if (!string.IsNullOrEmpty(totalMoney)) { ICriterion criterion = Restrictions.Like("TotalMoney", totalMoney, MatchMode.Anywhere); criteria.Add(criterion); } } , pageSize))); }
public ActionResult GetPageCount(int pageSize) { return(Json(modOper.GetPageCount(GetPageCount_OnCriteria, pageSize))); }