Método Para Actualizar Valores En Una Tabla

Páginas: 2 (252 palabras) Publicado: 2 de julio de 2012
static void Job10(Args _args)
{
AMCaseTimeSheetTrans timeSheet;
ProjEmplTrans emplTrans;
;

ttsbegin;
while select forupdate timeSheet
wheretimeSheet.CaseId == 'OT-0165391'
{
while select emplTrans
where emplTrans.ProjId == timeSheet.ProjId
&& emplTrans.NAVCaseOprId ==timeSheet.OprId
&& emplTrans.EmplId == timeSheet.EmplId
{
if((emplTrans.Qty * emplTrans.SalesPrice) == timeSheet.LineAmount)
{timeSheet.ProjectHours = emplTrans.Qty;
timeSheet.doUpdate();
break;
}
}
}
ttscommit;
}

static void Job10(Args _args)
{AMCaseTimeSheetTrans timeSheet;
ProjEmplTrans emplTrans;
;

ttsbegin;
while select forupdate timeSheet
where timeSheet.CaseId == 'OT-0140583'
{select firstonly emplTrans
where emplTrans.ProjId == timeSheet.ProjId
&& emplTrans.NAVCaseOprId == timeSheet.OprId
&&emplTrans.EmplId == timeSheet.EmplId
&& emplTrans.TransId == timeSheet.ProjTransId;

timeSheet.ProjectHours = emplTrans.Qty;timeSheet.doUpdate();
}
ttscommit;

ULTIMO
static void Job10(Args _args)
{
AMCaseTimeSheetTrans timeSheet;
ProjEmplTrans emplTrans;
;

ttsbegin;while select forupdate timeSheet
where timeSheet.CaseId == 'OT-0140583'
{
select firstonly emplTrans
where emplTrans.ProjId == timeSheet.ProjId&& emplTrans.NAVCaseOprId == timeSheet.OprId
&& emplTrans.EmplId == timeSheet.EmplId
&& emplTrans.TransId ==...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Tabla de valores para shot online
  • Un Método Para Identificar Los Valores Organizacionales
  • Nom 031 Tablas De Referencia Para Valorar Niños
  • TABLA PERIODICA ACTUALIZADA
  • GRUPOS TABLA PERIODICA ACTUALIZADO
  • Metodos Numéricos Para Problemas De Valor Inicial
  • Métodos Numéricos Para Valores Y Vectores Propios
  • Método Rubin: Una Nueva Fórmula Para Valorar La Inversión En Ti

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS