inherit top list

conv_bal
watcha.h 2014-11-29 07:48:00 +07:00
parent 09b11c9b15
commit 69746f378a
10 changed files with 64 additions and 23 deletions

View File

@ -7,6 +7,7 @@
</head>
<group span="6" columns="1">
<field name="number"/>
<field name="ref"/>
<field name="patient_id"/>
<field name="date"/>
<field name="member_type"/>

View File

@ -2,14 +2,20 @@
<item string="Settings" position="before">
<item string="Ratchawat">
<header string="IMPORT PAYMENT"/>
<!--<item string="Medical Government" action="import_clinic_mg"/>-->
<item string="Social Security" action="import_clinic_sc"/>
<item string="UC" action="import_clinic_uc"/>
<divider/>
<header string="IMPORT DATA"/>
<!--<item string="Medical Government" action="clinic_import_payment"/>-->
<header string="IMPORT HISTORY"/>
<item string="Social Security" action="clinic_data_sc"/>
<item string="UC" action="clinic_data_uc"/>
<!--<header string="IMPORT PAYMENT"/>-->
<!--<item string="Social Security" action="import_clinic_sc"/>-->
<!--<item string="UC" action="import_clinic_uc"/>-->
<!--<divider/>-->
<!--<header string="IMPORT DATA"/>-->
<!--<item string="Social Security" action="clinic_data_sc"/>-->
<!--<item string="UC" action="clinic_data_uc"/>-->
</item>
</item>
</inherit>

View File

@ -1,4 +1,12 @@
<list model="clinic.staff">
<top replace="1">
<button string="New Staff" icon="plus-sign" dropdown="1">
<item string="Staff" action="clinic_staff" action_options="mode=form&amp;context.type=staff"/>
<item string="Doctor" action="clinic_staff" action_options="mode=form&amp;context.type=doctor"/>
<item string="Nurse" action="clinic_staff" action_options="mode=form&amp;context.type=nurse"/>
</button>
<button string="Import" action="import_data" action_options="&amp;import_model=clinic.staff&amp;next=clinic_staff" icon="download"/>
</top>
<field name="number"/>
<field name="name"/>
<field name="department_id"/>

View File

@ -1,19 +1,10 @@
<form title="Import Social Security">
<form title="Social Security">
<group span="6" columns="1">
<field name="file"/>
<field name="hcode"/>
</group>
<group span="6" columns="1">
<separator string="Result"/>
<template>
<a href="ui#name=clinic_data_sc" target="_blank"><span class="glyphicon glyphicon-arrow-right"></span> Review Data</a>
</template>
<field name="result" nolabel="1" height="240" width="540"/>
</group>
<foot replace="1">
<button string="Import Data" method="import_sc" type="primary" icon="arrow-right"/>
<!--<button string="Match Invoice" method="match_invoice_sc" icon="retweet" type="default"/>-->
<button string="Approve" method="approve_sc" icon="ok" type="success"/>
<button string="Clear" method="clear_sc" type="danger" icon="remove"/>
<button string="Import" method="import_uc" type="primary" icon="arrow-right"/>
</foot>
</form>

View File

@ -1,10 +1,10 @@
<form title="Import UC">
<form title="UC">
<group span="6" columns="1">
<field name="file"/>
</group>
<group span="6" columns="1">
</group>
<foot replace="1">
<button string="Import Data" method="import_uc" type="primary" icon="arrow-right"/>
<button string="Import" method="import_uc" type="primary" icon="arrow-right"/>
</foot>
</form>

View File

@ -0,0 +1,19 @@
<form title="Import Social Security">
<group span="6" columns="1">
<field name="file"/>
<field name="hcode"/>
</group>
<group span="6" columns="1">
<separator string="Result"/>
<template>
<a href="ui#name=clinic_data_sc" target="_blank"><span class="glyphicon glyphicon-arrow-right"></span> Review Data</a>
</template>
<field name="result" nolabel="1" height="240" width="540"/>
</group>
<foot replace="1">
<button string="Import Data" method="import_sc" type="primary" icon="arrow-right"/>
<!--<button string="Match Invoice" method="match_invoice_sc" icon="retweet" type="default"/>-->
<button string="Approve" method="approve_sc" icon="ok" type="success"/>
<button string="Clear" method="clear_sc" type="danger" icon="remove"/>
</foot>
</form>

View File

@ -0,0 +1,10 @@
<form title="Import UC">
<group span="6" columns="1">
<field name="file"/>
</group>
<group span="6" columns="1">
</group>
<foot replace="1">
<button string="Import Data" method="import_uc" type="primary" icon="arrow-right"/>
</foot>
</form>

View File

@ -12,6 +12,7 @@ class Dialyzer(Model):
_fields={
"number": fields.Char("Number",required=True,search=True),
'ref': fields.Char("Ref."),
"description": fields.Text("Description",search=True),
"date": fields.Date("Create Date",search=True),
"use_time": fields.Integer("Use Time"),

View File

@ -121,7 +121,8 @@ class Staff(Model):
_defaults={
'active': True,
"state": "temporary",
'type': 'staff',
#'type': 'staff',
"type": lambda self,ctx: ctx.get("type") or "staff",
"date": lambda *a: time.strftime("%Y-%m-%d"),
"number": _get_number,
"company_id": lambda *a: get_active_company(),

View File

@ -1,3 +1,7 @@
=====
import payment from government
======
bug:
มีปัญหาการสร้าง address ของ contact จากผู้ป่วยโดยอัตโนมัติ เพราะมันไม่ได้ถูกเก็บไว้ที่ form
=====