Example #1
0
 public void AddArchive(string fieldName)
 {
     hField f = new hField(fieldName);
     f.archive_ = true;
     f.image_ = false;
     f.null_ = false;
     this.fields.Add(f);
 }
Example #2
0
 /// <summary>
 /// Adiciona um campo chave do tipo texto não Nulo
 /// </summary>
 /// <param name="fieldName">Nome do campo</param>
 public void AddTextKey(string fieldName)
 {
     hField f = new hField(fieldName);
     f.text_ = true;
     f.key_ = true;
     f.null_ = false;
     this.fields.Add(f);
     this.key.Add(f);
 }
Example #3
0
 /// <summary>
 /// Utilizado para QUALQUER TEXTO, inclusive OBSERVAÇÕES
 /// Padrão: nvarchar(MAX)
 /// </summary>
 /// <param name="fieldName"></param>
 public void AddText(string fieldName, bool criptografado)
 {
     hField f = new hField(fieldName);
     f.text_ = true;
     f.encrypted_ = criptografado;
     this.fields.Add(f);
 }
Example #4
0
 /// <summary>
 /// Utilizado para QUALQUER TEXTO, inclusive OBSERVAÇÕES
 /// Padrão: nvarchar(MAX)
 /// </summary>
 /// <param name="fieldName"></param>
 public void AddText(string fieldName)
 {
     hField f = new hField(fieldName);
     f.text_ = true;
     this.fields.Add(f);
 }
Example #5
0
 public void AddNumber(string fieldName, int tamanhoDecimalhField, int tamanho)
 {
     hField f = new hField(fieldName);
     f.number_ = true;
     f.size_ = tamanho;
     f.sizeDecimal_ = tamanhoDecimalhField;
     this.fields.Add(f);
 }
Example #6
0
 public void AddLogic(string fieldName)
 {
     hField f = new hField(fieldName);
     f.logic_ = true;
     this.fields.Add(f);
 }
Example #7
0
 public void AddDateAlteration(string fieldName)
 {
     hField f = new hField(fieldName);
     f.dateTime_ = true;
     f.dateAlteration_ = true;
     this.fields.Add(f);
 }
Example #8
0
 /// <summary>
 /// Tipo NUMERO
 /// Utilizado para VALORES com padrão: (19,2) - (tamanho total, tamanho decimal) - ((17)00000000000000000.00(2))
 /// </summary>
 public void AddCurrency(string fieldName)
 {
     hField f = new hField(fieldName);
     f.number_ = true;
     f.size_ = 19;
     f.sizeDecimal_ = 2;
     this.fields.Add(f);
 }
Example #9
0
 /// <summary>
 /// Adiciona um campo chave do tipo inteiro não nulo
 /// </summary>
 /// <param name="fieldName"></param>
 public void AddKey(string fieldName)
 {
     hField f = new hField(fieldName);
     f.integer_ = true;
     f.key_ = true;
     f.null_ = false;
     this.fields.Add(f);
     this.fields.Add(f);
 }
Example #10
0
 /// <summary>
 /// Adiciona um campo chave do tipo inteiro não nulo.
 /// </summary>
 /// <param name="fieldName">Nome do campo</param>
 /// <param name="tablefk">A tabela FK. O campo FK é o fieldName. On Delete NOACTION e ON Update NOACTION</param>
 public void AddInteger(string fieldName, string tablefk)
 {
     hField f = new hField(fieldName);
     f.integer_ = true;
     f.foreignKey_ = true;
     f.tableFK_ = tablefk;
     f.todelete_ = DeleteUpdate.NOACTION;
     f.toupdate_ = DeleteUpdate.NOACTION;
     this.fields.Add(f);
 }
Example #11
0
 /// <summary>
 /// Adiciona um campo inteiro podendo ser nulo
 /// </summary>
 /// <param name="fieldName">Nome do campo</param>
 public void AddInteger(string fieldName)
 {
     hField f = new hField(fieldName);
     f.integer_ = true;
     this.fields.Add(f);
 }
Example #12
0
 /// <summary>
 /// Adiciona um campo Chave não nulo que é uma identidade (Auto-Incremento)
 /// </summary>
 /// <param name="fieldName"></param>
 public void AddIdentity(string fieldName)
 {
     hField f = new hField(fieldName);
     f.integer_ = true;
     f.key_ = true;
     f.identity_ = true;
     f.null_ = false;
     this.fields.Add(f);
     this.identity = f;
     this.key.Add(f);
 }
Example #13
0
 /// <summary>
 /// Adiciona um campo chave do tipo inteiro não nulo que representa o id da tabela Cabecalho
 /// </summary>
 /// <param name="fieldName"></param>
 /// <param name="tablefk">A tabela FK. O campo FK é o fieldName. On Delete CASCADE e ON Update CASCADE</param>
 public void AddHeaderKey(string fieldName, string tablefk)
 {
     hField f = new hField(fieldName);
     f.integer_ = true;
     f.key_ = true;
     f.header_ = true;
     f.null_ = false;
     f.foreignKey_ = true;
     f.tableFK_ = tablefk;
     f.todelete_ = DeleteUpdate.CASCADE;
     f.toupdate_ = DeleteUpdate.CASCADE;
     this.fields.Add(f);
     this.key.Add(f);
 }
Example #14
0
 public void AddFloat(string fieldName)
 {
     hField f = new hField(fieldName);
     f.float_ = true;
     this.fields.Add(f);
 }
Example #15
0
 public void AddTime(string fieldName)
 {
     hField f = new hField(fieldName);
     f.time_ = true;
     this.fields.Add(f);
 }
Example #16
0
 /// <summary>
 /// Adiciona um campo chave do tipo inteiro não nulo.
 /// </summary>
 /// <param name="fieldName"></param>
 /// <param name="tablefk"></param>
 /// <param name="todelete"></param>
 /// <param name="toupdate"></param>
 public void AddKey(string fieldName, string tablefk, DeleteUpdate todelete, DeleteUpdate toupdate)
 {
     hField f = new hField(fieldName);
     f.integer_ = true;
     f.key_ = true;
     f.null_ = false;
     f.foreignKey_ = true;
     f.tableFK_ = tablefk;
     f.todelete_ = todelete;
     f.toupdate_ = toupdate;
     this.fields.Add(f);
     this.key.Add(f);
 }
Example #17
0
 /// <summary>
 /// Adiciona um campo chave do tipo inteiro não nulo.
 /// </summary>
 /// <param name="nomeCampo"></param>
 /// <param name="tablefk"></param>
 /// <param name="campofk"></param>
 /// <param name="aoapagar"></param>
 /// <param name="aoatualizar"></param>
 public void AddKey(string fieldName, string tablefk, DeleteUpdate aoapagar, DeleteUpdate aoatualizar, string campofk2)
 {
     hField f = new hField(fieldName);
     f.integer_ = true;
     f.key_ = true;
     f.null_ = false;
     f.foreignKey_ = true;
     f.tableFK_ = tablefk;
     f.fieldFK2_ = campofk2;
     f.todelete_ = aoapagar;
     f.toupdate_ = aoatualizar;
     this.fields.Add(f);
     this.key.Add(f);
 }
Example #18
0
 public hField Copy()
 {
     hField f = new hField(this.name_);
     f.value_ = this.value_;
     f.bytes_ = this.bytes_;
     f.identity_ = this.identity_;
     f.key_ = this.key_;
     f.integer_ = this.integer_;
     f.float_ = this.float_;
     f.number_ = this.number_;
     f.logic_ = this.logic_;
     f.text_ = this.text_;
     f.ntext_ = this.ntext_;
     f.date_ = this.date_;
     f.dateAlteration_ = this.dateAlteration_;
     f.time_ = this.time_;
     f.dateTime_ = this.dateTime_;
     f.archive_ = this.archive_;
     f.image_ = this.image_;
     f.null_ = this.null_;
     f.size_ = this.size_;
     f.sizeDecimal_ = this.sizeDecimal_;
     f.header_= this.header_;
     f.encrypted_ = this.encrypted_;
     f.foreignKey_ = this.foreignKey_;
     f.tableFK_ = this.tableFK_;
     f.fieldFK2_ = this.fieldFK2_;
     f.todelete_ = this.todelete_;
     f.toupdate_ = this.toupdate_;
     return f;
 }
Example #19
0
 public void AddDate(string fieldName)
 {
     hField f = new hField(fieldName);
     f.date_ = true;
     this.fields.Add(f);
 }