} // prepare /// <summary> /// Process It /// </summary> /// <returns>message</returns> protected override String DoIt() { MRequest request = new MRequest(GetCtx(), _R_Request_ID, Get_TrxName()); log.Info(request.ToString()); if (request.Get_ID() == 0) { throw new Exception("@NoRequsetFound@ " + _R_Request_ID); } request.SetR_Status_ID(); // set default status request.SetProcessed(false); if (request.Save() && !request.IsProcessed()) { return("@Created Successfully@"); } return("@Error@"); } // doUt
/// <summary> /// Create pdf /// </summary> /// <returns> returns fileinfo.</returns> public FileInfo CreatePDF() { try { string fileName = _req.Get_TableName() + _req.Get_ID() + "_" + CommonFunctions.GenerateRandomNo() + ".txt"; //.pdf string filePath = Path.GetTempPath() + fileName; FileInfo temp = new FileInfo(filePath); if (!temp.Exists) { return(null); } } catch (Exception e) { log.Severe("Could not create PDF - " + e.Message); } return(null); }