Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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");
        }