Пример #1
0
 public ConsGridViewModel(string str)
 {
     serviceCons       = XapServiceMgr.find <ICiOrdQryService>();
     psndocCrudService = XapServiceMgr.find <IPsndocCrudService>();
     consAggService    = XapServiceMgr.find <ICiorappconsultCrudService>();
     //this.consDoService = XapServiceMgr.find<ICiorappconsultMDOCrudService>();
     saveService = XapServiceMgr.find <ICiOrdMaintainService>();
     OrdConsDTO[] cons = serviceCons.GetConsList(UserManager.getInstance().CurrentDept.Id_dep, str);
     consList = new XapDataList <OrdConsDTO>(serviceCons, setValue(cons));
 }
Пример #2
0
        public void GetConsByIdent(String id_dep, string id_ent)
        {
            if (id_dep == null || id_ent == null)
            {
                return;
            }
            string str = string.Format(" AND t3.id_en='{0}' and t2.sd_su_cons in ('{1}','{2}')", id_ent, CiDictCodeConst.SD_CIDI_DKSYD, CiDictCodeConst.SD_CIDI_KSBFYD);

            OrdConsDTO[] cons = service.GetConsList(id_dep, str);
            if (cons != null && cons.Length > 0)
            {
                this.ConsDto = cons[0];
                consAggDo    = consAggService.findById(ConsDto.Id_apcons);
                if (consAggDo == null)
                {
                    return;
                }
                consAggDo = AuditResult(consAggDo);
                xapAggDo  = new XapAggDO <CiorappconsultAggDO>(consAggService, consAggDo);
            }
        }
Пример #3
0
 public XapDataList <OrdConsDTO> GetConList(string id_dep, string sd_su)
 {
     OrdConsDTO[] cons = serviceCons.GetConsList(id_dep, sd_su);
     this.consList = new XapDataList <OrdConsDTO>(serviceCons, setValue(cons));
     return(this.consList);
 }