public int UpdateFileListArchive(T_FileListTemplate obj, ref string sqltmp) { if (obj == null) { throw new ArgumentNullException("obj"); } String stmtId = "T_FileListTemplate.UpdateFileListArchive"; sqltmp = ERM.DAL.MyBatis.QueryForSql(stmtId, obj); return(MyISqlMap.Update(stmtId, obj)); }
/// <summary> /// 更新案卷下的文字页数 /// </summary> /// <param name="ProjectNO"></param> /// <param name="ArchiveID"></param> /// <returns></returns> public void UpdateArchiveTextNums(T_Archive obj) { if (obj == null) { throw new ArgumentNullException("obj"); } T_FileList_BLL fileListBLL = new T_FileList_BLL(); obj.wzz = fileListBLL.GetWzCount(obj.ArchiveID, obj.ProjectNO).ToString(); String stmtId = "T_Archive.Update"; MyISqlMap.Update(stmtId, obj); }