public NewOrderTemplateListViewModel(String id_ortmpl)
 {
     this.itemSservice   = XapServiceMgr.find <IOrTplNItmDOCrudService>();
     this.mDOCrudService = XapServiceMgr.find <IOrtmplMDOCrudService>();
     this.ordQryService  = XapServiceMgr.find <ICiOrdQryService>();
     if (!string.IsNullOrWhiteSpace(id_ortmpl))
     {
         this.ortplitems       = getOrTplNItmDOs(id_ortmpl);
         this.newOrderTemplate = ordQryService.getNewOrderTemplateDTO(id_ortmpl);
     }
     else
     {
         this.ortplitems = null;
     }
 }