Beispiel #1
0
 //-----------------Insert
 /// <summary>
 /// 添加一条新的数据
 /// </summary>
 /// <param name="appID">申请ID</param>
 /// <param name="proID">使用的流程ID</param>
 /// <param name="userID">审批人</param>
 /// <param name="result">审批结果:0未审,2未通过,99成功</param>
 /// <param name="remind">备注</param>
 /// <param name="createDate">创建日期</param>
 /// <returns></returns>
 public int Insert(M_OA_Sign model)
 {
     return(Sql.insert(TbName, model.GetParameters(model), model.GetParas(), model.GetFields()));
 }
Beispiel #2
0
 //----------------Update
 public bool UpdateByID(M_OA_Sign model)
 {
     return(Sql.UpdateByIDs(TbName, PK, model.ID.ToString(), model.GetFieldAndPara(), model.GetParameters(model)));
 }