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))); }
public int Insert(M_Pro_Progress model) { if (model.OrderID == 0) { model.OrderID = GetMaxOrder(model.ProID); } return(DBCenter.Insert(model)); }
public bool UpdateByID(M_Pro_Progress model) { return(Sql.UpdateByIDs(TbName, PK, model.ID.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters())); }
public bool UpdateByID(M_Pro_Progress model) { return(DBCenter.UpdateByID(model, model.ID)); }