2 using System.Collections.Generic;
8 using System.ComponentModel;
11 namespace sage.ew.contabilidad
25 #region PROPIEDADES PRIVADAS 27 internal string _lcEmpresa = EW_GLOBAL._GetVariable(
"wc_empresa").ToString().Trim();
29 #endregion PROPIEDADES PRIVADAS 32 #region PROPIEDADES PUBLICAS 38 public string _Empresa
40 get {
return Convert.ToString(_Campo(
"EMPRESA")); }
41 set { _Campo(
"EMPRESA", value); }
52 return Convert.ToInt32(_Campo(
"NUMERO"));
56 _Campo(
"NUMERO", value);
57 _Campo(
"EMPRESA", _lcEmpresa);
67 get {
return Convert.ToString(_Campo(
"EMESA")); }
68 set { _Campo(
"EMESA", value); }
71 #endregion PROPIEDADES PUBLICAS 81 this._CargaPropiedades();
90 this._CargaPropiedades();
93 #endregion CONSTRUCTORES 96 #region METODOS PRIVADOS 101 private void _CargaPropiedades()
105 this._Clave =
"EMPRESA,NUMERO";
106 this._DataBase =
"GESTION";
107 this._Tabla =
"REMESA";
108 this._TituloMantenimiento =
"Remesas de cobro";
109 this._TituloCabecera =
"Remesa de cobro";
110 this._TituloMenu =
"Remesa de cobro";
115 this._Pantalla =
"REM_BANC";
118 #endregion METODOS PRIVADOS 121 #region METODOS OVERRIDE 131 #endregion METODOS OVERRIDE 134 #region METODOS PUBLICOS 142 decimal lnImporte = 0;
145 DataTable ldtRemesa =
new DataTable();
148 this._Numero = tnRemesa;
150 lcSql =
"SELECT SUM(p.importe) AS importe " +
151 "FROM " + DB.SQLDatabase(
"comunes",
"previ_cl") +
" p " +
152 "WHERE p.empresa =" + DB.SQLString(this._Empresa) +
" " +
153 "AND p.remesa =" + DB.SQLString(this._Numero) +
" " +
154 "GROUP BY p.empresa,p.remesa";
156 llOk = DB.SQLExec(lcSql, ref ldtRemesa);
157 if (llOk && ldtRemesa.Rows.Count > 0)
159 lnImporte = Convert.ToDecimal(ldtRemesa.Rows[0][
"importe"]);
165 #endregion METODOS PUBLICOS Clase de negocio base para mantenimientos
override void _Load()
Realiza la carga de los datos de la remesa en base a EMPRESA y NUMERO que tenga asignado el objeto...
Clase de negocio para remesas de cobro (PE-103582) De momento sólo de implementa lo que se necesita d...
Remesa(int tnNumero)
Constructor
Remesa()
Constructor vacío
decimal _Importe(int tnRemesa=0)
Método para consultar el importe de la remesa