private void detach_ClientAttaches(ClientAttach entity)
 {
     this.SendPropertyChanging("ClientAttaches");
     entity.OrgStructure = null;
 }
 private void detach_ClientAttaches(ClientAttach entity)
 {
     this.SendPropertyChanging("ClientAttaches");
     entity.RbAttachType = null;
 }
Ejemplo n.º 3
0
            public void UpdateAttachRecord(ClientAttach attachRec, List<string> sqlStatements)
            {
                var updateStatement = "";

                if (attachRec.BegDate != BeginDate)
                    updateStatement += @", begDate = '" + BeginDate.ToString("yyyy-MM-dd") + "'";

                if (attachRec.EndDate != EndDate)
                {
                    if(EndDate == null)
                        updateStatement += @", endDate = NULL";
                    else
                        updateStatement += @", endDate = '" + EndDate.Value.ToString("yyyy-MM-dd") + "'";
                }

                if (attachRec.LPUId != Lpu.Id)
                    updateStatement += @", LPU_id = " + Lpu.Id.ToString();

                if(attachRec.RbAttachType != AttachType)
                    updateStatement += @", attachType_id = " + AttachType.Id.ToString();

                if(!string.IsNullOrEmpty(updateStatement))
                {
                    updateStatement = @"UPDATE ClientAttach SET modifyDatetime = NOW()" + updateStatement
                        + @" WHERE id = " + attachRec.Id.ToString() + ";";
                    sqlStatements.Add(updateStatement);
                }
            }
 private void detach_ClientAttaches(ClientAttach entity)
 {
     this.SendPropertyChanging("ClientAttaches");
     entity.ClientDocument = null;
 }
 private void attach_ClientAttaches(ClientAttach entity)
 {
     this.SendPropertyChanging("ClientAttaches");
     entity.Client = this;
 }
 private void detach_ClientAttaches(ClientAttach entity)
 {
     this.SendPropertyChanging("ClientAttaches");
     entity.RbDetachmentReason = null;
 }
 private void detach_ClientAttaches_ModifyPersonId(ClientAttach entity)
 {
     this.SendPropertyChanging("ClientAttaches_ModifyPersonId");
     entity.Person_ModifyPersonId = null;
 }
 private void attach_ClientAttaches_CreatePersonId(ClientAttach entity)
 {
     this.SendPropertyChanging("ClientAttaches_CreatePersonId");
     entity.Person_CreatePersonId = this;
 }