X12 EDI Examples
EMR In-house Lab workflow
Back to domain
In my last company, we follow the below workflow for the in-house lab order. Please note : Even though I mention as use case, but it may not have all the typical structure of a use case. I will explain in my own way.
One to many mapping using bidirectional relationship– ManytoOne as owner
First let is look the hibernate documentation on this as follows
Hibernate–Java Environment setup
We will see how we can setup the Environment in eclipse to learn our examples in hibernate.
EDI 5010 Documentation 837 Professional - Loop 2320 Other Subscriber Information
2320 Other Subscriber Information
My date box Component
Using jquery plugin, we will create our date box component in ZK and apply mask and water mark. You can download the jquery plugin from the following site
http://digitalbush.com/projects/masked-input-plugin/
http://digitalbush.com/projects/watermark-input-plugin/
Tech Links
Hibernate
Spring Security
- Spring Security Part 1 – Simple Login application with database
- quick-spring-security tutorial in eclipse step by step
Spring + Hibernate + JPA + Entity Manager
- Integrate with spring and JPA and ZK
- JPA basic example with EntityManager , Spring and Maven
- Step by step configuration of Spring , Hibernate and JPA
- http://www.springbyexample.org/examples/one-to-many-jpa-hibernate-config-reference.html
Spring Service and DAO Layer
- Developing A Simple Java Application With Spring using Service and DAO Layers
- http://www.mkyong.com/spring/maven-spring-hibernate-annotation-mysql-example/
- http://vrtoonjava.wordpress.com/2012/06/17/part-3-dao-and-service-layer/
- http://www.techferry.com/articles/spring-annotations.html
HibernateTemplate or EntityManager
- http://forum.springsource.org/showthread.php?73629-EntityManager-versus-getHibernateTemplate()
- http://blog.michaelscepaniak.com/differences-between-hibernate-and-jpa
- http://blog.springsource.com/2007/06/26/so-should-you-still-use-springs-hibernatetemplate-andor-jpatemplate/
- http://www.coderanch.com/t/442507/oa/EntityManager-getHibernateTemplate
- http://stackoverflow.com/questions/12555055/jpas-entitymanager-or-hibernates-hibernatetemplate-with-spring
- http://www.baeldung.com/2011/12/13/the-persistence-layer-with-spring-3-1-and-jpa/
Generic DAO
- http://www.bejug.org/confluenceBeJUG/display/BeJUG/Generic+DAO+example
- http://hop2croft.wordpress.com/2011/06/23/dont-repeat-the-dao-no-repitas-el-dao/
- http://www.codeproject.com/Articles/251166/The-Generic-DAO-pattern-in-Java-with-Spring-3-and
- http://www.ibm.com/developerworks/java/library/j-genericdao/index.html
Spring and Hibernate ORM Framework Integration.
1. http://www.javabeat.net/2007/10/integrating-spring-framework-with-hibernate-orm-framework/
2. http://static.springsource.org/spring/docs/2.5.x/reference/orm.html
3. http://blog.springsource.org/2012/04/06/migrating-to-spring-3-1-and-hibernate-4-1/
4. http://javaprogrammingtips4u.blogspot.in/2010/04/spring-integration-with-hibernate_23.html
ZK Hibernate one to one annotation mapping bidirectional CRUD example using MVVM
In this post, we will see how we can implement hibernate one to one mapping bidirectional using ZK Components
ZK Component extend
In this post, we will see how we can create our component by extending ZK Component. All the jquery plugin can be used in ZK. The following example will explain how to create Phonebox, Zip Code and Tax ID.
ZK Messagebox Styling
This examples show how you can use change the Look and Feel of ZK MessageBox Component.
Combo Box– Show images for Items based on some condition
We will see how we can also show the images for the combo items bases on some conditions.
ZK Border Layout–Another example
This examples show how you can use ZK Border Layout to show the product information on clicking image.
MVVM–List Item–Hibernate–MySQL–Part 3
Note: This is continuation of my previous article Part 2. Please click here to go to Part 2
In this Part 3, we will enhance our Listing and model window as follows
1. We will include one more column as last named as Actions. This action will contain image such as edit, activate and delete.
2. We will also give hyperlink for the first column. If the user clicks the first column, then we will show the information in the read-only and if the user clicks the edit image in the action column, then we will show the information in the read only and will allow the user to edit and save.
C Workbook
In the year 1999-2002, I was working as faculty in a computer center. During that period, I developed a small VB Application to explain the concept of C. Here are the some screenshots from that VB Project
MVVM Modal window–Pass Parameter and Return values
In this post, we will see how we can pass some values to the modal window when calling from the parent window and also vice versa (i.e) return some values from the modal window to parent window
Project Name : MVVMModalWindow
Project Structure:
Demo.zul
<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<zk>
<window title="MVVM Modal window Passing arguments and retur values"
border="normal" apply="org.zkoss.bind.BindComposer"
viewModel="@id('e') @init('com.demo.UI.demoVM')">
Type any value and Press the Model Window Button
<separator />
Value 1 :
<textbox value="@bind(e.value1)" />
Value 2 :
<textbox value="@bind(e.value2)" />
<button label="Model Window" onClick="@command('showModelWin')" />
</window>
</zk>
package com.demo.UI;
import java.util.HashMap;
import org.zkoss.bind.annotation.BindingParam;
import org.zkoss.bind.annotation.Command;
import org.zkoss.bind.annotation.GlobalCommand;
import org.zkoss.zk.ui.Executions;
import org.zkoss.bind.annotation.NotifyChange;
public class demoVM {
private String value1;
private String value2;
public String getValue1() {
return value1;
}
public void setValue1(String value1) {
this.value1 = value1;
}
public String getValue2() {
return value2;
}
public void setValue2(String value2) {
this.value2 = value2;
}
@Command
public void showModelWin()
{
final HashMap<String, Object> map = new HashMap<String, Object>();
map.put("value1", this.value1 );
map.put("value2", this.value2);
Executions.createComponents("ModelWindow.zul", null, map);
}
@GlobalCommand
@NotifyChange({"value1","value2"})
public void refreshvalues(@BindingParam("returnvalue1") String str1, @BindingParam("returnvalue2") String str2)
{
this.value1 = str1;
this.value2 = str2;
}
}
<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<zk>
<window id="modalDialog"
title="MVVM Modal window Passing arguments and retur values"
width="420px" height="auto" border="normal" minimizable="false"
mode="modal" maximizable="false" closable="true"
action="hide: slideUp" apply="org.zkoss.bind.BindComposer"
onCancel="@command('closeThis')"
viewModel="@id('e') @init('com.demo.UI.ModelWindowVM')">
Change the values and Press the Ok Button to return changed
values.
<separator />
Value 1 :
<textbox value="@bind(e.value1)" />
Value 2 :
<textbox value="@bind(e.value2)" />
<button label="Ok" onClick="@command('save')" />
</window>
</zk>
package com.demo.UI;
import org.zkoss.bind.annotation.Command;
import org.zkoss.bind.annotation.ContextParam;
import org.zkoss.bind.annotation.ContextType;
import org.zkoss.bind.annotation.ExecutionArgParam;
import org.zkoss.bind.annotation.Init;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.select.Selectors;
import org.zkoss.zk.ui.select.annotation.Wire;
import org.zkoss.zul.Window;
import java.util.HashMap;
import org.zkoss.bind.BindUtils;
import java.util.Map;
public class ModelWindowVM {
@Wire("#modalDialog")
private Window win;
private String value1;
private String value2;
public String getValue1() {
return value1;
}
public void setValue1(String value1) {
this.value1 = value1;
}
public String getValue2() {
return value2;
}
public void setValue2(String value2) {
this.value2 = value2;
}
@Init
public void init(@ContextParam(ContextType.VIEW) Component view,
@ExecutionArgParam("value1") String v1,
@ExecutionArgParam("value2") String v2) {
Selectors.wireComponents(view, this, false);
this.value1 = v1;
this.value2 = v2;
}
@SuppressWarnings({ "unchecked", "rawtypes" })
@Command
public void save() {
Map args = new HashMap();
args.put("returnvalue1", this.value1);
args.put("returnvalue2", this.value2);
BindUtils.postGlobalCommand(null, null, "refreshvalues", args);
win.detach();
}
@Command
public void closeThis() {
win.detach();
}
}
Now you can run the demo.zul file