Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            fbmHandler  = new FeedBackMessageHandler(UserInfo);
            listPorject = proApp.GetUserProjects(UserInfo);
            if (!IsPostBack)
            {
                pid = QS("pid");
                InitTicketSatusBind();
                InitProjectTitleBind();
                InitCompanyBind();
                InitClientPriorityBind();

                // Buring 2013_10_14 contactordev select
                if (this.UserInfo.Role == RolesEnum.Contactor)
                {
                    dvCompany.Visible = false;
                }
                TicketsDataBind();

                if (!string.IsNullOrEmpty(pid))
                {
                    if (!CheckSecurity(Convert.ToInt32(pid)))
                    {
                        Response.Redirect("~/Sunnet/Tickets/dashboard.aspx");
                        return;
                    }
                }
                ShowAddTicketBuutton();
            }
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     _fbmHandler = new FeedBackMessageHandler(UserInfo);
     if (!IsPostBack)
     {
         FillSearchDto();
         TicketsDataBind();
     }
 }
Ejemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     allowStatus = ReturnSatisfyConditionStatus(ClientAllowShowStatus());
     fbmHandler  = new FeedBackMessageHandler(UserInfo);
     listPorject = proApp.GetUserProjects(UserInfo);
     if (!IsPostBack)
     {
         upcomingEvents = new EventsApplication().GetEventList(DateTime.Now, UserInfo.UserID, 0, 10);
     }
     InitialControl();
 }
Ejemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (null != TicketsEntityInfo)
     {
         fbmHandler = new FeedBackMessageHandler(UserInfo);
         this.ChangeStatus1.ChangeStatusTicketsEntityInfo = TicketsEntityInfo;
         BindTicketBaseInfo();
     }
     else
     {
         return;
     }
 }
Ejemplo n.º 5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            fbmHandler      = new FeedBackMessageHandler(UserInfo);
            AllowStatusList = AllowStatus();
            #region initial
            list      = proApp.GetUserProjects(UserInfo, DateTime.Now.AddDays(-15));
            listOrder = toApp.GetListByProjectId(PidList());
            int userId = 0;
            if (UserInfo.Role == RolesEnum.Contactor)
            {
                userId = UserInfo.UserID;
            }
            listTickets = ticketApp.GetListTopTenTicketsByProjects(PidList(), AllowStatus(), userId);
            #endregion
            if (!IsPostBack)
            {
                BindDataList();
            }

            ((Main)this.Master).TopSelectedIndex = 2;
        }
Ejemplo n.º 6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     fbmHandler  = new FeedBackMessageHandler(UserInfo);
     allowStatus = ReturnSatisfyConditionStatus(ClientAllowShowStatus());
     listPorject = proApp.GetUserProjects(UserInfo);
     if (!IsPostBack)
     {
         TicketSatusBind();
         ProjectTitleBind();
         int projectID = QS("pid", 0);
         if (projectID != 0)
         {
             ddlProject.SelectedValue = projectID.ToString();
             TicketsDataBind(projectID.ToString());
         }
         else
         {
             TicketsDataBind(string.Empty);
         }
     }
 }
Ejemplo n.º 7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            projApp    = new ProjectApplication();
            fbmHandler = new FeedBackMessageHandler(UserInfo);
            tickApp    = new TicketsApplication();
            if (!IsPostBack)
            {
                InitSearchControls();


                int projectID = QS("pid", 0);
                if (projectID != 0)
                {
                    ddlProject.SelectedValue = projectID.ToString();
                    InitControl(projectID.ToString());
                }
                else
                {
                    InitControl(string.Empty);
                }
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     fbmHandler = new FeedBackMessageHandler(UserInfo);
     BindTicketBaseInfo();
     WorkFlow();
 }