private string Get_NavigateName(string strGUID)
        {
            zlzw.BLL.NavigateListBLL navigateListBLL = new zlzw.BLL.NavigateListBLL();
            System.Data.DataTable dt = navigateListBLL.GetList("NavigateGUID='" + strGUID + "'").Tables[0];

            return dt.Rows[0]["NavigateName"].ToString();
        }
Exemplo n.º 2
0
        private void NavigateList_BindGrid()
        {
            zlzw.BLL.NavigateListBLL navigateListBLL = new zlzw.BLL.NavigateListBLL();
            DataTable dt = navigateListBLL.GetList(grid1.PageSize, grid1.PageIndex + 1, "*", "OrderNumber", 0, "asc", "IsEnable=1").Tables[0];

            grid1.DataSource = dt;
            grid1.DataBind();
        }
        private void Load_MenuList()
        {
            zlzw.BLL.NavigateListBLL navigateListBLL = new zlzw.BLL.NavigateListBLL();
            System.Data.DataTable dt = navigateListBLL.GetList("IsEnable=1 and IsShow=1 order by OrderNumber asc").Tables[0];

            Repeater1.DataSource = dt;
            Repeater1.DataBind();
        }
Exemplo n.º 4
0
 private void Get_NavigateItemGUID()
 {
     zlzw.BLL.NavigateListBLL navigateListBLL = new zlzw.BLL.NavigateListBLL();
     System.Data.DataTable dt = navigateListBLL.GetList("IsEnable=1 and IsShow=1 order by OrderNumber asc").Tables[0];
     if (dt.Rows.Count > 0)
     {
         linkBtnServiceItem.HRef = "../EnterpriseServiceList.aspx?id=" + dt.Rows[0]["NavigateGUID"].ToString();
     }
 }
        private void Load_NavigateList()
        {
            zlzw.BLL.NavigateListBLL navigateListBLL = new zlzw.BLL.NavigateListBLL();
            DataTable dt = navigateListBLL.GetList("IsEnable=1 order by OrderNumber asc").Tables[0];

            drpNavigateGUID.DataTextField = "NavigateName";
            drpNavigateGUID.DataValueField = "NavigateGUID";

            drpNavigateGUID.DataSource = dt;
            drpNavigateGUID.DataBind();
        }
Exemplo n.º 6
0
 /// <summary>
 /// 获取总页数
 /// </summary>
 /// <returns></returns>
 private int Get_NavigateListTotalCount()
 {
     zlzw.BLL.NavigateListBLL navigateListBLL = new zlzw.BLL.NavigateListBLL();
     DataTable dt = navigateListBLL.GetList("IsEnable=1").Tables[0];
     if (dt.Rows.Count > 0)
     {
         return dt.Rows.Count;
     }
     else
     {
         return 0;
     }
 }
Exemplo n.º 7
0
 private void Load_NavigateList()
 {
     zlzw.BLL.NavigateListBLL navigateListBLL = new zlzw.BLL.NavigateListBLL();
     DataTable dt = navigateListBLL.GetList("IsEnable=1 and IsShow=1 order by OrderNumber asc").Tables[0];
     labNavigate.Text = "";
     for (int nCount = 0; nCount < dt.Rows.Count; nCount++)
     {
         if (nCount == 3)
         {
             labNavigate.Text += "<a href='NaviagteInfo.aspx?id=" + dt.Rows[nCount]["NavigateGUID"].ToString() + "' style='color:#093C7E;text-decoration:none;'>" + dt.Rows[nCount]["NavigateName"].ToString() + "</a><br/>";
         }
         else if (nCount == 7)
         {
             labNavigate.Text += "<a href='NaviagteInfo.aspx?id=" + dt.Rows[nCount]["NavigateGUID"].ToString() + "' style='color:#093C7E;text-decoration:none;'>" + dt.Rows[nCount]["NavigateName"].ToString() + "</a>";
         }
         else
         {
             labNavigate.Text += "<a href='NaviagteInfo.aspx?id=" + dt.Rows[nCount]["NavigateGUID"].ToString() + "' style='color:#093C7E;text-decoration:none;'>" + dt.Rows[nCount]["NavigateName"].ToString() + "</a> | ";
         }
     }
 }
Exemplo n.º 8
0
        protected void btnDel_Click(object sender, EventArgs e)
        {
            if (grid1.SelectedRowIndexArray != null && grid1.SelectedRowIndexArray.Length > 0)
            {
                string strSelectID = "0";
                for (int i = 0, count = grid1.SelectedRowIndexArray.Length; i < count; i++)
                {
                    int rowIndex = grid1.SelectedRowIndexArray[i];
                    foreach (object key in grid1.DataKeys[rowIndex])
                    {
                        strSelectID = key.ToString();
                    }
                }
                #region 删除逻辑

                zlzw.BLL.NavigateListBLL navigateListBLL = new zlzw.BLL.NavigateListBLL();
                DataTable dt = navigateListBLL.GetList("UserGuid='" + strSelectID + "'").Tables[0];
                zlzw.Model.NavigateListModel navigateListModel = navigateListBLL.GetModel(int.Parse(dt.Rows[0]["NavigateGUID"].ToString()));
                navigateListModel.IsEnable = 0;
                navigateListBLL.Update(navigateListModel);
                NavigateList_BindGrid();

                #endregion
            }
            else
            {
                return;
            }
        }
 private string Get_NavigateName(string strNavigateGUID)
 {
     zlzw.BLL.NavigateListBLL navigateListBLL = new zlzw.BLL.NavigateListBLL();
     DataTable dt = navigateListBLL.GetList("NavigateGUID='"+ strNavigateGUID +"'").Tables[0];
     if (dt.Rows.Count > 0)
     {
         return dt.Rows[0]["NavigateName"].ToString();
     }
     else
     {
         return "未知类型";
     }
 }