|
|
@ -222,6 +222,7 @@ class BllMedicament(Repository):
|
|
|
|
|
|
|
|
|
|
|
|
# 创建事务
|
|
|
|
# 创建事务
|
|
|
|
self.beginTrans()
|
|
|
|
self.beginTrans()
|
|
|
|
|
|
|
|
entityDrug.remark30 = '0'
|
|
|
|
self.session.add(entityDrug)
|
|
|
|
self.session.add(entityDrug)
|
|
|
|
if entityDrug.status == 1:
|
|
|
|
if entityDrug.status == 1:
|
|
|
|
self.session.add(entityDrugRecord)
|
|
|
|
self.session.add(entityDrugRecord)
|
|
|
@ -233,6 +234,7 @@ class BllMedicament(Repository):
|
|
|
|
def drugUse(self, entityDrug=EntityMedicament(), entityClient=EntityClient(), entityUser=EntityUser()):
|
|
|
|
def drugUse(self, entityDrug=EntityMedicament(), entityClient=EntityClient(), entityUser=EntityUser()):
|
|
|
|
#创建事务
|
|
|
|
#创建事务
|
|
|
|
self.beginTrans()
|
|
|
|
self.beginTrans()
|
|
|
|
|
|
|
|
entityDrug.remark30 = '0'
|
|
|
|
self.session.merge(entityDrug)
|
|
|
|
self.session.merge(entityDrug)
|
|
|
|
entityDrugRecord = EntityMedicamentRecord(
|
|
|
|
entityDrugRecord = EntityMedicamentRecord(
|
|
|
|
customer_id=entityClient.customer_id,
|
|
|
|
customer_id=entityClient.customer_id,
|
|
|
@ -261,6 +263,7 @@ class BllMedicament(Repository):
|
|
|
|
def drugReturn(self, entityDrug=EntityMedicament(), entityClient=EntityClient(), entityUser=EntityUser()):
|
|
|
|
def drugReturn(self, entityDrug=EntityMedicament(), entityClient=EntityClient(), entityUser=EntityUser()):
|
|
|
|
#创建事务
|
|
|
|
#创建事务
|
|
|
|
self.beginTrans()
|
|
|
|
self.beginTrans()
|
|
|
|
|
|
|
|
entityDrug.remark30 = '0'
|
|
|
|
self.session.merge(entityDrug)
|
|
|
|
self.session.merge(entityDrug)
|
|
|
|
|
|
|
|
|
|
|
|
drug = BllMedicament().findEntity(entityDrug.medicament_id)
|
|
|
|
drug = BllMedicament().findEntity(entityDrug.medicament_id)
|
|
|
|