Exemplo n.º 1
0
 /// <summary>
 /// 权限查询
 /// </summary>
 /// <param name="where"></param>
 private void PrivDataBind(string where)
 {
     try
     {
         DataTable dt = settingManager.GetSerPrivInfo(SystemID, where);
         StorePriv.DataSource = dt;
         StorePriv.DataBind();
     }
     catch (Exception ex)
     {
         ILog.WriteErrorLog(ex);
         logManager.InsertLogError("PrivManager.aspx-PrivDataBind", ex.Message + ";" + ex.StackTrace, "PrivDataBind has an exception");
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// 初始化绑定数据
        /// </summary>
        private void StoreDataBind()
        {
            try
            {
                this.StoreDepart.DataSource = tgsPproperty.GetDepartmentDict();
                this.StoreDepart.DataBind();
                DataTable dt = settingManager.GetSerPrivInfo(SystemID, "1=1");
                StorePriv.DataSource = dt;
                StorePriv.DataBind();

                DataTable dtPriv = null;
                if (dt.Rows.Count > 0)
                {
                    dtPriv = GetFirstDataTable(dt.Rows[0]);
                }
                BuildTree(TreePanel1.Root, dtPriv, "0");
            }
            catch (Exception ex)
            {
                ILog.WriteErrorLog(ex);
                logManager.InsertLogError("PrivManager.aspx-StoreDataBind", ex.Message + ";" + ex.StackTrace, "StoreDataBind has an exception");
            }
        }