示例#1
0
        private void ShowDetail(object sender)
        {
            this.pnlRequests.Visible = true;
            string        newid         = ((LinkButton)sender).CommandArgument;
            DocumentApply DocumentApply = new YunShanOA.BusinessLogic.DocumentManager.DocumentManager().getDocumentApplyByid(int.Parse(newid));

            if (DocumentApply.Status == 3)
            {
                this.lbMsg.Text        = "你的请求已经提交,请等待电脑处理!";
                this.btnSubmit.Enabled = false;
            }
            else
            {
                this.lbMsg.Text        = "";
                this.btnSubmit.Enabled = true;
            }
            this.txtWFID.Text        = DocumentApply.WFID.ToString();
            this.pnlRequests.Visible = true;
            this.txtAuthor.Text      = DocumentApply.Author;
            this.txtID.Text          = DocumentApply.DocumentID.ToString();
            this.txtName.Text        = DocumentApply.DocumentName;
        }
 private void ShowDetail(object sender)
 {
     this.pnlRequests.Visible = true;
     string newid = ((LinkButton)sender).CommandArgument;
     DocumentApply DocumentApply = new YunShanOA.BusinessLogic.DocumentManager.DocumentManager().getDocumentApplyByid(int.Parse(newid));
     if (DocumentApply.Status == 3)
     {
         this.lbMsg.Text = "你的请求已经提交,请等待电脑处理!";
         this.btnSubmit.Enabled = false;
     }
     else
     {
         this.lbMsg.Text = "";
         this.btnSubmit.Enabled = true;
     }
     this.txtWFID.Text = DocumentApply.WFID.ToString();
     this.pnlRequests.Visible = true;
     this.txtAuthor.Text = DocumentApply.Author;
     this.txtID.Text = DocumentApply.DocumentID.ToString();
     this.txtName.Text = DocumentApply.DocumentName;
 }