Example #1
0
 public int Insert(M_Pro_Progress model)
 {
     if (model.OrderID == 0)
     {
         model.OrderID = GetMaxOrder(model.ProID);
     }
     return(Sql.insertID(TbName, model.GetParameters(), BLLCommon.GetParas(model), BLLCommon.GetFields(model)));
 }
Example #2
0
 public int Insert(M_Pro_Progress model)
 {
     if (model.OrderID == 0)
     {
         model.OrderID = GetMaxOrder(model.ProID);
     }
     return(DBCenter.Insert(model));
 }
Example #3
0
 public bool UpdateByID(M_Pro_Progress model)
 {
     return(Sql.UpdateByIDs(TbName, PK, model.ID.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters()));
 }
Example #4
0
 public bool UpdateByID(M_Pro_Progress model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }