Skip links

Ax 2009 Resim işlemleri


Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 117

Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 118

Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 117

Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 118
Ax 2009 Resim işlemleri

Merhaba
Ax 2009 ‘da İk altında çalışanlara resim eklenbliyor. Son zamanlarda yaptığım bir arge çalışmasında kuruluş görünümü kisminde çalışan resimlerinin gösterilmesiyle  ilgili bir çalışma yaptım.
Aşağıdaki metod bu  işi yapıyor.
Çağırmak için populateMoreManagerChildren metodunda aşşağıdaki kodu kullanın
element.makeImage(node,emplSource);

public void makeImage(COM _node, empltable _empltable)
{
container           dataContainer;
Image               logoImage;
fileIOPermission    fileIOPermission;
str                 path;
;
logoImage = new Image();
dataContainer = CompanyImage::find(_empltable.dataAreaId,_empltable.TableId,_empltable.RecId).Image;
if(dataContainer)
{
path = strfmt(@”%1\AxUsers_%2.jpg”,WinAPi::getTempPath(),_empltable.RecId);
fileIOPermission = new FileIOPermission(path, ‘RWA’);
fileIOPermission.assert();
logoImage.setData(dataContainer);
if(!WinAPI::fileExists(path))
{
logoimage.saveImage(path,imagesavetype::JPG);
}
logoimage.finalize();
CodeAccessPermission::revertAssert();
_node.setPropertyImagePath(path);
}
else
{
path = “C:\\Default.jpg”;
_node.setPropertyImagePath(path);
}
}
Selamlar

Join the Discussion