public override void onPrepareCreated(System.Data.DataTable m_ResultTable, BaseDataTableBuilder m_TableBuilder) { foreach (var item in new GYMCatalogManageController().TravleAllEntities()) { AddTempParams("" + item.ID, item.Name); } }
public override void onCreateDataRow(ref System.Data.DataRow tempRow, BaseDataTableBuilder builder, int RowIndex, TB_Technique t) { base.onCreateDataRow(ref tempRow, builder, RowIndex, t); if (builder is TB_TechniqueBuilder2) { tempRow[(builder as TB_TechniqueBuilder2).CatalogName] = m_TempParams["" + t.CatalogID]; } }
public override void onPrepareCreated(System.Data.DataTable m_ResultTable, BaseDataTableBuilder m_TableBuilder) { base.onPrepareCreated(m_ResultTable, m_TableBuilder); foreach (var item in new ReadPlanManageController().TravleAllEntities()) { AddTempParams("" + item.ID, item.BookName); } }
public override void onPrepareCreated(System.Data.DataTable m_ResultTable, BaseDataTableBuilder m_TableBuilder) { base.onPrepareCreated(m_ResultTable, m_TableBuilder); foreach (var item in new TechniqueCategoryController().Travels()) { AddTempParams("" + item.objectId, item.Name); } }
public override void onCreateDataRow(ref System.Data.DataRow tempRow, BaseDataTableBuilder builder, int RowIndex, TB_BookCatalog t) { TB_BookCatalogBuilder targetBuilder = builder as TB_BookCatalogBuilder; tempRow[targetBuilder.ID] = t.ID.ToString(); tempRow[targetBuilder.Name] = t.Name; tempRow[targetBuilder.Op_Delete] = targetBuilder.Op_Delete; tempRow[targetBuilder.Op_Edit] = targetBuilder.Op_Edit; }
public override void onCreateDataRow(ref System.Data.DataRow tempRow, BaseDataTableBuilder builder, int RowIndex, TB_GYMBase t) { TB_GYMBaseBuilder targetBuilder = builder as TB_GYMBaseBuilder; tempRow[targetBuilder.ID] = t.ID.ToString(); tempRow[targetBuilder.Date] = t.Date; tempRow[targetBuilder.Calorie] = t.Calorie; tempRow[targetBuilder.Other] = t.Other; }
public override void onCreateDataRow(ref System.Data.DataRow tempRow, BaseDataTableBuilder builder, int RowIndex, BaseFileNameFilter t) { FileNameFilterBuilder targetBuilder = builder as FileNameFilterBuilder; tempRow[targetBuilder.Location] = t.Location; tempRow[targetBuilder.Type] = t.Type; tempRow[targetBuilder.KeyWord] = t.KeyWord; tempRow[targetBuilder.Op_Delete] = targetBuilder.Op_Delete; }
public override void onCreateDataRow(ref System.Data.DataRow tempRow, BaseDataTableBuilder builder, int RowIndex, TB_TechniqueCategory t) { TB_TechniqueCategoryBuilder targetBuilder = builder as TB_TechniqueCategoryBuilder; tempRow[targetBuilder.ID] = t.objectId.ToString(); tempRow[targetBuilder.Name] = t.Name; tempRow[targetBuilder.Description] = t.Description; tempRow[targetBuilder.Op_Delete] = targetBuilder.Op_Delete; tempRow[targetBuilder.Op_Edit] = targetBuilder.Op_Edit; }
public override void onCreateDataRow(ref DataRow tempRow, BaseDataTableBuilder builder, int RowIndex, TB_TechniqueLog t) { base.onCreateDataRow(ref tempRow, builder, RowIndex, t); TB_TechniqueLogBuilder2 targetBuilder = builder as TB_TechniqueLogBuilder2; tempRow[targetBuilder.ReViewCount] = t.ReViewCount; tempRow[targetBuilder.Op_ReviewAdd] = targetBuilder.Op_ReviewAdd; tempRow[targetBuilder.Op_ReviewReduce] = targetBuilder.Op_ReviewReduce; tempRow[targetBuilder.UpdateDate] = t.updatedAt; }
public override BaseFileNameFilter onDesrialize(BaseDataTableBuilder builder, System.Data.DataRow row, params object[] otherParam) { FileNameFilterBuilder targetBuilder = builder as FileNameFilterBuilder; BaseFileNameFilter tempBean = new ContainsFileNameFilter(); tempBean.Location = row[targetBuilder.Location].ToString(); tempBean.Type = row[targetBuilder.Type].ToString(); tempBean.KeyWord = row[targetBuilder.KeyWord].ToString(); return(tempBean); }
public override TB_BookReadSign onDesrialize(BaseDataTableBuilder builder, System.Data.DataRow row, params object[] otherP) { TB_BookReadSignBuilder targetBuilder = builder as TB_BookReadSignBuilder; TB_BookReadSign tempBean = new TB_BookReadSign(); tempBean.ID = long.Parse(row[targetBuilder.ID].ToString()); tempBean.Date = row[targetBuilder.Date].ToString(); tempBean.ReadPlanID = long.Parse(row[targetBuilder.ReadPlanID].ToString()); tempBean.Other = row[targetBuilder.Other].ToString(); return(tempBean); }
public override void onCreateDataRow(ref System.Data.DataRow tempRow, BaseDataTableBuilder builder, int RowIndex, TB_GYMAPPARATUS t) { TB_GYMAPPARATUSBuilder targetBuilder = builder as TB_GYMAPPARATUSBuilder; tempRow[targetBuilder.ID] = t.ID.ToString(); tempRow[targetBuilder.BaseID] = t.BaseID.ToString(); tempRow[targetBuilder.CatalogID] = m_TempParams[t.CatalogID.ToString()]; tempRow[targetBuilder.Weight] = t.Weight.ToString(); tempRow[targetBuilder.Frequency] = t.Frequency.ToString(); tempRow[targetBuilder.GroupCount] = t.GroupCount.ToString(); tempRow[targetBuilder.Op_Delete] = targetBuilder.Op_Delete; }
public override void onCreateDataRow(ref System.Data.DataRow tempRow, BaseDataTableBuilder builder, int RowIndex, TB_BookReadSign t) { TB_BookReadSignBuilder targetBuilder = builder as TB_BookReadSignBuilder; tempRow[targetBuilder.ID] = t.ID.ToString(); tempRow[targetBuilder.Date] = t.Date; tempRow[targetBuilder.ReadPlanID] = t.ReadPlanID.ToString(); tempRow[targetBuilder.Other] = t.Other; tempRow[targetBuilder.BookName] = m_TempParams[t.ReadPlanID.ToString()]; tempRow[targetBuilder.Op_Delete] = targetBuilder.Op_Delete; tempRow[targetBuilder.Op_Edit] = targetBuilder.Op_Edit; }
public override void onCreateDataRow(ref System.Data.DataRow tempRow, BaseDataTableBuilder builder, int RowIndex, TB_DailyPlanSign t) { TB_DailyPlanSignBuilder targetBuilder = builder as TB_DailyPlanSignBuilder; tempRow[targetBuilder.ID] = t.ID.ToString(); tempRow[targetBuilder.Date] = t.Date; tempRow[targetBuilder.CatalogID] = base.m_TempParams[t.CatalogID.ToString()]; tempRow[targetBuilder.Completion] = t.Completion; tempRow[targetBuilder.Other] = t.Other; tempRow[targetBuilder.IsSign] = t.IsSign; tempRow[targetBuilder.Op_Delete] = targetBuilder.Op_Delete; tempRow[targetBuilder.Op_Edit] = targetBuilder.Op_Edit; }
public override TB_TechniqueLog onDesrialize(BaseDataTableBuilder builder, System.Data.DataRow row) { TB_TechniqueLogBuilder targetBuilder = builder as TB_TechniqueLogBuilder; TB_TechniqueLog tempBean = new TB_TechniqueLog(); tempBean.MissionID = row[targetBuilder.MissionID].ToString(); tempBean.Date = DateTime.Parse(row[targetBuilder.Date].ToString()); tempBean.Context = row[targetBuilder.Context].ToString(); tempBean.LogUrl = row[targetBuilder.LogUrl].ToString(); tempBean.objectId = row[targetBuilder.ID].ToString(); tempBean.IsNeedTidy.Set(Boolean.Parse(row[targetBuilder.ID].ToString())); return(tempBean); }
public override void onCreateDataRow(ref System.Data.DataRow tempRow, BaseDataTableBuilder builder, int RowIndex, TB_TechniqueLog t) { TB_TechniqueLogBuilder targetBuilder = builder as TB_TechniqueLogBuilder; tempRow[targetBuilder.MissionID] = t.MissionID; tempRow[targetBuilder.Date] = TechniqueLogController.FormatBmobDate(t.Date); tempRow[targetBuilder.Context] = t.Context; tempRow[targetBuilder.LogUrl] = t.LogUrl; tempRow[targetBuilder.Op_Delete] = targetBuilder.Op_Delete; tempRow[targetBuilder.Op_Edit] = targetBuilder.Op_Edit; tempRow[targetBuilder.ID] = t.objectId; tempRow[targetBuilder.IsNeedTidy] = t.IsNeedTidy; }
public override void onAfterRowCreated(DataRow tempRow, BaseDataTableBuilder m_TableBuilder, int index) { base.onAfterRowCreated(tempRow, m_TableBuilder, index); TB_TechniqueLogBuilder2 targetBuilder = m_TableBuilder as TB_TechniqueLogBuilder2; object temp = tempRow[targetBuilder.ReViewCount]; if (temp == null || string.IsNullOrEmpty(temp.ToString())) { tempRow[targetBuilder.ReViewCount] = 0; } tempRow[targetBuilder.UpdateDate] = DateTime.Parse(tempRow[targetBuilder.UpdateDate].ToString()).Date.ToString("yyyy-MM-dd"); }
public override void onCreateDataRow(ref System.Data.DataRow tempRow, BaseDataTableBuilder builder, int RowIndex, TB_SpecialDaily t) { TB_SpecialDailyBuilder targetBuilder = builder as TB_SpecialDailyBuilder; tempRow[targetBuilder.ID] = t.ID.ToString(); tempRow[targetBuilder.Type] = t.Type; tempRow[targetBuilder.StartDate] = t.StartDate; tempRow[targetBuilder.EndDate] = t.EndDate; tempRow[targetBuilder.Place] = t.Place; tempRow[targetBuilder.Other] = t.Other; tempRow[targetBuilder.Color] = t.Color; tempRow[targetBuilder.Op_Delete] = targetBuilder.Op_Delete; tempRow[targetBuilder.Op_Edit] = targetBuilder.Op_Edit; }
public void Initial(BaseDataTableBuilder tableBuilder) { this.TableBuilder = tableBuilder; if (IsStateFirstLoad != null) { IsStateFirstLoad.Clear(); } IsStateFirstLoad = new Dictionary <E, bool>(); foreach (E state in Enum.GetValues(typeof(E))) { IsStateFirstLoad.Add(state, true); } }
public override void onCreateDataRow(ref System.Data.DataRow tempRow, BaseDataTableBuilder builder, int RowIndex, TB_Technique t) { TB_TechniqueBuilder targetBuilder = builder as TB_TechniqueBuilder; tempRow[targetBuilder.ID] = t.objectId.ToString(); tempRow[targetBuilder.Name] = t.Name; tempRow[targetBuilder.CatalogID] = t.CatalogID.ToString(); tempRow[targetBuilder.Description] = t.Description; tempRow[targetBuilder.Status] = t.Status; tempRow[targetBuilder.CreateDate] = TechniqueController.FormatBmobDate(t.CreateDate); tempRow[targetBuilder.Interest] = t.Interest.ToString(); tempRow[targetBuilder.Op_Delete] = targetBuilder.Op_Delete; tempRow[targetBuilder.Op_Edit] = targetBuilder.Op_Edit; tempRow[targetBuilder.Op_UpdateState] = targetBuilder.Op_UpdateState; }
public override void onCreateDataRow(ref System.Data.DataRow tempRow, BaseDataTableBuilder builder, int RowIndex, TB_ProblemSets t) { TB_ProblemSetsBuilder targetBuilder = builder as TB_ProblemSetsBuilder; tempRow[targetBuilder.ID] = t.ID.ToString(); tempRow[targetBuilder.Catagory] = t.Catagory; tempRow[targetBuilder.Description] = t.Description; tempRow[targetBuilder.Importance] = t.Importance.ToString(); tempRow[targetBuilder.Immediacy] = t.Immediacy.ToString(); tempRow[targetBuilder.Size] = t.Size.ToString(); tempRow[targetBuilder.Difficulty] = t.Difficulty.ToString(); tempRow[targetBuilder.CreateDate] = t.CreateDate; tempRow[targetBuilder.FinishDate] = t.FinishDate; tempRow[targetBuilder.UpdateDate] = t.UpdateDate; tempRow[targetBuilder.PreProblemID] = t.PreProblemID; tempRow[targetBuilder.Op_Delete] = targetBuilder.Op_Delete; tempRow[targetBuilder.Op_Edit] = targetBuilder.Op_Edit; }
public override void onCreateDataRow(ref System.Data.DataRow tempRow, BaseDataTableBuilder builder, int RowIndex, TB_TechniqueMission t) { TB_TechniqueMissionBuilder targetBuilder = builder as TB_TechniqueMissionBuilder; tempRow[targetBuilder.ObjectID] = t.objectId; tempRow[targetBuilder.TechniqueID] = t.TechniqueID; tempRow[targetBuilder.Name] = t.Name; tempRow[targetBuilder.Description] = t.Description; tempRow[targetBuilder.CreateDate] = TechniqueMissionController.FormatBmobDate(t.CreateDate); if (TechniqueMissionController.IsInvailDate(t.FinishDate) == false) { tempRow[targetBuilder.FinishDate] = TechniqueMissionController.FormatBmobDate(t.FinishDate); } tempRow[targetBuilder.Op_Delete] = targetBuilder.Op_Delete; tempRow[targetBuilder.Op_Edit] = targetBuilder.Op_Edit; tempRow[targetBuilder.Op_UpdateState] = targetBuilder.Op_UpdateState; tempRow[targetBuilder.TechinqueName] = m_TempParams[t.TechniqueID]; }
public override void onCreateDataRow(ref System.Data.DataRow tempRow, BaseDataTableBuilder builder, int RowIndex, TB_TechniqueMission t) { TB_TechniqueMissionStateBuilder targetBuilder = builder as TB_TechniqueMissionStateBuilder; tempRow[targetBuilder.ObjectID] = t.objectId; tempRow[targetBuilder.TechniqueID] = t.TechniqueID; tempRow[targetBuilder.Name] = t.Name; tempRow[targetBuilder.Description] = t.Description; tempRow[targetBuilder.CreateDate] = TechniqueMissionController.FormatBmobDate(t.CreateDate); if (TechniqueMissionController.IsInvailDate(t.FinishDate) == false) { tempRow[targetBuilder.FinishDate] = TechniqueMissionController.FormatBmobDate(t.FinishDate); tempRow[targetBuilder.Cal_IsFinish] = TechniqueMissionController.Finish; } else { tempRow[targetBuilder.Cal_IsFinish] = TechniqueMissionController.Running; } }
public override void onCreateDataRow(ref System.Data.DataRow tempRow, BaseDataTableBuilder builder, int RowIndex, TB_Budget t) { TB_BudgetBuilder targetBuilder = builder as TB_BudgetBuilder; tempRow[targetBuilder.ID] = t.ID.ToString(); tempRow[targetBuilder.Name] = t.Name; tempRow[targetBuilder.CatalogID] = t.CatalogID.ToString(); tempRow[targetBuilder.CatalogName] = m_TempParams[t.CatalogID.ToString()]; tempRow[targetBuilder.Description] = t.Description; tempRow[targetBuilder.SignDate] = t.SignDate; tempRow[targetBuilder.Estimate] = t.Estimate.ToString(); tempRow[targetBuilder.WeedDate] = t.WeedDate; tempRow[targetBuilder.Actuality] = t.Actuality.ToString(); tempRow[targetBuilder.DifferentReason] = t.DifferentReason; tempRow[targetBuilder.Level] = t.Level.ToString(); tempRow[targetBuilder.State] = t.State; tempRow[targetBuilder.Op_Delete] = targetBuilder.Op_Delete; tempRow[targetBuilder.Op_Edit] = targetBuilder.Op_Edit; tempRow[targetBuilder.Op_Detail] = targetBuilder.Op_Detail; }
public override TB_TechniqueLog onDesrialize(BaseDataTableBuilder builder, System.Data.DataRow row, params object[] otherParam) { TB_TechniqueLogBuilder targetBuilder = builder as TB_TechniqueLogBuilder; TB_TechniqueLog result = new TB_TechniqueLog(); result.Context = row[targetBuilder.Context].ToString(); result.LogUrl = row[targetBuilder.LogUrl].ToString(); result.MissionID = row[targetBuilder.MissionID].ToString(); result.Date = LogDate; if (string.IsNullOrEmpty(row[targetBuilder.ID].ToString()) == false) { result.objectId = row[targetBuilder.ID].ToString(); } if (string.IsNullOrEmpty(row[targetBuilder.IsNeedTidy].ToString()) == false) { result.IsNeedTidy = (Boolean.Parse(row[targetBuilder.IsNeedTidy].ToString())); } else { result.IsNeedTidy = false; } return(result); }
public override void onCreateDataRow(ref System.Data.DataRow tempRow, BaseDataTableBuilder builder, int RowIndex, TB_BookReadPlan t) { TB_ReadPlanBuilder targetBuilder = builder as TB_ReadPlanBuilder; tempRow[targetBuilder.ID] = t.ID.ToString(); tempRow[targetBuilder.BookName] = t.BookName; tempRow[targetBuilder.Author] = t.Author; tempRow[targetBuilder.CreateDate] = t.CreateDate; tempRow[targetBuilder.StartDate] = t.StartDate; tempRow[targetBuilder.EndDate] = t.EndDate; tempRow[targetBuilder.Catalog] = t.Catalog; tempRow[targetBuilder.CatalogName] = m_TempParams["" + t.Catalog]; tempRow[targetBuilder.State] = t.State; tempRow[targetBuilder.Op_Delete] = targetBuilder.Op_Delete; tempRow[targetBuilder.Op_Edit] = targetBuilder.Op_Edit; if (t.State.Equals(EnumBookPlanState.Giveup)) { tempRow[targetBuilder.Op_Giveup] = "重新开始"; } if (t.State.Equals(EnumBookPlanState.Reading) || t.State.Equals(EnumBookPlanState.ToRead)) { tempRow[targetBuilder.Op_Giveup] = "放弃阅读"; } }