Ejemplo n.º 1
0
        public RemoteParty(CountryCode CountryCode,
                           Party_Id PartyId,
                           Roles Role,
                           BusinessDetails BusinessDetails,

                           AccessToken AccessToken,
                           AccessStatus AccessStatus = AccessStatus.ALLOWED,
                           PartyStatus Status        = PartyStatus.ENABLED,

                           DateTime?LastUpdated = null)

            : this(CountryCode,
                   PartyId,
                   Role,
                   BusinessDetails,
                   new AccessInfo2[] {
            new AccessInfo2(
                AccessToken,
                AccessStatus
                )
        },
                   null,
                   Status,
                   LastUpdated)

        {
        }
Ejemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["StudentNum"] != null)
            {
                PartyData pd = pidc.PartyData.FirstOrDefault(p => p.StudentNum == Session["StudentNum"].ToString());
                if (pd != null)
                {
                    StudentNum.Text    = pd.StudentNum;
                    Name.Text          = pd.Name;
                    Birth.Text         = pd.Birth;
                    Photo.Src          = pd.Photo;
                    Sex.Text           = pd.Sex;
                    placeOfOrigin.Text = pd.PlaceOfOrigin;
                    telephone.Text     = pd.Telephone;
                    CollegeName.Text   = m.Get_FieId_Data("CollegeName", "College", " where CollegeID=" + pd.CollegeNO);
                    ClassName.Text     = m.Get_FieId_Data("ClassName", "Class", " where ClassID=" + pd.ClassNO);

                    PartyStatus ps = pidc.PartyStatus.FirstOrDefault(p => p.StudentNum == Session["StudentNum"].ToString());
                    if (ps != null)
                    {
                        TypeName.Text = m.Get_FieId_Data("TypeName", "Category", " where TypeNO=" + ps.MemberStatus_NO);
                    }
                    Address.Text = pd.Address;
                }
            }
            else
            {
                Response.Redirect("../Login.aspx");
            }
        }
    }
Ejemplo n.º 3
0
        public RemoteParty(CountryCode CountryCode,
                           Party_Id PartyId,
                           Roles Role,
                           BusinessDetails BusinessDetails,

                           AccessToken RemoteAccessToken,
                           URL RemoteVersionsURL,
                           IEnumerable <Version_Id> RemoteVersionIds = null,
                           Version_Id?SelectedVersionId = null,

                           RemoteAccessStatus?RemoteStatus = RemoteAccessStatus.ONLINE,
                           PartyStatus Status = PartyStatus.ENABLED,

                           DateTime?LastUpdated = null)

            : this(CountryCode,
                   PartyId,
                   Role,
                   BusinessDetails,
                   null,
                   new RemoteAccessInfo[] {
            new RemoteAccessInfo(
                RemoteAccessToken,
                RemoteVersionsURL,
                RemoteVersionIds,
                SelectedVersionId,
                RemoteStatus
                )
        },
                   Status,
                   LastUpdated)

        {
        }
Ejemplo n.º 4
0
        public async Task <string> StartParty(User user, List <Song> songs, PartyStatus status)
        {
            var twitterId = Context.Headers["twitterId"];

            var existingParty = _parties.FirstOrDefault(k => k.OwnerId == twitterId);

            if (existingParty != null)
            {
                existingParty.Songs        = songs;
                existingParty.LatestStatus = status;
                existingParty.Users.RemoveAll(u => u.TwitterId == twitterId);

                user.ConnectionId = Context.ConnectionId;
                existingParty.Users.Add(user);

                return(existingParty.Code);
            }

            var party = new Party()
            {
                OwnerId      = twitterId,
                Code         = await GetCode(),
                Songs        = songs,
                LatestStatus = status
            };

            user.ConnectionId = Context.ConnectionId;
            party.Users.Add(user);
            _parties.Add(party);
            return(party.Code);
        }
Ejemplo n.º 5
0
        public RemoteParty(CountryCode CountryCode,
                           Party_Id PartyId,
                           Roles Role,
                           BusinessDetails BusinessDetails,

                           IEnumerable <AccessInfo2> AccessInfos,
                           IEnumerable <RemoteAccessInfo> RemoteAccessInfos,

                           PartyStatus Status   = PartyStatus.ENABLED,
                           DateTime?LastUpdated = null)

        {
            this.Id = RemoteParty_Id.Parse(
                String.Concat(CountryCode.ToString(),
                              "-",
                              PartyId.ToString(),
                              "_",
                              Role.ToString()));

            this.CountryCode     = CountryCode;
            this.PartyId         = PartyId;
            this.Role            = Role;
            this.BusinessDetails = BusinessDetails;
            this.Status          = Status;
            this.LastUpdated     = LastUpdated ?? DateTime.UtcNow;

            this._AccessInfo        = AccessInfos.IsNeitherNullNorEmpty() ? new List <AccessInfo2>     (AccessInfos)       : new List <AccessInfo2>();
            this._RemoteAccessInfos = RemoteAccessInfos.IsNeitherNullNorEmpty() ? new List <RemoteAccessInfo>(RemoteAccessInfos) : new List <RemoteAccessInfo>();

            CalcSHA256Hash();
        }
Ejemplo n.º 6
0
        public void SendStatusUpdate(PartyStatus status)
        {
            if (State == ServiceState.NotInitialized ||
                ParticipationType != ParticipationType.Host)
            {
                return;
            }

            _proxy.Invoke("StatusUpdate", status);
        }
Ejemplo n.º 7
0
        // host
        public Task <string> StartParty(List <Song> songs, PartyStatus status)
        {
            if (State == ServiceState.NotInitialized)
            {
                return(null);
            }

            ParticipationType = ParticipationType.Host;
            return(_proxy.Invoke <string>("StartParty", User, songs, status));
        }
Ejemplo n.º 8
0
 private void Instance_PartyStateUpdated(object sender, PartyStatus e)
 {
     if (e != null)
     {
         CurrentItem      = SongCollection.ElementAt(e.TrackIndex);
         CurrentItemIndex = e.TrackIndex;
         Duration         = e.Duration;
         Position         = e.Progress;
         PlayerState      = e.State;
     }
 }
Ejemplo n.º 9
0
 /// <summary>
 /// There is no need to delete party status
 ///
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 protected bool RemovePartyStatus(PartyStatus entity)
 {
     Contract.Requires(entity != null && entity.Id >= 0);
     using (IUnitOfWork uow = this.GetUnitOfWork())
     {
         IRepository <PartyStatus> repo = uow.GetRepository <PartyStatus>();
         entity = repo.Reload(entity);
         repo.Delete(entity);
         uow.Commit();
     }
     // if any problem was detected during the commit, an exception will be thrown!
     return(true);
 }
Ejemplo n.º 10
0
        //Currently there is no need to use name due to the conversation in a project meeting on December</param>
        /// <summary>
        /// Create a party
        /// </summary>
        /// <param name="partyType"></param>
        /// <param name="alias"></param>
        /// <param name="description"></param>
        /// <param name="startDate"></param>
        /// <param name="endDate"></param>
        /// <param name="initialStatusType"></param>
        /// <param name="isTemp"></param>
        /// <returns></returns>
        public PartyX Create(PartyType partyType, string alias, string description, DateTime?startDate, DateTime?endDate, PartyStatusType initialStatusType, bool isTemp = true)
        {
            //Contract.Requires(!string.IsNullOrWhiteSpace(name));
            Contract.Requires(partyType != null);
            Contract.Requires(initialStatusType != null);
            Contract.Requires(partyType.StatusTypes.Any(cc => cc.Id == initialStatusType.Id));
            Contract.Ensures(Contract.Result <PartyX>() != null && Contract.Result <PartyX>().Id >= 0);
            if (startDate == null)
            {
                startDate = DateTime.MinValue;
            }
            if (endDate == null || endDate == DateTime.MinValue)
            {
                endDate = DateTime.MaxValue;
            }
            if (startDate > endDate)
            {
                BexisException.Throw(null, "End date should be greater than start date.");
            }

            //Create a create status
            PartyStatus initialStatus = new PartyStatus();

            initialStatus.Timestamp   = DateTime.UtcNow;
            initialStatus.Description = "Created";
            initialStatus.StatusType  = initialStatusType;

            PartyX entity = new PartyX()
            {
                PartyType     = partyType,
                Alias         = alias,
                Description   = description,
                StartDate     = startDate.Value,
                EndDate       = endDate.Value,
                CurrentStatus = initialStatus,
                IsTemp        = isTemp
            };

            initialStatus.Party = entity;
            entity.History      = new List <PartyStatus>();
            entity.History.Add(initialStatus);
            using (IUnitOfWork uow = this.GetUnitOfWork())
            {
                IRepository <PartyX> repo = uow.GetRepository <PartyX>();
                repo.Put(entity); // must store the status objects too
                uow.Commit();
            }
            return(entity);
        }
Ejemplo n.º 11
0
        public void StatusUpdate(PartyStatus status)
        {
            var twitterId = Context.Headers["twitterId"];

            var party = _parties.FirstOrDefault(p => p.OwnerId == twitterId);

            if (party == null)
            {
                return;
            }

            party.LatestStatus = status;

            Clients.Clients(party.Users.Where(u => u.TwitterId != twitterId).Select(u => u.ConnectionId).ToList()).StateUpdate(status);
        }
Ejemplo n.º 12
0
        private PartyStatus GetPartyStatus()
        {
            var status = new PartyStatus();

            if (player != null && currentSong != null)
            {
                status.Duration   = currentSong.Duration;
                status.TrackIndex = DataService.Instance.Playlist.IndexOf(currentSong);
                status.State      = player.Rate != 0 ? PlaybackState.Playing : PlaybackState.Paused;
                status.Progress   = (int)player.CurrentTime.Seconds;
            }
            else
            {
                status.State = PlaybackState.Other;
            }

            return(status);
        }
Ejemplo n.º 13
0
    protected void sure_add_click(object sender, EventArgs e)
    {
        if (m.Get_FieId_Data("Power_NO", "PartyData", " where studentnum='" + Session["studentnum"].ToString() + "'") != "003")
        {
            PartyData   pd = new PartyData();
            PartyStatus ps = new PartyStatus();
            pd.StudentNum    = studentnum.Text;
            pd.Name          = studentName.Text;
            pd.Password      = m.MD5("123456");
            pd.Birth         = birth.Text;
            pd.Sex           = sex.SelectedValue;
            pd.PlaceOfOrigin = place.Text;
            pd.StartTime     = Convert.ToDateTime(starTime.Text);
            pd.Telephone     = telephone.Text;
            pd.ClassNO       = Convert.ToInt32(classno.Text);
            pd.FromPlace     = fromplace.Text;

            string path     = Server.MapPath("../../Image/Personal_Photos/" + studentnum.Text);
            string filename = personal_photo.PostedFile.FileName;
            if (!File.Exists(path + "/" + filename))
            {
                Directory.CreateDirectory(path);
                personal_photo.PostedFile.SaveAs(path + "/" + filename);
                pd.Photo = "../../Image/Personal_Photos/" + studentnum.Text + "/" + filename;
            }
            pd.CollegeNO = Convert.ToInt32(m.Get_FieId_Data("CollegeID", "Class", " where ClassID=" + Convert.ToInt32(classno.Text) + ""));
            pd.Power_NO  = "003";
            pd.Address   = address.Text;
            pidc.PartyData.InsertOnSubmit(pd);
            pidc.SubmitChanges();

            ps.StudentNum      = studentnum.Text;
            ps.MemberStatus_NO = memberstatus.SelectedValue;
            pidc.PartyStatus.InsertOnSubmit(ps);
            pidc.SubmitChanges();

            m.MessageBox(this, "添加成员成功");
        }
        else
        {
            m.MessageBox(this, "你没有权限添加成员");
        }
    }
Ejemplo n.º 14
0
        public PartyStatus AddPartyStatus(PartyX party, PartyStatusType partyStatusType, string description)
        {
            Contract.Requires(party != null);
            Contract.Requires(partyStatusType != null);
            Contract.Ensures(Contract.Result <PartyStatus>() != null && Contract.Result <PartyStatus>().Id >= 0);
            var entity = new PartyStatus()
            {
                Description = description,
                Party       = party,
                StatusType  = partyStatusType,
                Timestamp   = DateTime.Now
            };

            using (IUnitOfWork uow = this.GetUnitOfWork())
            {
                IRepository <PartyStatus> repoStatus = uow.GetRepository <PartyStatus>();

                repoStatus.Put(entity);
                // The current status must get updated, too. dependes on the current status's update logic.
                uow.Commit();
            }
            return(entity);
        }
Ejemplo n.º 15
0
    private void Start()
    {
        animator = GetComponent <Animator>();
        // 元データから設定
        hp         = characterStatus.GetHp();
        mp         = characterStatus.GetMp();
        isNumbness = characterStatus.IsNumbnessState();
        isPoison   = characterStatus.IsPoisonState();

        // 状態の設定
        battleState = BattleState.Idle;
        //ガードの状態
        guardPercentage = 1;
        // コンポーネントの取得
        battleManager      = GameObject.Find("BattleManager").GetComponent <BattleManager>();
        partyStatus        = battleManager.partyStatus;
        battleStatusScript = GameObject.Find("BattleUICanvas/PlayerUI/StatusPanel").GetComponent <BattleStatusScript>();
        // 既に死んでいる場合は倒れている状態にする
        if (characterStatus.GetHp() <= 0)
        {
            animator.CrossFade("Dead", 0f, 0, 1f);
            isDead = true;
        }
    }
Ejemplo n.º 16
0
    protected void application_pass_click(object sender, EventArgs e)
    {
        if (m.Get_FieId_Data("Power_NO", "Personal_Data", " where StudentNum='" + Session["StudentNum"].ToString() + "'") != "003")
        {
            int         id = Convert.ToInt32(Request.QueryString["id"]);
            Update_Data ud = pidc.Update_Data.FirstOrDefault(p => p.ID == id);
            if (ud != null)
            {
                if (ud.Update_Status == 0)
                {
                    if (ud.Update_Type == 1)
                    {
                        PartyData pd = pidc.PartyData.FirstOrDefault(p => p.StudentNum == ud.Update1);
                        #region  个人信息新盖审核
                        if (pd != null)
                        {
                            pd.PlaceOfOrigin = ud.Update2;
                            pd.Telephone     = ud.Update3;
                            pd.Address       = ud.Update4;
                            ud.Update_Time   = DateTime.Now;
                            ud.Update_Remark = Remark.Text;
                            ud.Audit_Person  = m.Get_FieId_Data("name", "PartyData", " where studentnum='" + ud.Update1 + "'");
                            ud.Update_Status = 1;
                            pidc.SubmitChanges();
                            m.MessageBox(this, "审核通过");
                        }
                        #endregion
                    }
                    #region  密码申诉审核
                    else if (ud.Update_Type == 3)
                    {
                        PartyData pd = pidc.PartyData.FirstOrDefault(p => p.StudentNum == ud.Update1);
                        if (pd != null)
                        {
                            ud.Update_Time   = DateTime.Now;
                            pd.Password      = ud.Update3;
                            ud.Update_Remark = Remark.Text;
                            ud.Audit_Person  = m.Get_FieId_Data("name", "PartyData", " where studentnum='" + ud.Update1 + "'");
                            ud.Update_Status = 1;
                            pidc.SubmitChanges();
                            m.MessageBox(this, "审核通过");
                        }
                    }
                    #endregion

                    #region  党员考核
                    else if (ud.Update_Type == 4)
                    {
                        PartyStatus ps = pidc.PartyStatus.FirstOrDefault(p => p.StudentNum == ud.Update1);
                        if (ps != null)
                        {
                            if (ps.AuditTime1 != null)
                            {
                                ps.AuditTime1    = ud.Review_Time;
                                ps.Auditor1      = ud.Audit_Person;
                                ps.AuditOpinion1 = Remark.Text;
                                if (ud.Update2 != "正式党员")
                                {
                                    ps.MemberStatus_NO = (Convert.ToInt32(m.Get_FieId_Data("TypeNO", "Category", " where TypeName='" + ud.Update2 + "'")) - 1).ToString();
                                }

                                ud.Update_Time = DateTime.Now;

                                ud.Update_Remark = Remark.Text;
                                //ud.Audit_Person = m.Get_FieId_Data("name", "PartyData", " where studentnum='" + ud.Update1 + "'");
                                ud.Update_Status = 1;
                                pidc.SubmitChanges();
                                m.MessageBox(this, "审核通过");
                            }
                            else
                            {
                                if (ps.AuditTime2 != null)
                                {
                                    ps.AuditTime2    = ud.Review_Time;
                                    ps.Auditor2      = ud.Audit_Person;
                                    ps.AuditOpinion2 = Remark.Text;
                                    if (ud.Update2 != "正式党员")
                                    {
                                        ps.MemberStatus_NO = (Convert.ToInt32(m.Get_FieId_Data("TypeNO", "Category", " where TypeName='" + ud.Update2 + "'")) - 1).ToString();
                                    }

                                    ud.Update_Time = DateTime.Now;

                                    ud.Update_Remark = Remark.Text;
                                    //ud.Audit_Person = m.Get_FieId_Data("name", "PartyData", " where studentnum='" + ud.Update1 + "'");
                                    ud.Update_Status = 1;
                                    pidc.SubmitChanges();
                                    m.MessageBox(this, "审核通过");
                                }
                                else
                                {
                                    if (ps.AuditTime3 != null)
                                    {
                                        ps.AuditTime3    = ud.Review_Time;
                                        ps.Auditor3      = ud.Audit_Person;
                                        ps.AuditOpinion3 = Remark.Text;
                                        if (ud.Update2 != "正式党员")
                                        {
                                            ps.MemberStatus_NO = (Convert.ToInt32(m.Get_FieId_Data("TypeNO", "Category", " where TypeName='" + ud.Update2 + "'")) - 1).ToString();
                                        }

                                        ud.Update_Time = DateTime.Now;

                                        ud.Update_Remark = Remark.Text;
                                        //ud.Audit_Person = m.Get_FieId_Data("name", "PartyData", " where studentnum='" + ud.Update1 + "'");
                                        ud.Update_Status = 1;
                                        pidc.SubmitChanges();
                                        m.MessageBox(this, "审核通过");
                                    }
                                }
                            }
                        }
                    }
                    #endregion

                    #region    资料审核
                    if (ud.Update_Type == 5)
                    {
                        ud.Update_Status = 1;
                        ud.Audit_Person  = m.Get_FieId_Data("name", "PartyData", " where studentnum='" + Session["studentnum"].ToString() + "'");
                        ud.Update_Remark = Remark.Text;
                        Datum d = pidc.Datum.FirstOrDefault(p => p.Datum_ID == Convert.ToInt32(ud.Update3));
                        if (d != null)
                        {
                            d.Audit_State = 1;
                        }
                        pidc.SubmitChanges();

                        m.MessageBox(this, "审核通过");
                    }
                    #endregion
                }
                else
                {
                    m.MessageBox(this, "只能审核未审核的");
                }
            }
        }
    }
Ejemplo n.º 17
0
 public void SetPartyStatus(PartyStatus partyStatus)
 {
     this.partyStatus = partyStatus;
 }
Ejemplo n.º 18
0
	// Use this for initialization
    void Awake()
    {
        GameObject cursor = (GameObject)Instantiate(ResourceLoad.PickGameObject("cursor"));
        cursor.SetActive(false);

        member_count = 0;
        current_party = GameManager.User.party;
        for (int i = 0; i < 3; i++)
        {
            if (current_party.member[i].char_name != "NULL")
            {
                member_count++;
            }
        }

        players = new GameObject[member_count];
        players_info = new Player[member_count];
        int k=0;
        for (int i = 0; i < member_count; i++)
        {
            if (current_party.member[i].char_name == "NULL")
            {
                k++;
                if (k == 3)
                {
                    return;
                }
            }
            GameObject newObj = ResourceLoad.PickGameObject("player" + k.ToString());
            if (newObj == null)
            {
                continue;
            }

            players[i] = (GameObject)Instantiate(newObj);
            GiveInfo(i, k);
            players[i].name = players_info[i].name;
            switch (i)
            {
                case 0:
                    players_info[i].position = Position.FIRST;
                    players[i].tag = "player";
                    players_info[i].ShowDamageCircle(true);
                    break;
                case 1:
                    players_info[i].position = Position.SECOND;
                    players[i].tag = "player_sub";
                    players_info[i].ShowDamageCircle(false);
                    break;
                case 2:
                    players_info[i].position = Position.THIRD;
                    players[i].tag = "player_sub";
                    players_info[i].ShowDamageCircle(false);
                    break;
                default:
                    break;
            }
            k++;
        }
        SetMain(0);
        HP_max = current_party.total_HP;
        HP_current = HP_max;
        MP_max = current_party.total_MP;
        MP_current = 0;
    }
Ejemplo n.º 19
0
 /// <summary>
 /// There is no need to delete party status
 /// 
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 protected bool RemovePartyStatus(PartyStatus entity)
 {
     Contract.Requires(entity != null && entity.Id >= 0);
     using (IUnitOfWork uow = this.GetUnitOfWork())
     {
         IRepository<PartyStatus> repo = uow.GetRepository<PartyStatus>();
         entity = repo.Reload(entity);
         repo.Delete(entity);
         uow.Commit();
     }
     // if any problem was detected during the commit, an exception will be thrown!
     return (true);
 }
Ejemplo n.º 20
0
        public PartyX Create(PartyType partyType, string name, string alias, string description, DateTime? startDate, DateTime? endDate, PartyStatusType statusType)
        {
            Contract.Requires(!string.IsNullOrWhiteSpace(name));
            Contract.Requires(partyType != null);
            Contract.Requires(statusType != null);
            Contract.Requires(partyType.StatusTypes.Contains(statusType));
            Contract.Ensures(Contract.Result<PartyX>() != null && Contract.Result<PartyX>().Id >= 0);
            if (startDate == null)
                startDate = DateTime.MinValue;
            if (endDate == null || endDate==DateTime.MinValue)
                endDate = DateTime.MaxValue;
            //Create a create status
            PartyStatus initialStatus = new PartyStatus();
            initialStatus.Timestamp = DateTime.UtcNow;
            initialStatus.Description = "Created";
            initialStatus.StatusType = statusType;

            PartyX entity = new PartyX()
            {
                PartyType = partyType,
                Name = name,
                Alias = alias,
                Description = description,
                StartDate = startDate.Value,
                EndDate = endDate.Value,
                CurrentStatus = initialStatus
            };
            initialStatus.Party = entity;
            entity.History = new List<PartyStatus>();
            entity.History.Add(initialStatus);
            using (IUnitOfWork uow = this.GetUnitOfWork())
            {
                IRepository<PartyX> repo = uow.GetRepository<PartyX>();
                repo.Put(entity); // must store the status objects too
                uow.Commit();
            }
            return (entity);
        }
Ejemplo n.º 21
0
        public PartyStatus AddPartyStatus(PartyX party, PartyStatusType partyStatusType, string description)
        {
            Contract.Requires(party != null);
            Contract.Requires(partyStatusType != null);
            Contract.Ensures(Contract.Result<PartyStatus>() != null && Contract.Result<PartyStatus>().Id >= 0);
            var entity = new PartyStatus()
            {
                Description = description,
                Party = party,
                StatusType = partyStatusType,
                Timestamp = DateTime.Now
            };
            using (IUnitOfWork uow = this.GetUnitOfWork())
            {
                IRepository<PartyStatus> repoStatus = uow.GetRepository<PartyStatus>();

                repoStatus.Put(entity);
                // The current status must get updated, too. dependes on the current status's update logic.
                uow.Commit();
            }
            return (entity);
        }
Ejemplo n.º 22
0
    // Use this for initialization
    void Start()
    {

        ////Debug.log("start load");
        ////Debug.log(Time.realtimeSinceStartup);

        me = gameObject.GetComponent<UISlider>();

        current_party = GameManager.User.party;

        DataManager.Get().QuestDatas.TryGetValue(GameManager.quest_num,out questdata);
        if (questdata == null)
        {
            ////Debug.log("quest data missing");
            GameObject.Find("GameManager").SendMessage("GotoMain");
        }
        resource_dic = new Dictionary<string, GameObject>();
        pooler_dic = new Dictionary<int, CBulletPooler>();
        sprite_dic = new Dictionary<string, Sprite>();

        //player
        player = new GameObject[3];
        //bullet
        bullet_pooler_player = new CBulletPooler[3];
        bullet_pooler_enemy = new CBulletPooler[6];
        //map
        map_ground = new GameObject[13];
        r_ground = new GameObject[3];
        map_sky = new GameObject[13];
        map_pooler = ScriptableObject.CreateInstance<CMapPooler>();

        //skill
        eskill = new GameObject[3];

        StartCoroutine(Load());
    }
Ejemplo n.º 23
0
 public PartyResult(PartyStatus status)
 {
     Status = status;
     StatusMessage = status.ToString();
 }
Ejemplo n.º 24
0
 public void SetCurrentStatus(PartyStatus newStatus)
 {
     m_party.CurrentStatus = newStatus;
 }
Ejemplo n.º 25
0
    protected void application_fail_click(object sender, EventArgs e)
    {
        if (m.Get_FieId_Data("Power_NO", "Personal_Data", " where StudentNum='" + Session["StudentNum"].ToString() + "'") != "003")
        {
            int         id = Convert.ToInt32(Request.QueryString["id"]);
            Update_Data ud = pidc.Update_Data.FirstOrDefault(p => p.ID == id);
            if (ud != null)
            {
                if (ud.Update_Status == 0)
                {
                    #region  党员考核
                    if (ud.Update_Type == 4)
                    {
                        PartyStatus ps = pidc.PartyStatus.FirstOrDefault(p => p.StudentNum == ud.Update1);
                        if (ps != null)
                        {
                            if (ps.AuditTime1 != null)
                            {
                                ps.AuditTime1    = ud.Review_Time;
                                ps.Auditor1      = ud.Audit_Person;
                                ps.AuditOpinion1 = Remark.Text;
                                // ps.MemberStatus_NO = (Convert.ToInt32(m.Get_FieId_Data("TypeNO", "Category", " where TypeName='" + ud.Update2 + "'")) - 1).ToString();


                                ud.Update_Time = DateTime.Now;

                                ud.Update_Remark = Remark.Text;
                                //ud.Audit_Person = m.Get_FieId_Data("name", "PartyData", " where studentnum='" + ud.Update1 + "'");
                                ud.Update_Status = 2;
                                pidc.SubmitChanges();
                                m.MessageBox(this, "考核不通过");
                            }
                            else
                            {
                                if (ps.AuditTime2 != null)
                                {
                                    ps.AuditTime2    = ud.Review_Time;
                                    ps.Auditor2      = ud.Audit_Person;
                                    ps.AuditOpinion2 = Remark.Text;
                                    // ps.MemberStatus_NO = (Convert.ToInt32(m.Get_FieId_Data("TypeNO", "Category", " where TypeName='" + ud.Update2 + "'")) - 1).ToString();


                                    ud.Update_Time = DateTime.Now;

                                    ud.Update_Remark = Remark.Text;
                                    //ud.Audit_Person = m.Get_FieId_Data("name", "PartyData", " where studentnum='" + ud.Update1 + "'");
                                    ud.Update_Status = 2;
                                    pidc.SubmitChanges();
                                    m.MessageBox(this, "考核不通过");
                                }
                                else
                                {
                                    if (ps.AuditTime3 != null)
                                    {
                                        ps.AuditTime3    = ud.Review_Time;
                                        ps.Auditor3      = ud.Audit_Person;
                                        ps.AuditOpinion3 = Remark.Text;
                                        // ps.MemberStatus_NO = (Convert.ToInt32(m.Get_FieId_Data("TypeNO", "Category", " where TypeName='" + ud.Update2 + "'")) - 1).ToString();


                                        ud.Update_Time = DateTime.Now;

                                        ud.Update_Remark = Remark.Text;
                                        //ud.Audit_Person = m.Get_FieId_Data("name", "PartyData", " where studentnum='" + ud.Update1 + "'");
                                        ud.Update_Status = 2;
                                        pidc.SubmitChanges();
                                        m.MessageBox(this, "考核不通过");
                                    }
                                }
                            }
                        }
                    }
                    #endregion
                    else
                    {
                        ud.Update_Time   = DateTime.Now;
                        ud.Update_Remark = Remark.Text;
                        ud.Audit_Person  = m.Get_FieId_Data("name", "PartyData", " where studentnum='" + Session["studentnum"].ToString() + "'");
                        ud.Update_Status = 2;
                        pidc.SubmitChanges();
                        m.MessageBox(this, "审核不通过");
                    }
                }
                else
                {
                    m.MessageBox(this, "只能审核未审核的");
                }
            }
        }
    }