package net.cygeek.tech.client.ui.form;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.*;
import com.gwtext.client.core.EventObject;
import com.gwtext.client.data.Record;
import com.gwtext.client.widgets.Button;
import com.gwtext.client.widgets.MessageBox;
import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.TabPanel;
import com.gwtext.client.widgets.event.ButtonListenerAdapter;
import com.gwtext.client.widgets.event.PanelListenerAdapter;
import com.gwtext.client.widgets.event.TabPanelListenerAdapter;
import com.gwtext.client.widgets.form.*;
import com.gwtext.client.widgets.form.event.CheckboxListenerAdapter;
import com.gwtext.client.widgets.layout.*;
import net.cygeek.tech.client.adapters.*;
import net.cygeek.tech.client.cache.UserCache;
import net.cygeek.tech.client.data.Employee;
import net.cygeek.tech.client.data.UserGroup;
import net.cygeek.tech.client.data.Users;
import net.cygeek.tech.client.ohrm;
import net.cygeek.tech.client.ui.grid.*;
import net.cygeek.tech.client.ui.menu.FormImageUpload;
import net.cygeek.tech.client.ui.menu.SimplelWindow;
import net.cygeek.tech.client.ui.validator.TextLengthValidator;
import net.cygeek.tech.client.util.Debug;
import net.cygeek.tech.client.util.MessageStore;
import net.cygeek.tech.client.util.TS;
import net.cygeek.tech.client.util.ValidatorText;
import java.util.Date;
/**
*
*/
public class EmployeeForm extends AbstractForm {
public int currentMode = AbstractWindow.VIEW;
Image imgEmp = null;
SimplelWindow iuw = null;
FormImageUpload fiu = null;
Employee loc;
Panel personalTab;
FieldSet jobFS;
FieldSet detailsFS;
FieldSet contactFS;
TextField txtEmpNickName;
ComboBox cmbEmpStatus;
TextField txtEmpFirstname;
TextField txtCounCode;
TextField txtEmpDriLiceNum;
TextField txtEmpMobile;
TextField txtCustom10;
ComboBox cmbEthnicRaceCode;
TextField txtEmployeeId;
TextField txtEmpSinNum;
TextField txtCityCode;
TextField txtEmpStreet2;
TextField txtEmpStreet1;
TextField txtEmpOtherId;
TextField txtSalGrdCode;
TextField txtProvinCode;
TextField txtEmpOthEmail;
TextField txtEmpHmTelephone;
TextField txtEmpWorkTelephone;
TextField txtEmpLastname;
Checkbox chkEmpGender;
// Radio radEmpGenderM;
// Radio radEmpGenderF;
TextField txtEmpSsnNum;
Checkbox chkEmpMaritalStatus;
TextField txtEmpNumber;
DateField dateEmpDriLiceExpDate;
TextField txtJoinedDate;
TextField txtEmpMiddleName;
Checkbox chkEmpMilitaryService;
TextField txtEmpWorkEmail;
TextField txtCustom9;
TextField txtCustom8;
TextField txtCustom7;
TextField txtCustom6;
TextField txtCustom5;
ComboBox cmbJobTitleCode;
TextField txtCustom4;
TextField txtCustom3;
TextField txtCustom2;
TextField txtCustom1;
TextField txtEmpZipcode;
Checkbox chkEmpSmoker;
ComboBox cmbWorkStation;
DateField dateEmpBirthday;
ComboBox cmbNationCode;
ComboBox cmbEeoCatCode;
ComboBox cmbLocCountry;
Button save = new Button(TS.gi().get("L0001"));
Button cancel = new Button(TS.gi().get("L0003"));
Button user = new Button(TS.gi().get("L0154"));
TabPanel tabPanel = new TabPanel();
Panel contactTab = new Panel();
Panel dependantsTab = new Panel();
Panel salaryTab = new Panel();
Panel accountTab = new Panel();
Panel educationTab = new Panel();
Panel supervisorTab = new Panel();
Panel subordinateTab = new Panel();
HTML dumyHtml=new HTML();
public EmployeeForm() {
this.setFrame(false);
this.setWidth(800);
this.setLabelWidth(75);
this.setPaddings(10);
cmbLocCountry = new ComboBox();
cmbLocCountry.setForceSelection(true);
cmbLocCountry.setMinChars(1);
cmbLocCountry.setFieldLabel(TS.gi().get("L0210"));
cmbLocCountry.setDisplayField("couName");
cmbLocCountry.setValueField("couCode");
cmbLocCountry.setMode(ComboBox.LOCAL);
cmbLocCountry.setTriggerAction(ComboBox.ALL);
cmbLocCountry.setEmptyText(TS.gi().get("L0022"));
cmbLocCountry.setLoadingText(TS.gi().get("L0017"));
cmbLocCountry.setTypeAhead(true);
cmbLocCountry.setSelectOnFocus(true);
cmbLocCountry.setWidth(245);
cmbLocCountry.setHideTrigger(false);
txtEmpNickName = new TextField("Nick Name", "txtEmpNickName", 230);
// txtEmpNickName.setAllowBlank(false);
//this.add(txtEmpNickName);
cmbEmpStatus = new ComboBox();
cmbEmpStatus.setForceSelection(true);
cmbEmpStatus.setMinChars(1);
cmbEmpStatus.setFieldLabel(TS.gi().get("L0116"));
cmbEmpStatus.setDisplayField("estatName");
cmbEmpStatus.setValueField("estatCode");
cmbEmpStatus.setMode(ComboBox.LOCAL);
cmbEmpStatus.setTriggerAction(ComboBox.ALL);
cmbEmpStatus.setEmptyText(TS.gi().get("L0022"));
cmbEmpStatus.setLoadingText(TS.gi().get("L0017"));
cmbEmpStatus.setTypeAhead(true);
cmbEmpStatus.setSelectOnFocus(true);
cmbEmpStatus.setWidth(230);
cmbEmpStatus.setHideTrigger(false);
//this.add(cmbEmpStatus);
txtEmpFirstname = new TextField(TS.gi().get("L0026"), "txtEmpFirstname", 215);
// txtEmpFirstname.setAllowBlank(false);
//this.add(txtEmpFirstname);
txtCounCode = new TextField("CounCode", "txtCounCode", 215);
// txtCounCode.setAllowBlank(false);
//this.add(txtCounCode);
txtEmpDriLiceNum = new TextField(TS.gi().get("L0027"), "txtEmpDriLiceNum", 215);
//txtEmpDriLiceNum.setAllowBlank(false);
//this.add(txtEmpDriLiceNum);
txtEmpMobile = new TextField(TS.gi().get("L0028"), "txtEmpMobile", 215);
// txtEmpMobile.setAllowBlank(false);
//this.add(txtEmpMobile);
txtCustom10 = new TextField("Custom10", "txtCustom10", 215);
// txtCustom10.setAllowBlank(false);
//this.add(txtCustom10);
cmbEthnicRaceCode = new ComboBox();
cmbEthnicRaceCode.setForceSelection(true);
cmbEthnicRaceCode.setMinChars(1);
cmbEthnicRaceCode.setFieldLabel(TS.gi().get("L0150"));
cmbEthnicRaceCode.setDisplayField("ethnicRaceDesc");
cmbEthnicRaceCode.setValueField("ethnicRaceCode");
cmbEthnicRaceCode.setMode(ComboBox.LOCAL);
cmbEthnicRaceCode.setTriggerAction(ComboBox.ALL);
cmbEthnicRaceCode.setEmptyText(TS.gi().get("L0022"));
cmbEthnicRaceCode.setLoadingText(TS.gi().get("L0017"));
cmbEthnicRaceCode.setTypeAhead(true);
cmbEthnicRaceCode.setSelectOnFocus(true);
cmbEthnicRaceCode.setWidth(230);
cmbEthnicRaceCode.setHideTrigger(false);
//this.add(cmbEthnicRaceCode);
txtEmployeeId = new TextField(TS.gi().get("L0029"), "txtEmployeeId", 215);
// txtEmployeeId.setAllowBlank(false);
//this.add(txtEmployeeId);
txtEmpSinNum = new TextField(TS.gi().get("L0030"), "txtEmpSinNum", 215);
//txtEmpSinNum.setAllowBlank(false);
//this.add(txtEmpSinNum);
txtCityCode = new TextField(TS.gi().get("L0208"), "txtCityCode", 215);
//txtCityCode.setAllowBlank(false);
//this.add(txtCityCode);
txtEmpStreet2 = new TextField(TS.gi().get("L0031"), "txtEmpStreet2", 215);
//txtEmpStreet2.setAllowBlank(false);
//this.add(txtEmpStreet2);
txtEmpStreet1 = new TextField(TS.gi().get("L0032"), "txtEmpStreet1", 215);
//txtEmpStreet1.setAllowBlank(false);
//this.add(txtEmpStreet1);
txtEmpOtherId = new TextField(TS.gi().get("L0033"), "txtEmpOtherId", 215);
//txtEmpOtherId.setAllowBlank(false);
//thi
没有合适的资源?快使用搜索试试~ 我知道了~
iceHrm 源代码
共1281个文件
java:927个
gif:262个
css:28个
4星 · 超过85%的资源 需积分: 0 14 下载量 96 浏览量
2011-05-03
17:21:04
上传
评论 1
收藏 3.29MB ZIP 举报
温馨提示
icehrm开源人力资源管理系统。 该文件为其源文件。
资源推荐
资源详情
资源评论
收起资源包目录
iceHrm 源代码 (1281个子文件)
ohrm-compile.cmd 374B
ext-all.css 74KB
grid.css 13KB
xtheme-gray.css 9KB
form.css 9KB
panel.css 8KB
tabs.css 7KB
grid.css 7KB
basic-dialog.css 6KB
core.css 6KB
tree.css 6KB
date-picker.css 5KB
layout.css 5KB
toolbar.css 5KB
window.css 4KB
button.css 4KB
resizable.css 4KB
qtips.css 3KB
menu.css 3KB
box.css 3KB
editor.css 2KB
dialog.css 2KB
dd.css 2KB
combo.css 1KB
borders.css 1KB
progress.css 939B
debug.css 862B
reset-min.css 471B
reset.css 471B
Thumbs.db 33KB
dlg-bg.gif 27KB
tip-sprite.gif 4KB
error-tip-corners.gif 4KB
tip-sprite.gif 4KB
tip-sprite.gif 4KB
tool-sprites.gif 4KB
tool-sprites.gif 4KB
blue-loading.gif 3KB
large-loading.gif 3KB
tab-sprite.gif 3KB
tools-sprites-trans.gif 3KB
tools-sprites-trans.gif 3KB
search-trigger.gif 2KB
tabs-sprite.gif 2KB
loading-balls.gif 2KB
tabs-sprite.gif 2KB
tb-sprite.gif 2KB
clear-trigger.gif 2KB
trigger.gif 2KB
icon-error.gif 2KB
icon-error.gif 2KB
tab-btm-inactive-right-bg.gif 2KB
tab-btm-right-bg.gif 2KB
icon-question.gif 2KB
icon-question.gif 2KB
date-trigger.gif 2KB
icon-info.gif 2KB
icon-info.gif 2KB
e-handle.gif 2KB
e-handle.gif 2KB
trigger-tpl.gif 1KB
icon-warning.gif 1KB
icon-warning.gif 1KB
gradient-bg.gif 1KB
gradient-bg.gif 1KB
gradient-bg.gif 1KB
gradient-bg.gif 1KB
corners-sprite.gif 1KB
corners-sprite.gif 1KB
tab-btm-right-bg.gif 1KB
tab-btm-right-bg.gif 1KB
tab-btm-inactive-right-bg.gif 1KB
tab-btm-inactive-right-bg.gif 1KB
white-corners-sprite.gif 1KB
white-corners-sprite.gif 1KB
btn-sprite.gif 1KB
s-handle.gif 1KB
s-handle.gif 1KB
scroll-right.gif 1KB
scroll-left.gif 1KB
scroll-right.gif 1KB
scroll-left.gif 1KB
grid3-hd-btn.gif 1KB
btn-sprite.gif 1KB
gradient-bg.gif 1KB
tb-btn-sprite.gif 1KB
tb-btn-sprite.gif 1KB
wait.gif 1KB
scroller-bg.gif 1KB
hd-sprite.gif 1KB
bg.gif 1KB
scroller-bg.gif 1KB
row-check-sprite.gif 1KB
e-handle-dark.gif 1KB
e-handle-dark.gif 1KB
s-handle-dark.gif 1KB
s-handle-dark.gif 1KB
bg-right.gif 1KB
bg-left.gif 1KB
pick-button.gif 1KB
共 1281 条
- 1
- 2
- 3
- 4
- 5
- 6
- 13
资源评论
- wtt1011212013-10-23能用,可以在这个基础上修改
- orochiqixin2012-09-16谢谢,已经投入使用,代码没问题
- chinahospital2016-01-04代码可以用? 各单位注意,不是网上那个我们看到的以为的那个ICE Hrm!!
ciom_mwm
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功