hi guys
I have an applicaation in which govt sector dept user sent file
to another user...
eg. home dept user sent 1 file to defence dept user.
and there is facility that defence user will receive that file by
going to particular page..
if user didnt receive file sent by other user than that will be called as pending file.i have to display that list of pending file of each user .
i have 1 query which is displaying list of pending file of a user on page load:
ssql = "select '<a href=""file/filetrack.aspx?fname='||chg_filename||'&'||'fdept='||filemaster.department_code||
'&'||'fsection='||filemaster.section_code||'&'||'fyear='||filemaster.file_year||'&'||'fserial='||filemaster.file_serial_no||'"">'||chg_filename||'</a>'
as ""File Name"",file_subject as ""Subject"",office_name as ""Office Name"", diary_no as ""Diary No"",
despatch_date_time as ""Dispatch Date"" from filetrans,filemaster,offices
where filemaster.department_code = file_department And filemaster.section_code = file_section
And file_serial_no = file_serial and filemaster.file_year=filetrans.file_year
and offices.office_code=filetrans.office_code and next_office_code = '" &
office98 & "' and next_office_receipt_status = '" & "0" & "'
and file_letter <> '" & "L" & "' and rownum<21 order by filetrans.id desc"
where office98 = Session("office")
its output is same as mentioned below. now i have to display pendinglist of file of eachuser onbuttonclick .plz suggest how to modify this query
my query output should be:
Filename , subject, office name, Diaryno,diapatch date
structure of table are as follows:
FILEMASTER:
DEPARTMENT_CODE VARCHAR2(20 BYTE)
SECTION_CODE VARCHAR2(20 BYTE)
FILE_SERIAL_NO VARCHAR2(10 BYTE)
FILE_YEAR VARCHAR2(4 BYTE)
FILE_SUBJECT VARCHAR2(400 BYTE)
CREATION_DATE DATE
OTHER_DETAILS VARCHAR2(80 BYTE)
USER_CODE VARCHAR2(20 BYTE)
CHG_FILENAME VARCHAR2(200 BYTE)
ID NUMBER(11,0)
LEDIT VARCHAR2(100 BYTE)
2>FILETRANS
FILE_LETTER VARCHAR2(1 BYTE)
FILE_DEPARTMENT VARCHAR2(20 BYTE)
FILE_SECTION VARCHAR2(20 BYTE)
FILE_YEAR VARCHAR2(4 BYTE)
FILE_SERIAL VARCHAR2(10 BYTE)
LETTER_OFFICE_CODE VARCHAR2(20 BYTE)
LETTER_DIARY_NO VARCHAR2(50 BYTE)
PREV_OFFICE_CODE VARCHAR2(20 BYTE)
PREV_OFFICE_DIARY_NO VARCHAR2(50 BYTE)
DIARY_NO VARCHAR2(20 BYTE)
OFFICE_CODE VARCHAR2(20 BYTE)
RECEIPT_DATE DATE
RECEIPT_TIME DATE
RECEIPT_FLAG VARCHAR2(1 BYTE)
TRANSIT_FLAG VARCHAR2(1 BYTE)
NEXT_OFFICE_CODE VARCHAR2(20 BYTE)
DESP_DATE DATE
DESP_TIME DATE
DESP_FLAG VARCHAR2(1 BYTE)
NEXT_OFFICE_RECEIPT_STATUS VARCHAR2(1 BYTE)
RECEIPT_DATE_TIME DATE
DESPATCH_DATE_TIME DATE
IS_NEW VARCHAR2(1 BYTE)
AD_FILE_CODE VARCHAR2(1 BYTE)
NS_FILE_CODE VARCHAR2(40 BYTE)
DELETED_REC VARCHAR2(1 BYTE)
R_USER_CODE VARCHAR2(20 BYTE)
ID NUMBER(11,0)
LEDIT VARCHAR2(100 BYTE)
REMARKS VARCHAR2(255 BYTE)
LETTER_FILEID NUMBER(10,0)
PUTUP_DATE DATE
FILEID NUMBER(10,0)
COM VARCHAR2(500 BYTE)
3>OFFICES
OFFICE_CODE VARCHAR2(20 BYTE)
OFFICE_NAME VARCHAR2(70 BYTE)
CURRENT_DIARY_NO VARCHAR2(50 BYTE)
FIRST_OFFICE VARCHAR2(20 BYTE)
SECOND_OFFICE VARCHAR2(20 BYTE)
THIRD_OFFICE VARCHAR2(20 BYTE)
FOURTH_OFFICE VARCHAR2(20 BYTE)
FIFTH_OFFICE VARCHAR2(20 BYTE)
SIXTH_OFFICE VARCHAR2(20 BYTE)
SEVENTH_OFFICE VARCHAR2(20 BYTE)
EIGHTH_OFFICE VARCHAR2(20 BYTE)
NINE_OFFICE VARCHAR2(20 BYTE)
TENTH_OFFICE VARCHAR2(20 BYTE)
IS_SECTION VARCHAR2(1 BYTE)
SECTION_CODE VARCHAR2(20 BYTE)
DEPARTMENT_CODE VARCHAR2(20 BYTE)
OFFICE_LEVEL VARCHAR2(50 BYTE)
TRANSACTIONS VARCHAR2(10 BYTE)
LETTER_CURRENT_DIARY_NO VARCHAR2(10 BYTE)
ID NUMBER(11,0)
LEDIT VARCHAR2(100 BYTE)
kindly suggest query
I have an applicaation in which govt sector dept user sent file
to another user...
eg. home dept user sent 1 file to defence dept user.
and there is facility that defence user will receive that file by
going to particular page..
if user didnt receive file sent by other user than that will be called as pending file.i have to display that list of pending file of each user .
i have 1 query which is displaying list of pending file of a user on page load:
ssql = "select '<a href=""file/filetrack.aspx?fname='||chg_filename||'&'||'fdept='||filemaster.department_code||
'&'||'fsection='||filemaster.section_code||'&'||'fyear='||filemaster.file_year||'&'||'fserial='||filemaster.file_serial_no||'"">'||chg_filename||'</a>'
as ""File Name"",file_subject as ""Subject"",office_name as ""Office Name"", diary_no as ""Diary No"",
despatch_date_time as ""Dispatch Date"" from filetrans,filemaster,offices
where filemaster.department_code = file_department And filemaster.section_code = file_section
And file_serial_no = file_serial and filemaster.file_year=filetrans.file_year
and offices.office_code=filetrans.office_code and next_office_code = '" &
office98 & "' and next_office_receipt_status = '" & "0" & "'
and file_letter <> '" & "L" & "' and rownum<21 order by filetrans.id desc"
where office98 = Session("office")
its output is same as mentioned below. now i have to display pendinglist of file of eachuser onbuttonclick .plz suggest how to modify this query
my query output should be:
Filename , subject, office name, Diaryno,diapatch date
structure of table are as follows:
FILEMASTER:
DEPARTMENT_CODE VARCHAR2(20 BYTE)
SECTION_CODE VARCHAR2(20 BYTE)
FILE_SERIAL_NO VARCHAR2(10 BYTE)
FILE_YEAR VARCHAR2(4 BYTE)
FILE_SUBJECT VARCHAR2(400 BYTE)
CREATION_DATE DATE
OTHER_DETAILS VARCHAR2(80 BYTE)
USER_CODE VARCHAR2(20 BYTE)
CHG_FILENAME VARCHAR2(200 BYTE)
ID NUMBER(11,0)
LEDIT VARCHAR2(100 BYTE)
2>FILETRANS
FILE_LETTER VARCHAR2(1 BYTE)
FILE_DEPARTMENT VARCHAR2(20 BYTE)
FILE_SECTION VARCHAR2(20 BYTE)
FILE_YEAR VARCHAR2(4 BYTE)
FILE_SERIAL VARCHAR2(10 BYTE)
LETTER_OFFICE_CODE VARCHAR2(20 BYTE)
LETTER_DIARY_NO VARCHAR2(50 BYTE)
PREV_OFFICE_CODE VARCHAR2(20 BYTE)
PREV_OFFICE_DIARY_NO VARCHAR2(50 BYTE)
DIARY_NO VARCHAR2(20 BYTE)
OFFICE_CODE VARCHAR2(20 BYTE)
RECEIPT_DATE DATE
RECEIPT_TIME DATE
RECEIPT_FLAG VARCHAR2(1 BYTE)
TRANSIT_FLAG VARCHAR2(1 BYTE)
NEXT_OFFICE_CODE VARCHAR2(20 BYTE)
DESP_DATE DATE
DESP_TIME DATE
DESP_FLAG VARCHAR2(1 BYTE)
NEXT_OFFICE_RECEIPT_STATUS VARCHAR2(1 BYTE)
RECEIPT_DATE_TIME DATE
DESPATCH_DATE_TIME DATE
IS_NEW VARCHAR2(1 BYTE)
AD_FILE_CODE VARCHAR2(1 BYTE)
NS_FILE_CODE VARCHAR2(40 BYTE)
DELETED_REC VARCHAR2(1 BYTE)
R_USER_CODE VARCHAR2(20 BYTE)
ID NUMBER(11,0)
LEDIT VARCHAR2(100 BYTE)
REMARKS VARCHAR2(255 BYTE)
LETTER_FILEID NUMBER(10,0)
PUTUP_DATE DATE
FILEID NUMBER(10,0)
COM VARCHAR2(500 BYTE)
3>OFFICES
OFFICE_CODE VARCHAR2(20 BYTE)
OFFICE_NAME VARCHAR2(70 BYTE)
CURRENT_DIARY_NO VARCHAR2(50 BYTE)
FIRST_OFFICE VARCHAR2(20 BYTE)
SECOND_OFFICE VARCHAR2(20 BYTE)
THIRD_OFFICE VARCHAR2(20 BYTE)
FOURTH_OFFICE VARCHAR2(20 BYTE)
FIFTH_OFFICE VARCHAR2(20 BYTE)
SIXTH_OFFICE VARCHAR2(20 BYTE)
SEVENTH_OFFICE VARCHAR2(20 BYTE)
EIGHTH_OFFICE VARCHAR2(20 BYTE)
NINE_OFFICE VARCHAR2(20 BYTE)
TENTH_OFFICE VARCHAR2(20 BYTE)
IS_SECTION VARCHAR2(1 BYTE)
SECTION_CODE VARCHAR2(20 BYTE)
DEPARTMENT_CODE VARCHAR2(20 BYTE)
OFFICE_LEVEL VARCHAR2(50 BYTE)
TRANSACTIONS VARCHAR2(10 BYTE)
LETTER_CURRENT_DIARY_NO VARCHAR2(10 BYTE)
ID NUMBER(11,0)
LEDIT VARCHAR2(100 BYTE)
kindly suggest query