public void DocMantains_Left() { DocMantainsLeftViewData viewData = new DocMantainsLeftViewData() { lsDateTime = new List<int>(), lsWordNo = new List<DocWord>(), sigOrg = new b01() }; viewData.lsDateTime = (from d in CQGJ.Doc orderby d.PubDate descending select d.PubDate.Value.Year).Distinct().ToList(); if (viewData.lsDateTime.Count == 0) { viewData.lsDateTime.Add(DateTime.Now.Year); } int orgID = GetOrgID(); viewData.sigOrg = cqgjPassport.GetOrg(ToPassportOrgCode(GetOrgID())); viewData.lsWordNo = (from c in CQGJ.DocWord where c.Org.OrgID == orgID select c).ToList(); RenderView("DocMantainsIndex_Left", viewData); }
public ActionResult DocMantains_Left() { DocMantainsLeftViewData viewData = new DocMantainsLeftViewData() { lsDateTime = new List<int>(), lsWordNo = new List<DocWord>(), sigOrg = new Org() }; viewData.lsDateTime = (from d in CQGJ.Doc orderby d.PubDate descending select d.PubDate.Value.Year).Distinct().ToList(); if (viewData.lsDateTime.Count == 0) { viewData.lsDateTime.Add(DateTime.Now.Year); } int orgID = GetOrg().OrgID; viewData.sigOrg = GetOrg(); viewData.lsWordNo = (from c in CQGJ.DocWord where c.Org.OrgID == orgID select c).ToList(); return View("DocMantainsIndex_Left", viewData); }