示例#1
0
        /// <summary>
        /// Lists the specified object id.
        /// </summary>
        /// <param name="objectId">The object id.</param>
        /// <param name="objectType">Type of the object.</param>
        /// <param name="startDate">The start date.</param>
        /// <param name="endDate">The end date.</param>
        /// <returns></returns>
        public static ActualFinances[] List(int objectId, ObjectTypes objectType, DateTime?startDate, DateTime?endDate)
        {
            ArrayList retVal = new ArrayList();

            foreach (ActualFinancesRow row in ActualFinancesRow.List(objectId, (int)objectType, startDate, endDate))
            {
                retVal.Add(new ActualFinances(row));
            }

            return((ActualFinances[])retVal.ToArray(typeof(ActualFinances)));
        }
示例#2
0
        /// <summary>
        /// Creates the specified object id.
        /// </summary>
        /// <param name="ObjectId">The object id.</param>
        /// <param name="ObjectTypeId">The object type id.</param>
        /// <param name="Date">The date.</param>
        /// <param name="RowId">The row id.</param>
        /// <param name="Value">The value.</param>
        /// <param name="Comment">The comment.</param>
        /// <returns></returns>
        public static int Create(int ObjectId, ObjectTypes ObjectType, DateTime Date, string RowId, double Value, string Comment)
        {
            ActualFinancesRow newRow = new ActualFinancesRow();

            newRow.CreatorId = Security.CurrentUser.UserID;

            newRow.ObjectId     = ObjectId;
            newRow.ObjectTypeId = (int)ObjectType;

            newRow.Date = Date;

            newRow.RowId   = RowId;
            newRow.Value   = Value;
            newRow.Comment = Comment;

            newRow.Update();

            return(newRow.PrimaryKeyId);
        }
示例#3
0
 // OR [2008-09-02]
 public static void DeleteByBlockId(int blockId)
 {
     ActualFinancesRow.DeleteByBlockId(blockId);
 }
示例#4
0
 //DV
 public static void Delete(int ObjectId, int ObjectTypeId)
 {
     ActualFinancesRow.Delete(ObjectId, ObjectTypeId);
 }
示例#5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ActualFinances"/> class.
 /// </summary>
 /// <param name="row">The row.</param>
 private ActualFinances(ActualFinancesRow row)
 {
     _srcRow = row;
 }
示例#6
0
 /// <summary>
 /// Deletes the specified actual finances id.
 /// </summary>
 /// <param name="ActualFinancesId">The actual finances id.</param>
 public static void Delete(int ActualFinancesId)
 {
     ActualFinancesRow.Delete(ActualFinancesId);
 }