示例#1
0
文件: sz.aspx.cs 项目: JuRogn/OA
 public static void BuildTableRow(HtmlTable table, TmpAward item)
 {
     var tr = new HtmlTableRow();
     var cell = new HtmlTableCell();
     cell.InnerText = item.TicketNO;
     tr.Cells.Add(cell);
     table.Rows.Add(tr);
 }
示例#2
0
 public void AddAward(string ticketNO, string level, string remark)
 {
     using (TMAwardEntities context = new TMAwardEntities())
     {
         var item =new TmpAward();
         item.TicketNO = ticketNO;
         item.Level = level;
         item.Remark = remark;
         item.UpdateTime = DateTime.Now;
         context.AddToTmpAward(item);
         context.SaveChanges();
     }
 }
示例#3
0
 public void AddAwardMany(AwardEntity[] awards)
 {
     using (TMAwardEntities context = new TMAwardEntities())
     {
         foreach (var q in awards)
         {
             var item = new TmpAward();
             item.TicketNO = q.TicketNO;
             item.Level = q.Level;
             item.Remark = q.Remark;
             item.UpdateTime = DateTime.Now;
             context.AddToTmpAward(item);
         }
         context.SaveChanges();
     }
 }