Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["USER"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            else
            {
                if (Page.IsPostBack == false)
                {
                    txtTarix.Text = time;
                    var typ = (from x in db.TBLTYPE
                               select new
                    {
                        x.TYPENAME,
                        x.TYPEID
                    }).ToList();

                    DropType.DataSource = typ;
                    DropType.DataBind();
                    var cat = (from x in db.TBLCATEGORY
                               select new
                    {
                        x.CATNAME,
                        x.CATID
                    }).ToList();
                    DropCategory.DataSource = cat;
                    DropCategory.DataBind();
                }
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Inits this instance.
        /// </summary>
        public void Initialize()
        {
            var categories = new CategoryTree();

            DropCategory.DataSource = categories.GetCategoryTreeByProjectId(ProjectId);
            DropCategory.DataBind();
        }
Esempio n. 3
0
 private void BindCate()
 {
     Maticsoft.BLL.Products.Category bll = new Maticsoft.BLL.Products.Category();
     this.DropCategory.DataSource    = bll.GetAllList();
     this.DropCategory.DataTextField = "Name";
     DropCategory.DataValueField     = "CategoryId";
     DropCategory.DataBind();
 }
Esempio n. 4
0
    public void BindCategory()
    {
        DataSet dsCategoryMasterList = CCategorymasterServices.CategorymasterList();

        DropCategory.DataSource     = dsCategoryMasterList;
        DropCategory.DataTextField  = "CategoryName";
        DropCategory.DataValueField = "CategoryId";
        DropCategory.DataBind();
    }
        /// <summary>
        /// Binds the options.
        /// </summary>
        private void BindOptions()
        {
            List <ITUser> users = UserManager.GetUsersByProjectId(ProjectId, true);

            //Get Type
            DropIssueType.DataSource = IssueTypeManager.GetByProjectId(ProjectId);
            DropIssueType.DataBind();

            //Get Priority
            DropPriority.DataSource = PriorityManager.GetByProjectId(ProjectId);
            DropPriority.DataBind();

            //Get Resolutions
            DropResolution.DataSource = ResolutionManager.GetByProjectId(ProjectId);
            DropResolution.DataBind();

            //Get categories
            var categories = new CategoryTree();

            DropCategory.DataSource = categories.GetCategoryTreeByProjectId(ProjectId);
            DropCategory.DataBind();

            //Get milestones
            DropMilestone.DataSource = MilestoneManager.GetByProjectId(ProjectId);
            DropMilestone.DataBind();

            DropAffectedMilestone.DataSource = MilestoneManager.GetByProjectId(ProjectId);
            DropAffectedMilestone.DataBind();

            //Get Users
            DropAssignedTo.DataSource = users;
            DropAssignedTo.DataBind();

            DropOwned.DataSource = users;
            DropOwned.DataBind();

            DropStatus.DataSource = StatusManager.GetByProjectId(ProjectId);
            DropStatus.DataBind();

            lblDateCreated.Text  = DateTime.Now.ToString("f");
            lblLastModified.Text = DateTime.Now.ToString("f");

            if (!User.Identity.IsAuthenticated)
            {
                return;
            }

            lblReporter.Text       = Security.GetDisplayName();
            lblLastUpdateUser.Text = Security.GetDisplayName();
        }
Esempio n. 6
0
        /// <summary>
        /// Binds the options.
        /// </summary>
        private void BindOptions()
        {
            List <ITUser> users = UserManager.GetUsersByProjectId(ProjectId, true);

            //Get Type
            DropIssueType.DataSource = IssueTypeManager.GetByProjectId(ProjectId);
            DropIssueType.DataBind();

            //Get Priority
            DropPriority.DataSource = PriorityManager.GetByProjectId(ProjectId);
            DropPriority.DataBind();

            //Get Resolutions
            DropResolution.DataSource = ResolutionManager.GetByProjectId(ProjectId);
            DropResolution.DataBind();

            //Get categories
            var categories = new CategoryTree();

            DropCategory.DataSource = categories.GetCategoryTreeByProjectId(ProjectId);
            DropCategory.DataBind();

            //Get milestones
            DropMilestone.DataSource = MilestoneManager.GetByProjectId(ProjectId, false);
            DropMilestone.DataBind();

            DropAffectedMilestone.DataSource = MilestoneManager.GetByProjectId(ProjectId);
            DropAffectedMilestone.DataBind();

            //Get Users
            DropAssignedTo.DataSource = users;
            DropAssignedTo.DataBind();

            DropOwned.DataSource = users;
            DropOwned.DataBind();
            DropOwned.SelectedValue = User.Identity.Name;

            DropStatus.DataSource = StatusManager.GetByProjectId(ProjectId);
            DropStatus.DataBind();
        }
Esempio n. 7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["USER"] == null)
            {
                Response.Redirect("~/Login.aspx");
            }
            else
            {
                id = Convert.ToInt32(Request.QueryString["BLOGID"]);
                if (Page.IsPostBack == false)
                {
                    var blg = db.TBLBLOCG.Find(id);
                    txtbasliq.Text             = blg.BLOGBASLIQ;
                    txtContent.Text            = blg.BLOGCONTENT;
                    txtTarix.Text              = blg.BLOGTAARIX.ToString();
                    txtMedia.Text              = blg.BLOGMEDIA;
                    DropType.SelectedValue     = blg.BLOGTYPE.ToString();
                    DropCategory.SelectedValue = blg.BLOGCATEGORY.ToString();

                    var typ = (from x in db.TBLTYPE
                               select new
                    {
                        x.TYPENAME,
                        x.TYPEID
                    }).ToList();

                    DropType.DataSource = typ;
                    DropType.DataBind();
                    var cat = (from x in db.TBLCATEGORY
                               select new
                    {
                        x.CATNAME,
                        x.CATID
                    }).ToList();
                    DropCategory.DataSource = cat;
                    DropCategory.DataBind();
                }
            }
        }