예제 #1
0
 /// <summary>
 /// 插入,用于增加模板组与模板
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public int insert(M_DocModel model)
 {
     return(Sql.insert(strTableName, model.GetParameters(model), BLLCommon.GetParas(model), BLLCommon.GetFields(model)));
 }
예제 #2
0
파일: B_DocModel.cs 프로젝트: baixue001/IPS
 /// <summary>
 /// 插入,用于增加模板组与模板
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public int insert(M_DocModel model)
 {
     return(DBCenter.Insert(model));
 }
예제 #3
0
 /// <summary>
 /// 根据ID更新
 /// </summary>
 public bool UpdateByID(M_DocModel model)
 {
     return(Sql.UpdateByIDs(strTableName, PK, model.ID.ToString(), BLLCommon.GetFieldAndPara(model), model.GetParameters(model)));
 }
예제 #4
0
파일: B_DocModel.cs 프로젝트: baixue001/IPS
 /// <summary>
 /// 根据ID更新
 /// </summary>
 public bool UpdateByID(M_DocModel model)
 {
     return(DBCenter.UpdateByID(model, model.ID));
 }