<< | Index | >>
already resolved
(I have done nothing though...)
Check all 'Apo' users (locally)
ch.bbmb.globopharm> open('/home/masa/work/apo_users.dat','w'){|f| users.values.each{|u| f.print u.value('customer_ean13'), "\t", u.value('group_short'), "\n" if u.value('group_short')=='Apo'}} -> Array ch.bbmb.globopharm> open('/home/masa/work/nonapo_users.dat','w'){|f| users.values.each{|u| f.print u.value('customer_ean13'), "\t", u.value('address1'), "\n" if u.value('address1')=='Konditionskunde'}} -> Array ch.bbmb.globopharm> users.values.select{|u| u.value('group_short')=='Apo'}.length -> 1802 ch.bbmb.globopharm> users.values.select{|u| u.value('address1')=='Konditionskunde'}.length -> 0
Server
ch.bbmb.globopharm> users.values.select{|u| u.value('group_short')=='Apo'}.length -> 2077 ch.bbmb.globopharm> users.values.select{|u| u.value('address1')=='Konditionskunde'}.length -> 0
Summary
Problem
Note
Check code
def update_fachinfos #http = Net::HTTP.new(self::class::HTTP_SERVER) docs = nil http = nil path = self::class::FACHINFO_PATH p path name = File.basename(path) p name local = File.expand_path(name, self::class::DATA_DIR) p local p is_newer?(http, path, local) p download(http, path, local) if(is_newer?(http, path, local) && download(http, path, local)) self::class::YAML_COLLECTOR.fachinfos(local) { |collector| docs = collect_dump('fi_dump', :fachinfo_documents, collector) '' # return empty string across drb-boundary } end docs end
Get atc.yaml and fachinfo.yaml from ch.oddb.org
0 21 27 * * root /usr/local/sbin/bbmb-fi-ddd-atc
Note
Commit
Update
include View::AdditionalInformation
@components = { [7,0] => :google_search, } @css_map = { [7,0] => 'list', }
def localized_name(language) self.name.send(language) end
Result
Note
Commit
Update
def migel_search@session.set_cookie_input(:resultview, '')
sortvalue = @session.user_input(:sortvalue) || @session.user_input(:reverse) reverse = @session.user_input(:reverse) if migel_code = @session.user_input(:migel_code) and result = @session.app.search_migel_items_by_migel_code(migel_code, sortvalue, reverse) product = StubProduct.new(result)@session.set_cookie_input(:resultview, 'pages') if items = product.items and items.length > ODDB::State::Migel::Items::ITEM_LIMIT
ODDB::State::Migel::Items.new(@session, ODDB::Migel::Items.new(product))
def pages(model, session=@session)if @session.cookie_set_or_get(:resultview) == "pages"
... View::Pager.new(pages, @session, self, event, args)end
end
Run
Access
Result
Note
grep -r "cookie_set_or_get(:resultview" src grep -r "set_cookie_input(:resultview" src
Commit
Experiment
@components = {[8,0] => :twitter_share,
} @css_map = {[8,0] => 'list',
def name_base self.name.de end def commercial_forms [] end def indication nil end
Note
Access
Result
Experiment
def twitter_share(model, session=@session) link = HtmlGrid::Link.new(:twitter_share_short, model, @session, self) link.value = HtmlGrid::Image.new(:icon_twitter, model, @session, self)base = ''
url = ''
if model.is_a?(DRb::DRbObject)
# in the case of migel items
base = model.localized_name(session.language)
url = @lookandfeel._event_url(:migel_search, {:migel_pharmacode => model.pharmacode})
else
base = model.name_base url = @lookandfeel._event_url(:show, {:pointer => model.pointer}) end
class Items < View::PrivateTemplate
JAVASCRIPTS = ['bit.ly']
Result
Note
Updates
def transmission_filename(user, order, flavor=BBMB::DEFAULT_FLAVOR) case flavor when 'astrazeneca' "AZ#{user.value(:customer_ean13) || user.value(:customer_id)}_#{order.uid}.dat1" else @order_id = "%015d" % rand(10**15).to_s #"KD#{user.value(:customer_ean13) || user.value(:customer_id)}_#{order.uid}.dat""CO_#{@order_id}_#{Time.now.strftime("mH%M")}.dat"
end end def transmission_header(user, order) header2 = [ "250:ADE", #"251:#{order.uid}","251:#{@order_id}",
"300:4", "301:#{order.commit_time.strftime('m%d')}", ]
Run
Login by Hospital User
Order
Then
Result
Commit