
//\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\//
// Report Styles property panel functions
//\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\////\\//


//var RptStyleDbTable = "";
//var RptObjectType = "";
//var RptStyleRecordId = "";
//var RptStyleName = "";

///**
// * Called when user clicks "Delete" button next to report style
// * @param {any} sDbTable
// * @param {any} sRecordId
// * @param {any} sStyle
// */
//function OnRptStyleDelete(sDbTable, sObjectType, sRecordId, sStyle) {

//    RptStyleDbTable = sDbTable;
//    RptObjectType = sObjectType;
//    RptStyleRecordId = sRecordId;
//    RptStyleName = sStyle;

//    //ToastMessage("OnRptStyleDelete:", sDbTable + "\r\n\r\n" + sObjectType + "\r\n\r\n" + sRecordId + "\r\n\r\n" + sStyle);

//    PopupYesNoWithCallback("Delete Report Style", "Are you sure you wish to delete the report style?" + "\r\n\r\n" + sStyle + "\r\n\r\n" + "This cannot be undone!", OnOkDeleteRptStyle);
//}

//function OnOkDeleteRptStyle() {

//    ToastMessage("OnOkDeleteRptStyle:", RptStyleDbTable + "\r\n\r\n" + RptStyleRecordId + "\r\n\r\n" + RptStyleName);
//}



///**
// * Called when user clicks icon button next to report style
// * @param {any} sDbTable
// * @param {any} sRecordId
// * @param {any} sStyle
// */
//function OnRptStyleSelect(sDbTable, sObjectType, sRecordId, sStyle) {

//    RptStyleDbTable = sDbTable;
//    RptObjectType = sObjectType;
//    RptStyleRecordId = sRecordId;
//    RptStyleName = sStyle;

//    ToastMessage("OnRptStyleSelect:", sDbTable + "\r\n\r\n" + sObjectType + "\r\n\r\n" + sRecordId + "\r\n\r\n" + sStyle);
//}



///**
// * Called when user clicks "Edit name" button next to report style
// * @param {any} sDbTable
// * @param {any} sRecordId
// * @param {any} sStyle
// */
//function OnRptStyleEdit(sDbTable, sObjectType, sRecordId, sStyle) {

//    RptStyleDbTable = sDbTable;
//    RptObjectType = sObjectType;
//    RptStyleRecordId = sRecordId;
//    RptStyleName = sStyle;

//    RefreshRptStylesPropertyGridView();
//    //ToastMessage("OnRptStyleEditName:", sDbTable + "\r\n\r\n" + sObjectType + "\r\n\r\n" + sRecordId + "\r\n\r\n" + sStyle);
//}



///**
// * Display the property grid for this object
// */
//function RefreshRptStylesPropertyGridView() {

//    $("#HiddenSelectedTableId").val(RptStyleDbTable);
//    $("#HiddenSelectedDataTypeId").val(RptObjectType);
//    $("#HiddenSelectedRecordId").val(RptStyleRecordId);

//    // Fill properties with partial view from server
//    AjaxRefreshPropertyGridView($("#" + PropertyGridPartialViewDivId), "rptdata.RptStylesProperty", RptObjectType/*ObjectDataType*/, RptStyleDbTable/*ObjectTable*/, RptStyleRecordId/*ObjectRecordId*/, ""/*SelectedCellTable*/, ""/*SelectedCellColumnId*/, ""/*PropertyValuesJsonString*/);
//    AddPropertiesGridToContentArray("BarcodeDefaults"/*ObjectDataType*/, "Web Edition"/*ObjectTable*/, "Cookies"/*ObjectRecordId*/, ""/*SelectedCellTable*/, ""/*SelectedCellColumnId*/);
//}

