///<summary></summary> public static long Insert(DocumentMisc documentMisc) { if (RemotingClient.RemotingRole == RemotingRole.ClientWeb) { documentMisc.DocMiscNum = Meth.GetLong(MethodBase.GetCurrentMethod(), documentMisc); return(documentMisc.DocMiscNum); } return(Crud.DocumentMiscCrud.Insert(documentMisc)); }
///<summary></summary> public static void SetUpdateFilesZip(string rawBase64zipped) { if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) { Meth.GetVoid(MethodBase.GetCurrentMethod(),rawBase64zipped); return; } string command="DELETE FROM documentmisc WHERE DocMiscType="+POut.Long((int)DocumentMiscType.UpdateFiles); Db.NonQ(command); DocumentMisc doc=new DocumentMisc(); doc.DateCreated=DateTime.Today; doc.DocMiscType=DocumentMiscType.UpdateFiles; doc.FileName="UpdateFiles.zip"; doc.RawBase64=rawBase64zipped; Crud.DocumentMiscCrud.Insert(doc); }
///<summary></summary> public static void SetUpdateFilesZip(string rawBase64zipped) { if (RemotingClient.RemotingRole == RemotingRole.ClientWeb) { Meth.GetVoid(MethodBase.GetCurrentMethod(), rawBase64zipped); return; } string command = "DELETE FROM documentmisc WHERE DocMiscType=" + POut.Long((int)DocumentMiscType.UpdateFiles); Db.NonQ(command); DocumentMisc doc = new DocumentMisc(); doc.DateCreated = DateTime.Today; doc.DocMiscType = DocumentMiscType.UpdateFiles; doc.FileName = "UpdateFiles.zip"; doc.RawBase64 = rawBase64zipped; Crud.DocumentMiscCrud.Insert(doc); }