zoukankan      html  css  js  c++  java
  • 【原創】兩年前寫的一個仿網絡磁盤的圖文信息管理系統

    兩年前,因為部門編制的關係,掛靠在一個設計部門,為他們用VS2003開發了一個共享圖文管理的平臺,主要功能除了必要的文件夾功能以外,增加了圖檔版本控制等特別管控;現在看看有些不是最佳方案;

    1、主要實現都在一個頁面上,由20幾個panel進行版面控制;
    2、左邊為treeview,上面的菜單為toolbar;
    3、主頁面的代碼行數為7111行(含注釋);
    4、各種權限由編碼控制,用封裝的方法控制;

    dms001.png


      //0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|60
      //--[XX]--"列表"
      //--[00]--"根目錄"
      //--[01]--"父目錄"
      //--[02]--"刷新"
      //--[03]--"新建"
      //--[04]--"改名"
      //--[05]--"刪除"
      //--[06]--"複製"
      //--[07]--"剪切"
      //--[08]--"粘貼"
      //--[09]--"壓縮"
      //--[10]--"解壓縮"
      //--[11]--"當前目錄搜索"
      //--[12]--"子目錄搜索"
      //--[13]--"單文件上傳"--設計課工作文檔CheckIn版次結案
      //--[14]--"多文件上傳"--設計課工作文檔CheckIn版次結案
      //--[15]--"URL"
      //--[16]--"加密"
      //--[17]--"解密"
      //--[18]--"共享"
      //--[19]--"外網提取"
      //--[20]--"下載"
      //--[21]--"權限"
      //--[22]--"日誌"
      //--[23]--"管理"
      //--[24]--"標註管理--文管"--設計課工作文檔CheckOut工作中
      //--[25]--"執行圖文版次規則"
      //--[26]--"用戶帳號管理"
      //--[27]--"標注設定--設計"
      //--[28]--"管控"
      //--[29]--"尚未使用"
      //--............
      //--[59]--"尚未使用"
      //0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|60




      1 private string[] GetRoleByDir(int id)
      2         {
      3             string StrUserRole="";
      4             string StrGroupRole="";
      5             //0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|60
      6             //--[XX]--"列表"
      7             //--[00]--"根目錄"
      8             //--[01]--"父目錄"
      9             //--[02]--"刷新"
     10             //--[03]--"新建"
     11             //--[04]--"改名"
     12             //--[05]--"刪除"
     13             //--[06]--"複製"
     14             //--[07]--"剪切"
     15             //--[08]--"粘貼"
     16             //--[09]--"壓縮"
     17             //--[10]--"解壓縮"
     18             //--[11]--"當前目錄搜索"
     19             //--[12]--"子目錄搜索"
     20             //--[13]--"單文件上傳"--設計課工作文檔CheckIn版次結案
     21             //--[14]--"多文件上傳"--設計課工作文檔CheckIn版次結案
     22             //--[15]--"URL"
     23             //--[16]--"加密"
     24             //--[17]--"解密"
     25             //--[18]--"共享"
     26             //--[19]--"外網提取"
     27             //--[20]--"下載"
     28             //--[21]--"權限"
     29             //--[22]--"日誌"
     30             //--[23]--"管理"
     31             //--[24]--"標註管理--文管"--設計課工作文檔CheckOut工作中
     32             //--[25]--"執行圖文版次規則"
     33             //--[26]--"用戶帳號管理"
     34             //--[27]--"標注設定--設計"
     35             //--[28]--"管控"
     36             //--[29]--"尚未使用"
     37             //--
     38             //--[59]--"尚未使用"
     39             //0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|60
     40 
     41             string[] StrTemp=new string[60];
     42             string strTemp="";
     43 
     44             xConDMS.MOD.DMS_UserDirList MxUDL=new xConDMS.MOD.DMS_UserDirList();
     45             xConDMS.BLL.DMS_UserDirList BxUDL=new xConDMS.BLL.DMS_UserDirList();
     46             xConDMS.DAL.DMS_UserDirList DxUDL=new xConDMS.DAL.DMS_UserDirList();
     47 
     48             MxUDL=BxUDL.GetModel(id);
     49             StrUserRole=MxUDL.UserRole.ToString();
     50             StrGroupRole=MxUDL.GroupRole.ToString();
     51 
     52             //StrUserRole="0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0";
     53             string[] URtokes=StrUserRole.Trim().Replace(" ","").Split(new Char[]{'|'});
     54 
     55             //StrGroupRole="0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0";
     56             string[] GRtokes=StrGroupRole.Trim().Replace(" ","").Split(new Char[]{'|'});
     57 
     58             for(int i=0;i<StrTemp.Length;i++)
     59             {
     60                 int gi=0;
     61                 if(GRtokes[i]!=null&&GRtokes[i].ToString()!="")
     62                 {gi=int.Parse(GRtokes[i].ToString());}
     63 
     64                 int ui=0;
     65                 if(URtokes[i]!=null&&URtokes[i].ToString()!="")
     66                 {ui=int.Parse(URtokes[i].ToString());}
     67 
     68                 if(gi>=ui)
     69                 {
     70                     StrTemp[i]=gi.ToString();
     71                 }
     72                 else
     73                 {
     74                     StrTemp[i]=ui.ToString();
     75                 }
     76             }
     77 
     78             for(int i=0;i<StrTemp.Length;i++)
     79             {
     80                 strTemp+=StrTemp[i]+"|";//生成權限綜合
     81             }
     82 
     83             return StrTemp;
     84         }
     85         
     86         private void SetRoleToDir(int id)//實施目錄權限
     87         {
     88             StringBuilder StrRoleList = new StringBuilder();
     89             string[] StrUserRole=GetRoleByDir(id);
     90 
     91             string strTemp="";
     92             for(int i=0;i<StrUserRole.Length;i++)
     93             {
     94                 strTemp+=StrUserRole[i]+"|";//生成權限綜合
     95             }
     96 
     97             //UIUtil.EnableToolbarButton(DMSToolbar,"列表",true);
     98             //UIUtil.EnableToolbarButton(DMSToolbar,"根目錄",true);
     99             //UIUtil.EnableToolbarButton(DMSToolbar,"父目錄",true);
    100             //UIUtil.EnableToolbarButton(DMSToolbar,"刷新",true);
    101             //UIUtil.EnableToolbarButton(DMSToolbar,"新建",true);
    102             //UIUtil.EnableToolbarButton(DMSToolbar,"改名",true);
    103             //UIUtil.EnableToolbarButton(DMSToolbar,"刪除",true);
    104             //UIUtil.EnableToolbarButton(DMSToolbar,"複製",true);
    105             //UIUtil.EnableToolbarButton(DMSToolbar,"剪切",true);
    106             //UIUtil.EnableToolbarButton(DMSToolbar,"粘貼",true);
    107             //UIUtil.EnableToolbarButton(DMSToolbar,"壓縮",true);
    108             //UIUtil.EnableToolbarButton(DMSToolbar,"解壓縮",true);
    109             //UIUtil.EnableToolbarButton(DMSToolbar,"搜索",true);
    110             //UIUtil.EnableToolbarButton(DMSToolbar,"上傳",true);
    111             //UIUtil.EnableToolbarButton(DMSToolbar,"URL",true);
    112             //UIUtil.EnableToolbarButton(DMSToolbar,"加密",true);
    113             //UIUtil.EnableToolbarButton(DMSToolbar,"解密",true);
    114             //UIUtil.EnableToolbarButton(DMSToolbar,"共享",true);
    115             //UIUtil.EnableToolbarButton(DMSToolbar,"權限",true);
    116             //UIUtil.EnableToolbarButton(DMSToolbar,"日誌",true);
    117             //UIUtil.EnableToolbarButton(DMSToolbar,"管理",true);
    118             //UIUtil.EnableToolbarButton(DMSToolbar,"管控",true);
    119 
    120             //--[XX]--"列表"
    121             //--[00]--"根目錄"
    122             //--[01]--"父目錄"
    123             //--[02]--"刷新"
    124 
    125             //--[03]--"新建"
    126 
    127             int int3=int.Parse(StrUserRole[3].ToString());
    128             switch(int3)       
    129             {
    130                 case 1:
    131                     UIUtil.EnableToolbarButton(DMSToolbar,"新建",true);
    132                     StrRoleList.Append("新建 [目錄]:");
    133                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    134                     break;
    135                 default:
    136                     UIUtil.EnableToolbarButton(DMSToolbar,"新建",false);
    137                     StrRoleList.Append("新建 [目錄]:");
    138                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    139                     break;
    140             }
    141             
    142             //--[04]--"改名"
    143             int int4=int.Parse(StrUserRole[4].ToString());
    144             switch(int4)       
    145             {
    146                 case 1:
    147                     UIUtil.EnableToolbarButton(DMSToolbar,"改名",true);
    148                     StrRoleList.Append("改名 [目錄/文件]:");
    149                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    150                     break;
    151                 default:
    152                     UIUtil.EnableToolbarButton(DMSToolbar,"改名",false);
    153                     StrRoleList.Append("改名 [目錄/文件]:");
    154                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    155                     break;
    156             }
    157 
    158             //--[05]--"刪除"
    159             int int5=int.Parse(StrUserRole[5].ToString());
    160             switch(int5)        
    161             {
    162                 case 1:
    163                     UIUtil.EnableToolbarButton(DMSToolbar,"刪除",true);
    164                     StrRoleList.Append("刪除 [目錄/文件]:");
    165                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    166                     break;
    167                 default:
    168                     UIUtil.EnableToolbarButton(DMSToolbar,"刪除",false);
    169                     StrRoleList.Append("刪除 [目錄/文件]:");
    170                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    171                     break;
    172             }
    173 
    174             //--[06]--"複製"
    175             int int6=int.Parse(StrUserRole[6].ToString());
    176             switch(int6)         
    177             {
    178                 case 1:
    179                     UIUtil.EnableToolbarButton(DMSToolbar,"複製",true);
    180                     StrRoleList.Append("複製 [目錄/文件]:");
    181                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    182                     break;
    183                 default:
    184                     UIUtil.EnableToolbarButton(DMSToolbar,"複製",false);
    185                     StrRoleList.Append("複製 [目錄/文件]:");
    186                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    187                     break;
    188             }
    189 
    190             //--[07]--"剪切"
    191             switch(int.Parse(StrUserRole[7].ToString()))       
    192             {
    193                 case 1:
    194                     UIUtil.EnableToolbarButton(DMSToolbar,"剪切",true);
    195                     StrRoleList.Append("剪切 [目錄/文件]:");
    196                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    197                     break;
    198                 default:
    199                     UIUtil.EnableToolbarButton(DMSToolbar,"剪切",false);
    200                     StrRoleList.Append("剪切 [目錄/文件]:");
    201                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    202                     break;
    203             }
    204 
    205             //--[08]--"粘貼"
    206             switch(int.Parse(StrUserRole[8].ToString()))       
    207             {
    208                 case 1:
    209                     UIUtil.EnableToolbarButton(DMSToolbar,"粘貼",true);
    210                     StrRoleList.Append("粘貼 [目錄/文件]:");
    211                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    212                     break;
    213                 default:
    214                     UIUtil.EnableToolbarButton(DMSToolbar,"粘貼",false);
    215                     StrRoleList.Append("粘貼 [目錄/文件]:");
    216                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    217                     break;
    218             }
    219 
    220             //--[09]--"壓縮"
    221             switch(int.Parse(StrUserRole[9].ToString()))       
    222             {
    223                 case 1:
    224                     UIUtil.EnableToolbarButton(DMSToolbar,"壓縮",true);
    225                     StrRoleList.Append("壓縮 [文件]:");
    226                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    227                     break;
    228                 default:
    229                     UIUtil.EnableToolbarButton(DMSToolbar,"壓縮",false);
    230                     StrRoleList.Append("壓縮 [文件]:");
    231                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    232                     break;
    233             }
    234 
    235             //--[10]--"解壓縮"
    236             switch(int.Parse(StrUserRole[10].ToString()))       
    237             {
    238                 case 1:
    239                     UIUtil.EnableToolbarButton(DMSToolbar,"解壓縮",true);
    240                     StrRoleList.Append("解壓縮 [ZIP文件]:");
    241                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    242                     break;
    243                 default:
    244                     UIUtil.EnableToolbarButton(DMSToolbar,"解壓縮",false);
    245                     StrRoleList.Append("解壓縮 [ZIP文件]:");
    246                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    247                     break;
    248             }
    249 
    250             //--[11]--"當前目錄搜索"
    251             switch(int.Parse(StrUserRole[11].ToString()))       
    252             {
    253                 case 1:
    254                     UIUtil.EnableToolbarButton(DMSToolbar,"搜索",true);
    255                     StrRoleList.Append("搜索 [文件]:");
    256                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    257                     break;
    258                 default:
    259                     UIUtil.EnableToolbarButton(DMSToolbar,"搜索",false);
    260                     StrRoleList.Append("搜索 [文件]:");
    261                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    262                     break;
    263             }
    264 
    265             //--[12]--"子目錄搜索"
    266             switch(int.Parse(StrUserRole[12].ToString()))       
    267             {
    268                 case 1:
    269                     CbSearch.Enabled=true;
    270                     CbSearch.Checked=true;
    271                     StrRoleList.Append("子目錄搜索 [文件]:");
    272                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    273                     break;
    274                 default:
    275                     CbSearch.Enabled=false;
    276                     CbSearch.Checked=false;
    277                     StrRoleList.Append("子目錄搜索 [文件]:");
    278                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    279                     break;
    280             }
    281 
    282             //--[13]--"上傳"
    283             switch(int.Parse(StrUserRole[13].ToString()))       
    284             {
    285                 case 1:
    286                     UIUtil.EnableToolbarButton(DMSToolbar,"上傳",true);
    287                     StrRoleList.Append("上傳 [文件]:");
    288                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    289                     break;
    290                 default:
    291                     UIUtil.EnableToolbarButton(DMSToolbar,"上傳",false);
    292                     StrRoleList.Append("上傳 [文件]:");
    293                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    294                     break;
    295             }
    296 
    297             //--[14]--"多文件上傳"
    298             switch(int.Parse(StrUserRole[14].ToString()))       
    299             {
    300                 case 1:
    301                     PbtnShowMUpload.Enabled=true;
    302                     StrRoleList.Append("多文件上傳 [文件]:");
    303                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    304                     break;
    305                 default:
    306                     PbtnShowMUpload.Enabled=false;
    307                     StrRoleList.Append("多文件上傳 [文件]:");
    308                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    309                     break;
    310             }
    311 
    312             //--[15]--"URL"
    313             switch(int.Parse(StrUserRole[15].ToString()))       
    314             {
    315                 case 1:
    316                     //UIUtil.EnableToolbarButton(DMSToolbar,"URL",true);
    317                     //StrRoleList.Append("URL:");
    318                     //StrRoleList.Append("<font color=#006699>開放</font><br>");
    319                     break;
    320                 default:
    321                     //UIUtil.EnableToolbarButton(DMSToolbar,"URL",false);
    322                     //StrRoleList.Append("URL:");
    323                     //StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    324                     break;
    325             }
    326 
    327             //--[16]--"加密"
    328             switch(int.Parse(StrUserRole[16].ToString()))       
    329             {
    330                 case 1:
    331                     UIUtil.EnableToolbarButton(DMSToolbar,"加密",true);
    332                     StrRoleList.Append("加密 [文件]:");
    333                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    334                     break;
    335                 default:
    336                     UIUtil.EnableToolbarButton(DMSToolbar,"加密",false);
    337                     StrRoleList.Append("加密 [文件]:");
    338                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    339                     break;
    340             }
    341 
    342             //--[17]--"解密"
    343             switch(int.Parse(StrUserRole[17].ToString()))       
    344             {
    345                 case 1:
    346                     UIUtil.EnableToolbarButton(DMSToolbar,"解密",true);
    347                     StrRoleList.Append("解密 [文件]:");
    348                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    349                     break;
    350                 default:
    351                     UIUtil.EnableToolbarButton(DMSToolbar,"解密",false);
    352                     StrRoleList.Append("解密 [文件]:");
    353                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    354                     break;
    355             }
    356 
    357             //--[18]--"共享"
    358             switch(int.Parse(StrUserRole[18].ToString()))       
    359             {
    360                 case 1:
    361                     UIUtil.EnableToolbarButton(DMSToolbar,"共享",true);
    362                     StrRoleList.Append("共享 [目錄/文件--下載]:");
    363                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    364                     break;
    365                 default:
    366                     UIUtil.EnableToolbarButton(DMSToolbar,"共享",false);
    367                     StrRoleList.Append("共享 [目錄/文件--下載]:");
    368                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    369                     break;
    370             }
    371 
    372             //--[19]--"外網提取"
    373 
    374             //--[20]--"下載"
    375             switch(int.Parse(StrUserRole[20].ToString()))       
    376             {
    377                 case 1:
    378                     //UIUtil.EnableToolbarButton(DMSToolbar,"下載",true);
    379                     Session["CanDownload"]="true";
    380                     StrRoleList.Append("下載 [Web點擊下載]:");
    381                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    382                     break;
    383                 default:
    384                     Session["CanDownload"]="true";
    385                     //UIUtil.EnableToolbarButton(DMSToolbar,"下載",false);
    386                     StrRoleList.Append("下載 [Web點擊下載]:");
    387                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    388                     break;
    389             }
    390 
    391             //--[21]--"權限"
    392             switch(int.Parse(StrUserRole[21].ToString()))       
    393             {
    394                 case 1:
    395                     UIUtil.EnableToolbarButton(DMSToolbar,"權限",true);
    396                     StrRoleList.Append("查看權限:");
    397                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    398                     break;
    399                 default:
    400                     UIUtil.EnableToolbarButton(DMSToolbar,"權限",true);
    401                     StrRoleList.Append("查看權限:");
    402                     StrRoleList.Append("<font color=#ff0000>開放</font><br>");
    403                     break;
    404             }
    405 
    406             //--[22]--"日誌"
    407             switch(int.Parse(StrUserRole[22].ToString()))       
    408             {
    409                 case 1:
    410                     UIUtil.EnableToolbarButton(DMSToolbar,"日誌",true);
    411                     StrRoleList.Append("查看日誌:");
    412                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    413                     break;
    414                 default:
    415                     UIUtil.EnableToolbarButton(DMSToolbar,"日誌",false);
    416                     StrRoleList.Append("查看日誌:");
    417                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    418                     break;
    419             }
    420 
    421             //--[23]--"管理"
    422             switch(int.Parse(StrUserRole[23].ToString()))       
    423             {
    424                 case 1:
    425                     UIUtil.EnableToolbarButton(DMSToolbar,"管理",true);
    426                     StrRoleList.Append("管理:");
    427                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    428                     break;
    429                 default:
    430                     UIUtil.EnableToolbarButton(DMSToolbar,"管理",false);
    431                     StrRoleList.Append("管理:");
    432                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    433                     break;
    434             }
    435 
    436             //--[24]--"文件操作--標註--已被占用/---"
    437             switch(int.Parse(StrUserRole[24].ToString()))
    438             {
    439                 case 1:
    440                     Session["CanMark"]="true";
    441                     StrRoleList.Append("標註管理--文管:");
    442                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    443                     break;
    444                 default:
    445                     Session["CanMark"]="false";
    446                     StrRoleList.Append("標註管理--文管:");
    447                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    448                     break;
    449             }
    450 
    451             //--[25]--"執行圖文版次規則"
    452             switch(int.Parse(StrUserRole[25].ToString()))
    453             {
    454                 case 1:
    455                     Session["PushDocRole"]="true";
    456                     StrRoleList.Append("執行圖文版次規則:");
    457                     StrRoleList.Append("<font color=#006699>執行</font><br>");
    458                     break;
    459                 default:
    460                     Session["PushDocRole"]="false";
    461                     StrRoleList.Append("執行圖文版次規則:");
    462                     StrRoleList.Append("<font color=#ff0000>不執行</font><br>");
    463                     break;
    464             }
    465 
    466             //--[26]--"用戶帳號管理"
    467             switch(int.Parse(StrUserRole[26].ToString()))
    468             {
    469                 case 1:
    470                     Session["CanWebManageUser"]="true";
    471                     this.BtAddUser.Enabled=true;
    472                     this.BtDelUser.Enabled=true;
    473                     StrRoleList.Append("用戶帳號管理:");
    474                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    475                     break;
    476                 default:
    477                     Session["CanWebManageUser"]="false";
    478                     this.BtAddUser.Enabled=false;
    479                     this.BtDelUser.Enabled=false;
    480                     StrRoleList.Append("用戶帳號管理:");
    481                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    482                     break;
    483             }
    484 
    485             //--[27]--"文件操作--標註設定--設計--已被占用/---"
    486             switch(int.Parse(StrUserRole[27].ToString()))
    487             {
    488                 case 1:
    489                     Session["DesignCanMark"]="true";
    490                     StrRoleList.Append("標註設定--設計:");
    491                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    492                     break;
    493                 default:
    494                     Session["DesignCanMark"]="false";
    495                     StrRoleList.Append("標註設定--設計:");
    496                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    497                     break;
    498             }
    499 
    500 
    501             //--[28]--"目錄管控--目錄大小限制/---"
    502             switch(int.Parse(StrUserRole[28].ToString()))
    503             {
    504                 case 1:
    505                     UIUtil.EnableToolbarButton(DMSToolbar,"管控",true);
    506                     StrRoleList.Append("目錄管控--目錄大小限制:");
    507                     StrRoleList.Append("<font color=#006699>開放</font><br>");
    508                     break;
    509                 default:
    510                     UIUtil.EnableToolbarButton(DMSToolbar,"管控",false);
    511                     StrRoleList.Append("目錄管控--目錄大小限制:");
    512                     StrRoleList.Append("<font color=#ff0000>禁用</font><br>");
    513                     break;
    514             }
    515 
    516             Session["StrRoleList"]=StrRoleList.ToString();
    517 
    518         }
  • 相关阅读:
    An analysis of a simple Java basic interview question: short s1=1; s1 = s1 +1 will report an error?
    <bits/stdc++.h> in C++
    linux 下配置可视化git 冲突合并工具kdiff3
    加分
    对老师的意见和课程总结
    12月19日
    12月18日
    12月17日
    12月16日
    12月15日
  • 原文地址:https://www.cnblogs.com/godwar/p/1307391.html
Copyright © 2011-2022 走看看