or
<script type=
'text/javascript'
>
var
run =
false
;
function
ClearOtherField(fieldname) {
var
grid = $find(
"<%=RadGrid2.ClientID %>"
);
if
(run ==
false
) {
run =
true
;
if
(grid) {
var
MasterTable = grid.get_masterTableView();
var
Rows = MasterTable.get_dataItems();
for
(
var
i = 0; i < Rows.length; i++) {
var
row = Rows[i];
var
PercentageRadNumericTextBox = row.findControl(fieldname);
PercentageRadNumericTextBox.set_value(
""
);
}
}
run =
false
;
}
}
function
AmountRadNumericTextBox_OnValueChanging() {
ClearOtherField(
"PercentageRadNumericTextBox"
);
}
function
PercentageRadNumericTextBox_OnValueChanging() {
ClearOtherField(
"AmountRadNumericTextBox"
);
}
</script>
this._RadGrid1.ID = "RadGrid1";
this._RadGrid1.AllowAutomaticDeletes = false;
this._RadGrid1.AllowAutomaticInserts = false;
this._RadGrid1.AllowAutomaticUpdates = false;
this._RadGrid1.AllowMultiRowSelection = true;
this._RadGrid1.MasterTableView.NoMasterRecordsText = "No BAN Assignments found";
//Adding Columns//
GridEditCommandColumn gridEditCommandColumn = new GridEditCommandColumn();
gridEditCommandColumn.UniqueName = "GridEditCommandColumn";
this._RadGrid1.MasterTableView.Columns.Add(gridEditCommandColumn);
this._RadGrid1.MasterTableView.EditMode = GridEditMode.InPlace;
this._RadGrid1.MasterTableView.DataKeyNames = new string[] { tis._PriceDealProductBanTable.PriceDealEntityProductItemIdColumn.ColumnName };
this._RadGrid1.MasterTableView.ClientDataKeyNames = new string[] { this._PriceDealProductBanTable.PriceDealEntityProductItemIdColumn.ColumnName };
this._RadGrid1.UpdateCommand += RadGrid1_UpdateCommand;
this._RadGrid1.NeedDataSource += RadGrid1_NeedDataSource;
protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e)
{
var xmlBuilder = new System.Text.StringBuilder();
}
<
telerik:RadTabStrip
runat
=
"server"
ID
=
"RadStripGeneralInfo"
MultiPageID
=
"innerMultiPage1"
Orientation
=
"VerticalLeft"
CssClass
=
"innertabStripGeneralInfo"
Width
=
"20%"
EnableEmbeddedSkins
=
"false"
Skin
=
"Vista"
SelectedIndex
=
"0"
OnClientTabSelected
=
"GetCurrentInnerTab1"
>
<
Tabs
>
<
telerik:RadTab
Text
=
"General Information"
Value
=
"0"
/>
<
telerik:RadTab
Text
=
"Documents"
Value
=
"1"
/>
<
telerik:RadTab
Text
=
"Escorts"
Value
=
"2"
/>
<
telerik:RadTab
Text
=
"Personal Custodies"
Value
=
"3"
/>
<
telerik:RadTab
Text
=
"Annual Evaluation"
Value
=
"4"
/>
<
telerik:RadTab
Text
=
"Takedown"
Value
=
"5"
/>
<
telerik:RadTab
Text
=
"Reports"
Value
=
"6"
/>
</
Tabs
>
</
telerik:RadTabStrip
>
<
telerik:RadMultiPage
runat
=
"server"
ID
=
"innerMultiPage1"
SelectedIndex
=
"0"
Width
=
"79%"
CssClass
=
"innerMultiPage"
>
<
telerik:RadPageView
runat
=
"server"
ID
=
"innerPageView1"
>
<
legend
style
=
"font-family: 'Lucida Sans Unicode'; text-align: center; width: 100%; font-size: 18px;"
>General Information</
legend
>
<
asp:Label
ID
=
"employeeID"
runat
=
"server"
Text='<%# Eval("ID") %>' Visible="false" />
<
div
class
=
"modalpopup_div_no"
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeName"
AssociatedControlID
=
"txt_EmployeeName"
runat
=
"server"
Text
=
"Employee Name:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeName"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeName") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeNumber"
AssociatedControlID
=
"txt_EmployeeNumber"
runat
=
"server"
Text
=
"Employee Number:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeNumber"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeNumber") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeGSM"
AssociatedControlID
=
"txt_EmployeeGSM"
runat
=
"server"
Text
=
"Employee GSM:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeGSM"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeGSM") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeEmail"
AssociatedControlID
=
"txt_EmployeeEmail"
runat
=
"server"
Text
=
"Email:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeEmail"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeEmail") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_Department"
AssociatedControlID
=
"txt_department"
runat
=
"server"
Text
=
"Department:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_department"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("DepartmentName")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeDateOfHiring"
AssociatedControlID
=
"txt_EmployeeDateOfHiring"
runat
=
"server"
Text
=
"Date Of Hiring:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeDateOfHiring"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeDateOfHiring", "{0:dd/MM/yyyy}")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeReligion"
AssociatedControlID
=
"txt_EmployeeReligion"
runat
=
"server"
Text
=
"Religion :"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeReligion"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeReligion")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeDoesHaveCompanions"
AssociatedControlID
=
"txt_EmployeeDoesHaveCompanions"
runat
=
"server"
Text
=
"Does Have Companions:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeDoesHaveCompanions"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeDoseHaveCompanions") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeDoesHaveHealthInsurance"
AssociatedControlID
=
"txt_EmployeeDoesHaveHealthInsurance"
runat
=
"server"
Text
=
"Does Have Health Insurance:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeDoesHaveHealthInsurance"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeDoseHaveHealthInsurance") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeTypeOfHealthInsurance"
AssociatedControlID
=
"txt_EmployeeTypeOfHealthInsurance"
runat
=
"server"
Text
=
"Type Of Health Insurance :"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeTypeOfHealthInsurance"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeTypeOfHealthInsurance") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_div_no"
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeRelativeGSM"
AssociatedControlID
=
"txt_EmployeeRelativeGSM"
runat
=
"server"
Text
=
"Relative GSM:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeRelativeGSM"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeRelativesGSM") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeAddress"
AssociatedControlID
=
"txt_EmployeeAddress"
runat
=
"server"
Text
=
"Address:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeAddress"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeAdderess")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_JobTitle"
AssociatedControlID
=
"txt_JobTitle"
runat
=
"server"
Text
=
"Job Title:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_JobTitle"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("JobTitleName") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeNationality"
AssociatedControlID
=
"txt_EmployeeNationality"
runat
=
"server"
Text
=
"Nationality:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeNationality"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("NationalityName") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeQualification"
AssociatedControlID
=
"txt_EmployeeQualification"
runat
=
"server"
Text
=
"Qualification:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeQualification"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("QualificationName") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeGender"
AssociatedControlID
=
"txt_EmployeeGender"
runat
=
"server"
Text
=
"Gender:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeGender"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeGender")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeDateOfBirth"
AssociatedControlID
=
"txt_EmployeeDateOfBirth"
runat
=
"server"
Text
=
"Date Of Birth:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeDateOfBirth"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeDateOfBirth", "{0:dd/MM/yyyy}") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeMaritalStatus"
AssociatedControlID
=
"txt_EmployeeMaritalStatus"
runat
=
"server"
Text
=
"Martial Status:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeMaritalStatus"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeMaritalStatus") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeMemo"
AssociatedControlID
=
"txt_EmployeeMemo"
runat
=
"server"
Text
=
"Memo :"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeMemo"
runat
=
"server"
ReadOnly
=
"true"
Height
=
"62px"
TextMode
=
"MultiLine"
Width
=
"95%"
Text='<%# Bind("EmployeeMemo") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
legend
style
=
"font-family: 'Lucida Sans Unicode'; text-align: center; width: 100%; font-size: 18px;"
>At Ministry Of Manpower</
legend
>
<
div
class
=
"modalpopup_div_no"
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_OfficialNumberOfTheCompanyAtTheMinistryOfManpower"
runat
=
"server"
AssociatedControlID
=
"txt_OfficialNumberOfTheCompanyAtTheMinistryOfManpower"
Text
=
"Official No Of Company :"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_OfficialNumberOfTheCompanyAtTheMinistryOfManpower"
runat
=
"server"
ReadOnly
=
"true"
InvalidStyleDuration
=
"100"
Width
=
"95%"
Text='<%#Bind("OfficialNumberOfTheCompanyAtTheMinistryOfManpower")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_OfficialNameOfTheCompanyAtTheMinistryOfManpower"
runat
=
"server"
AssociatedControlID
=
"txt_OfficialNameOfTheCompanyAtTheMinistryOfManpower"
Text
=
"Official Name Of Company :"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_OfficialNameOfTheCompanyAtTheMinistryOfManpower"
runat
=
"server"
ReadOnly
=
"true"
InvalidStyleDuration
=
"100"
Width
=
"95%"
Text='<%#Bind("OfficialNameOfTheCompanyAtTheMinistryOfManpower")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_div_no"
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeOfficialJobTitleAtTheMinistryOfManpower"
AssociatedControlID
=
"txt_EmployeeOfficialJobTitleAtTheMinistryOfManpower"
runat
=
"server"
Text
=
"Official Job Title Of Company :"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeOfficialJobTitleAtTheMinistryOfManpower"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeOfficialJobTitleAtTheMinistryOfManpower") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeRecordNumberOfManpowerForOmanis"
AssociatedControlID
=
"txt_EmployeeRecordNumberOfManpowerForOmanis"
runat
=
"server"
Text
=
"Record No Of Omani :"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeRecordNumberOfManpowerForOmanis"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeRecordNumberOfManpowerForOmanis") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 20%;"
>
<
asp:Label
ID
=
"label_CommercialActivity"
AssociatedControlID
=
"txt_commercialActivity"
runat
=
"server"
Text
=
"Commercail Activity:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 80%;"
>
<
telerik:RadTextBox
ID
=
"txt_commercialActivity"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("CommercialActivityEnglishName")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
</
telerik:RadPageView
>
<
telerik:RadPageView
runat
=
"server"
ID
=
"innerPageView2"
>
<
legend
style
=
"font-family: 'Lucida Sans Unicode'; text-align: center; width: 100%; font-size: 18px;"
>Document's</
legend
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"modalpopup_div_onethird"
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeePassportNumber"
AssociatedControlID
=
"txt_EmployeePassportNumber"
runat
=
"server"
Text
=
"Passport Number :"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeePassportNumber"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeePassportNumber") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_div_onethird"
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeePassportReleaseDate"
AssociatedControlID
=
"txt_EmployeePassportReleaseDate"
runat
=
"server"
Text
=
"Release Date:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeePassportReleaseDate"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeePassportReleaseDate", "{0:dd/MM/yyyy}")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_div_onethird"
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeePassportCompletionDate"
AssociatedControlID
=
"txt_EmployeePassportCompletionDate"
runat
=
"server"
Text
=
"Expiry Date:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeePassportCompletionDate"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeePassportCompletionDate", "{0:dd/MM/yyyy}")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"modalpopup_div_onethird"
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeIdentificationCardNumber"
AssociatedControlID
=
"txt_EmployeeIdentificationCardNumber"
runat
=
"server"
Text
=
"ID Number :"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeIdentificationCardNumber"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeIdentificationCardNumber") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_div_onethird"
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeIdentificationCardReleaseDate"
AssociatedControlID
=
"txt_EmployeeIdentificationCardReleaseDate"
runat
=
"server"
Text
=
"Release Date:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeIdentificationCardReleaseDate"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeIdentificationCardReleaseDate", "{0:dd/MM/yyyy}")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_div_onethird"
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeIdentificationCardCompletionDate"
AssociatedControlID
=
"txt_EmployeeIdentificationCardCompletionDate"
runat
=
"server"
Text
=
"Expiry Date:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeIdentificationCardCompletionDate"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeIdentificationCardCompletionDate", "{0:dd/MM/yyyy}")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"modalpopup_div_onethird"
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeVisaNumber"
AssociatedControlID
=
"txt_EmployeeVisaNumber"
runat
=
"server"
Text
=
"Visa Number :"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeVisaNumber"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeVisaNumber") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_div_onethird"
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeVisaReleaseDate"
AssociatedControlID
=
"txt_EmployeeVisaReleaseDate"
runat
=
"server"
Text
=
"Release Date :"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeVisaReleaseDate"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeVisaReleaseDate", "{0:dd/MM/yyyy}")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_div_onethird"
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeVisaCompletionDate"
AssociatedControlID
=
"txt_EmployeeVisaCompletionDate"
runat
=
"server"
Text
=
"Expiry Date :"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeVisaCompletionDate"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeVisaCompletionDate", "{0:dd/MM/yyyy}")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"modalpopup_div_onethird"
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeContractNumber"
AssociatedControlID
=
"txt_EmployeeContractNumber"
runat
=
"server"
Text
=
"Contract No :"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeContractNumber"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeContractNumber") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3400"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_div_onethird"
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeContractReleaseDate"
AssociatedControlID
=
"txt_EmployeeContractReleaseDate"
runat
=
"server"
Text
=
"Release Date :"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeContractReleaseDate"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeContractReleaseDate", "{0:dd/MM/yyyy}")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_div_onethird"
>
<
div
class
=
"modalpopup_masterdiv_no"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 40%;"
>
<
asp:Label
ID
=
"label_EmployeeContractCompletionDate"
AssociatedControlID
=
"txt_EmployeeContractCompletionDate"
runat
=
"server"
Text
=
"Expiry Date:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeContractCompletionDate"
runat
=
"server"
ReadOnly
=
"true"
Width
=
"95%"
Text='<%# Bind("EmployeeContractCompletionDate", "{0:dd/MM/yyyy}") %>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"modalpopup_masterdiv"
>
<
telerik:RadGrid
ID
=
"RadGrid_EmployeeAttachment"
runat
=
"server"
AllowAutomaticDeletes
=
"True"
AllowAutomaticInserts
=
"True"
AllowFilteringByColumn
=
"True"
AllowSorting
=
"True"
AutoGenerateColumns
=
"False"
CellSpacing
=
"0"
DataSourceID
=
"SqlDataSource_EmployeeAttachment"
GridLines
=
"None"
EnableEmbeddedSkins
=
"False"
PageSize
=
"5"
ShowStatusBar
=
"True"
AllowPaging
=
"True"
OnItemDataBound
=
"RadGrid_EmployeeAttachment_ItemDataBound"
Skin
=
"Metro"
>
<
MasterTableView
DataKeyNames
=
"ID"
DataSourceID
=
"SqlDataSource_EmployeeAttachment"
AutoGenerateColumns
=
"false"
PageSize
=
"5"
CommandItemDisplay
=
"None"
>
<
RowIndicatorColumn
Visible
=
"True"
FilterControlAltText
=
"Filter RowIndicator column"
>
<
HeaderStyle
Width
=
"20px"
/>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
Visible
=
"True"
FilterControlAltText
=
"Filter ExpandColumn column"
>
<
HeaderStyle
Width
=
"20px"
/>
</
ExpandCollapseColumn
>
<
NoRecordsTemplate
>
<
asp:Label
ID
=
"NoDataMessageLabel"
runat
=
"server"
Text
=
"No Record To Display."
/>
</
NoRecordsTemplate
>
<
Columns
>
<
telerik:GridTemplateColumn
HeaderText
=
"No."
AllowFiltering
=
"false"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"IDLabel"
runat
=
"server"
Text
=
""
/>
</
ItemTemplate
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"40px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"40px"
/>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
Visible
=
"false"
DataField
=
"ID"
DataType
=
"System.Int64"
FilterControlAltText
=
"Filter ID column"
HeaderText
=
"ID"
ReadOnly
=
"true"
SortExpression
=
"ID"
UniqueName
=
"ID"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"AttachmentName"
FilterControlWidth
=
"100%"
FilterControlAltText
=
"Filter AttachmentName column"
HeaderText
=
"AttachmentName"
SortExpression
=
"AttachmentName"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
UniqueName
=
"AttachmentName"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
Visible
=
"false"
DataField
=
"AttachmentPath"
DataType
=
"System.Int64"
FilterControlAltText
=
"Filter AttachmentPath column"
HeaderText
=
"AttachmentPath"
ReadOnly
=
"true"
SortExpression
=
"AttachmentPath"
UniqueName
=
"AttachmentPath"
>
</
telerik:GridBoundColumn
>
<
telerik:GridHyperLinkColumn
AllowFiltering
=
"false"
DataNavigateUrlFields
=
"AttachmentPath"
Target
=
"_blank"
DataNavigateUrlFormatString
=
"{0}"
HeaderText
=
"View Attachment"
Text
=
"View"
ImageUrl
=
"~/Design/MeStyle/Grid/view-detail-icon.png"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"60px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"60px"
/>
</
telerik:GridHyperLinkColumn
>
</
Columns
>
<
EditFormSettings
EditFormType
=
"Template"
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
/>
<
FormTemplate
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%; padding-top: 10px;"
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_AttachmentName"
AssociatedControlID
=
"txt_AttachmentName"
runat
=
"server"
Text
=
"Attachment Name:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_AttachmentName"
runat
=
"server"
InvalidStyleDuration
=
"100"
SelectionOnFocus
=
"SelectAll"
Width
=
"95%"
Text='<%#Bind("AttachmentName")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
<
asp:RequiredFieldValidator
ID
=
"AttachmentNameRequired"
runat
=
"server"
ControlToValidate
=
"txt_AttachmentName"
ErrorMessage
=
"*"
ForeColor
=
"Red"
/>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%; padding-top: 10px;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_AttachmentPath"
AssociatedControlID
=
"RPAttachmentPath"
runat
=
"server"
Text
=
"Attachment Path:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadAsyncUpload
ID
=
"RPAttachmentPath"
runat
=
"server"
AllowedFileExtensions
=
"pdf"
MaxFileInputsCount
=
"1"
InputSize
=
"43"
PostbackTriggers
=
"button_Update_1"
EnableInlineProgress
=
"false"
>
<
Localization
Cancel
=
"Cancel"
Select
=
"Select"
Remove
=
"Remove"
/>
</
telerik:RadAsyncUpload
>
<
telerik:RadProgressArea
ID
=
"RadProgressArea1"
runat
=
"server"
/>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 100%; padding-left: 10px;"
>
<
telerik:RadButton
ID
=
"button_Update_1"
runat
=
"server"
Width
=
"100px"
Text='<%# IIf((TypeOf (Container) Is GridEditFormInsertItem), "Add", "Update")%>'
CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>' />
<
telerik:RadButton
ID
=
"button_Cancel"
Width
=
"100px"
Text
=
"Cancel"
runat
=
"server"
CausesValidation
=
"False"
CommandName
=
"Cancel"
/>
</
div
>
</
div
>
</
div
>
</
FormTemplate
>
</
EditFormSettings
>
</
MasterTableView
>
<
FilterMenu
EnableImageSprites
=
"False"
>
</
FilterMenu
>
<
HeaderContextMenu
EnableEmbeddedSkins
=
"False"
>
</
HeaderContextMenu
>
</
telerik:RadGrid
>
</
div
>
</
telerik:RadPageView
>
<
telerik:RadPageView
runat
=
"server"
ID
=
"innerPageView3"
>
<
legend
style
=
"font-family: 'Lucida Sans Unicode'; text-align: center; width: 100%; font-size: 18px;"
>Escort's</
legend
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
telerik:RadGrid
ID
=
"RadGrid_EmployeesEscorts"
runat
=
"server"
DataSourceID
=
"SqlDataSource_EmployeesEscorts"
Skin
=
"Metro"
OnInsertCommand
=
"RadGrid_EmployeesEscorts_InsertCommand"
OnItemDataBound
=
"RadGrid_EmployeesEscorts_ItemDataBound"
OnItemCommand
=
"RadGrid_EmployeesEscorts_ItemCommand"
OnEditCommand
=
"RadGrid_EmployeesEscorts_EditCommand"
OnUpdateCommand
=
"RadGrid_EmployeesEscorts_UpdateCommand"
AllowAutomaticInserts
=
"True"
AllowAutomaticUpdates
=
"True"
AllowPaging
=
"True"
AutoGenerateColumns
=
"False"
>
<
MasterTableView
DataKeyNames
=
"ID"
DataSourceID
=
"SqlDataSource_EmployeesEscorts"
PageSize
=
"5"
CommandItemDisplay
=
"Top"
>
<
CommandItemSettings
ExportToPdfText
=
"Export to PDF"
AddNewRecordText
=
"Add New Record"
RefreshText
=
"Refresh"
/>
<
RowIndicatorColumn
Visible
=
"True"
FilterControlAltText
=
"Filter RowIndicator column"
>
<
HeaderStyle
Width
=
"20px"
/>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
Visible
=
"True"
FilterControlAltText
=
"Filter ExpandColumn column"
>
<
HeaderStyle
Width
=
"20px"
/>
</
ExpandCollapseColumn
>
<
NoRecordsTemplate
>
<
asp:Label
ID
=
"NoDataMessageLabel"
runat
=
"server"
Text
=
"No Record To Display."
/>
</
NoRecordsTemplate
>
<
Columns
>
<
telerik:GridTemplateColumn
HeaderText
=
"No."
AllowFiltering
=
"false"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"IDLabel"
runat
=
"server"
Text
=
""
></
asp:Label
>
</
ItemTemplate
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"40px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"40px"
/>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
DataField
=
"ID"
Visible
=
"false"
ReadOnly
=
"true"
HeaderText
=
"ID"
SortExpression
=
"ID"
UniqueName
=
"ID"
DataType
=
"System.Int64"
FilterControlAltText
=
"Filter ID column"
/>
<
telerik:GridBoundColumn
DataField
=
"EmployeeID"
Visible
=
"false"
HeaderText
=
"EmployeeID"
SortExpression
=
"EmployeeID"
UniqueName
=
"EmployeeID"
DataType
=
"System.Int64"
FilterControlAltText
=
"Filter EmployeeID column"
/>
<
telerik:GridBoundColumn
DataField
=
"EscortName"
HeaderText
=
"EscortName"
SortExpression
=
"Name"
UniqueName
=
"EscortName"
FilterControlWidth
=
"100%"
FilterControlAltText
=
"Filter EscortName column"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"EscortRelationship"
HeaderText
=
"Relationship"
SortExpression
=
"EscortRelationship"
UniqueName
=
"EscortRelationship"
FilterControlWidth
=
"100%"
FilterControlAltText
=
"Filter EscortRelationship column"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"EscortVisaNumber"
HeaderText
=
"Visa Number"
SortExpression
=
"EscortVisaNumber"
UniqueName
=
"EscortVisaNumber"
FilterControlWidth
=
"100%"
FilterControlAltText
=
"Filter EscortVisaNumber column"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"EscortEntryDate"
DataFormatString
=
"{0:dd/MM/yyyy}"
DataType
=
"System.DateTime"
FilterControlWidth
=
"100%"
FilterControlAltText
=
"Filter EscortEntryDate column"
HeaderText
=
"Arrival Date"
SortExpression
=
"EscortEntryDate"
UniqueName
=
"EscortEntryDate"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"EscortPassportNumber"
FilterControlWidth
=
"100%"
FilterControlAltText
=
"Filter EscortPassportNumber column"
HeaderText
=
"Passport Number"
SortExpression
=
"EscortPassportNumber"
UniqueName
=
"EscortPassportNumber"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"EscortAttachmentName1"
Visible
=
"false"
FilterControlAltText
=
"Filter EscortAttachmentName1 column"
HeaderText
=
"EscortAttachmentName1"
SortExpression
=
"EscortAttachmentName1"
UniqueName
=
"EscortAttachmentName1"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"EscortAttachmentPath1"
Visible
=
"false"
FilterControlAltText
=
"Filter EscortAttachmentPath1 column"
HeaderText
=
"EscortAttachmentPath1"
SortExpression
=
"EscortAttachmentPath1"
UniqueName
=
"EscortAttachmentPath1"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"EscortAttachmentName2"
Visible
=
"false"
FilterControlAltText
=
"Filter EscortAttachmentName2 column"
HeaderText
=
"EscortAttachmentName2"
SortExpression
=
"EscortAttachmentName2"
UniqueName
=
"EscortAttachmentName2"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"EscortAttachmentPath2"
Visible
=
"false"
FilterControlAltText
=
"Filter EscortAttachmentPath2 column"
HeaderText
=
"EscortAttachmentPath2"
SortExpression
=
"EscortAttachmentPath2"
UniqueName
=
"EscortAttachmentPath2"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"EscortAttachmentName3"
Visible
=
"false"
FilterControlAltText
=
"Filter EscortAttachmentName3 column"
HeaderText
=
"EscortAttachmentName3"
SortExpression
=
"EscortAttachmentName3"
UniqueName
=
"EscortAttachmentName3"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"EscortAttachmentPath3"
Visible
=
"false"
FilterControlAltText
=
"Filter EscortAttachmentPath3 column"
HeaderText
=
"EscortAttachmentPath3"
SortExpression
=
"EscortAttachmentPath3"
UniqueName
=
"EscortAttachmentPath3"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"AddedBy"
FilterControlAltText
=
"Filter AddedBy column"
HeaderText
=
"Added By"
SortExpression
=
"AddedBy"
UniqueName
=
"AddedBy"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridEditCommandColumn
ButtonType
=
"ImageButton"
HeaderText
=
"Edit"
UniqueName
=
"EditCommand"
EditImageUrl
=
"~/Design/MeStyle/Grid/Edit.gif"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"40px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"40px"
/>
</
telerik:GridEditCommandColumn
>
</
Columns
>
<
EditFormSettings
EditFormType
=
"Template"
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
/>
<
FormTemplate
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_EscortName"
AssociatedControlID
=
"txt_EscortName"
runat
=
"server"
Text
=
"Escort Name:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EscortName"
runat
=
"server"
InvalidStyleDuration
=
"100"
SelectionOnFocus
=
"SelectAll"
Width
=
"95%"
Text='<%#Bind("EscortName")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
<
asp:RequiredFieldValidator
ID
=
"EscortNameRequired"
runat
=
"server"
ControlToValidate
=
"txt_EscortName"
ErrorMessage
=
"*"
ForeColor
=
"Red"
ValidationGroup
=
"CompanyGroup"
/>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_EscortRelationship"
AssociatedControlID
=
"txt_EscortRelationship"
runat
=
"server"
Text
=
"Relationship:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EscortRelationship"
runat
=
"server"
InvalidStyleDuration
=
"100"
SelectionOnFocus
=
"SelectAll"
Width
=
"95%"
Text='<%#Bind("EscortRelationship")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
<
asp:RequiredFieldValidator
ID
=
"EscortRelationshipRequired"
runat
=
"server"
ControlToValidate
=
"txt_EscortRelationship"
ErrorMessage
=
"*"
ForeColor
=
"Red"
ValidationGroup
=
"CompanyGroup"
/>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_EscortVisaNumber"
AssociatedControlID
=
"txt_EscortVisaNumber"
runat
=
"server"
Text
=
"Visa Number:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EscortVisaNumber"
runat
=
"server"
InvalidStyleDuration
=
"100"
SelectionOnFocus
=
"SelectAll"
Width
=
"95%"
Text='<%#Bind("EscortVisaNumber")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_EscortEntryDate"
AssociatedControlID
=
"txt_EscortEntryDate"
runat
=
"server"
Text
=
"Arrival Date:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadDatePicker
ID
=
"txt_EscortEntryDate"
runat
=
"server"
Width
=
"95%"
DbSelectedDate='<%#Bind("EscortEntryDate")%>'>
<
DateInput
ID
=
"DateInput_EscortEntryDate"
runat
=
"server"
Font-Size
=
"Medium"
DateFormat
=
"dd/MM/yyyy"
DisplayDateFormat
=
"dd/MM/yyyy"
>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
DateInput
>
</
telerik:RadDatePicker
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_EscortVisaExpirationDate"
AssociatedControlID
=
"txt_EscortVisaExpirationDate"
runat
=
"server"
Text
=
"Visa Expiration Date:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadDatePicker
ID
=
"txt_EscortVisaExpirationDate"
runat
=
"server"
Width
=
"95%"
DbSelectedDate='<%#Bind("EscortVisaExpirationDate")%>'>
<
DateInput
ID
=
"DateInput_EscortVisaExpirationDate"
runat
=
"server"
Font-Size
=
"Medium"
DateFormat
=
"dd/MM/yyyy"
DisplayDateFormat
=
"dd/MM/yyyy"
>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
DateInput
>
</
telerik:RadDatePicker
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_EscortPassportNumber"
AssociatedControlID
=
"txt_EscortPassportNumber"
runat
=
"server"
Text
=
"Passport Number:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EscortPassportNumber"
runat
=
"server"
InvalidStyleDuration
=
"100"
SelectionOnFocus
=
"SelectAll"
Width
=
"95%"
Text='<%#Bind("EscortPassportNumber")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_EscortCardExpirationDate"
AssociatedControlID
=
"txt_EscortCardExpirationDate"
runat
=
"server"
Text
=
"Escort Card Expiration Date:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadDatePicker
ID
=
"txt_EscortCardExpirationDate"
runat
=
"server"
Width
=
"95%"
DbSelectedDate='<%#Bind("EscortCardExpirationDate")%>'>
<
DateInput
ID
=
"DateInput_EscortCardExpirationDate"
runat
=
"server"
Font-Size
=
"Medium"
DateFormat
=
"dd/MM/yyyy"
DisplayDateFormat
=
"dd/MM/yyyy"
>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
DateInput
>
</
telerik:RadDatePicker
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_EscortDoseHaveHealthInsurance"
AssociatedControlID
=
"cmb_EscortDoseHaveHealthInsurance"
runat
=
"server"
Text
=
"Does Have Health Insurance:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadComboBox
runat
=
"server"
ID
=
"cmb_EscortDoseHaveHealthInsurance"
MaxHeight
=
"250"
AppendDataBoundItems
=
"True"
CausesValidation
=
"False"
CollapseDelay
=
"10"
DataMember
=
"DefaultView"
ExpandDelay
=
"0"
ItemRequestTimeout
=
"0"
Width
=
"95%"
MarkFirstMatch
=
"True"
EmptyMessage
=
"- Select Year -"
SelectedValue='<%# Bind("EscortDoseHaveHealthInsurance")%>'>
<
Items
>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Yes"
Value
=
"Yes"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"No"
Value
=
"No"
/>
</
Items
>
</
telerik:RadComboBox
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_EscortTypeOfHealthInsurance"
AssociatedControlID
=
"txt_EscortTypeOfHealthInsurance"
runat
=
"server"
Text
=
"Type Of Health Insurance:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EscortTypeOfHealthInsurance"
runat
=
"server"
InvalidStyleDuration
=
"100"
SelectionOnFocus
=
"SelectAll"
Width
=
"95%"
Text='<%#Bind("EscortTypeOfHealthInsurance")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_EscortAttachmentName1"
AssociatedControlID
=
"txt_EscortAttachmentName1"
runat
=
"server"
Text
=
"Attachment Name:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EscortAttachmentName1"
runat
=
"server"
InvalidStyleDuration
=
"100"
SelectionOnFocus
=
"SelectAll"
Width
=
"95%"
Text='<%#Bind("EscortAttachmentName1")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_EscortAttachmentExpirationDate1"
AssociatedControlID
=
"txt_EscortAttachmentExpirationDate1"
runat
=
"server"
Text
=
"Attachment Expiration Date:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadDatePicker
ID
=
"txt_EscortAttachmentExpirationDate1"
runat
=
"server"
Width
=
"95%"
DbSelectedDate='<%#Bind("EscortAttachmentExpirationDate1")%>'>
<
DateInput
ID
=
"DateInput_EscortAttachmentExpirationDate1"
runat
=
"server"
Font-Size
=
"Medium"
DateFormat
=
"dd/MM/yyyy"
DisplayDateFormat
=
"dd/MM/yyyy"
>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
DateInput
>
</
telerik:RadDatePicker
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_AttachmentPath1"
AssociatedControlID
=
"RPAttachmentPath1"
runat
=
"server"
Text
=
"Attachment:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadAsyncUpload
ID
=
"RPAttachmentPath1"
runat
=
"server"
AllowedFileExtensions
=
"pdf,jpeg,jpg"
MaxFileInputsCount
=
"1"
InputSize
=
"43"
PostbackTriggers
=
"button_Update"
>
<
Localization
Cancel
=
"Cancel"
Select
=
"Select"
Remove
=
"Remove"
/>
</
telerik:RadAsyncUpload
>
<
asp:HyperLink
ID
=
"HLAttachmentPath"
runat
=
"server"
NavigateUrl='<%#Bind("EscortAttachmentPath1")%>' Target="_blank">View</
asp:HyperLink
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_EscortAttachmentName2"
AssociatedControlID
=
"txt_EscortAttachmentName2"
runat
=
"server"
Text
=
"Attachment Name:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EscortAttachmentName2"
runat
=
"server"
InvalidStyleDuration
=
"100"
SelectionOnFocus
=
"SelectAll"
Width
=
"95%"
Text='<%#Bind("EscortAttachmentName2")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_EscortAttachmentExpirationDate2"
AssociatedControlID
=
"txt_EscortAttachmentExpirationDate2"
runat
=
"server"
Text
=
"Attachment Expiration Date:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadDatePicker
ID
=
"txt_EscortAttachmentExpirationDate2"
runat
=
"server"
Width
=
"95%"
DbSelectedDate='<%#Bind("EscortAttachmentExpirationDate2")%>'>
<
DateInput
ID
=
"DateInput_EscortAttachmentExpirationDate2"
runat
=
"server"
Font-Size
=
"Medium"
DateFormat
=
"dd/MM/yyyy"
DisplayDateFormat
=
"dd/MM/yyyy"
>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
DateInput
>
</
telerik:RadDatePicker
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_AttachmentPath2"
AssociatedControlID
=
"RPAttachmentPath2"
runat
=
"server"
Text
=
"Attachment:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadAsyncUpload
ID
=
"RPAttachmentPath2"
runat
=
"server"
AllowedFileExtensions
=
"pdf,jpeg,jpg"
MaxFileInputsCount
=
"1"
InputSize
=
"43"
PostbackTriggers
=
"button_Update"
>
<
Localization
Cancel
=
"Cancel"
Select
=
"Select"
Remove
=
"Remove"
/>
</
telerik:RadAsyncUpload
>
<
asp:HyperLink
ID
=
"HyperLink1"
runat
=
"server"
NavigateUrl='<%#Bind("EscortAttachmentPath2")%>' Target="_blank">View</
asp:HyperLink
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_EscortAttachmentName3"
AssociatedControlID
=
"txt_EscortAttachmentName3"
runat
=
"server"
Text
=
"Attachment Name:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EscortAttachmentName3"
runat
=
"server"
InvalidStyleDuration
=
"100"
SelectionOnFocus
=
"SelectAll"
Width
=
"95%"
Text='<%#Bind("EscortAttachmentName3")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_EscortAttachmentExpirationDate3"
AssociatedControlID
=
"txt_EscortAttachmentExpirationDate3"
runat
=
"server"
Text
=
"Attachment Expiration Date:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadDatePicker
ID
=
"txt_EscortAttachmentExpirationDate3"
runat
=
"server"
Width
=
"95%"
DbSelectedDate='<%#Bind("EscortAttachmentExpirationDate3")%>'>
<
DateInput
ID
=
"DateInput_EscortAttachmentExpirationDate3"
runat
=
"server"
Font-Size
=
"Medium"
DateFormat
=
"dd/MM/yyyy"
DisplayDateFormat
=
"dd/MM/yyyy"
>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
DateInput
>
</
telerik:RadDatePicker
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_RPAttachmentPath3"
AssociatedControlID
=
"RPAttachmentPath3"
runat
=
"server"
Text
=
"Attachment:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadAsyncUpload
ID
=
"RPAttachmentPath3"
runat
=
"server"
AllowedFileExtensions
=
"pdf,jpeg,jpg"
MaxFileInputsCount
=
"1"
InputSize
=
"43"
PostbackTriggers
=
"button_Update"
>
<
Localization
Cancel
=
"Cancel"
Select
=
"Select"
Remove
=
"Remove"
/>
</
telerik:RadAsyncUpload
>
<
asp:HyperLink
ID
=
"HyperLink2"
runat
=
"server"
NavigateUrl='<%#Bind("EscortAttachmentPath3")%>' Target="_blank">View</
asp:HyperLink
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 100%; padding-left: 10px;"
>
<
telerik:RadButton
ID
=
"button_Update"
runat
=
"server"
ValidationGroup
=
"CompanyGroup"
Width
=
"100px"
Text='<%# IIf((TypeOf (Container) Is GridEditFormInsertItem), "Add", "Update")%>'
CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>' />
<
telerik:RadButton
ID
=
"button_Cancel"
Width
=
"100px"
Text
=
"Cancel"
runat
=
"server"
CausesValidation
=
"False"
CommandName
=
"Cancel"
/>
</
div
>
</
div
>
</
div
>
</
FormTemplate
>
</
EditFormSettings
>
<
PagerStyle
AlwaysVisible
=
"true"
Mode
=
"NextPrevAndNumeric"
/>
</
MasterTableView
>
<
FilterItemStyle
HorizontalAlign
=
"Center"
/>
<
PagerStyle
AlwaysVisible
=
"true"
Mode
=
"NextPrevAndNumeric"
/>
<
FilterMenu
EnableImageSprites
=
"False"
/>
<
HeaderContextMenu
EnableEmbeddedSkins
=
"false"
/>
</
telerik:RadGrid
>
</
div
>
</
telerik:RadPageView
>
<
telerik:RadPageView
runat
=
"server"
ID
=
"innerPageView4"
>
<
legend
style
=
"font-family: 'Lucida Sans Unicode'; text-align: center; width: 100%; font-size: 18px;"
>Personal Custodies</
legend
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
telerik:RadGrid
ID
=
"RadGrid_PersonalCustodies"
runat
=
"server"
DataSourceID
=
"SqlDataSource_PersonalCustodies"
EnableEmbeddedSkins
=
"true"
Skin
=
"Metro"
OnInsertCommand
=
"RadGrid_PersonalCustodies_InsertCommand"
OnItemDataBound
=
"RadGrid_PersonalCustodies_ItemDataBound"
OnItemCommand
=
"RadGrid_PersonalCustodies_ItemCommand"
OnEditCommand
=
"RadGrid_PersonalCustodies_EditCommand"
OnUpdateCommand
=
"RadGrid_PersonalCustodies_UpdateCommand"
AllowAutomaticInserts
=
"True"
AllowAutomaticUpdates
=
"True"
AllowPaging
=
"True"
AutoGenerateColumns
=
"False"
ShowStatusBar
=
"True"
>
<
MasterTableView
DataKeyNames
=
"ID"
DataSourceID
=
"SqlDataSource_PersonalCustodies"
PageSize
=
"5"
CommandItemDisplay
=
"Top"
>
<
CommandItemSettings
ExportToPdfText
=
"Export to PDF"
AddNewRecordText
=
"Add New Record"
RefreshText
=
"Refresh"
/>
<
RowIndicatorColumn
Visible
=
"True"
FilterControlAltText
=
"Filter RowIndicator column"
>
<
HeaderStyle
Width
=
"20px"
/>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
Visible
=
"True"
FilterControlAltText
=
"Filter ExpandColumn column"
>
<
HeaderStyle
Width
=
"20px"
/>
</
ExpandCollapseColumn
>
<
Columns
>
<
telerik:GridTemplateColumn
HeaderText
=
"No."
AllowFiltering
=
"false"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"IDLabel"
runat
=
"server"
Text
=
""
></
asp:Label
>
</
ItemTemplate
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"40px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"40px"
/>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
DataField
=
"ID"
Visible
=
"false"
ReadOnly
=
"true"
HeaderText
=
"ID"
SortExpression
=
"ID"
UniqueName
=
"ID"
DataType
=
"System.Int64"
FilterControlAltText
=
"Filter ID column"
/>
<
telerik:GridBoundColumn
DataField
=
"PersonalCustodyType"
HeaderText
=
"Custody Type"
SortExpression
=
"PersonalCustodyType"
UniqueName
=
"PersonalCustodyType"
FilterControlWidth
=
"100%"
FilterControlAltText
=
"Filter PersonalCustodyType column"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"PersonalCustodyAttachmentPath"
Visible
=
"false"
HeaderText
=
"PersonalCustodyAttachmentPath"
SortExpression
=
"PersonalCustodyAttachmentPath"
UniqueName
=
"PersonalCustodyAttachmentPath"
FilterControlAltText
=
"Filter PersonalCustodyAttachmentPath column"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"PersonalCustodyReceivedDate"
DataFormatString
=
"{0:dd/MM/yyyy}"
HeaderText
=
"Received Date"
SortExpression
=
"PersonalCustodyReceivedDate"
UniqueName
=
"PersonalCustodyReceivedDate"
FilterControlAltText
=
"Filter PersonalCustodyReceivedDate column"
FilterControlWidth
=
"100%"
DataType
=
"System.DateTime"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"PersonalCustodyReturnDate"
DataFormatString
=
"{0:dd/MM/yyyy}"
HeaderText
=
"Return Date"
SortExpression
=
"PersonalCustodyReturnDate"
UniqueName
=
"PersonalCustodyReturnDate"
FilterControlAltText
=
"Filter PersonalCustodyReturnDate column"
FilterControlWidth
=
"100%"
DataType
=
"System.DateTime"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"PersonalCustodyStatus"
FilterControlAltText
=
"Filter PersonalCustodyStatus column"
HeaderText
=
"Custody Status"
SortExpression
=
"PersonalCustodyStatus"
UniqueName
=
"PersonalCustodyStatus"
FilterControlWidth
=
"100%"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"AddedBy"
FilterControlAltText
=
"Filter AddedBy column"
HeaderText
=
"Added By"
SortExpression
=
"AddedBy"
UniqueName
=
"AddedBy"
FilterControlWidth
=
"100%"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridEditCommandColumn
ButtonType
=
"ImageButton"
HeaderText
=
"Edit"
UniqueName
=
"EditCommand"
EditImageUrl
=
"~/Design/MeStyle/Grid/Edit.gif"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"40px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"40px"
/>
</
telerik:GridEditCommandColumn
>
</
Columns
>
<
EditFormSettings
EditFormType
=
"Template"
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
/>
<
FormTemplate
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_PersonalCustodyType"
AssociatedControlID
=
"txt_PersonalCustodyType"
runat
=
"server"
Text
=
"Personal Custody Type :"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_PersonalCustodyType"
runat
=
"server"
InvalidStyleDuration
=
"100"
SelectionOnFocus
=
"SelectAll"
Width
=
"95%"
Text='<%#Bind("PersonalCustodyType")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
<
asp:RequiredFieldValidator
ID
=
"PersonalCustodyTypeRequired"
runat
=
"server"
ControlToValidate
=
"txt_PersonalCustodyType"
ErrorMessage
=
"*"
ForeColor
=
"Red"
ValidationGroup
=
"CompanyGroup"
/>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_AttachmentPath"
AssociatedControlID
=
"RPAttachmentPath"
runat
=
"server"
Text
=
"Attachment:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadAsyncUpload
ID
=
"RPAttachmentPath"
runat
=
"server"
AllowedFileExtensions
=
"pdf"
MaxFileInputsCount
=
"1"
InputSize
=
"43"
PostbackTriggers
=
"button_Update"
EnableInlineProgress
=
"false"
>
<
Localization
Cancel
=
"Cancel"
Select
=
"Select"
Remove
=
"Remove"
/>
</
telerik:RadAsyncUpload
>
<
telerik:RadProgressArea
ID
=
"RadProgressArea1"
runat
=
"server"
/>
<
asp:HyperLink
ID
=
"HLAttachmentPath"
runat
=
"server"
NavigateUrl='<%#Bind("PersonalCustodyAttachmentPath")%>' Target="_blank">View</
asp:HyperLink
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_PersonalCustodyReceivedDate"
AssociatedControlID
=
"txt_PersonalCustodyReceivedDate"
runat
=
"server"
Text
=
"Custody Received Date:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadDatePicker
ID
=
"txt_PersonalCustodyReceivedDate"
runat
=
"server"
Width
=
"95%"
DbSelectedDate='<%#Bind("PersonalCustodyReceivedDate")%>'>
<
DateInput
ID
=
"DateInput_PersonalCustodyReceivedDate"
runat
=
"server"
Font-Size
=
"Medium"
DateFormat
=
"dd/MM/yyyy"
DisplayDateFormat
=
"dd/MM/yyyy"
>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
DateInput
>
</
telerik:RadDatePicker
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_PersonalCustodyReturnDate"
AssociatedControlID
=
"txt_PersonalCustodyReturnDate"
runat
=
"server"
Text
=
"Custody Return Date:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadDatePicker
ID
=
"txt_PersonalCustodyReturnDate"
runat
=
"server"
Width
=
"95%"
DbSelectedDate='<%#Bind("PersonalCustodyReturnDate")%>'>
<
DateInput
ID
=
"DateInput_PersonalCustodyReturnDate"
runat
=
"server"
Font-Size
=
"Medium"
DateFormat
=
"dd/MM/yyyy"
DisplayDateFormat
=
"dd/MM/yyyy"
>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
DateInput
>
</
telerik:RadDatePicker
>
<
asp:CompareValidator
ID
=
"dateCompareValidator"
runat
=
"server"
ControlToValidate
=
"txt_PersonalCustodyReturnDate"
ControlToCompare
=
"txt_PersonalCustodyReceivedDate"
Operator
=
"GreaterThan"
Type
=
"Date"
CssClass
=
"field-validation-error"
ErrorMessage="<br/>The return date must be after the recieved date." />
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_PersonalCustodyStatus"
AssociatedControlID
=
"cmb_PersonalCustodyStatus"
runat
=
"server"
Text
=
"Custody Status:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadComboBox
runat
=
"server"
ID
=
"cmb_PersonalCustodyStatus"
MaxHeight
=
"250"
AppendDataBoundItems
=
"True"
CausesValidation
=
"False"
CollapseDelay
=
"10"
DataMember
=
"DefaultView"
ExpandDelay
=
"0"
ItemRequestTimeout
=
"0"
Width
=
"95%"
MarkFirstMatch
=
"True"
EmptyMessage
=
"- Select Year -"
SelectedValue='<%# Bind("PersonalCustodyStatus")%>'>
<
Items
>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Recieved"
Value
=
"Recieved"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Returned"
Value
=
"Returned"
/>
</
Items
>
</
telerik:RadComboBox
>
<
asp:RequiredFieldValidator
ID
=
"PersonalCustodyStatusRequired"
runat
=
"server"
ControlToValidate
=
"cmb_PersonalCustodyStatus"
ErrorMessage
=
"*"
ForeColor
=
"Red"
ValidationGroup
=
"CompanyGroup"
/>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%; height: 80px;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_PersonalCustodyMemo"
AssociatedControlID
=
"txt_PersonalCustodyMemo"
runat
=
"server"
Text
=
"Custody Memo:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_PersonalCustodyMemo"
runat
=
"server"
TextMode
=
"MultiLine"
Height
=
"75px"
InvalidStyleDuration
=
"100"
SelectionOnFocus
=
"SelectAll"
Width
=
"95%"
Text='<%#Bind("PersonalCustodyMemo")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 100%; padding-left: 10px;"
>
<
telerik:RadButton
ID
=
"button_Update"
runat
=
"server"
ValidationGroup
=
"CompanyGroup"
Width
=
"100px"
Text='<%# IIf((TypeOf (Container) Is GridEditFormInsertItem), "Add", "Update")%>'
CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>' />
<
telerik:RadButton
ID
=
"button_Cancel"
Width
=
"100px"
Text
=
"Cancel"
runat
=
"server"
CausesValidation
=
"False"
CommandName
=
"Cancel"
/>
</
div
>
</
div
>
</
div
>
</
FormTemplate
>
</
EditFormSettings
>
<
PagerStyle
AlwaysVisible
=
"true"
Mode
=
"NextPrevAndNumeric"
/>
</
MasterTableView
>
<
FilterItemStyle
HorizontalAlign
=
"Center"
/>
<
PagerStyle
AlwaysVisible
=
"true"
Mode
=
"NextPrevAndNumeric"
/>
<
FilterMenu
EnableImageSprites
=
"False"
/>
<
HeaderContextMenu
EnableEmbeddedSkins
=
"false"
/>
</
telerik:RadGrid
>
</
div
>
</
telerik:RadPageView
>
<
telerik:RadPageView
runat
=
"server"
ID
=
"innerPageView5"
>
<
legend
style
=
"font-family: 'Lucida Sans Unicode'; text-align: center; width: 100%; font-size: 18px;"
>Annual Evaluation</
legend
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
telerik:RadGrid
ID
=
"RadGrid_EmployeeAppraisals"
runat
=
"server"
DataSourceID
=
"SqlDataSource_EmployeeAppraisals"
EnableEmbeddedSkins
=
"true"
Skin
=
"Metro"
OnInsertCommand
=
"RadGrid_EmployeeAppraisals_InsertCommand"
OnItemDataBound
=
"RadGrid_EmployeeAppraisals_ItemDataBound"
OnItemCommand
=
"RadGrid_EmployeeAppraisals_ItemCommand"
OnEditCommand
=
"RadGrid_EmployeeAppraisals_EditCommand"
OnUpdateCommand
=
"RadGrid_EmployeeAppraisals_UpdateCommand"
AllowAutomaticInserts
=
"True"
AllowAutomaticUpdates
=
"True"
AllowPaging
=
"True"
AutoGenerateColumns
=
"False"
>
<
MasterTableView
DataKeyNames
=
"ID"
DataSourceID
=
"SqlDataSource_EmployeeAppraisals"
PageSize
=
"5"
CommandItemDisplay
=
"Top"
>
<
CommandItemSettings
ExportToPdfText
=
"Export to PDF"
AddNewRecordText
=
"Add New Record"
RefreshText
=
"Refresh"
/>
<
RowIndicatorColumn
Visible
=
"True"
FilterControlAltText
=
"Filter RowIndicator column"
>
<
HeaderStyle
Width
=
"20px"
/>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
Visible
=
"True"
FilterControlAltText
=
"Filter ExpandColumn column"
>
<
HeaderStyle
Width
=
"20px"
/>
</
ExpandCollapseColumn
>
<
Columns
>
<
telerik:GridTemplateColumn
HeaderText
=
"No."
AllowFiltering
=
"false"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"IDLabel"
runat
=
"server"
Text
=
""
></
asp:Label
>
</
ItemTemplate
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"40px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"40px"
/>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
DataField
=
"ID"
Visible
=
"false"
ReadOnly
=
"True"
HeaderText
=
"ID"
SortExpression
=
"ID"
UniqueName
=
"ID"
DataType
=
"System.Int64"
FilterControlAltText
=
"Filter ID column"
/>
<
telerik:GridBoundColumn
DataField
=
"EmployeeID"
Visible
=
"false"
HeaderText
=
"EmployeeID"
SortExpression
=
"EmployeeID"
UniqueName
=
"EmployeeID"
DataType
=
"System.Int64"
FilterControlAltText
=
"Filter EmployeeID column"
/>
<
telerik:GridBoundColumn
DataField
=
"EmployeeAppraisalYear"
HeaderText
=
"Appraisal Year"
SortExpression
=
"EmployeeAppraisalYear"
UniqueName
=
"EmployeeAppraisalYear"
FilterControlAltText
=
"Filter EmployeeAppraisalYear column"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
FilterControlWidth
=
"100%"
DataType
=
"System.Int64"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"200px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"200px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"EmployeeAppraisalLevelRating"
HeaderText
=
"Level Rating"
SortExpression
=
"EmployeeAppraisalLevelRating"
UniqueName
=
"EmployeeAppraisalLevelRating"
FilterControlAltText
=
"Filter EmployeeAppraisalLevelRating column"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
FilterControlWidth
=
"100%"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"EmployeeAppraisalPercentage"
HeaderText
=
"Percentage"
DataFormatString
=
"{0:0}"
SortExpression
=
"EmployeeAppraisalPercentage"
UniqueName
=
"EmployeeAppraisalPercentage"
FilterControlAltText
=
"Filter EmployeeAppraisalPercentage column"
DataType
=
"System.Decimal"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
FilterControlWidth
=
"100%"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"100px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"100px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"AddedBy"
DataType
=
"System.Guid"
FilterControlAltText
=
"Filter AddedBy column"
HeaderText
=
"Added By"
SortExpression
=
"AddedBy"
UniqueName
=
"AddedBy"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
FilterControlWidth
=
"100%"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"150px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridEditCommandColumn
ButtonType
=
"ImageButton"
HeaderText
=
"Edit"
UniqueName
=
"EditCommand"
EditImageUrl
=
"~/Design/MeStyle/Grid/Edit.gif"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
Width
=
"40px"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
Width
=
"40px"
/>
</
telerik:GridEditCommandColumn
>
</
Columns
>
<
EditFormSettings
EditFormType
=
"Template"
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
/>
<
FormTemplate
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_EmployeeAppraisalYear"
AssociatedControlID
=
"cmb_EmployeeAppraisalYear"
runat
=
"server"
Text
=
"Appraisal Year:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadComboBox
runat
=
"server"
ID
=
"cmb_EmployeeAppraisalYear"
MaxHeight
=
"250"
AppendDataBoundItems
=
"True"
CausesValidation
=
"False"
CollapseDelay
=
"10"
DataMember
=
"DefaultView"
ExpandDelay
=
"0"
ItemRequestTimeout
=
"0"
Width
=
"80%"
MarkFirstMatch
=
"True"
EmptyMessage
=
"- Select Year -"
EnableLoadOnDemand
=
"true"
DataTextField
=
"Year"
DataValueField
=
"EmployeeAppraisalYear"
/>
<
asp:RequiredFieldValidator
ID
=
"EmployeeAppraisalYearRequired"
runat
=
"server"
ControlToValidate
=
"cmb_EmployeeAppraisalYear"
ErrorMessage
=
"*"
ForeColor
=
"Red"
/>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%; height: 80px;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_EmployeeAppraisalMemo"
AssociatedControlID
=
"txt_EmployeeAppraisalMemo"
runat
=
"server"
Text
=
"Work Occasion:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadTextBox
ID
=
"txt_EmployeeAppraisalMemo"
runat
=
"server"
TextMode
=
"MultiLine"
Height
=
"75px"
InvalidStyleDuration
=
"100"
SelectionOnFocus
=
"SelectAll"
Width
=
"80%"
Text='<%#Bind("EmployeeAppraisalMemo")%>'>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadTextBox
>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_EmployeeAppraisalLevelRating"
AssociatedControlID
=
"cmb_EmployeeAppraisalLevelRating"
runat
=
"server"
Text
=
"Level Rating:"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadComboBox
runat
=
"server"
ID
=
"cmb_EmployeeAppraisalLevelRating"
MaxHeight
=
"250"
AppendDataBoundItems
=
"True"
CausesValidation
=
"False"
CollapseDelay
=
"10"
DataMember
=
"DefaultView"
ExpandDelay
=
"0"
ItemRequestTimeout
=
"0"
Width
=
"80%"
MarkFirstMatch
=
"True"
EmptyMessage
=
"- Select Year -"
SelectedValue='<%# Bind("EmployeeAppraisalLevelRating")%>'>
<
Items
>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Excellent"
Value
=
"Excellent"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Good"
Value
=
"Good"
/>
<
telerik:RadComboBoxItem
runat
=
"server"
Text
=
"Poor"
Value
=
"Poor"
/>
</
Items
>
</
telerik:RadComboBox
>
<
asp:RequiredFieldValidator
ID
=
"EmployeeAppraisalLevelRatingRequired"
runat
=
"server"
ControlToValidate
=
"cmb_EmployeeAppraisalLevelRating"
ErrorMessage
=
"*"
ForeColor
=
"Red"
/>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 30%;"
>
<
asp:Label
ID
=
"label_EmployeeAppraisalPercentage"
AssociatedControlID
=
"txt_EmployeeAppraisalPercentage"
runat
=
"server"
Text
=
"Percentage :"
/>
</
div
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 60%;"
>
<
telerik:RadNumericTextBox
ID
=
"txt_EmployeeAppraisalPercentage"
Type
=
"Percent"
MinValue
=
"0"
MaxValue
=
"100"
runat
=
"server"
InvalidStyleDuration
=
"100"
SelectionOnFocus
=
"SelectAll"
Width
=
"80%"
Text='<%#Bind("EmployeeAppraisalPercentage")%>'>
<
NumberFormat
DecimalDigits
=
"0"
/>
<
HoveredStyle
Font-Bold
=
"True"
ForeColor
=
"#FF3300"
/>
<
EnabledStyle
BackColor
=
"Azure"
PaddingRight
=
"10px"
/>
</
telerik:RadNumericTextBox
>
<
asp:RequiredFieldValidator
ID
=
"EmployeeAppraisalPercentageRequired"
runat
=
"server"
ControlToValidate
=
"txt_EmployeeAppraisalPercentage"
ErrorMessage
=
"*"
ForeColor
=
"Red"
/>
</
div
>
</
div
>
<
div
class
=
"art-layout-cell layout-item-1"
style
=
"width: 100%;"
>
<
div
class
=
"art-layout-cell layout-item-4"
style
=
"width: 100%; padding-left: 10px;"
>
<
telerik:RadButton
ID
=
"button_Update"
runat
=
"server"
ValidationGroup
=
"CompanyGroup"
Width
=
"100px"
Text='<%# IIf((TypeOf (Container) Is GridEditFormInsertItem), "Add", "Update")%>'
CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>' />
<
telerik:RadButton
ID
=
"button_Cancel"
Width
=
"100px"
Text
=
"Cancel"
runat
=
"server"
CausesValidation
=
"False"
CommandName
=
"Cancel"
/>
</
div
>
</
div
>
</
div
>
</
FormTemplate
>
</
EditFormSettings
>
<
PagerStyle
AlwaysVisible
=
"true"
Mode
=
"NextPrevAndNumeric"
/>
</
MasterTableView
>
<
FilterItemStyle
HorizontalAlign
=
"Center"
/>
<
PagerStyle
AlwaysVisible
=
"true"
Mode
=
"NextPrevAndNumeric"
/>
<
FilterMenu
EnableImageSprites
=
"False"
/>
<
HeaderContextMenu
EnableEmbeddedSkins
=
"false"
/>
</
telerik:RadGrid
>
</
div
>
</
telerik:RadPageView
>
<
telerik:RadPageView
runat
=
"server"
ID
=
"innerPageView6"
>
</
telerik:RadPageView
>
<
telerik:RadPageView
runat
=
"server"
ID
=
"innerPageView7"
>
</
telerik:RadPageView
>
</
telerik:RadMultiPage
>
#Region "RadListViewEmployees"
Protected
Sub
RadListViewEmployees_ItemDataBound(sender
As
Object
, e
As
RadListViewItemEventArgs)
Dim
_EmployeeID
As
Long
= 0
Dim
_radOuterTab
As
New
RadTabStrip
Dim
_radInnerTab1
As
New
RadTabStrip
Dim
_radInnerTab2
As
New
RadTabStrip
Dim
_radInnerTab3
As
New
RadTabStrip
Dim
_radOuterMultiPage
As
New
RadMultiPage
Dim
_radInnerMultiPage1
As
New
RadMultiPage
Dim
_radInnerMultiPage2
As
New
RadMultiPage
Dim
_radInnerMultiPage3
As
New
RadMultiPage
Dim
_EmployeeAttachment
As
New
RadGrid
Dim
_EmployeesEscorts
As
New
RadGrid
Dim
_PersonalCustodies
As
New
RadGrid
Dim
_Appraisals
As
New
RadGrid
Dim
_PublicVacation
As
New
RadGrid
Dim
_UsualVacation
As
New
RadGrid
Dim
_InsteadOfWork
As
New
RadGrid
Dim
_CompensationForAnnual
As
New
RadGrid
Dim
_VoilationAndSanction
As
New
RadGrid
Dim
_RewardsAndPromotions
As
New
RadGrid
Dim
_OverTimeRewards
As
New
RadGrid
Dim
_TrainingCourses
As
New
RadGrid
Dim
_SalaryReport
As
New
RadGrid
Dim
_SalaryYear
As
New
RadComboBox
Dim
_radListView
As
RadListView =
DirectCast
(sender, RadListView)
For
Each
_item
In
_radListView.Items
_radOuterTab =
DirectCast
(_item.FindControl(
"RadStripEmployeeDetails"
), RadTabStrip)
_radInnerTab1 =
DirectCast
(_item.FindControl(
"RadStripGeneralInfo"
), RadTabStrip)
_radInnerTab2 =
DirectCast
(_item.FindControl(
"RadStripVacations"
), RadTabStrip)
_radInnerTab3 =
DirectCast
(_item.FindControl(
"RadStripSalaryDetails"
), RadTabStrip)
_radOuterMultiPage =
DirectCast
(_item.FindControl(
"outerMultiPage"
), RadMultiPage)
_radInnerMultiPage1 =
DirectCast
(_radOuterMultiPage.FindControl(
"innerMultiPage1"
), RadMultiPage)
Dim
_employeelabel
As
Label =
DirectCast
(_radInnerMultiPage1.FindControl(
"employeeID"
), Label)
_EmployeeAttachment =
DirectCast
(_radInnerMultiPage1.FindControl(
"RadGrid_EmployeeAttachment"
), RadGrid)
_EmployeesEscorts =
DirectCast
(_radInnerMultiPage1.FindControl(
"RadGrid_EmployeesEscorts"
), RadGrid)
_PersonalCustodies =
DirectCast
(_radInnerMultiPage1.FindControl(
"RadGrid_PersonalCustodies"
), RadGrid)
_Appraisals =
DirectCast
(_radInnerMultiPage1.FindControl(
"RadGrid_EmployeeAppraisals"
), RadGrid)
_radInnerMultiPage2 =
DirectCast
(_radOuterMultiPage.FindControl(
"innerMultiPage2"
), RadMultiPage)
_PublicVacation =
DirectCast
(_radInnerMultiPage2.FindControl(
"RadGrid_EmployeePublicVacations"
), RadGrid)
_UsualVacation =
DirectCast
(_radInnerMultiPage2.FindControl(
"RadGrid_EmployeeUsualVacationRegistrations"
), RadGrid)
_InsteadOfWork =
DirectCast
(_radInnerMultiPage2.FindControl(
"RadGrid_InsteadOfWorkRecordings"
), RadGrid)
_CompensationForAnnual =
DirectCast
(_radInnerMultiPage2.FindControl(
"RadGrid_CompensationForVacations"
), RadGrid)
_radInnerMultiPage3 =
DirectCast
(_radOuterMultiPage.FindControl(
"innerMultiPage3"
), RadMultiPage)
_VoilationAndSanction =
DirectCast
(_radInnerMultiPage3.FindControl(
"RadGrid_EmployeesViolationsAndSanctions"
), RadGrid)
_RewardsAndPromotions =
DirectCast
(_radInnerMultiPage3.FindControl(
"RadGrid_EmployeesRewardsAndPromotions"
), RadGrid)
_OverTimeRewards =
DirectCast
(_radInnerMultiPage3.FindControl(
"RadGrid_EmployeesOverTimeRewards"
), RadGrid)
_SalaryReport =
DirectCast
(_radInnerMultiPage3.FindControl(
"RadGridEmployeeSalary"
), RadGrid)
_SalaryYear =
DirectCast
(_radInnerMultiPage3.FindControl(
"cmb_salaryYear"
), RadComboBox)
_TrainingCourses =
DirectCast
(_radOuterMultiPage.FindControl(
"RadGrid_TrainingCourses"
), RadGrid)
_EmployeeID = Convert.ToInt64(_employeelabel.Text)
Next
Session(
"EmployeeID"
) = _EmployeeID
CheckUserPermission()
_SalaryYear.DataBind()
hdf_SelectedYear.Value = Year(Now).ToString
_SalaryYear.SelectedValue = Year(Now).ToString
_EmployeeAttachment.DataBind()
_EmployeesEscorts.DataBind()
_PersonalCustodies.DataBind()
_Appraisals.DataBind()
_PublicVacation.DataBind()
_UsualVacation.DataBind()
_InsteadOfWork.DataBind()
_CompensationForAnnual.DataBind()
_VoilationAndSanction.DataBind()
_RewardsAndPromotions.DataBind()
_OverTimeRewards.DataBind()
_TrainingCourses.DataBind()
_SalaryReport.DataBind()
If
hdf_outerTabText.Value =
"General"
Then
_radOuterTab.SelectedIndex = 0
_radOuterMultiPage.SelectedIndex = 0
If
hdf_innerTabText.Value =
"General Information"
Then
_radInnerTab1.SelectedIndex = 0
_radInnerMultiPage1.SelectedIndex = 0
ElseIf
hdf_innerTabText.Value =
"Documents"
Then
_radInnerTab1.SelectedIndex = 1
_radInnerMultiPage1.SelectedIndex = 1
ElseIf
hdf_innerTabText.Value =
"Escorts"
Then
_radInnerTab1.SelectedIndex = 2
_radInnerMultiPage1.SelectedIndex = 2
ElseIf
hdf_innerTabText.Value =
"Personal Custodies"
Then
_radInnerTab1.SelectedIndex = 3
_radInnerMultiPage1.SelectedIndex = 3
ElseIf
hdf_innerTabText.Value =
"Annual Evaluation"
Then
_radInnerTab1.SelectedIndex = 4
_radInnerMultiPage1.SelectedIndex = 4
ElseIf
hdf_innerTabText.Value =
"Takedown"
Then
_radInnerTab1.SelectedIndex = 5
_radInnerMultiPage1.SelectedIndex = 5
Else
_radInnerTab1.SelectedIndex = 6
_radInnerMultiPage1.SelectedIndex = 6
End
If
ElseIf
hdf_outerTabText.Value =
"Vacation"
Then
_radOuterTab.SelectedIndex = 1
_radOuterMultiPage.SelectedIndex = 1
If
hdf_innerTabText.Value =
"Public Vacations"
Then
_radInnerTab2.SelectedIndex = 0
_radInnerMultiPage2.SelectedIndex = 0
ElseIf
hdf_innerTabText.Value =
"Annual Leave Balance"
Then
_radInnerTab2.SelectedIndex = 1
_radInnerMultiPage2.SelectedIndex = 1
ElseIf
hdf_innerTabText.Value =
"Instead Of Work Vacation"
Then
_radInnerTab2.SelectedIndex = 2
_radInnerMultiPage2.SelectedIndex = 2
Else
_radInnerTab2.SelectedIndex = 3
_radInnerMultiPage2.SelectedIndex = 3
End
If
ElseIf
hdf_outerTabText.Value =
"Salary"
Then
_radOuterTab.SelectedIndex = 2
_radOuterMultiPage.SelectedIndex = 2
If
hdf_innerTabText.Value =
"Finance Information"
Then
_radInnerTab3.SelectedIndex = 0
_radInnerMultiPage3.SelectedIndex = 0
ElseIf
hdf_innerTabText.Value =
"Deduction"
Then
_radInnerTab3.SelectedIndex = 1
_radInnerMultiPage3.SelectedIndex = 1
ElseIf
hdf_innerTabText.Value =
"Increment"
Then
_radInnerTab3.SelectedIndex = 2
_radInnerMultiPage3.SelectedIndex = 2
ElseIf
hdf_innerTabText.Value =
"Over Time"
Then
_radInnerTab3.SelectedIndex = 3
_radInnerMultiPage3.SelectedIndex = 3
Else
_radInnerTab3.SelectedIndex = 4
_radInnerMultiPage3.SelectedIndex = 4
End
If
Else
_radOuterTab.SelectedIndex = 3
_radOuterMultiPage.SelectedIndex = 3
End
If
End
Sub
Private
Sub
CheckUserPermission()
Dim
_userRoles()
As
String
= Roles.GetRolesForUser
Dim
cmb_salaryStatus
As
New
RadComboBox
Dim
txt_salaryStatus
As
New
RadTextBox
For
Each
_item
In
RadListViewEmployees.Items
Dim
_radOuterMultiPage
As
RadMultiPage =
DirectCast
(_item.FindControl(
"outerMultiPage"
), RadMultiPage)
Dim
_radInnerMultiPage3
As
RadMultiPage =
DirectCast
(_radOuterMultiPage.FindControl(
"innerMultiPage3"
), RadMultiPage)
cmb_salaryStatus =
DirectCast
(_radInnerMultiPage3.FindControl(
"cmb_salaryStatus"
), RadComboBox)
txt_salaryStatus =
DirectCast
(_radInnerMultiPage3.FindControl(
"txt_salaryStatus"
), RadTextBox)
Next
If
_userRoles.Contains(
"EmployeeAdd"
)
Then
txt_salaryStatus.Visible =
True
cmb_salaryStatus.Visible =
False
End
If
If
_userRoles.Contains(
"EmployeeUpdate"
)
Then
txt_salaryStatus.Visible =
False
cmb_salaryStatus.Visible =
True
End
If
End
Sub
#End Region
#Region "Attachment"
Protected
Sub
RadGrid_EmployeeAttachment_ItemDataBound(sender
As
Object
, e
As
Telerik.Web.UI.GridItemEventArgs)
If
(
TypeOf
e.Item
Is
GridDataItem
AndAlso
e.Item.OwnerTableView.DataSourceID =
"SqlDataSource_EmployeeAttachment"
)
Then
Dim
lbl
As
Label =
CType
(e.Item.FindControl(
"IDLabel"
), Label)
lbl.Text = (e.Item.ItemIndex + 1).ToString
End
If
End
Sub
#End Region
#Region "Escorts"
Protected
Sub
RadGrid_EmployeesEscorts_InsertCommand(sender
As
Object
, e
As
Telerik.Web.UI.GridCommandEventArgs)
Dim
_EditedItem
As
GridEditableItem = TryCast(e.Item, GridEditableItem)
Save_EmployeesEscortsAttachment1(_EditedItem,
"Add"
)
Save_EmployeesEscortsAttachment2(_EditedItem,
"Add"
)
Save_EmployeesEscortsAttachment3(_EditedItem,
"Add"
)
End
Sub
Private
Sub
Save_EmployeesEscortsAttachment1(edited_Item
As
GridEditableItem, Task
As
String
)
Try
Session(
"EscortAttachment_Path1"
) =
"NULL"
Dim
_EmployeeAttachment
As
RadAsyncUpload =
DirectCast
(edited_Item.FindControl(
"RPAttachmentPath1"
), RadAsyncUpload)
Dim
_CurrentAttachmentID
As
String
=
"1"
Select
Case
Task
Case
"Add"
Dim
_AttachmentCount = From sd
In
DB.APP_EmployeesViolationsAndSanctions
Select
sd.ID
If
Not
_AttachmentCount.Count = 0
Then
_CurrentAttachmentID = (_AttachmentCount.Max + 1).ToString +
" - Attachment 1"
End
If
Case
"Edit"
If
File.Exists(Server.MapPath(Session(
"_OldEscortAttachmentPath1"
)))
Then
If
Not
_EmployeeAttachment.UploadedFiles.Count = 0
Then
Dim
_SourceFile
As
New
System.IO.FileInfo(Session(
"_OldEscortAttachmentPath1"
))
_CurrentAttachmentID = Path.GetFileNameWithoutExtension(_SourceFile.Name)
File.Delete(Server.MapPath(Session(
"_OldEscortAttachmentPath1"
)))
End
If
Else
_CurrentAttachmentID = Session(
"_EscortID"
) +
" - Attachment 1"
End
If
End
Select
Dim
AttachmentTempPath
As
String
=
"~/Attachments/Employee/EscortAttachment/"
+ Session(
"EmployeeID"
).ToString +
"/"
If
Not
Directory.Exists(Server.MapPath(AttachmentTempPath))
Then
Directory.CreateDirectory(Server.MapPath(AttachmentTempPath))
End
If
If
Not
_EmployeeAttachment.UploadedFiles.Count = 0
Then
Dim
_targetFolder
As
String
= Server.MapPath(AttachmentTempPath)
For
Each
validFile
As
UploadedFile
In
_EmployeeAttachment.UploadedFiles
Dim
FileToBeSaved
As
String
= _CurrentAttachmentID & validFile.GetExtension
Dim
FullPath
As
String
= Path.Combine(_targetFolder, FileToBeSaved)
If
File.Exists(Server.MapPath(FullPath))
Then
File.Delete(Server.MapPath(FullPath))
End
If
validFile.SaveAs(FullPath,
True
)
Session(
"EscortAttachment_Path1"
) = AttachmentTempPath + FileToBeSaved
Next
End
If
Catch
ex
As
Exception
MsgBox(ex.Message)
End
Try
End
Sub
Private
Sub
Save_EmployeesEscortsAttachment2(edited_Item
As
GridEditableItem, Task
As
String
)
Try
Session(
"EscortAttachment_Path2"
) =
"NULL"
Dim
_EmployeeAttachment
As
RadAsyncUpload =
DirectCast
(edited_Item.FindControl(
"RPAttachmentPath2"
), RadAsyncUpload)
Dim
_CurrentAttachmentID
As
String
=
"1"
Select
Case
Task
Case
"Add"
Dim
_AttachmentCount = From sd
In
DB.APP_EmployeesViolationsAndSanctions
Select
sd.ID
If
Not
_AttachmentCount.Count = 0
Then
_CurrentAttachmentID = (_AttachmentCount.Max + 1).ToString +
" - Attachment 2"
End
If
Case
"Edit"
If
File.Exists(Server.MapPath(Session(
"_OldEscortAttachmentPath2"
)))
Then
If
Not
_EmployeeAttachment.UploadedFiles.Count = 0
Then
Dim
_SourceFile
As
New
System.IO.FileInfo(Session(
"_OldEscortAttachmentPath2"
))
_CurrentAttachmentID = Path.GetFileNameWithoutExtension(_SourceFile.Name)
File.Delete(Server.MapPath(Session(
"_OldEscortAttachmentPath2"
)))
End
If
Else
_CurrentAttachmentID = Session(
"_EscortID"
) +
" - Attachment 2"
End
If
End
Select
Dim
AttachmentTempPath
As
String
=
"~/Attachments/Employee/EscortAttachment/"
+ Session(
"EmployeeID"
).ToString +
"/"
If
Not
Directory.Exists(Server.MapPath(AttachmentTempPath))
Then
Directory.CreateDirectory(Server.MapPath(AttachmentTempPath))
End
If
If
Not
_EmployeeAttachment.UploadedFiles.Count = 0
Then
Dim
_targetFolder
As
String
= Server.MapPath(AttachmentTempPath)
For
Each
validFile
As
UploadedFile
In
_EmployeeAttachment.UploadedFiles
Dim
FileToBeSaved
As
String
= _CurrentAttachmentID & validFile.GetExtension
Dim
FullPath
As
String
= Path.Combine(_targetFolder, FileToBeSaved)
If
File.Exists(Server.MapPath(FullPath))
Then
File.Delete(Server.MapPath(FullPath))
End
If
validFile.SaveAs(FullPath,
True
)
Session(
"EscortAttachment_Path2"
) = AttachmentTempPath + FileToBeSaved
Next
End
If
Catch
ex
As
Exception
MsgBox(ex.Message)
End
Try
End
Sub
Private
Sub
Save_EmployeesEscortsAttachment3(edited_Item
As
GridEditableItem, Task
As
String
)
Try
Session(
"EscortAttachment_Path3"
) =
"NULL"
Dim
_EmployeeAttachment
As
RadAsyncUpload =
DirectCast
(edited_Item.FindControl(
"RPAttachmentPath3"
), RadAsyncUpload)
Dim
_CurrentAttachmentID
As
String
=
"1"
Select
Case
Task
Case
"Add"
Dim
_AttachmentCount = From sd
In
DB.APP_EmployeesViolationsAndSanctions
Select
sd.ID
If
Not
_AttachmentCount.Count = 0
Then
_CurrentAttachmentID = (_AttachmentCount.Max + 1).ToString +
" - Attachment 3"
End
If
Case
"Edit"
If
File.Exists(Server.MapPath(Session(
"_OldEscortAttachmentPath3"
)))
Then
If
Not
_EmployeeAttachment.UploadedFiles.Count = 0
Then
Dim
_SourceFile
As
New
System.IO.FileInfo(Session(
"_OldEscortAttachmentPath3"
))
_CurrentAttachmentID = Path.GetFileNameWithoutExtension(_SourceFile.Name)
File.Delete(Server.MapPath(Session(
"_OldEscortAttachmentPath3"
)))
End
If
Else
_CurrentAttachmentID = Session(
"_EscortID"
) +
" - Attachment 3"
End
If
End
Select
Dim
AttachmentTempPath
As
String
=
"~/Attachments/Employee/EscortAttachment/"
+ Session(
"EmployeeID"
).ToString +
"/"
If
Not
Directory.Exists(Server.MapPath(AttachmentTempPath))
Then
Directory.CreateDirectory(Server.MapPath(AttachmentTempPath))
End
If
If
Not
_EmployeeAttachment.UploadedFiles.Count = 0
Then
Dim
_targetFolder
As
String
= Server.MapPath(AttachmentTempPath)
For
Each
validFile
As
UploadedFile
In
_EmployeeAttachment.UploadedFiles
Dim
FileToBeSaved
As
String
= _CurrentAttachmentID & validFile.GetExtension
Dim
FullPath
As
String
= Path.Combine(_targetFolder, FileToBeSaved)
If
File.Exists(Server.MapPath(FullPath))
Then
File.Delete(Server.MapPath(FullPath))
End
If
validFile.SaveAs(FullPath,
True
)
Session(
"EscortAttachment_Path3"
) = AttachmentTempPath + FileToBeSaved
Next
End
If
Catch
ex
As
Exception
MsgBox(ex.Message)
End
Try
End
Sub
Protected
Sub
RadGrid_EmployeesEscorts_ItemDataBound(sender
As
Object
, e
As
Telerik.Web.UI.GridItemEventArgs)
If
(
TypeOf
e.Item
Is
GridDataItem
AndAlso
e.Item.OwnerTableView.DataSourceID =
"SqlDataSource_EmployeesEscorts"
)
Then
Dim
_IDLabel
As
Label =
CType
(e.Item.FindControl(
"IDLabel"
), Label)
_IDLabel.Text = (e.Item.ItemIndex + 1).ToString
End
If
End
Sub
Protected
Sub
RadGrid_EmployeesEscorts_EditCommand(sender
As
Object
, e
As
Telerik.Web.UI.GridCommandEventArgs)
Session(
"_EscortID"
) = e.Item.Cells(3).Text
Session(
"_OldEscortAttachmentPath1"
) = e.Item.Cells(11).Text
Session(
"_OldEscortAttachmentPath2"
) = e.Item.Cells(13).Text
Session(
"_OldEscortAttachmentPath3"
) = e.Item.Cells(15).Text
End
Sub
Protected
Sub
RadGrid_EmployeesEscorts_UpdateCommand(sender
As
Object
, e
As
Telerik.Web.UI.GridCommandEventArgs)
Dim
_EditedItem
As
GridEditableItem = TryCast(e.Item, GridEditableItem)
Save_EmployeesEscortsAttachment1(_EditedItem,
"Edit"
)
Save_EmployeesEscortsAttachment2(_EditedItem,
"Edit"
)
Save_EmployeesEscortsAttachment3(_EditedItem,
"Edit"
)
End
Sub
Protected
Sub
RadGrid_EmployeesEscorts_ItemCommand(sender
As
Object
, e
As
Telerik.Web.UI.GridCommandEventArgs)
Dim
_RadGridEmployeesEscorts
As
RadGrid =
DirectCast
(sender, RadGrid)
Dim
_currentUser
As
MembershipUser = Membership.GetUser
Dim
_UserRoles()
As
String
= Roles.GetRolesForUser(_currentUser.UserName.Trim)
Select
Case
Convert.ToString(e.CommandName)
Case
"InitInsert"
If
Not
_UserRoles.Contains(
"EmployeeAdd"
)
Or
Not
_UserRoles.Contains(
"EmployeeUpdate"
)
Then
RadAjaxManagerMain.Alert(
"You Don't Have Permission For This Service"
)
e.Canceled =
True
Exit
Sub
End
If
_RadGridEmployeesEscorts.MasterTableView.ClearEditItems()
Exit
Select
Case
"Edit"
If
Not
_UserRoles.Contains(
"EmployeeUpdate"
)
Then
RadAjaxManagerMain.Alert(
"You Don't Have Permission For This Service"
)
e.Canceled =
True
Exit
Sub
End
If
e.Item.OwnerTableView.IsItemInserted =
False
Exit
Select
End
Select
End
Sub
Protected
Sub
SqlDataSource_EmployeesEscorts_Inserting(sender
As
Object
, e
As
SqlDataSourceCommandEventArgs)
Handles
SqlDataSource_EmployeesEscorts.Inserting
Try
If
Not
Session(
"EscortAttachment_Path1"
) =
"NULL"
Then
e.Command.Parameters(
"@EscortAttachmentPath1"
).Value = Session(
"EscortAttachment_Path1"
)
End
If
If
Not
Session(
"EscortAttachment_Path2"
) =
"NULL"
Then
e.Command.Parameters(
"@EscortAttachmentPath2"
).Value = Session(
"EscortAttachment_Path2"
)
End
If
If
Not
Session(
"EscortAttachment_Path3"
) =
"NULL"
Then
e.Command.Parameters(
"@EscortAttachmentPath3"
).Value = Session(
"EscortAttachment_Path3"
)
End
If
e.Command.Parameters(
"@EmployeeID"
).Value = Session(
"EmployeeID"
)
Catch
ex
As
Exception
End
Try
End
Sub
Protected
Sub
SqlDataSource_EmployeesEscorts_Updating(sender
As
Object
, e
As
SqlDataSourceCommandEventArgs)
Handles
SqlDataSource_EmployeesEscorts.Updating
Try
If
Not
Session(
"EscortAttachment_Path1"
) =
"NULL"
Then
e.Command.Parameters(
"@EscortAttachmentPath1"
).Value = Session(
"EscortAttachment_Path1"
)
End
If
If
Not
Session(
"EscortAttachment_Path2"
) =
"NULL"
Then
e.Command.Parameters(
"@EscortAttachmentPath2"
).Value = Session(
"EscortAttachment_Path2"
)
End
If
If
Not
Session(
"EscortAttachment_Path3"
) =
"NULL"
Then
e.Command.Parameters(
"@EscortAttachmentPath3"
).Value = Session(
"EscortAttachment_Path3"
)
End
If
e.Command.Parameters(
"@EmployeeID"
).Value = Session(
"EmployeeID"
)
e.Command.Parameters(
"@EscortUpdatedDate"
).Value = Now
Catch
ex
As
Exception
End
Try
End
Sub
Protected
Sub
SqlDataSource_EmployeesEscorts_OnInserting(sender
As
Object
, e
As
SqlDataSourceCommandEventArgs)
Dim
_AddedBy
As
New
SqlParameter(
"@EscortAddedBy"
, SqlDbType.UniqueIdentifier)
_AddedBy.Direction = ParameterDirection.Input
Dim
_CurrentUser
As
MembershipUser = Membership.GetUser
Dim
_CurrentUserId
As
Guid =
CType
(_CurrentUser.ProviderUserKey, Guid)
_AddedBy.Value = _CurrentUserId
e.Command.Parameters.Add(_AddedBy)
End
Sub
Protected
Sub
SqlDataSource_EmployeesEscorts_OnUpdating(sender
As
Object
, e
As
SqlDataSourceCommandEventArgs)
Dim
_UpdatedBy
As
New
SqlParameter(
"@EscortUpdatedBy"
, SqlDbType.UniqueIdentifier)
_UpdatedBy.Direction = ParameterDirection.Input
Dim
_CurrentUser
As
MembershipUser = Membership.GetUser
Dim
_CurrentUserId
As
Guid =
CType
(_CurrentUser.ProviderUserKey, Guid)
_UpdatedBy.Value = _CurrentUserId
e.Command.Parameters.Add(_UpdatedBy)
End
Sub
#End Region
#Region "PersonalCustodies"
Protected
Sub
RadGrid_PersonalCustodies_InsertCommand(sender
As
Object
, e
As
Telerik.Web.UI.GridCommandEventArgs)
Dim
_EditedItem
As
GridEditableItem = TryCast(e.Item, GridEditableItem)
Save_PersonalCustodiesAttachment(_EditedItem,
"Add"
)
End
Sub
Private
Sub
Save_PersonalCustodiesAttachment(edited_Item
As
GridEditableItem, Task
As
String
)
Try
Session(
"PersonalCustodiesAttachment_Path"
) =
"NULL"
Dim
_EmployeeAttachment
As
RadAsyncUpload =
DirectCast
(edited_Item.FindControl(
"RPAttachmentPath"
), RadAsyncUpload)
Dim
_CurrentAttachmentID
As
Long
= 1
Select
Case
Task
Case
"Add"
Dim
_AttachmentCount = From sd
In
DB.APP_EmployeesPersonalCustodies
Select
sd.ID
If
Not
_AttachmentCount.Count = 0
Then
_CurrentAttachmentID = _AttachmentCount.Max + 1
End
If
Case
"Edit"
If
File.Exists(Server.MapPath(Session(
"_OldPersonalCustodiesAttachmentPath"
)))
Then
If
Not
_EmployeeAttachment.UploadedFiles.Count = 0
Then
Dim
_SourceFile
As
New
System.IO.FileInfo(Session(
"_OldPersonalCustodiesAttachmentPath"
))
_CurrentAttachmentID = Path.GetFileNameWithoutExtension(_SourceFile.Name)
File.Delete(Server.MapPath(Session(
"_OldPersonalCustodiesAttachmentPath"
)))
End
If
Else
_CurrentAttachmentID = Session(
"_PersonalCustodyID"
)
End
If
End
Select
Dim
AttachmentTempPath
As
String
=
"~/Attachments/Employee/PersonalCustodies/"
+ Session(
"EmployeeID"
).ToString +
"/"
If
Not
Directory.Exists(Server.MapPath(AttachmentTempPath))
Then
Directory.CreateDirectory(Server.MapPath(AttachmentTempPath))
End
If
If
Not
_EmployeeAttachment.UploadedFiles.Count = 0
Then
Dim
_targetFolder
As
String
= Server.MapPath(AttachmentTempPath)
For
Each
validFile
As
UploadedFile
In
_EmployeeAttachment.UploadedFiles
Dim
FileToBeSaved
As
String
= _CurrentAttachmentID & validFile.GetExtension
Dim
FullPath
As
String
= Path.Combine(_targetFolder, FileToBeSaved)
If
File.Exists(Server.MapPath(FullPath))
Then
File.Delete(Server.MapPath(FullPath))
End
If
validFile.SaveAs(FullPath,
True
)
Session(
"PersonalCustodiesAttachment_Path"
) = AttachmentTempPath + FileToBeSaved
Next
End
If
Catch
ex
As
Exception
MsgBox(ex.Message)
End
Try
End
Sub
Protected
Sub
RadGrid_PersonalCustodies_ItemDataBound(sender
As
Object
, e
As
Telerik.Web.UI.GridItemEventArgs)
If
(
TypeOf
e.Item
Is
GridDataItem
AndAlso
e.Item.OwnerTableView.DataSourceID =
"SqlDataSource_PersonalCustodies"
)
Then
Dim
_IDLabel
As
Label =
CType
(e.Item.FindControl(
"IDLabel"
), Label)
_IDLabel.Text = (e.Item.ItemIndex + 1).ToString
End
If
End
Sub
Protected
Sub
RadGrid_PersonalCustodies_ItemCommand(sender
As
Object
, e
As
Telerik.Web.UI.GridCommandEventArgs)
Dim
_RadGridPersonalCustodies
As
RadGrid =
DirectCast
(sender, RadGrid)
Dim
_currentUser
As
MembershipUser = Membership.GetUser
Dim
_UserRoles()
As
String
= Roles.GetRolesForUser(_currentUser.UserName.Trim)
Select
Case
Convert.ToString(e.CommandName)
Case
"InitInsert"
If
Not
_UserRoles.Contains(
"EmployeeAdd"
)
Or
Not
_UserRoles.Contains(
"EmployeeUpdate"
)
Then
RadAjaxManagerMain.Alert(
"You Don't Have Permission For This Service"
)
e.Canceled =
True
Exit
Sub
End
If
_RadGridPersonalCustodies.MasterTableView.ClearEditItems()
Exit
Select
Case
"Edit"
If
Not
_UserRoles.Contains(
"EmployeeUpdate"
)
Then
RadAjaxManagerMain.Alert(
"You Don't Have Permission For This Service"
)
e.Canceled =
True
Exit
Sub
End
If
e.Item.OwnerTableView.IsItemInserted =
False
Exit
Select
End
Select
End
Sub
Protected
Sub
RadGrid_PersonalCustodies_EditCommand(sender
As
Object
, e
As
Telerik.Web.UI.GridCommandEventArgs)
Session(
"_PersonalCustodyID"
) = e.Item.Cells(3).Text
Session(
"_OldPersonalCustodiesAttachmentPath"
) = e.Item.Cells(5).Text
End
Sub
Protected
Sub
RadGrid_PersonalCustodies_UpdateCommand(sender
As
Object
, e
As
Telerik.Web.UI.GridCommandEventArgs)
Dim
_EditedItem
As
GridEditableItem = TryCast(e.Item, GridEditableItem)
Save_PersonalCustodiesAttachment(_EditedItem,
"Edit"
)
End
Sub
Protected
Sub
SqlDataSource_PersonalCustodies_Inserting(sender
As
Object
, e
As
SqlDataSourceCommandEventArgs)
Handles
SqlDataSource_PersonalCustodies.Inserting
Try
If
Not
Session(
"PersonalCustodiesAttachment_Path"
) =
"NULL"
Then
e.Command.Parameters(
"@PersonalCustodyAttachmentPath"
).Value = Session(
"PersonalCustodiesAttachment_Path"
)
End
If
e.Command.Parameters(
"@EmployeeID"
).Value = Session(
"EmployeeID"
)
Catch
ex
As
Exception
End
Try
End
Sub
Protected
Sub
SqlDataSource_PersonalCustodies_Updating(sender
As
Object
, e
As
SqlDataSourceCommandEventArgs)
Handles
SqlDataSource_PersonalCustodies.Updating
Try
If
Not
Session(
"PersonalCustodiesAttachment_Path"
) =
"NULL"
Then
e.Command.Parameters(
"@PersonalCustodyAttachmentPath"
).Value = Session(
"PersonalCustodiesAttachment_Path"
)
End
If
e.Command.Parameters(
"@EmployeeID"
).Value = Session(
"EmployeeID"
)
e.Command.Parameters(
"@PersonalCustodyUpdatedDate"
).Value = Now
Catch
ex
As
Exception
End
Try
End
Sub
Protected
Sub
SqlDataSource_PersonalCustodies_OnInserting(sender
As
Object
, e
As
SqlDataSourceCommandEventArgs)
Dim
_AddedBy
As
New
SqlParameter(
"@PersonalCustodyAddedBy"
, SqlDbType.UniqueIdentifier)
_AddedBy.Direction = ParameterDirection.Input
Dim
_CurrentUser
As
MembershipUser = Membership.GetUser
Dim
_CurrentUserId
As
Guid =
CType
(_CurrentUser.ProviderUserKey, Guid)
_AddedBy.Value = _CurrentUserId
e.Command.Parameters.Add(_AddedBy)
End
Sub
Protected
Sub
SqlDataSource_PersonalCustodies_OnUpdating(sender
As
Object
, e
As
SqlDataSourceCommandEventArgs)
Dim
_UpdatedBy
As
New
SqlParameter(
"@PersonalCustodyUpdatedBy"
, SqlDbType.UniqueIdentifier)
_UpdatedBy.Direction = ParameterDirection.Input
Dim
_CurrentUser
As
MembershipUser = Membership.GetUser
Dim
_CurrentUserId
As
Guid =
CType
(_CurrentUser.ProviderUserKey, Guid)
_UpdatedBy.Value = _CurrentUserId
e.Command.Parameters.Add(_UpdatedBy)
End
Sub
#End Region
#Region "Appraisals"
Protected
Sub
RadGrid_EmployeeAppraisals_InsertCommand(sender
As
Object
, e
As
GridCommandEventArgs)
Dim
_EditedItem
As
GridEditableItem = TryCast(e.Item, GridEditableItem)
Dim
_EmployeeAppraisalYear
As
RadComboBox =
DirectCast
(_EditedItem.FindControl(
"cmb_EmployeeAppraisalYear"
), RadComboBox)
Session(
"EmployeeAppraisalYear"
) = _EmployeeAppraisalYear.SelectedValue
End
Sub
Protected
Sub
RadGrid_EmployeeAppraisals_ItemDataBound(sender
As
Object
, e
As
GridItemEventArgs)
If
(
TypeOf
e.Item
Is
GridDataItem
AndAlso
e.Item.OwnerTableView.DataSourceID =
"SqlDataSource_EmployeeAppraisals"
)
Then
Dim
lbl
As
Label =
CType
(e.Item.FindControl(
"IDLabel"
), Label)
lbl.Text = (e.Item.ItemIndex + 1).ToString
End
If
If
TypeOf
e.Item
Is
GridEditableItem
AndAlso
e.Item.IsInEditMode
Then
Dim
_editedItem
As
GridEditableItem = TryCast(e.Item, GridEditableItem)
Dim
_EmployeeAppraisalYear
As
RadComboBox =
DirectCast
(_editedItem.FindControl(
"cmb_EmployeeAppraisalYear"
), RadComboBox)
Dim
_Hiring = (From sd
In
DB.APP_Employees Where sd.ID = Convert.ToInt64(Session(
"EmployeeID"
))
Select
sd.EmployeeDateOfHiring).SingleOrDefault
If
_Hiring IsNot
Nothing
Then
Dim
_HiringDate
As
DateTime = _Hiring
Dim
_HiringYear = _HiringDate.Year
Dim
_CurrentYear = DateTime.Today.Year
For
_year
As
Long
= _HiringYear
To
_CurrentYear
Dim
_info = From sd
In
DB.APP_EmployeeAppraisals Where sd.EmployeeID = Convert.ToInt64(Session(
"EmployeeID"
))
And
sd.EmployeeAppraisalYear = _year
Select
sd.EmployeeAppraisalYear
Dim
_item
As
New
RadComboBoxItem()
If
Session(
"Status"
) =
"Edit"
Then
If
_year = Convert.ToInt64(Session(
"_OldEmployeeAppraisalYear"
))
Then
_item.Text = _year
_item.Value = _year
_EmployeeAppraisalYear.Items.Add(_item)
End
If
End
If
If
_info.Count = 0
Then
_item.Text = _year
_item.Value = _year
_EmployeeAppraisalYear.Items.Add(_item)
End
If
Next
End
If
If
Session(
"Status"
) =
"Edit"
Then
_EmployeeAppraisalYear.SelectedValue = Session(
"_OldEmployeeAppraisalYear"
)
End
If
End
If
End
Sub
Protected
Sub
RadGrid_EmployeeAppraisals_ItemCommand(sender
As
Object
, e
As
GridCommandEventArgs)
Dim
_EmployeeAppraisals
As
RadGrid =
DirectCast
(sender, RadGrid)
Dim
_currentUser
As
MembershipUser = Membership.GetUser
Dim
_UserRoles()
As
String
= Roles.GetRolesForUser(_currentUser.UserName.Trim)
Select
Case
Convert.ToString(e.CommandName)
Case
"InitInsert"
If
Not
_UserRoles.Contains(
"EmployeeAdd"
)
Or
Not
_UserRoles.Contains(
"EmployeeUpdate"
)
Then
RadAjaxManagerMain.Alert(
"You Don't Have Permission For This Service"
)
e.Canceled =
True
Exit
Sub
End
If
_EmployeeAppraisals.MasterTableView.ClearEditItems()
Session(
"Status"
) =
"Insert"
Exit
Select
Case
"Edit"
If
Not
_UserRoles.Contains(
"EmployeeUpdate"
)
Then
RadAjaxManagerMain.Alert(
"You Don't Have Permission For This Service"
)
e.Canceled =
True
Exit
Sub
End
If
e.Item.OwnerTableView.IsItemInserted =
False
Session(
"Status"
) =
"Edit"
Exit
Select
End
Select
End
Sub
Protected
Sub
RadGrid_EmployeeAppraisals_UpdateCommand(sender
As
Object
, e
As
GridCommandEventArgs)
Dim
_EditedItem
As
GridEditableItem = TryCast(e.Item, GridEditableItem)
Dim
_EmployeeAppraisalYear
As
RadComboBox =
DirectCast
(_EditedItem.FindControl(
"cmb_EmployeeAppraisalYear"
), RadComboBox)
Session(
"EmployeeAppraisalYear"
) = _EmployeeAppraisalYear.SelectedValue
End
Sub
Protected
Sub
RadGrid_EmployeeAppraisals_EditCommand(sender
As
Object
, e
As
GridCommandEventArgs)
Session(
"_OldEmployeeAppraisalYear"
) = e.Item.Cells(5).Text
End
Sub
Protected
Sub
SqlDataSource_EmployeeAppraisals_Inserting(sender
As
Object
, e
As
SqlDataSourceCommandEventArgs)
Handles
SqlDataSource_EmployeeAppraisals.Inserting
e.Command.Parameters(
"@EmployeeID"
).Value = Session(
"EmployeeID"
)
e.Command.Parameters(
"@EmployeeAppraisalYear"
).Value = Session(
"EmployeeAppraisalYear"
)
End
Sub
Protected
Sub
SqlDataSource_EmployeeAppraisals_Updating(sender
As
Object
, e
As
SqlDataSourceCommandEventArgs)
Handles
SqlDataSource_EmployeeAppraisals.Updating
e.Command.Parameters(
"@EmployeeID"
).Value = Session(
"EmployeeID"
)
e.Command.Parameters(
"@EmployeeAppraisalUpdatedDate"
).Value = Now
e.Command.Parameters(
"@EmployeeAppraisalYear"
).Value = Session(
"EmployeeAppraisalYear"
)
End
Sub
Protected
Sub
SqlDataSource_EmployeeAppraisals_OnInserting(sender
As
Object
, e
As
SqlDataSourceCommandEventArgs)
Dim
_AddedBy
As
New
SqlParameter(
"@EmployeeAppraisalAddedBy"
, SqlDbType.UniqueIdentifier)
_AddedBy.Direction = ParameterDirection.Input
Dim
_CurrentUser
As
MembershipUser = Membership.GetUser
Dim
_CurrentUserId
As
Guid =
CType
(_CurrentUser.ProviderUserKey, Guid)
_AddedBy.Value = _CurrentUserId
e.Command.Parameters.Add(_AddedBy)
End
Sub
Protected
Sub
SqlDataSource_EmployeeAppraisals_OnUpdating(sender
As
Object
, e
As
SqlDataSourceCommandEventArgs)
Dim
_UpdatedBy
As
New
SqlParameter(
"@EmployeeAppraisalUpdatedBy"
, SqlDbType.UniqueIdentifier)
_UpdatedBy.Direction = ParameterDirection.Input
Dim
_CurrentUser
As
MembershipUser = Membership.GetUser
Dim
_CurrentUserId
As
Guid =
CType
(_CurrentUser.ProviderUserKey, Guid)
_UpdatedBy.Value = _CurrentUserId
e.Command.Parameters.Add(_UpdatedBy)
End
Sub
#End Region
<
div
>
<
telerik:RadScriptManager
ID
=
"ScriptManager1"
runat
=
"server"
>
</
telerik:RadScriptManager
>
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function OnClientLoad(editor, args) {
var element = document.all ? editor.get_document().body : editor.get_document();
$telerik.addExternalHandler(element, "onkeypress", function (e) {
$('#<%=btnSave.ClientID %>').text = "Save";
$('#<%=btnSave.ClientID %>').disabled = false;
});
}
</
script
>
</
telerik:RadCodeBlock
>
<
telerik:RadEditor
runat
=
"server"
ID
=
"reText"
Height
=
"400px"
Width
=
"100%"
EditModes
=
"Design"
Skin
=
"WebBlue"
DialogHandlerUrl
=
"~/Telerik.Web.UI.DialogHandler.axd"
StripFormattingOnPaste
=
"MSWordRemoveAll"
StripFormattingOptions
=
"MSWordRemoveAll"
AjaxUrl
=
"~/Telerik.Web.UI.SpellCheckHandler.axd"
EnableResize
=
"false"
OnClientLoad
=
"OnClientLoad"
>
</
telerik:RadEditor
>
<
telerik:RadButton
ID
=
"btnSave"
runat
=
"server"
Text
=
"Current"
Enabled
=
"false"
/>
</
div
>