Example #1
0
 //
 public override void AfterConstruction()
 {
     base.AfterConstruction();
     this.Date           = DateTime.Now;
     this.InvoiceIntType = fmCAVTInvoiceIntType.NORMAL;
     if (Current == null)
     {
         Current = new fmCAVTInvoiceVersion(this.Session);
         AVTInvoiceVersions.Add(Current);
     }
     this.Valuta = Session.FindObject <csValuta>(new BinaryOperator("Code", "RUB"));
 }
Example #2
0
 public void AVTInvoiceVersionsAdd(fmCAVTInvoiceVersion ver)
 {
     if (Current != ver)
     {
         UInt32 num = 0;
         if (UInt32.TryParse(Current.VersionNumber, out num))
         {
             ver.VersionNumber = (num + 1).ToString();
         }
         ver.VersionDate = DateTime.Now;
         ver.Source      = Current;
     }
     else
     {
         ver.VersionNumber = String.Empty;
         ver.VersionDate   = default(DateTime);
     }
 }
Example #3
0
 public void AVTInvoiceVersionsRemove(fmCAVTInvoiceVersion ver)
 {
 }