示例#1
0
        public GotEquipListDataTable GetGotEquipListByMemberID(Int64 memberIdParam)
        {
            GotEquipListDataTable tbl = new GotEquipListDataTable();

            foreach (JobMasterRow jobRow in this.JobMaster.Select("", "JobID"))
            {
                GotEquipListRow newRow = tbl.NewGotEquipListRow();

                newRow.EName = jobRow.EName;
                newRow.JName = jobRow.JName;
                newRow.Head  = (this.IsGotParts(memberIdParam, jobRow.JobID, 1)) ? "○" : "-";
                newRow.Body  = (this.IsGotParts(memberIdParam, jobRow.JobID, 2)) ? "○" : "-";
                newRow.Hands = (this.IsGotParts(memberIdParam, jobRow.JobID, 3)) ? "○" : "-";
                newRow.Legs  = (this.IsGotParts(memberIdParam, jobRow.JobID, 4)) ? "○" : "-";
                newRow.Feet  = (this.IsGotParts(memberIdParam, jobRow.JobID, 5)) ? "○" : "-";

                tbl.AddGotEquipListRow(newRow);
            }

            return(tbl);
        }
		public GotEquipListDataTable GetGotEquipListByMemberID(Int64 memberIdParam)
		{
			GotEquipListDataTable tbl = new GotEquipListDataTable();

			foreach (JobMasterRow jobRow in this.JobMaster.Select("", "JobID"))
			{
				GotEquipListRow newRow = tbl.NewGotEquipListRow();

				newRow.EName = jobRow.EName;
				newRow.JName = jobRow.JName;
				newRow.Head = (this.IsGotParts(memberIdParam, jobRow.JobID, 1)) ? "○" : "-";
				newRow.Body = (this.IsGotParts(memberIdParam, jobRow.JobID, 2)) ? "○" : "-";
				newRow.Hands = (this.IsGotParts(memberIdParam, jobRow.JobID, 3)) ? "○" : "-";
				newRow.Legs = (this.IsGotParts(memberIdParam, jobRow.JobID, 4)) ? "○" : "-";
				newRow.Feet = (this.IsGotParts(memberIdParam, jobRow.JobID, 5)) ? "○" : "-";

				tbl.AddGotEquipListRow(newRow);
			}

			return tbl;
		}