public ActionResult Edit(string id) { ViewBag.Id = id; COMPANYBLL combll = new COMPANYBLL(); COMPANY com = new COMPANY(); com = combll.GetById(id); return(View(com)); }
public ActionResult GetAllMetadata(string id) { COMPANYBLL m_BLL = new COMPANYBLL(); IQueryable <COMPANY> rows = m_BLL.GetAllMetadata(id); if (rows.Any()) {//是否可以省 return(Json(new treegrid { rows = rows.Select(s => new { ID = s.ID , COMPANYNAME = s.COMPANYNAME , COMPANYADDRES = s.COMPANYADDRES , POSTCODE = s.POSTCODE , CONTACTS = s.CONTACTS , CONTACTSNUMBER = s.CONTACTSNUMBER , FAX = s.FAX , _parentId = s.PARENTID , state = s.COMPANY1.Any(a => a.PARENTID == s.ID) ? "closed" : null , CREATETIME = s.CREATETIME , CREATEPERSON = s.CREATEPERSON , UPDATETIME = s.UPDATETIME , UPDATEPERSON = s.UPDATEPERSON } ).OrderBy(o => o.ID) })); } return(Content("[]")); }
/// <summary> /// 获取树形页面的数据 /// </summary> /// <returns></returns> public ActionResult GetTree() { List <SystemTree> listSystemTree = new List <SystemTree>(); IBLL.ICOMPANYBLL db = new COMPANYBLL(); COMPANYTreeNodeCollection tree = new COMPANYTreeNodeCollection(); var trees = db.GetAll().OrderBy(o => o.ID); if (trees != null) { string parentId = Request["parentid"];//父节点编号 if (string.IsNullOrWhiteSpace(parentId)) { tree.Bind(trees, null, ref listSystemTree); } else { tree.Bind(trees, parentId, ref listSystemTree); } } return(Json(listSystemTree, JsonRequestBehavior.AllowGet)); }
public ORDER_TASK_INFORMATIONController(ORDER_TASK_INFORMATIONBLL bll, COMPANYBLL bll2) { m_BLL = bll; m_BLL2 = bll2; }
public ApplianceController(APPLIANCE_DETAIL_INFORMATIONBLL bll, COMPANYBLL bll2, PREPARE_SCHEMEBLL bll5) { m_BLL = bll; m_BLL2 = bll2; m_BLL5 = bll5; }
public COMPANYApiController(COMPANYBLL bll, ORDER_TASK_INFORMATIONBLL bll2, APPLIANCE_DETAIL_INFORMATIONBLL bll3) { m_BLL = bll; m_BLL2 = bll2; m_BLL3 = bll3; }