private void detach_Clients(Client entity)
 {
     this.SendPropertyChanging("Clients");
     entity.RbBloodType = null;
 }
 private void detach_Clients(Client entity)
 {
     this.SendPropertyChanging("Clients");
     entity.RbInfoSource = null;
 }
 private void detach_Clients_ModifyPersonId(Client entity)
 {
     this.SendPropertyChanging("Clients_ModifyPersonId");
     entity.Person_ModifyPersonId = null;
 }
示例#4
0
            public void CreateAttachRecord(Client client, List<string> sqlStatements)
            {
                if(sqlStatements.Count == 0)
                {
                    sqlStatements.Add(@"INSERT INTO ClientAttach (createDatetime, createPerson_id, modifyDatetime, modifyPerson_id, client_id, attachType_id, LPU_id, begDate, endDate) VALUES ");
                }

                var insertStatement = @"(NOW(), " + client.CreatePersonId.ToString()
                                   + ", NOW(), " + client.CreatePersonId.ToString()
                                   + ", " + client.Id.ToString()
                                   + ", " + AttachType.Id.ToString()
                                   + ", " + Lpu.Id.ToString()
                                   + ", '" + BeginDate.ToString(@"yyyy-MM-dd") + "'"
                                   + ", " + (EndDate == null ? "NULL" : "'" + EndDate.Value.ToString(@"yyyy-MM-dd") + "'")
                                   + ")";

                sqlStatements.Add(insertStatement);
            }
 private void attach_Clients_AttendingPersonId(Client entity)
 {
     this.SendPropertyChanging("Clients_AttendingPersonId");
     entity.Person_AttendingPersonId = this;
 }