Esempio n. 1
0
 /// <summary>
 /// 提交授权信息
 /// </summary>
 /// <param name="fileID"></param>
 /// <param name="listAdd"></param>
 /// <param name="listDel"></param>
 /// <param name="cbPublish"></param>
 /// <param name="bCurPublish"></param>
 public static void SubmitProvide(string fileID, List <string> listAdd, List <string> listDel, ref CheckBox cbPublish, bool bCurPublish, string provideName)
 {
     if (bCurPublish != cbPublish.Checked)
     {
         //先进行公开授权
         if (cbPublish.Checked)
         {
             BLLControl.PublishFile(fileID, provideName);
         }
         else
         {
             BLLControl.RecallFile(fileID);
         }
     }
     //再进行单独授权,不冲突。
     if (listAdd.Count != 0)
     {
         BLLControl.ProvideFile(fileID, listAdd, provideName);
     }
     if (listDel.Count != 0)
     {
         BLLControl.RecoverFile(fileID, listDel);
     }
 }