예제 #1
0
    public void BindDropTaskType()
    {
        System.Collections.Generic.IList <BudTaskType> all = BudTaskType.GetAll();
        this.ddlTaskType.DataSource     = all;
        this.ddlTaskType.DataTextField  = "Name";
        this.ddlTaskType.DataValueField = "Layer";
        this.ddlTaskType.DataBind();
        ListItem item = new ListItem("", "");

        this.ddlTaskType.Items.Add(item);
    }
예제 #2
0
    public void InitPage()
    {
        if (string.IsNullOrEmpty(this.taskTypeId))
        {
            this.hdGuid.Value = System.Guid.NewGuid().ToString();
            return;
        }
        BudTaskType byId = BudTaskType.GetById(this.taskTypeId);

        if (byId != null)
        {
            this.txtTaskTypeName.Text = byId.Name;
            return;
        }
        base.RegisterScript("alert('系统提示:\\n\\n 此类型不存在!');winclose('taskTypeEdit', 'TaskTypeList.aspx', true);");
    }