Example #1
0
 public ConsRptViewModel(string id_orcons)
 {
     this.consDoService  = XapServiceMgr.find <ICiorappconsultMDOCrudService>();
     this.consrptService = XapServiceMgr.find <IConsrptCrudService>();
     this.ordService     = XapServiceMgr.find <ICiorderMDOCrudService>();
     this.enservice      = XapServiceMgr.find <IEnOutQryService>();
     this.consDo         = this.consDoService.findById(id_orcons);
     rptArray            = this.consrptService.find(" a0.id_apcons='" + id_orcons + "' ", null, FBoolean.False);
     if (rptArray.Count() == 0)
     {
         this.consDTO = this.AddConsDo();
     }
     else
     {
         this.consDTO = this.EditConsDo();
     }
 }
Example #2
0
 public ConsCardViewModel()
 {
     service            = XapServiceMgr.find <ICiOrdQryService>();
     consAggService     = XapServiceMgr.find <ICiorappconsultCrudService>();
     this.consDoService = XapServiceMgr.find <ICiorappconsultMDOCrudService>();
 }
Example #3
0
 public ApConsViewModel()
 {
     service            = XapServiceMgr.find <ICiorappconsultMDOCrudService>();
     serviceCons        = XapServiceMgr.find <ICiOrdQryService>();
     this.consDoService = XapServiceMgr.find <ICiorappconsultMDOCrudService>();
 }