예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ChequePages EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToChequePages(ChequePage chequePage)
 {
     base.AddObject("ChequePages", chequePage);
 }
예제 #2
0
        private void CreateAndInsertChequePages(ChequeBunch chequeBunch)
        {
            int chequeSerial = int.Parse(chequeBunch.Serial);

            for (int i = 0; i < chequeBunch.NumberOfPages; i++)
            {
                ChequePage chequePage = new ChequePage();
                chequePage.ChequeBunch = chequeBunch;
                chequePage.IsUsed = false;
                chequePage.Serial = (chequeSerial + i).ToString();
                DataLayer.Insert(chequePage);
            }
        }
예제 #3
0
 /// <summary>
 /// Create a new ChequePage object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="serial">Initial value of the Serial property.</param>
 /// <param name="chequeBunchId">Initial value of the ChequeBunchId property.</param>
 /// <param name="isUsed">Initial value of the IsUsed property.</param>
 public static ChequePage CreateChequePage(global::System.Int32 id, global::System.String serial, global::System.Int32 chequeBunchId, global::System.Boolean isUsed)
 {
     ChequePage chequePage = new ChequePage();
     chequePage.Id = id;
     chequePage.Serial = serial;
     chequePage.ChequeBunchId = chequeBunchId;
     chequePage.IsUsed = isUsed;
     return chequePage;
 }