当前位置: 首页>>代码示例>>C#>>正文


C# Project.getTaskName方法代码示例

本文整理汇总了C#中Project.getTaskName方法的典型用法代码示例。如果您正苦于以下问题:C# Project.getTaskName方法的具体用法?C# Project.getTaskName怎么用?C# Project.getTaskName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Project的用法示例。


在下文中一共展示了Project.getTaskName方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["ID"] != null)
        {
            currentProject = new Project(int.Parse(Request.QueryString["ID"].ToString()));
            string IP = Request.ServerVariables["HTTP_X_FORWARDED_FOR"] ?? Request.ServerVariables["REMOTE_ADDR"];
            currentUser = new userClass(userClass.getUserIDByIP(IP));

            lbl_ProjectDescription.Text = currentProject.getTaskDescription();
            lbl_ProjectName.Text = currentProject.getTaskName();

            generateReport();
        }
        else
        {
            Response.Redirect("Home.aspx");
        }
    }
开发者ID:Ravai,项目名称:honey-badger,代码行数:18,代码来源:printMemberReport.aspx.cs

示例2: Page_Load

 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.QueryString["ID"] != null)
     {
         lnk_ReturnToProject.PostBackUrl = "ViewTask.aspx?ID=" + Request.QueryString["ID"].ToString();
         curProject = new Project(int.Parse(Request.QueryString["ID"].ToString()));
         lbl_ProjectName.Text = curProject.getTaskName();
         getPermissions();
         PermissionLabel.Text = "Select a role to view permission levels";
         if (IsPostBack)
         {
             SearchNames();
             SearchuserName();
         }
     }
     else
     {
         Response.Redirect("Home.aspx");
     }
 }
开发者ID:Ravai,项目名称:honey-badger,代码行数:20,代码来源:PSharing.aspx.cs

示例3: getMessages

    private void getMessages()
    {
        string IP = Request.ServerVariables["HTTP_X_FORWARDED_FOR"] ?? Request.ServerVariables["REMOTE_ADDR"];
        DataTable DT = theCake.CheckNewAcknowledgements(IP);
        if (DT.Rows.Count > 0)
        {
            pnl_Messages.Visible = true;

            foreach (DataRow DR in DT.Rows)
            {
                Project aProj = new Project(int.Parse(DR["projectID"].ToString()));
                //DataTable DT2 = theCake.getTask(Int32.Parse(DR["projectID"].ToString()));
                TableRow TR = new TableRow();
                TableCell TC = new TableCell();
                Label L1 = new Label();
                L1.Text = "A project has been shared with you!  Check out ";
                LinkButton newLink = new LinkButton();
                newLink.Text = aProj.getTaskName();
                //newLink.Text = DT2.Rows[0]["taskName"].ToString();
                newLink.Click += new EventHandler(btn_AcknowledgeMessage);
                newLink.CommandArgument = DR["ID"].ToString();
                newLink.CommandName = DR["projectID"].ToString();
                Label L2 = new Label();
                L2.Text = "!";
                TC.Controls.Add(L1);
                TC.Controls.Add(newLink);
                TC.Controls.Add(L2);
                TR.Cells.Add(TC);
                tbl_Messages.Rows.Add(TR);
            }
        }
    }
开发者ID:Ravai,项目名称:honey-badger,代码行数:32,代码来源:Home.aspx.cs

示例4: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        MaintainScrollPositionOnPostBack = true;

        if (Request.QueryString["ID"] != null)
        {
            updateProjectPercent();

            ID = Request.QueryString["ID"].ToString();
            string IP = Request.ServerVariables["HTTP_X_FORWARDED_FOR"] ?? Request.ServerVariables["REMOTE_ADDR"];
            currentProject = new Project(int.Parse(ID));
            //DataTable DT = theCake.getTask(Int32.Parse(ID), theCake.getActiveUserName(IP));

            if (!currentProject.isValid)
            {
                Response.Redirect("Home.aspx");
            }

            //string ownerAlias = userClass.getUserAlias(Int32.Parse(DT.Rows[0]["ownerID"].ToString()));
            userClass projOwner = new userClass(currentProject.getOwnerID());
            if (theCake.getActiveUserName(IP) != projOwner.getOwnerAlias())
            {
                int userID = theCake.getUserID(theCake.getActiveUserName(IP));
                DataTable permissionChecker = theCake.getUserProjectPermissions(userID, Int32.Parse(ID));
                if (permissionChecker.Rows[0]["permission_Project_Write"].ToString() == "0")
                    ProjectWrite = false;
                if (permissionChecker.Rows[0]["permission_Board_Write"].ToString() == "0")
                    BoardWrite = false;
            }

            if (!ProjectWrite)
            {
                pnl_EditOperations.Visible = false;
                pnl_SpecialOptions.Visible = false;
            }
            if (!BoardWrite)
            {
                btn_AddComment.Visible = false;
            }

            lbl_TaskName.Text = currentProject.getTaskName(); //DT.Rows[0]["taskName"].ToString();
            lbl_Description.Text = currentProject.getTaskDescription(); //DT.Rows[0]["taskDescription"].ToString();
            lbl_projectOwner.Text = "<a href=\"UserProfile.aspx?userID=" + currentProject.getOwnerID() + "\">" + projOwner.getDisplayName();

            btn_ViewProjectReport.PostBackUrl = "printProjectReport.aspx?ID=" + Request.QueryString["ID"].ToString();
            btn_ViewMemberReport.PostBackUrl = "printMemberReport.aspx?ID=" + Request.QueryString["ID"].ToString();

            if (!IsPostBack)
            {
                txt_Edit_TaskName.Text = currentProject.getTaskName();
                txt_Edit_TaskDescription.Text = currentProject.getTaskDescription(); //DT.Rows[0]["taskDescription"].ToString();
            }
            lbl_ExpectedStart.Text = currentProject.getExpectedStart().ToShortDateString();
            lbl_ExpectedStop.Text = currentProject.getExpectedStop().ToShortDateString();

            if (currentProject.getActualStart() == DateTime.MinValue) lbl_ActualStart.Text = "Not Yet Started";
            else lbl_ActualStart.Text = currentProject.getActualStart().ToShortDateString();

            if (currentProject.getActualStop() == DateTime.MinValue) lbl_ActualStop.Text = "Not Yet Completed";
            else lbl_ActualStop.Text = currentProject.getActualStop().ToShortDateString();

            if (currentProject.getDoneFlag())
            {
                btn_markDone.Visible = false;
                btn_markWip.Visible = true;
                btn_UpgradeSize.Visible = false;

                AddComments.Visible = false;

                FillMilestones();
                getallBoards();
            }
            else
            {
                if (Request.QueryString["feat"] != null)
                {
                    if (!IsPostBack)
                    {
                        Feature ftr = new Feature(int.Parse(Request.QueryString["feat"].ToString()));
                        lbl_remChildFeature_Name.Text = ftr.getFeatureName();
                        lbl_remChildFeature_Description.Text = ftr.getFeatureDescription();
                        lbl_remChildFeature_PercentComplete.Text = ftr.getPercentComplete().ToString() + "%";
                        btnRemFeature.CommandArgument = ftr.getID().ToString();

                        txt_editChildFeature_Name.Text = ftr.getFeatureName();
                        txt_editChildFeature_Description.Text = ftr.getFeatureDescription();
                        for (int i = 0; i <= 100; i++)
                        {
                            ddl_editChildFeature_PercentComplete.Items.Add(i.ToString());
                        }
                        for (int i = 1; i <= 5; i++)
                        {
                            ddl_editChildFeature_Weight.Items.Add(i.ToString());
                            ddl_addChildFeature_Weight.Items.Add(i.ToString());
                        }
                        ddl_editChildFeature_PercentComplete.SelectedIndex = ftr.getPercentComplete();
                        ddl_editChildFeature_Weight.SelectedIndex = ftr.getWeight() - 1;

                        if (ftr.hasChildren)
                        {
//.........这里部分代码省略.........
开发者ID:Ravai,项目名称:honey-badger,代码行数:101,代码来源:ViewTask.aspx.cs


注:本文中的Project.getTaskName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。