Beispiel #1
0
    protected override void Init()
    {
        base.Init();
        PageTitle.Init("成员信息", App.Instance.Theme.TitleBgColor, App.Instance.Theme.TitleFontColor, BtnBack);
        PageTitle.AddButton("", App.Instance.ImageManger.ImageList[2], DeletePeople);

        int userid = this.GetPar <int>(0);

        IsPeopleOrTeam = this.GetPar <bool>(1);
        int projectID = this.GetPar <int>(2);

        if (IsPeopleOrTeam)
        {
            People_Service.GetMyOnePeople(userid, t =>
            {
                EPeople = t.GetData() as EPeople;
                BindData();
            });
        }
        else
        {
            ProjectTeam_Service.GetByProjectID(userid, projectID, t =>
            {
                ETeamOne = t.GetData() as EProjectTeam;
                BindData();
            });
        }
    }
Beispiel #2
0
    protected override void Init()
    {
        base.Init();

        EventListener.Get(BtnQuickTaskAdd.gameObject).onClick = OnQuickTaskAdd;
        PlanListView.OnItemClicked = OnTaskClicked;
        EventListener.Get(ShowComplatedTask.gameObject).onClick = ShowComplatedTaskClicked;

        UserSearch = this.GetPar <EUserSearch>(0);
        if (UserSearch != null)
        {
            PageTitle.Init(UserSearch.Name, App.Instance.Theme.TitleBgColor, App.Instance.Theme.TitleFontColor, null, MenuClicked);
            PageTitle.AddButton("", App.Instance.ImageManger.ImageList[0], TaskSearch);
            BindData();
        }
        else
        {
            UserSearch_Service.GetDefault(t =>
            {
                UserSearch = t.GetData() as EUserSearch;
                if (UserSearch == null)
                {
                    PageTitle.Init("全部任务", App.Instance.Theme.TitleBgColor, App.Instance.Theme.TitleFontColor, null, MenuClicked);
                }
                else
                {
                    PageTitle.Init(UserSearch.Name, App.Instance.Theme.TitleBgColor, App.Instance.Theme.TitleFontColor, null, MenuClicked);
                }
                PageTitle.AddButton("", App.Instance.ImageManger.ImageList[0], TaskSearch);
                BindData();
            });
        }
    }
Beispiel #3
0
 protected override void Init()
 {
     base.Init();
     PageTitle.Init("项目", App.Instance.Theme.TitleBgColor, App.Instance.Theme.TitleFontColor, null, MenuClicked);
     PageTitle.AddButton("", App.Instance.ImageManger.ImageList[1], OnAddClicked);
     ProjectList.OnItemClicked = OnItemClicked;
     BindData();
 }
Beispiel #4
0
    protected override void Init()
    {
        base.Init();

        PageTitle.Init("通讯录", App.Instance.Theme.TitleBgColor, App.Instance.Theme.TitleFontColor, null, MenuClicked);
        PageTitle.AddButton("", App.Instance.ImageManger.ImageList[0], SearchPeople);
        ListView.OnItemClicked = OnItemClicked;
        BindData();
    }
 protected override void Init()
 {
     base.Init();
     PageTitle.Init("计划详情", App.Instance.Theme.TitleBgColor, App.Instance.Theme.TitleFontColor, BtnBack);
     PageTitle.AddButton("", App.Instance.ImageManger.ImageList[5], OnSavePlan);
     BaseOperation_Service.Get <EPlan>(this.GetPar <int>(0), t =>
     {
         ThePlan = t.GetData() as EPlan;
         BindData();
     });
 }
Beispiel #6
0
    protected override void Init()
    {
        base.Init();
        PageTitle.Init("我的账号", App.Instance.Theme.TitleBgColor, App.Instance.Theme.TitleFontColor, BtnBack);
        PageTitle.AddButton("", App.Instance.ImageManger.ImageList[5], OnSubmit);
        EventListener.Get(UploadFace.gameObject).onClick = OnUploadFace;

        User = Session.CurrentUser;
        BindData();
        PlatformCallBackListener.Instance.OnUploadComplated = OnUploadComplated;
    }
Beispiel #7
0
    protected override void Init()
    {
        base.Init();
        PageTitle.Init("登录", App.Instance.Theme.TitleBgColor, App.Instance.Theme.TitleFontColor);
        PageTitle.AddButton("注册", null, GoRegist);
        EventListener.Get(BtnLogin.gameObject).onClick   = LoginEvent;
        EventListener.Get(BtnQQLogin.gameObject).onClick = LoginQQEvent;

        PlatformCallBackListener.Instance.OnLogin       = OnLoginComplated;
        PlatformCallBackListener.Instance.OnGetUserInfo = OnGetUserInfoComplated;
    }
Beispiel #8
0
 protected override void Init()
 {
     base.Init();
     EventListener.Get(QQYQ.gameObject).onClick = onQQYQ;
     BaseOperation_Service.Get <EProject>(GetPar <int>(0), t =>
     {
         EProject = t.GetData() as EProject;
         PageTitle.Init("项目团队", App.Instance.Theme.TitleBgColor, App.Instance.Theme.TitleFontColor, BtnBack);
         PageTitle.AddButton("", App.Instance.ImageManger.ImageList[1], OnAddClicked);
         ProjectList.OnItemClicked = OnItemClicked;
         BindData();
     });
 }
 protected override void Init()
 {
     base.Init();
     BaseOperation_Service.Get <EPlan>(GetPar <int>(0), t =>
     {
         EPlan = t.GetData() as EPlan;
         PageTitle.Init(EPlan.Name, App.Instance.Theme.TitleBgColor, App.Instance.Theme.TitleFontColor, BtnBack);
         PageTitle.AddButton("", App.Instance.ImageManger.ImageList[1], AddTask);
         PageTitle.AddButton("", App.Instance.ImageManger.ImageList[2], DeletePlan);
         PageTitle.AddButton("", App.Instance.ImageManger.ImageList[10], GoToChart);
         PageTitle.AddButton("", App.Instance.ImageManger.ImageList[8], GoToSet);
         Tab.Init(OnTabClicked, App.Instance.Theme.SelectedItemBgColor);
         selectPeopleID = -1;
         BindPeopleSelect();
         BindTaskListView();
     });
 }
Beispiel #10
0
    protected override void Init()
    {
        base.Init();

        PageTitle.Init("任务详情", App.Instance.Theme.TitleBgColor, App.Instance.Theme.TitleFontColor, BtnBack);
        int taskId = GetPar <int>(0);

        Task_Service.Get(taskId, t =>
        {
            TheTask = t.GetData() as ETask;
            PageTitle.AddButton("", App.Instance.ImageManger.ImageList[7], GotoTaskTransfer);
            if (TheTask.CreaterID == Session.UserID && !TheTask.IsComplated)
            {
                PageTitle.AddButton("", App.Instance.ImageManger.ImageList[13], GotoTaskEditor);
            }
            BindInfo();
        });
    }
Beispiel #11
0
    protected override void Init()
    {
        base.Init();
        int panid = GetPar <int>(0);

        Debug.Log("panid:" + panid);
        BaseOperation_Service.Get <EProject>(panid, t =>
        {
            EProject = t.GetData() as EProject;
            PageTitle.Init(EProject.Name, App.Instance.Theme.TitleBgColor, App.Instance.Theme.TitleFontColor, BtnBack);
            PageTitle.AddButton("", App.Instance.ImageManger.ImageList[1], AddPlan);
            PageTitle.AddButton("", App.Instance.ImageManger.ImageList[9], GoToTeam);
            PageTitle.AddButton("", App.Instance.ImageManger.ImageList[2], DeleteProject);
            PageTitle.AddButton("", App.Instance.ImageManger.ImageList[8], GoToSet);
            PlanListView.OnItemClicked = OnItemClicked;
            BindData();
        });
    }
Beispiel #12
0
    protected override void Init()
    {
        base.Init();
        PageTitle.Init("处理任务", App.Instance.Theme.TitleBgColor, App.Instance.Theme.TitleFontColor, BtnBack);
        EventListener.Get(ChooseHeadPerson.gameObject).onClick = OnChooseHeadPersonClicked;
        int taskId = GetPar <int>(0);

        Task_Service.Get(taskId, t =>
        {
            TheTask = t.GetData() as ETask;
            ProjectTaskStep_Service.ListByProjectID(TheTask.ProjectID, tt =>
            {
                ProjectStepList = tt.GetData() as List <EProjectTaskStep>;
                BindInfo();
                PageTitle.AddButton("", App.Instance.ImageManger.ImageList[5], OnHandleTask);
            });
        });
    }
Beispiel #13
0
    protected override void Init()
    {
        base.Init();
        PageTitle.Init("任务详情", App.Instance.Theme.TitleBgColor, App.Instance.Theme.TitleFontColor, BtnBack);
        EventListener.Get(AddHeadPerson.gameObject).onClick = OnAddHeadPersonClicked;
        EventListener.Get(AddExcuter.gameObject).onClick    = OnAddExcuterClicked;
        EventListener.Get(AddFile.gameObject).onClick       = OnAddFileClicked;
        PageInfoMode = GetPar <PageInfoMode>(0);
        int taskId = GetPar <int>(1);

        PlanID    = GetPar <int>(2);
        ProjectID = GetPar <int>(3);
        PlatformCallBackListener.Instance.OnUploadComplated = OnUploadComplated;
        AttachmentList.OnItemClicked = OnAttachmentItemClicked;

        ProjectTaskStep_Service.ListByProjectID(ProjectID, tt =>
        {
            ProjectStepList = tt.GetData() as List <EProjectTaskStep>;

            InitUI();
            if (PageInfoMode == PageInfoMode.Add)
            {
                PageTitle.AddButton("", App.Instance.ImageManger.ImageList[5], OnAddTask);
                BindInfo(new ETask()
                {
                    State = 1
                });
            }
            else if (PageInfoMode == PageInfoMode.Editor)
            {
                Task_Service.Get(taskId, t =>
                {
                    TheTask = t.GetData() as ETask;
                    BindInfo(TheTask);

                    if (TheTask.CreaterID == Session.UserID)
                    {
                        PageTitle.AddButton("", App.Instance.ImageManger.ImageList[2], OnDeleteTask);
                    }
                    PageTitle.AddButton("", App.Instance.ImageManger.ImageList[5], OnSaveTask);
                });
            }
        });
    }
Beispiel #14
0
    protected override void Init()
    {
        base.Init();
        PageTitle.Init("项目详情", App.Instance.Theme.TitleBgColor, App.Instance.Theme.TitleFontColor, BtnBack);
        PageTitle.AddButton("", App.Instance.ImageManger.ImageList[5], SaveProject);

        EventListener.Get(BtnUploadFace.gameObject).onClick = UploadProjectFace;
        EventListener.Get(BtnAddStep.gameObject).onClick    = AddTaskStep;
        BaseOperation_Service.Get <EProject>(GetPar <int>(0), t =>
        {
            EProject             = t.GetData() as EProject;
            IptName.text         = EProject.Name;
            Project_Process.text = EProject.Progress.ToString();
            App.Instance.ShowImage(ImgFace, EProject.Face, 12);
            BindTaskStep();
        });

        PlatformCallBackListener.Instance.OnUploadComplated = OnUploadComplated;
    }
Beispiel #15
0
 protected override void Init()
 {
     base.Init();
     PageTitle.Init("问题反馈", App.Instance.Theme.TitleBgColor, App.Instance.Theme.TitleFontColor, BtnBack);
     PageTitle.AddButton("", App.Instance.ImageManger.ImageList[5], OnSubmit);
 }