Example #1
0
        public string AddSignatureLog(string SignatureType, string FileListID, string SingleProjectID, string FileListTmpID)
        {
            string msg = string.Empty;

            try {
                if (SignatureType == "LH")//表示联合签章
                {
                    T_FileList_SignatureLog_BLL logBLL = new T_FileList_SignatureLog_BLL();
                    T_FileList_SignatureLog_MDL logMDL = new T_FileList_SignatureLog_MDL();

                    logMDL.Signature_DT           = DateTime.Now;
                    logMDL.SignatureFinish_DT     = null;
                    logMDL.SingleProjectID        = Common.ConvertEx.ToInt(SingleProjectID);
                    logMDL.FileListID             = Common.ConvertEx.ToInt(FileListID);
                    logMDL.FileListTmpID          = Common.ConvertEx.ToInt(FileListTmpID);
                    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);
                    msg = SystemSet._RETURN_SUCCESS_VALUE;
                }
            } catch (Exception ex) {
                msg = ex.Message;
            }
            return(msg);
        }
Example #2
0
        public string SignatureFinish(string FileListIDS, string FileListTmpIDS, string SingleProjectID)
        {
            string msg = string.Empty;

            try {
                string[] strFileArray    = FileListIDS.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
                string[] strFileTmpArray = FileListTmpIDS.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);

                for (var i = 0; i < strFileArray.Length; i++)
                {
                    var fileID    = strFileArray[i];
                    var fileTmpID = strFileTmpArray[i];

                    string strWhere = " FileListID=" + fileID + " And Signature_UserRoleCode='" + Common.Session.GetSession("RoleCode", false) + "'";
                    if (signatureLogBLL.GetRecordCount("SignatureFinishFlag='1' And " + strWhere) < 1 &&
                        signatureLogBLL.GetRecordCount(strWhere) > 0)
                    {
                        T_FileList_SignatureLog_MDL signatureLogMDL = new T_FileList_SignatureLog_MDL();
                        signatureLogMDL.SignatureFinish_DT  = DateTime.Now;
                        signatureLogMDL.SignatureFinishFlag = "1";
                        signatureLogMDL.Signature_DT        = null;

                        signatureLogMDL.SingleProjectID        = Common.ConvertEx.ToInt(SingleProjectID);
                        signatureLogMDL.FileListID             = Common.ConvertEx.ToInt(fileID);
                        signatureLogMDL.FileListTmpID          = Common.ConvertEx.ToInt(fileTmpID);
                        signatureLogMDL.Signature_UserID       = Common.Session.GetSessionInt("UserID");
                        signatureLogMDL.Signature_UserRoleCode = Common.Session.GetSession("RoleCode");
                        signatureLogMDL.OperationType          = SystemSet.EumSignatureOperationType.SignatureFinish.ToString();
                        signatureLogMDL.Message = "联合签章-个人签章完成";

                        signatureLogBLL.Add(signatureLogMDL);
                    }
                }
                msg = SystemSet._RETURN_SUCCESS_VALUE;
            } catch (Exception ex) {
                msg = SystemSet._RETURN_FAILURE_VALUE + ex.Message;
            }
            return(msg);
        }
        public string SignatureFinish(string singleProjectID, string operationType)
        {
            string msg = string.Empty;

            try {
                T_FileList_SignatureLog_MDL logMDL = new T_FileList_SignatureLog_MDL();
                logMDL.SignatureFinish_DT     = DateTime.Now;
                logMDL.SignatureFinish_DT     = null;
                logMDL.SignatureFinishFlag    = "1";
                logMDL.FileListTmpID          = 0;
                logMDL.SingleProjectID        = Common.ConvertEx.ToInt(singleProjectID);
                logMDL.Signature_UserID       = Common.Session.GetSessionInt("UserID");
                logMDL.Signature_UserRoleCode = Common.Session.GetSession("RoleCode");
                logMDL.OperationType          = operationType;

                logBLL.Add(logMDL);
                msg = SystemSet._RETURN_SUCCESS_VALUE;
            } catch (Exception ex) {
                msg = SystemSet._RETURN_FAILURE_VALUE + ex.Message;
            }
            return(msg);
        }