private void UpdateSignatureStatus(string fileID, string pdfPath, HttpContext context) { string fileName = Path.GetFileName(pdfPath); if (!string.IsNullOrWhiteSpace(fileID) && !string.IsNullOrWhiteSpace(pdfPath)) { T_FileList_MDL fileList = fileBLL.GetModel(Convert.ToInt32(fileID)); if (fileList != null) { fileList.SIGNATURE_FLAG = true; fileList.SIGNATURE_DT = DateTime.Now.ToShortTimeString(); fileBLL.Update(fileList); } #region 增加个人签章保存 T_FileList_SignatureLog_BLL logBLL = new BLL.T_FileList_SignatureLog_BLL(); T_FileList_SignatureLog_MDL logMDL = new Model.T_FileList_SignatureLog_MDL(); logMDL.Signature_DT = DateTime.Now; logMDL.SignatureFinish_DT = null; logMDL.SingleProjectID = ConvertEx.ToInt(fileList.SingleProjectID); logMDL.FileListID = Common.ConvertEx.ToInt(fileList.FileListID); logMDL.FileListTmpID = Common.ConvertEx.ToInt(fileList.OldRecID); logMDL.Signature_UserID = Common.Session.GetSessionInt("UserID"); logMDL.Signature_UserRoleCode = Common.Session.GetSession("RoleCode"); logMDL.OperationType = SystemSet.EumSignatureOperationType.SignatureSave.ToString(); logMDL.Message = "联合签章-个人签章保存"; logBLL.Add(logMDL); #endregion } }
/// <summary> /// 保存 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnSave_Click(object sender, EventArgs e) { int OperateUserID = Common.ConvertEx.ToInt(SingleProjectUsers.SelectValue); string OperateUserName = SingleProjectUsers.SelectText; List <String> ltKey = ctrlGridEx1.GetSelects(); if (OperateUserID > 0 && ltKey.Count > 0) { foreach (string Key in ltKey) { T_FileList_MDL Mdl = bll.GetModel(Common.ConvertEx.ToInt(Key)); if (Mdl != null) { Mdl.OperateUserID = OperateUserID; Mdl.OperateUserName = OperateUserName; bll.Update(Mdl); } } BindGridView(); } }