예제 #1
0
    private void InitApproveOpinion(string nodeName)
    {
        TextBox opinion = new TextBox();

        //nodeName.Value==""
        if (nodeName == this.ApproveOpinionUCDeptleader.CurrentNodeName)
        {
            opinion = ((TextBox)ApproveOpinionUCDeptleader.FindControl("tbDeptLeaderOpion"));
        }
        if (nodeName == this.ApproveOpinionUCRealateDept.CurrentNodeName)
        {
            opinion = ((TextBox)ApproveOpinionUCRealateDept.FindControl("tbDeptLeaderOpion"));
        }
        if (nodeName == this.ApproveOpinionUCLeader.CurrentNodeName)
        {
            opinion = ((TextBox)ApproveOpinionUCLeader.FindControl("tbDeptLeaderOpion"));
        }
        if (nodeName == this.ApproveOpinionUCCEO.CurrentNodeName)
        {
            opinion = ((TextBox)ApproveOpinionUCCEO.FindControl("tbDeptLeaderOpion"));
        }
        hf_OpId.Value = opinion.ClientID;
    }
예제 #2
0
    private string GetApproveOpinion(string nodeName)
    {
        string opinion = "";

        //nodeName.Value==""
        if (nodeName == this.ApproveOpinionUCDeptleader.CurrentNodeName)
        {
            opinion = ((TextBox)ApproveOpinionUCDeptleader.FindControl("tbDeptLeaderOpion")).Text;
        }
        if (nodeName == this.ApproveOpinionUCRealateDept.CurrentNodeName)
        {
            opinion = ((TextBox)ApproveOpinionUCRealateDept.FindControl("tbDeptLeaderOpion")).Text;
        }
        if (nodeName == this.ApproveOpinionUCLeader.CurrentNodeName)
        {
            opinion = ((TextBox)ApproveOpinionUCLeader.FindControl("tbDeptLeaderOpion")).Text;
        }
        if (nodeName == this.ApproveOpinionUCCEO.CurrentNodeName)
        {
            opinion = ((TextBox)ApproveOpinionUCCEO.FindControl("tbDeptLeaderOpion")).Text;
        }
        return(opinion);
    }