コード例 #1
0
        public static SelectList GetExternalSupplierList(Enums.CK5Type ck5Type)
        {
            ICK5BLL ck5Bll = MvcApplication.GetInstance <CK5BLL>();

            var data             = ck5Bll.GetExternalSupplierList(ck5Type);
            var selectItemSource = Mapper.Map <List <SelectItemModel> >(data);

            return(new SelectList(selectItemSource, "ValueField", "TextField"));
        }
コード例 #2
0
        public static SelectList GetCk5RefPortToImporter(ICK5BLL ck5Bll, long ck5Ref)
        {
            var data = ck5Bll.GetAllCompletedPortToImporter(ck5Ref);

            return(new SelectList(data, "CK5_ID", "SUBMISSION_NUMBER"));
        }