Skip to content

Commit

Permalink
Working project-manager - Compatible with Netbean IDE
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Jun 18, 2011
1 parent 2b4ed62 commit b3f3461
Show file tree
Hide file tree
Showing 6,014 changed files with 608,715 additions and 3,742 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
12 changes: 12 additions & 0 deletions NOTELOG
@@ -0,0 +1,12 @@


TODO


DONE/FEATURES
-time quand switch dans In progress
-shortcuts shift 1 2 3
-pas de deuxième création si formulaire déjà remplit par un proj

FIX
- 1-medium to 2-medium
21 changes: 0 additions & 21 deletions README.md

This file was deleted.

71 changes: 71 additions & 0 deletions build.xml
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="project-manager" default="default" basedir=".">
<description>Builds, tests, and runs the project project-manager.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-dist: called before archive building
-post-dist: called after archive building
-post-clean: called after cleaning build products
-pre-run-deploy: called before deploying
-post-run-deploy: called after deploying
Example of pluging an obfuscator after the compilation could look like
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Other way how to customize the build is by overriding existing main targets.
The target of interest are:
init-macrodef-javac: defines macro for javac compilation
init-macrodef-junit: defines macro for junit execution
init-macrodef-debug: defines macro for class debugging
do-dist: archive building
run: execution of project
javadoc-build: javadoc generation
Example of overriding the target for project execution could look like
<target name="run" depends="<PROJNAME>-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that overridden target depends on jar target and not only on
compile target as regular run target does. Again, for list of available
properties which you can use check the target you are overriding in
nbproject/build-impl.xml file.
-->
</project>
229 changes: 229 additions & 0 deletions build/web/ArchiveProjectsindex.js
@@ -0,0 +1,229 @@
/*
* Generated by Natileo - Velociraptor
* on Fri Nov 05 01:16:12 CET 2010
* hemca.com
* by Strzelewicz Alexandre
*/

var viewportArchive;
var storeArchiveProjects;
var ArchiveProjects;
var gridListArchiveProjects;

Ext.onReady(function(){

/*
* Mapping
*
*/

ArchiveProjects = Ext.data.Record.create([
{name : 'projName', type : 'String'},
{name : 'progress', type : 'String'},
{name : 'field1', type : 'String'},
{name : 'field2', type : 'String'},
{name : 'beginDate', type : 'String'},
{name : 'endDate', type : 'String'},
{name : 'previsionDate', type : 'String'},
{name : 'projCmt', type : 'String'},
{name : 'priority', type : 'String'},
{name : 'previsionTime', type : 'String'},
{name : 'spentTime', type : 'String'},
{name : 'projLogo', type : 'String'},
{name : 'projLink', type : 'String'},
{name : 'id', type : 'int'}
]);




/*
* Proxy
*
*/
var proxyArchiveProjects = new Ext.data.HttpProxy({
api: {
read : 'archiveProjects/read.action',
create : 'archiveProjects/create.action',
update : 'archiveProjects/update.action',
destroy: 'archiveProjects/delete.action'
}
});

var readerArchiveProjects = new Ext.data.JsonReader({
totalProperty : 'total',
successProperty : 'success',
idProperty : 'id',
root : 'data'
},
ArchiveProjects
);

var writerArchiveProjects = new Ext.data.JsonWriter({
encode : true,
writeAllFields : true
});

storeArchiveProjects = new Ext.data.Store({
id : 'user',
remoteSort : false,
proxy : proxyArchiveProjects,
sortInfo: {field: 'priority', direction: 'DESC'},
autoSave: true,
reader : readerArchiveProjects,
writer : writerArchiveProjects
});

storeArchiveProjects.load({params:{"start":0, "limit":50}});
//storeArchiveProjects.load();

/*
* Plugins
*/

var filterArchiveProjects = new Ext.ux.grid.GridFilters({
local : false,
filters :[
{dataIndex : 'projName', type : 'string'},
{dataIndex : 'progress', type : 'string'},
{dataIndex : 'field1', type : 'string'},
{dataIndex : 'field2', type : 'string'},
{dataIndex : 'beginDate', type : 'string'},
{dataIndex : 'endDate', type : 'string'},
{dataIndex : 'previsionDate', type : 'string'},
{dataIndex : 'projCmt', type : 'string'},
{dataIndex : 'priority', type : 'string'},
{dataIndex : 'previsionTime', type : 'string'},
{dataIndex : 'spentTime', type : 'string'},
{dataIndex : 'projLogo', type : 'string'},
{dataIndex : 'projLink', type : 'string'},
{dataIndex : 'id', type : 'int'}
]
});

/*
* Elements
*/

formArchiveProjects = new Ext.FormPanel({
title : 'ArchiveProjects form',
region : 'center',
split : 'true',
bodyStyle : 'padding:20px;',
defaults : {width : window.innerWidth - 550, xtype : 'textfield'},
items : formProject,
buttonAlign : 'center',
tbar : [
{
text : '< To In Progress',
formBind : true,
handler : function(){
var e = new SuspendProjects;
e.data = formArchiveProjects.getForm().getValues();
e = setTimeSpent(e);
storeInprogressProjects.insert(0, e);
var r = gridListArchiveProjects.getSelectionModel().getSelected();
storeArchiveProjects.remove(r);
formArchiveProjects.getForm().reset();
}
}, '-',
{
text : 'Done >',
formBind : true,
handler : function(){
var e = new SuspendProjects;
e.data = formArchiveProjects.getForm().getValues();
e.data.id = null;
storeSuspendProjects.insert(0, e);
var r = gridListArchiveProjects.getSelectionModel().getSelected();
storeArchiveProjects.remove(r);
formArchiveProjects.getForm().reset();
}
}
],
buttons :
[{
text : 'Create',
formBind : true,
handler : function(){
if (formArchiveProjects.getForm().findField('id').value == undefined){
var e = new ArchiveProjects;
e.data = formArchiveProjects.getForm().getValues();
storeArchiveProjects.insert(storeArchiveProjects.getCount(), e);
formArchiveProjects.getForm().reset();
}else{
Ext.MessageBox.alert('Status', 'Can\'t recreate the same proj, reset to create new.');
}
}
},{
text : 'Update',
formBind : true,
handler : function(){
formArchiveProjects.getForm().updateRecord(formArchiveProjects.record);
}
},{
text : 'Delete',
handler : function(){
formArchiveProjects.getForm().reset();
var r = gridListArchiveProjects.getSelectionModel().getSelected();
storeArchiveProjects.remove(r);
gridListArchiveProjects.getSelectionModel().selectRow(r.lastIndex);
}
},{
text : 'Reset',
formBind : true,
handler : function(){
formArchiveProjects.getForm().reset();
}
}
]
});

gridListArchiveProjects = new Ext.grid.GridPanel({
store : storeArchiveProjects,
columns : colsProjects,
region : 'west',
width : 400,
split : true,
local : true,
title : '<center>Archive</center>',
frame : true,
tbar :[
{
iconCls : 'silk-delete',
text : 'Delete',
handler : function(){
Ext.MessageBox.confirm('Status', 'Delete ? ', function(btn){
if (btn == 'yes') {
formArchiveProjects.getForm().reset();
var r = gridListArchiveProjects.getSelectionModel().getSelected();
storeArchiveProjects.remove(r);
gridListArchiveProjects.getSelectionModel().selectRow(r.lastIndex);
}
});

}
}
],
plugins : [filterArchiveProjects],
listeners : {
rowclick:function(grid, row, event){
formArchiveProjects.record = grid.getStore().getAt(row);
formArchiveProjects.getForm().loadRecord(formArchiveProjects.record);
}
}
});

viewportArchive = new Ext.Panel({
title : 'Proposals/Suspended',
xtype : 'viewport',
layout : 'border',
items : [gridListArchiveProjects, formArchiveProjects]
});

/* var viewport = new Ext.Viewport({
layout : 'border',
renderTo : Ext.getBody(),
});*/
});
33 changes: 33 additions & 0 deletions build/web/ArchiveProjectsindex.jsp
@@ -0,0 +1,33 @@
<html>
<head>
<title>archiveProjects</title>

<!-- Favicon logo -->
<link rel="icon" type="image/gif" href="favicon.ico">

<!-- ExtJS css -->
<link rel="stylesheet" type="text/css" href="ext3/resources/css/ext-all.css" />

<!-- ExtJS js -->
<script src="ext3/adapter/ext/ext-base.js"></script>
<script src="ext3/ext-all.js"></script>

<script type="text/javascript" src="ext3/examples/ux/ux-all.js"></script>
<script type="text/javascript" src="ext3/examples/ux/gridfilters/GridFilters.js"></script>
<!-- Specific filters -->
<script type="text/javascript" src="ext3/examples/ux/gridfilters/filter/Filter.js"></script>
<script type="text/javascript" src="ext3/examples/ux/gridfilters/filter/StringFilter.js"></script>
<script type="text/javascript" src="ext3/examples/ux/gridfilters/filter/DateFilter.js"></script>
<script type="text/javascript" src="ext3/examples/ux/gridfilters/filter/ListFilter.js"></script>
<script type="text/javascript" src="ext3/examples/ux/gridfilters/filter/NumericFilter.js"></script>
<script type="text/javascript" src="ext3/examples/ux/gridfilters/filter/BooleanFilter.js"></script>
<!-- Specific css -->
<link rel="stylesheet" type="text/css" href="ext3/examples/ux/gridfilters/css/GridFilters.css" />
<link rel="stylesheet" type="text/css" href="ext3/examples/ux/gridfilters/css/RangeMenu.css" />
<!-- Specific files for this page -->
<script src="ArchiveProjectsindex.js"></script>
</head>
<body>
<!--<div id="viewport"></div>-->
</body>
</html>

0 comments on commit b3f3461

Please sign in to comment.