Наследование: System.Windows.Forms.Form
Пример #1
0
 private void ToolS_FilesAdd_Click(object sender, EventArgs e)
 {
     nodeTemp = this.trvDocumentList.SelectedNode;
     if (nodeTemp != null)
     {
         if (chkIsFile())
         {
             MessageBox.Show("请选择文件存放的路径,不能选择文件节点!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
             return;
         }
         else
         {
             IAccount LoginInfo            = EAS.Application.Instance.Session.Client as IAccount;
             HYDocumentMS.IFileHelper file = new HYDocumentMS.FileHelper();
             Boolean bl = file.isHasAuth(DataType.AuthParmsType.UpLoad, LoginInfo.LoginID, this.trvDocumentList.SelectedNode.Tag.ToString());
             if (bl == false)
             {
                 MessageBox.Show("你没有权限上传文件到此文件夹!", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
                 return;
             }
             //MessageBox.Show(nodeTemp.Text.ToString());
             CreateNewFileFrm frm = new CreateNewFileFrm();
             frm.SaveFilepath = fileHelper.getDocumentAllPathByPathID(nodeTemp.Tag.ToString());
             frm.ShowDialog();
         }
     }
     else
     {
         MessageBox.Show("请选择文件存放的路径节点!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
     }
 }
Пример #2
0
 private void ToolS_FilesAdd_Click(object sender, EventArgs e)
 {
     nodeTemp = this.trvDocumentList.SelectedNode;
     if (nodeTemp != null)
     {
         if (chkIsFile())
         {
             MessageBox.Show("请选择文件存放的路径,不能选择文件节点!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
             return;
         }
         else
         {
             IAccount LoginInfo = EAS.Application.Instance.Session.Client as IAccount;
             HYDocumentMS.IFileHelper file = new HYDocumentMS.FileHelper();
             Boolean bl = file.isHasAuth(DataType.AuthParmsType.UpLoad, LoginInfo.LoginID, this.trvDocumentList.SelectedNode.Tag.ToString());
             if (bl == false)
             {
                 MessageBox.Show("你没有权限上传文件到此文件夹!", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
                 return;
             }
             //MessageBox.Show(nodeTemp.Text.ToString());
             CreateNewFileFrm frm = new CreateNewFileFrm();
             frm.SaveFilepath = fileHelper.getDocumentAllPathByPathID(nodeTemp.Tag.ToString());
             frm.ShowDialog();
         }
     }
     else
     {
         MessageBox.Show("请选择文件存放的路径节点!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
     }
 }