protected IList <EyouSoft.Model.ComStructure.MComDepartment> getAllInfo() { EyouSoft.BLL.ComStructure.BComDepartment BLL = new EyouSoft.BLL.ComStructure.BComDepartment(); IList <EyouSoft.Model.ComStructure.MComDepartment> list = BLL.GetList(this.SiteUserInfo.CompanyId); return(list); }
/// <summary> /// 获得所有部门 /// </summary> /// <param name="o"></param> /// <returns></returns> protected string GetAllDepart(object o) { StringBuilder sb = new StringBuilder(); EyouSoft.BLL.ComStructure.BComDepartment BLL = new EyouSoft.BLL.ComStructure.BComDepartment(); IList <MComDepartment> lst = BLL.GetList(this.SiteUserInfo.CompanyId); if (lst != null && lst.Count > 0) { GetSecondDepart(lst, (int)o, sb); } return(sb.ToString()); }
/// <summary> /// 初始化 /// </summary> private void DataInit() { EyouSoft.BLL.ComStructure.BComDepartment BLL = new EyouSoft.BLL.ComStructure.BComDepartment(); IList <MComDepartment> lst = BLL.GetList(this.SiteUserInfo.CompanyId); if (null != lst && lst.Count > 0) { this.RepList.DataSource = lst.Where(i => (i.PrevDepartId == 0)).ToList(); this.RepList.DataBind(); } else { this.RepList.Controls.Add(new Label() { Text = "<li style='text-align:center;'>对不起,没有相关数据!</li>" }); } }
protected string GetDepart(object o, int flag) { int deptId = (int)o; EyouSoft.BLL.ComStructure.BComDepartment BLL = new EyouSoft.BLL.ComStructure.BComDepartment(); IList <MComDepartment> lst = BLL.GetList(deptId.ToString(), this.SiteUserInfo.CompanyId); StringBuilder sb = new StringBuilder(); if (lst != null && lst.Count > 0) { sb.AppendFormat("<ul class=\"ulborder\" style=\"width: 100%;float: left\">"); for (int i = 0; i < lst.Count; i++) { sb.AppendFormat("<li style=\"width: 23%;display:block;float:left; text-align: left; line-height: 20px;\">"); sb.AppendFormat("<input id=\"select_{1}{2}\" type=\"checkbox\" value=\"{0}\" data-pid='{3}' name=\"Operator3\" /><input id=\"select_{1}{2}\" type=\"radio\" value=\"{0}\" name=\"Operator3\" data-pid='{3}' />", lst[i].DepartId, i, flag, lst[i].PrevDepartId); sb.AppendFormat("<label for=\"select_{1}{2}\">{0}</label>", lst[i].DepartName, i, flag); sb.AppendFormat("</li>"); } sb.AppendFormat("</ul>"); } return(sb.ToString()); }