Anda di halaman 1dari 8

----------------- FULL DESCRIPTION MTPORTAL ---------------------------

*** This document would fully describe about new files and custom changes for mtportal project.

*** there are Nine section for submitting new changes

I) New modules which should fully submitted as they are


II) Custom changes for those module which should as submitted as they are.
III) Files in include folder of core and custom
IV) Custom changes in existing files.
V) Database changes.
VI) Public site files.
VII) Creation of new folders
VIII) Custom changes in core module
IX) New custom files.

----------------------- SECTION FIRST (New modules which should fully submitted)------------


modules/med_Candidate
modules/med_candidate_agreement
modules/med_job
modules/med_Leave_Management
modules/med_MultiDocument
modules/med_MultiDocument_Documents
modules/med_ScoreFile
modules/med_VoiceFileTest
modules/medi_TimeProductivitySchedule
modules/Alert_Announcement
modules/med_Leave_Management
modules/tpr_TimeProductivity
modules/charts/dashlets/ MTAvailibilityDashlet
modules/charts/dashlets/ MTCapacityDashlet

------------ SECTION SECOND (Custom changes for modules which should fully submitted)------------

Custom/modules/med_candidate_agreement
Custom/modules/med_job
Custom/modules/med_Leave_Management
Custom/modules/med_MultiDocument
Custom/modules/med_MultiDocument_Documents
Custom/modules/med_ScoreFile
Custom/modules/med_VoiceFileTest
Custom/modules/medi_TimeProductivitySchedule
Custom/modules/Alert_Announcement
Custom/modules/med_Leave_Management
Custom/modules/tpr_TimeProductivity

-------------------------- Section III ( Files in include folder of core and custom) ------------------------

Include\SugarFields\Fields\Datetimecombo_cstm(new)

----------------- ---------SECTION IV Custom changes in existing files --------------- -----------------------


1. Extension\modules\Accounts\Ext\Vardefs\new_vardefs.php (some changes)
///************** new code ************ ///
$dictionary["Account"]["fields"]["accounts_employees"] = array (
'name' => 'accounts_employees',
'type' => 'link',
'relationship' => 'accounts_employees',
'source' => 'non-db',
);

////********** end new code ***********///


2. custom\include\language\en_us.notify_template_custom.html (some changes)

//************** new code ************ ///

<!-- BEGIN: Opportunities_change_sales_stage_Subject -->


Please ensure your division’s resource planning.
<!-- END: Opportunities_change_sales_stage_Subject -->
<!-- BEGIN: Opportunities_change_sales_stage -->
{OPPORTUNITY_ALL}
<!-- END: Opportunities_change_sales_stage -->

<!-- BEGIN: med_Candidate_notify_Subject -->


Notification from MT portal
<!-- END: med_Candidate_notify_Subject -->
<!-- BEGIN: med_Candidate_notify -->
{NOTIFY_ALL}
<!-- END: med_Candidate_notify -->

<!-- BEGIN: med_ScoreFile_notify_Subject -->


Notification for submission of transcribed document at MT portal
<!-- END: med_ScoreFile_notify_Subject -->
<!-- BEGIN: med_ScoreFile_notify -->
{NOTIFY_ALL}
<!-- END: med_ScoreFile_notify -->
////********** end new code ***********///

3. custom\modules\notification_utils.php(some changes)
///////********* new code to add ********************//////
function do_for_med_candidate(& $xtpl, $obj_focus, $current_user, $templat_name)
{

$xtpl->assign("NOTIFY_ALL", $obj_focus->str);

}
function do_for_med_scorefile(& $xtpl, $obj_focus, $current_user, $templat_name)
{

$xtpl->assign("NOTIFY_ALL", $obj_focus->str);

}
///////////////////// *********end new code**********************////////////

4. custom\application\Ext\Include\modules.ext (some changes)

/////// ************* new code to add ********** ///////////////


$beanList['med_Candidate'] = 'med_Candidate';
$beanFiles['med_Candidate'] = 'modules/med_Candidate/med_Candidate.php';
$moduleList[] = 'med_Candidate';
$beanList['med_job'] = 'med_job';
$beanFiles['med_job'] = 'modules/med_job/med_job.php';
$moduleList[] = 'med_job';

$beanList['med_Leave_Management'] = 'med_Leave_Management';
$beanFiles['med_Leave_Management'] =
'modules/med_Leave_Management/med_Leave_Management.php';
$moduleList[] = 'med_Leave_Management';
$beanList['med_MultiDocument'] = 'med_MultiDocument';
$beanFiles['med_MultiDocument'] = 'modules/med_MultiDocument/med_MultiDocument.php';
$moduleList[] = 'med_MultiDocument';
$beanList['med_MultiDocument_Documents'] = 'med_MultiDocument_Documents';
$beanFiles['med_MultiDocument_Documents'] =
'modules/med_MultiDocument_Documents/med_MultiDocument_Documents.php';
$modules_exempt_from_availability_check['med_MultiDocument_Documents'] =
'med_MultiDocument_Documents';
$modInvisList[] = 'med_MultiDocument_Documents';
$beanList['medi_TimeProductivitySchedule'] = 'medi_TimeProductivitySchedule';
$beanFiles['medi_TimeProductivitySchedule'] =
'modules/medi_TimeProductivitySchedule/medi_TimeProductivitySchedule.php';
$modules_exempt_from_availability_check['medi_TimeProductivitySchedule'] =
'medi_TimeProductivitySchedule';
$modInvisList[] = 'medi_TimeProductivitySchedule';
$beanList['med_ScoreFile'] = 'med_ScoreFile';
$beanFiles['med_ScoreFile'] = 'modules/med_ScoreFile/med_ScoreFile.php';
$moduleList[] = 'med_ScoreFile';
$beanList['tpr_TimeProductivity'] = 'tpr_TimeProductivity';
$beanFiles['tpr_TimeProductivity'] = 'modules/tpr_TimeProductivity/tpr_TimeProductivity.php';
$moduleList[] = 'tpr_TimeProductivity';
$beanList['med_VoiceFileTest'] = 'med_VoiceFileTest';
$beanFiles['med_VoiceFileTest'] = 'modules/med_VoiceFileTest/med_VoiceFileTest.php';
$moduleList[] = 'med_VoiceFileTest';

5. custom\application\Ext\TableDictionary\tabledictionary.ext
*** all new custom\metadata files should include here
6. new entries in custom/modules/charts/chartdefs.ext

//************ start new code ***********************//

$chartDefs['MTAvailibilityDashlet'] = array( 'type' => 'code',


'id' => 'MTAvailibilityDashlet',
'label' => 'MT Available for work for the day/time period',
'chartUnits' => 'Employees',
'chartType' => 'horizontal group by chart',
'groupBy' => array( 'user_name', 'work_group' ),
'base_url'=>
array( 'module' => 'Employees',
'action' => 'index',
'query' => 'true',
'searchFormTab' => 'advanced_search',
),
'url_params' => array( 'user_name', 'date_start_advanced' ),

);
$chartDefs['MTCapacityDashlet'] = array( 'type' => 'code',
'id' => 'MTCapacityDashlet',
'label' => 'MT Available for work for the day/time period',
'chartUnits' => 'Employees',
'chartType' => 'horizontal group by chart',
'groupBy' => array( 'user_name', 'total' ),
'base_url'=>
array( 'module' => 'Employees',
'action' => 'index',
'query' => 'true',
'searchFormTab' => 'advanced_search',
),
'url_params' => array( 'user_name', 'total' ),

);
//// ******** end new code *************************////////

------------------------------ SECTOIN V (Custom changes in core module)--------------------------------


Extension\modules\Employees (new)

---------------- SCTION VI (creation new folder at root )----------------------------------------------------


1. resume (new)

------------------- Files under custom\Extension\application\Ext\TableDictionary ---------------

1. All files names starting with custommed_candidate.


2. All files names starting with custommed_job.
3. custommed_multidocument_med_multidocument_documents.php.
4. customemployee_medi_timeproductivityschedule.php
5. TimeProductivity.php

------------ --------files under custom\Extension\application\Ext\Include


1. Announcement.php
2. candidate_agreement.php
3. Employee.php
4. Leave_Management.php
5. MultiDocument.php
6. MultiDocument_Documents.php
7. ProductivitySchedule.php
8. ScoreFile.php
9. TimeProductivity.php
10. VoiceTest.php

------------ --------files under custom\Extension\application\Ext\Language


1 . All en_us_new module files in this folder.

------------ --------files under custom\metadata -----------------------------


1. accounts_employeesMetaData.php
2. all files starting name with med_candidate
3. all files starting with name med_job
4. med_multidocument_med_multidocument_documentsMetaData.php
5. med_multidocument_med_multidocumentMetaData.php
6. tpr_timeproductivity_medi_timeproductivityscheduleMetaData.php
7. employee_medi_timeproductivityscheduleMetaData.php

--------------------- SECTION FOR PUBLIC SITE FILES -------------


ALL FILES IN THIS FOLDER ARE NEW SO CAN BE SUBMITTED AS IT IS.

--------------------------------- Section for Database changes----------------------------------------------------------


********* New tables
 alert_announcement
 alert_announcement_audit
 alert_announcement_cstm
 medi_timeproductivityschedule
 medi_timeproductivityschedule_audit
 med_candidate
 med_candidate_agreement
 med_candidate_agreement_audit
 med_candidate_audit
 med_candidate_cstm
 med_candidate_med_candidate_agreement
 med_candidate_med_knowledgebase
 med_candidate_med_voicefiletest
 med_job
 med_job_audit
 med_job_cstm
 med_job_med_candidate
 med_leave_management
 med_leave_management_audit
 med_multidocument
 med_multidocument_audit
 med_multidocument_documents
 med_multidocument_documents_audit
 med_multidont_documents_c
 med_scorefile
 med_scorefile_audit
 med_scorefile_cstm
 med_voicefiletest
 med_voicefiletest_audit
 tpr_timeproductivity
 tpr_timeproductivity_audit
 tpr_timeprovityschedule_c

New entries in fields_meta_data table


//**************** start new entries **************************//
INSERT INTO `fields_meta_data` VALUES ('med_ScoreFilemed_voicefiletest_id_c',
'med_voicefiletest_id_c', 'LBL_LIST_RELATED_TO', NULL, NULL, 'med_ScoreFile', 'id', 36,
0, NULL, '2010-01-22 13:00:25', 0, 0, 0, 0, 0, 'true', NULL, NULL, NULL, NULL);
INSERT INTO `fields_meta_data` VALUES ('med_ScoreFileaudio_file_c', 'audio_file_c',
'LBL_AUDIO_FILE', NULL, NULL, 'med_ScoreFile', 'relate', 255, 0, NULL, '2010-01-22
13:00:25', 0, 1, 0, 1, 0, 'true', NULL, 'med_VoiceFileTest', 'med_voicefiletest_id_c', NULL);
INSERT INTO `fields_meta_data` VALUES ('med_ScoreFilemed_candidate_id_c',
'med_candidate_id_c', 'LBL_LIST_RELATED_TO', NULL, NULL, 'med_ScoreFile', 'id', 36, 0,
NULL, '2010-01-22 13:09:21', 0, 0, 0, 0, 1, 'true', NULL, 'med_Candidate', NULL, NULL);
INSERT INTO `fields_meta_data` VALUES ('med_Candidatemed_candidate_agreement_id_c',
'med_candidate_agreement_id_c', 'LBL_LIST_RELATED_TO', NULL, NULL,
'med_Candidate', 'id', 36, 0, NULL, '2010-01-22 11:56:54', 0, 0, 0, 0, 0, 'true', NULL, NULL,
NULL, NULL);
INSERT INTO `fields_meta_data` VALUES ('med_Candidateagreement_id_c',
'agreement_id_c', 'LBL_AGREEMENT_ID', NULL, NULL, 'med_Candidate', 'relate', 255, 0,
NULL, '2010-01-22 11:56:54', 0, 1, 0, 1, 0, 'true', NULL, 'med_candidate_agreement',
'med_candidate_agreement_id_c', NULL);
INSERT INTO `fields_meta_data` VALUES ('med_ScoreFilecandidate_c', 'candidate_c',
'LBL_CANDIDATE', NULL, NULL, 'med_ScoreFile', 'relate', 255, 1, NULL, '2010-01-22
13:32:35', 0, 1, 0, 1, 0, 'true', NULL, 'med_Candidate', 'med_candidate_id_c', NULL);
INSERT INTO `fields_meta_data` VALUES ('med_ScoreFiletitle_c', 'title_c', 'LBL_TITLE',
NULL, NULL, 'med_ScoreFile', 'varchar', 25, 0, NULL, '2010-01-22 14:51:18', 0, 1, 1, 1, 0,
'true', NULL, NULL, NULL, NULL);

INSERT INTO `fields_meta_data` VALUES ('med_jobjob_no_c', 'job_no_c', 'LBL_JOB_NO',


NULL, NULL, 'med_job', 'varchar', 25, 0, NULL, '2010-03-04 10:16:59', 0, 1, 0, 1, 0, 'true',
NULL, NULL, NULL, NULL);
INSERT INTO `fields_meta_data` VALUES ('Alert_Announcementmedi_teams_id_c',
'medi_teams_id_c', 'LBL_LIST_RELATED_TO', NULL, NULL, 'Alert_Announcement', 'id', 36,
0, NULL, '2010-03-31 09:08:48', 0, 0, 0, 0, 0, 'true', NULL, NULL, NULL, NULL);
INSERT INTO `fields_meta_data` VALUES ('Alert_Announcementteam_c', 'team_c',
'LBL_TEAM', NULL, 'This announcemnt wud assigned to team', 'Alert_Announcement', 'relate',
255, 1, NULL, '2010-03-31 09:08:48', 0, 1, 0, 1, 0, 'true', NULL, 'medi_Teams',
'medi_teams_id_c', NULL);
INSERT INTO `fields_meta_data` VALUES ('med_Candidatenote_id_c', 'note_id_c',
'LBL_LIST_RELATED_TO', NULL, NULL, 'med_Candidate', 'id', 36, 0, NULL, '2010-06-03
12:58:37', 0, 0, 0, 0, 0, 'true', NULL, NULL, NULL, NULL);
INSERT INTO `fields_meta_data` VALUES ('med_Candidatexy_c', 'xy_c', 'LBL_XY', NULL,
NULL, 'med_Candidate', 'relate', 255, 0, NULL, '2010-06-03 12:58:37', 0, 0, 0, 0, 0, 'true',
NULL, 'Users', 'note_id_c', NULL);

//**************** end new entries **************************//

Anda mungkin juga menyukai