public TRegistro_Movimentacao() { this.id_movimento = null; this.id_movimentostr = string.Empty; this.Cd_empresa = string.Empty; this.Nm_empresa = string.Empty; this.LoginAlmoxarife = string.Empty; this.id_almox = null; this.id_almoxstr = string.Empty; this.Ds_almoxarifado = string.Empty; this.Cd_produto = string.Empty; this.Ds_produto = string.Empty; this.Cd_unidade = string.Empty; this.Ds_unidade = string.Empty; this.Sigla_unidade = string.Empty; this.dt_movimento = null; this.dt_movimentostr = string.Empty; this.tp_movimento = string.Empty; this.tipo_movimento = string.Empty; this.Quantidade = decimal.Zero; this.Vl_unitario = decimal.Zero; this.Vl_subtotal = decimal.Zero; this.Ds_observacao = string.Empty; this.St_registro = "A"; this.Id_rua = null; this.Ds_rua = string.Empty; this.Id_secao = null; this.Ds_secao = string.Empty; this.Id_celula = null; this.Ds_celula = string.Empty; this.rNFItem = null; this.rRequisicao = null; }
public string Excluir(TRegistro_Mov_X_Requisicao val) { System.Collections.Hashtable hs = new System.Collections.Hashtable(3); hs.Add("@P_ID_MOVIMENTO", val.Id_movimento); hs.Add("@P_ID_REQUISICAO", val.Id_requisicao); hs.Add("@P_CD_EMPRESA", val.Cd_empresa); return(this.executarProc("EXCLUI_AMX_MOV_X_REQUISICAO", hs)); }
public TList_Mov_X_Requisicao Select(Utils.TpBusca[] vBusca, Int32 vTop, string vNM_Campo) { TList_Mov_X_Requisicao lista = new TList_Mov_X_Requisicao(); System.Data.SqlClient.SqlDataReader reader = null; bool podeFecharBco = false; if (Banco_Dados == null) { podeFecharBco = this.CriarBanco_Dados(false); } try { reader = this.ExecutarBusca(this.SqlCodeBusca(vBusca, Convert.ToInt16(vTop), vNM_Campo)); while (reader.Read()) { TRegistro_Mov_X_Requisicao reg = new TRegistro_Mov_X_Requisicao(); if (!reader.IsDBNull(reader.GetOrdinal("id_movimento"))) { reg.Id_movimento = reader.GetDecimal(reader.GetOrdinal("id_movimento")); } if (!reader.IsDBNull(reader.GetOrdinal("id_requisicao"))) { reg.Id_requisicao = reader.GetDecimal(reader.GetOrdinal("id_requisicao")); } if (!reader.IsDBNull(reader.GetOrdinal("cd_empresa"))) { reg.Cd_empresa = reader.GetString(reader.GetOrdinal("cd_empresa")); } lista.Add(reg); } } finally { reader.Close(); reader.Dispose(); if (podeFecharBco) { this.deletarBanco_Dados(); } } return(lista); }