Beispiel #1
0
 public static bool UpdateAmfiDB(string portalid, MainStructure tenderdb)
 {
     MainStructure tenderdbclone;
     tenderdbclone = (MainStructure)tenderdb.Clone();
     AmfiBorgDBConCurrent.AddOrUpdate(portalid, tenderdbclone, (key, oldValue) => tenderdbclone);
     return true;
 }
Beispiel #2
0
 public static void SaveAmfiDB(string partnerid, string portalid, MainStructure tenderdb, string reason)
 {
     string folder = Current.DataFolder();
     string file = folder + "Amfi " + System.DateTime.Now.ToString(Current.TimeStamp) + " " + System.Text.RegularExpressions.Regex.Replace(reason, FileRegex, string.Empty) + ".dndata.gz";
     string sXML = CommonFunction.Serialize(tenderdb, true);
     byte[] bXML = CommonFunction.GZIP(ref sXML);
     System.IO.File.WriteAllBytes(file, bXML);
     UpdateAmfiDB(portalid, tenderdb);
 }
Beispiel #3
0
 public object Clone()
 {
     MainStructure o = new MainStructure();
     o.a = this.a;
     o.name = this.name;
     return o;
 }