private void BindTemplateTree()
    {
        DataTable dt = DeptQuarterBus.GetQuarterDescrible();



        //根节点
        TreeNode rootNode = new TreeNode();

        rootNode.Text = " <img  src=\"../../../Images/DeptMage.jpg\" border=\"0\"/> <span style=\"font-size:14px;height:28px\"> 职位说明书模板库 </span>";

        //  rootNode.Value = "0";
        if (dt != null && dt.Rows.Count > 0)
        {
            DataRow[] rows = dt.Select("1=1");
            if (rows.Length > 0)
            {
                TreeNode childNode = null;
                for (int i = 0; i < rows.Length; i++)
                {
                    childNode             = new TreeNode();
                    childNode.Value       = rows[i]["ID"].ToString();
                    childNode.Text        = "<img  src=\"../../../Images/DeptMage.jpg\" border=\"0\"/><span style=\"font-size:12px;font-color:#006699;\"> " + rows[i]["QuterName"].ToString() + " </span>";
                    childNode.NavigateUrl = "DeptQueryInfo.aspx?ModuleID=2011104&&Sign=1&&QuarterID=" + rows[i]["ID"].ToString();
                    rootNode.ChildNodes.Add(childNode);
                }
            }
        }
        trTemplate.Nodes.Add(rootNode);
    }
    /// <summary>
    /// 类名:DeptQuarter_Info
    /// 描述:岗位设置
    ///
    /// 作者:吴志强
    /// 创建时间:2009/04/13
    /// 最后修改时间:2009/04/13
    /// </summary>
    ///
    protected void Page_Load(object sender, EventArgs e)
    { //编号初期处理
        //页面初期设值
        if (!IsPostBack)
        {
            UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"];
            divCompany.InnerHtml = userInfo.CompanyName;
            codeRule.CodingType  = ConstUtil.CODING_RULE_TYPE_ZERO;
            codeRule.ItemTypeID  = ConstUtil.CODING_BASE_ITEM_QUARTER;
            //岗位分类
            ddlQuarterType.TypeFlag       = ConstUtil.CODE_TYPE_HUMAN;
            ddlQuarterType.TypeCode       = ConstUtil.CODE_TYPE_QUARTER;
            ddlQuarterType.IsInsertSelect = true;
            //岗位级别
            ddlQuarterLevel.TypeFlag       = ConstUtil.CODE_TYPE_HUMAN;
            ddlQuarterLevel.TypeCode       = ConstUtil.CODE_TYPE_QUARTER_LEVEL;
            ddlQuarterLevel.IsInsertSelect = true;

            QuterModelSelect.DataValueField = "ID";
            QuterModelSelect.DataTextField  = "QuterName";

            QuterModelSelect.DataSource = DeptQuarterBus.GetQuarterDescrible();
            QuterModelSelect.DataBind();
            ListItem Item = new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE);
            QuterModelSelect.Items.Insert(0, Item);
            QuterModelSelect.SelectedValue = "0";

            txtDeptName.Attributes["readonly"]         = "readonly";
            txtSuperQuarterName.Attributes["readonly"] = "readonly";
        }
    }
Beispiel #3
0
    private void ReadTemplate()
    {
        QuterModelSelect.Items.Clear();
        QuterModelSelect.DataValueField = "ID";
        QuterModelSelect.DataTextField  = "QuterName";
        QuterModelSelect.DataSource     = DeptQuarterBus.GetQuarterDescrible();
        QuterModelSelect.DataBind();
        ListItem Item = new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE);

        QuterModelSelect.Items.Insert(0, Item);
        QuterModelSelect.SelectedIndex = 0;
    }
Beispiel #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         QuterModelSelect.DataValueField = "ID";
         QuterModelSelect.DataTextField  = "QuterName";
         QuterModelSelect.DataSource     = DeptQuarterBus.GetQuarterDescrible();
         QuterModelSelect.DataBind();
         ListItem Item = new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE);
         QuterModelSelect.Items.Insert(0, Item);
         QuterModelSelect.SelectedIndex = 0;
     }
 }