示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RegisterSingleActivityCommand"/> class.
 /// </summary>
 /// <param name="id">The identifier.</param>
 /// <param name="message">The message.</param>
 /// <param name="createdBy">The created by.</param>
 /// <param name="assignedTo">The assigned to.</param>
 /// <param name="company">The company.</param>
 public RegisterSingleActivityCommand(ActivityId id, string message, Peaple createdBy, Peaple assignedTo, Company company)
     : base(id)
 {
     this.Message    = message;
     this.CreateBy   = createdBy;
     this.AssignedTo = assignedTo;
     this.Company    = company;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SingleActivityRegisteredEvent"/> class.
 /// </summary>
 /// <param name="id">The identifier.</param>
 /// <param name="message">The message.</param>
 /// <param name="createdBy">The created by.</param>
 /// <param name="modifiedBy">The modified by.</param>
 /// <param name="company">The company.</param>
 public SingleActivityRegisteredEvent(ActivityId id, string message, Peaple createdBy, Peaple modifiedBy, Company company)
     : base(id)
 {
     this.Message    = message;
     this.CreateBy   = createdBy;
     this.ModifiedBy = modifiedBy;
     this.Company    = company;
 }
示例#3
0
        void attendant()
        {
            DataSet   ds = (DataSet)dataGridView1.DataSource;
            DataTable tb = ds.Tables["journals25"];

            if (tb == null)
            {
                return;
            }


            hashtable = new Hashtable();
            Peaple p;

            foreach (DataRow row in tb.Rows)
            {
                string name          = row["cardname"].ToString();
                string description   = row["journalcode"].ToString();
                string icoFileName   = row["cardno"].ToString();
                string installScript = row["logdatetime"].ToString();

                logln(name + ", " + description + ", " + icoFileName + ", " + installScript + ", ");

                int cardno = Int32.Parse(row["cardno"].ToString());

                if (hashtable[cardno] == null)
                { //äÁèÁÕ¢éÍÁÙÅ
                    logln("à¾ÔèÁ : " + cardno.ToString());
                    p = new Peaple(cardno, (DateTime)row["logdatetime"]);
                    hashtable.Add(cardno, p);
                }
                else
                {
                    p = (Peaple)hashtable[cardno];
                    p.insert(row);
                    logln("update : " + cardno.ToString());
                }
            }
            logln("hash : " + hashtable.Count);
        }